First Mate triages 2,000+ issues and PRs in a month using one bot per repo
Overview
An open-source maintainer with several popular agent-tool repos cannot keep up with issues and PRs. One triage bot per repo reports to First Mate, and Cursor cloud agents take on heavy work.
Workflow
- Trigger: Issues and PRs were overwhelming. Several of the author's open-source projects, mostly agent tools, are popular and receive a steady stream of issues and PRs. Grok Bot told the author it had processed over 2,000 items across issues and PRs in the previous month. The author says the projects could not progress without this setup (author's claim, not reproduced). The video opens the actual setup instead of a prepared demo.
- Bot: Comment first on every issue and PR. The author opens a random PR from a contributor the previous week in a small repo. At the bottom is a comment from the author's account in FirstMate's voice, followed by a series of bot comments on changes required before merging. The comments guide contributors through getting changes merged and ideas implemented. FirstMate merges qualifying PRs that meet the repo's rules and escalates decisions requiring the author, such as ambiguous behavior changes, to wait in Grok Bot.
- By hand: Give each repo one bot. Each bot has regular triage and release routines. The lower-traffic Treehouse repo runs triage daily and the busier FirstMate repo every four hours. Triage reviews every unhandled or updated open issue and PR and decides whether to comment, merge a PR or close an issue.
- Bot: Talk only to First Mate. The author skips each repo chat and works with FirstMate, which orchestrates the other agents. Every repo's issues surface in that chat. For example, FirstMate reports that CI on the FirstMate repo hit a limit and presents possible fixes. The author wants to solve it once instead of patching repeatedly. FirstMate responds itself to sub-bot messages that need no author input. It is based on the author's FirstMate open-source project, used and refined by many users over several months. The author calls it one of the projects that has taken the chief-of-staff pattern furthest, with thousands of forks and many active contributors. Import it to get a full engineering workflow with adversarial review and planning as well as the prompt.
- By hand: Store tasks in local SQLite. FirstMate tracks tasks in a durable local SQLite database that survives agent resets or context compaction. The author likens it to giving the bot Linear or Jira for complex projects. It queries waiting PR decisions directly without messaging other bots. Its charter also says to update subordinate behavior after errors or inefficiencies to prevent repeats. The author shows FirstMate's nearly two-month list of specific improvements to reduce inefficiency and noise.
- Bot: Have First Mate create a subordinate in one sentence. The author asks for a triage crewmate for the new open-source headless repo. FirstMate creates it and reports 20 open items from outside contributors. Headless is an agent skill for setting up headless machines and had over 100 stars within a few days of release. The crewmate immediately starts a first pass over one PR and several issues. The author uses Handy, an independent, free, open-source transcription tool with no affiliation, for voice input. It provides the same shortcut across apps and a custom word list to handle frequent transcription errors consistently.
- Bot: Read vision.md before triage decisions. Each repo has a vision.md for direction, principles, boundaries and which changes to accept or reject. Each crewmate follows it and good engineering practice to decide which PRs are safe to merge. The author explicitly keeps those decisions grounded in the document. A skill for writing vision.md asks repeated questions about hypothetical changes to uncover the author's real boundaries, then helps write the vision after a few rounds.
- By hand: Review directly when vision.md is missing. Headless has no vision.md yet, so a four-line fix gets a “captain decision hold” for the author. The author sees that it restores string matching and documentation to behavior the documentation already promises, then tells the bot to merge PR 25 and allow similar changes next time. FirstMate immediately updates the headless agent profile so the decision can proceed without greptile. The crew merges, headless reports it, and the PR page shows the merge and a thank-you. Almost all of the author's open-source repos require contributors to submit PRs using the same set of tools with actual verification to set a quality floor. The auto captions render the tool name as no mistakes, with uncertain accuracy. Some repos also use greptile, which provides free code-review allowance for open source.
- By hand: Make one decision at a time. When asked about waiting PRs, FirstMate reads the database and reports 88 needing decisions, some time-sensitive. The author says “ahoy” to get just the top issue, such as whether to run a PR check on another Ubuntu release. The author discusses making the check blocking now since it will soon be required. FirstMate checks the current facts and the author approves the migration. For disagreements on a PR, the author's side pays the cost of small rework and sends feedback back to contributors only for very large changes.
- Bot: Delegate coding to Cursor cloud agents. After reading the PR, FirstMate launches a cursor cloud agent to code. It spreads heavy work across many sandboxes so even 100 PRs at once do not fill up the Grok Bot cloud computer.
- Bot: Have Kun handle questions the author knows well. When CI goes red because jobs reach a 30-minute cap, the author asks Kun what the author would do. Kun contains a near-real-time distillation of everything the author has put out publicly. It is based on the author's Kun repo, whose skill runs in any agent and includes daily opinions.md distilled from public statements, tools, assets and video transcripts. The author is surprised at the accuracy and says more public writing makes the bot stronger. It recommends keeping the cap and taking three steps: split tests into parallel jobs, alert at 20 minutes to fix problems before the hard limit, as the author tends to do, and speed up lint. The author approves. Readers can import the bot, which can answer faster than the author on topics the author knows.
- Bot: Distill Anyone turns anyone with public content into a bot. The author has tried Mark Zuckerberg, Elon Musk and Sam Altman bots discussing AI. The live Jensen Huang demo uses Wikipedia to confirm the identity of Nvidia's founder and collects 22 talks and interviews and 21 posts. Asked about Chinese models, it gives an acceptable answer that differs from what the author wanted. It also builds a voice profile and speaks in Jensen's style, such as starting with facts.
- Check: The author returns to GitHub to verify triage comments, the captain decision hold and merge status, confirming PR 25 was merged with thanks, and sees FirstMate update the subordinate profile. The author confirms proceeding with Kun's three-step fix for failed CI. The 2,000-plus items are a bot answer to the author and have no independent report in the video (author's claim, not reproduced).
Key points and results
- One bot per repo, one chat with the lead. The author never opens the individual repo chats and gets everything in FirstMate. The author considers switching among bots an antipattern.
- vision.md controls automatic merges. Each repo documents principles, boundaries and accepted or rejected changes. Crewmates use it and engineering practice to decide which PRs can merge safely.
- Missing vision.md triggers escalation. In headless, a four-line fix got captain decision hold and merged only after the author reviewed and approved.
- SQLite state survives context resets. It works like Linear or Jira for the bot. FirstMate queries pending decisions directly without messages to subordinate bots.
- FirstMate updates subordinate behavior. It addresses mistakes and inefficiencies, and its nearly two-month improvement summary gives specific fixes for wasted work and noise.
- Absorb small rework and send large rework back. If the author disagrees with an approach, the crew handles small changes and gives feedback to the contributor only for large changes.
- Use cloud agents for heavy work. Cursor cloud agents code in many sandboxes, so even 100 simultaneous PRs do not fill the Grok Bot cloud computer.
- The author distilled public work into Kun. Near-real-time distillation produces files such as opinions.md, updated daily. Kun suggested the three CI fixes and the author followed them.
- Distill anyone with public content into a bot. The live Jensen Huang demo used 22 talks and interviews and 21 posts and generated a speaking style. Firstmate, Kun and Distill Anyone import links are free and in the description.
- The bot supplied the figures. More than 2,000 issues and PRs the previous month was a bot answer with no third-party reporting (author's claim, not reproduced). The pending decision queue shown had 88 PRs.
Timestamps
Transcript status: Auto-generated English captions (yt-dlp, en-orig)
0:33 Grok Bot reports handling more than 2,000 issues and PRs in the previous month
5:08 First Mate uses local SQLite so tasks survive state resets
9:13 Each repo's vision.md determines which PRs can merge automatically
13:17 The author tells the bot to merge PR 25 and then confirms it is merged
17:00 Cursor cloud agents code outside the Grok Bot cloud computer to avoid a bottleneck
Timestamp source: Description chapters + auto captions
Source
- Platform
- YouTube
- Author
- Kun Chen
- Published
- Categories
- Code and repos
- Channel
- Kun Chen
What this evidence label means
Author's claim, unverified
The method and results come from the author's own account. This site has not reproduced them.