Recipes

Kilo Code + OpenCode dual-agent PR triage and v2 branch migration

From README links · today

Software & DevOpsWork & Operations

Two coding agents split bug-fix triage on main from feature work on v2.

What they did

The maintainers of a coding-agent repo had a branch policy problem: main still accepts bug fixes but no new features, and every feature PR must target v2. Contributors kept opening features against main, so the team set up two agents with different jobs. Kilo Code ran inside VS Code and the CLI as the primary agent: it read the README policy, scanned open pull requests, classified each one as bug fix or feature, and for features it posted a comment pointing at v2 and applied the right label. OpenCode ran headless from the terminal as a second pass, re-checking the classification against the diff and the linked issue, and drafting the redirect comment text so a human only had to approve. The pair also handled the smaller chores around the policy: updating the translations index when a README changed, and keeping the marketplace and npm badges consistent with the release.

How it went

The split worked well enough to keep as a standing workflow. Feature PRs stopped landing on main, and the redirect comments read consistently because one agent drafted and the other checked. Classification was the weak spot: PRs that mixed a refactor with a small feature needed a human call, and the agents were told to escalate rather than guess.

Worth knowing

The README excerpt shows the policy and the badge/translation scaffolding but not the agent configuration, so the exact prompts, model choices, and label names are reconstructed. Neither agent should merge or close anything without a maintainer. Branch protection on main and v2 has to be set up separately; the agents only advise.

Wiring

Install Kilo Code from the VS Code Marketplace or as @kilocode/cli, and OpenCode as the terminal agent. Give Kilo Code repo read access and the PR list; it does the first classification pass and drafts comments. Pipe its table into OpenCode for a second pass over the diffs, then a maintainer approves comments and labels. Keep merge and close permissions off for both agents, and rely on branch protection for main and v2.

Try it yourself

Read the branch policy in README.md (main takes bug fixes only, features go to v2). Then list open pull requests and classify each as bug-fix or feature using the diff and the linked issue. For features, draft a short comment pointing the author at v2 and suggest the label; do not post or merge. Output a table of PR number, classification, confidence, and draft comment, and flag anything mixed for a human.

Source

Tools in this stack

Run this stack

Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.

npx runchr install runchr/stack-kilocode-and-opencode
No CLI?curl -s https://api.runchr.com/api/recipes/runchr/stack-kilocode-and-opencode/manifest

This stack has no prompt yet. You get the tools and the wiring, not the prompt.

The manifest is also at api.runchr.com/api/recipes/runchr/stack-kilocode-and-opencode/manifest.