"Fresh eyes. The agent that wrote the code isn't the one reviewing it" is the most important sentence here, and it's the exact reason I stopped asking a single agent to review its own work.
The "propose first, apply after approval" rule is also smart, but I'm curious how you handle the case where the reviewer proposes a fix that the builder disagrees with. Does the builder just implement it, or does it push back and escalate to you?
Hi, as we all know, even AI makes mistakes, so a developer might not agree with whatβs being proposed.
In that case, you make an overall assessment and weigh the pros and cons of the proposal.
"Weigh the pros and cons" is the right answer for a human, but it's harder to automate.
If the reviewer suggests a fix and the builder disagrees, the final decision should probably go to the human (you), not to another agent. Otherwise you're just adding a third agent to argue with the first two.
Curious if your setup has a "tie-breaker" rule. Something like "if builder and reviewer disagree, escalate to human" β or does the builder just implement the reviewer's suggestion?
ML engineer focused on cost-efficient AI infrastructure. I benchmark GPU clouds and share practical guides for running LLMs in production.
π¬ Telegram: https://t.me/qisuancloud
The "propose first, apply after approval" gate is the detail I'd steal first. In my own agent setups, failures rarely came from the model choosing the wrong edit β they came from edits landing in files nobody reviewed because the approval step was implicit rather than enforced. Your sandbox rule-ordering note is a good catch too: last-matching-rule-wins is exactly the kind of thing that silently breaks when someone reorders a config file months later. One thing I'm curious about: how do you keep the primary agent from over-delegating? Once an agent knows it has specialists, mine started dispatching for trivially small tasks and the token bill climbed fast. Did you add any threshold or heuristic for when NOT to call a subagent?
Hi, for now, I've simply instructed the agent to delegate to subagents only when the task at hand requires a specialist.
I'm also thinking, to avoid delegating too often, of asking the user for approval.
ML engineer focused on cost-efficient AI infrastructure. I benchmark GPU clouds and share practical guides for running LLMs in production.
π¬ Telegram: https://t.me/qisuancloud
The failure mode I'd watch in "delegate only when a specialist is needed" is that the agent grades its own homework β the judgment of "needed" comes from the same system that benefits from delegating. One cheap fix: log a one-line reason with every delegation. Over-delegation stops being a vibe and becomes an auditable list.
On the approval gate: it's a good backstop, but measure it. Track approval latency, and the share of approvals that are rubber stamps. If users approve almost everything without reading, the gate is a delay rather than a check β and at that point widening the autonomous band, with the reason log as the audit trail, is the safer design.
β΅ you liked it β΄ youβll like this. I built becauseiliked.com so recommendations finally explain themselves.
Try -> https://becauseiliked.com/?utm_source=devto
Nice setup, βthe agent that wrote the code is the worst one to judge itβ is so true. Have you thought about an accessibility reviewer as a fifth one? Itβs the stuff that slips through most code reviews, like missing labels, focus order and contrast, and it fits the same propose-first flow really well.
Version-pinned AI coding agent config kits: AGENTS.md, CLAUDE.md, Cursor rules & Copilot instructions for 12 stacks. Built and validated by Piekwerk AgentConfig Studio.
The fresh-eyes split paid off for me too. The detail that bit me was rule order. I ported a similar setup between tools with different precedence, and the sandbox quietly stopped doing what the file said. Now the deny goes last everywhere so the config means the same thing copied. The agent file versus skill split is worth guarding. When both described the review process in mine they drifted apart, the agent kept following the stale copy, so process lives in one place only. The blanket MCP allow is the piece I'd tighten. Permission rules gate what the agent requests. The server process runs with its own access, so I enable MCP servers per project.
I had a similar idea for splitting to seperat roles. For my use case it was product owner, architect, dev & qa and reviewer.
It made a huge difference in my project, significant reduction in work redo.
But it does come with a cost π
Propose first, apply after approval is the rule I'd keep even if I dropped everything else. Having the reviewer be a different agent from the writer matters more than people expect: the writer reads its own code as what it meant, not what it wrote.
Propose-first plus a second ask on every write is the part I'd steal immediately β the agent that just wrote the code is a terrible reviewer of it. Splitting into specialists also keeps each conversation shorter, which helps with the "one giant conversation gets messy" problem you opened with. In CodeCook I've been fighting that same mess by summarizing older turns instead of carrying the full transcript; curious whether your subagents start from a clean brief each time, or inherit the web-developer's full thread.
Founder & CEO of Netsujo. Building trustworthy AI agent systems, with a focus on task boundaries, verification, and production reliability. Creator of Agent Role Contracts (ARC).
The split between a primary agent and specialists is a strong real-world test caseβespecially your edit: ask rule and the separate reviewer. Would you be open to a small, no-migration cross-check on one completed task? We would keep your OpenCode setup as-is, map the existing agent files to a role/task contract, record a baseline PASS, inject one contradiction (for example, the reviewer receives a task requiring an out-of-scope file write), repair it, and publish setup time plus any false positives.
ARC only checks the supplied declarations offline; it would not prove that OpenCode enforced them, so this complements your runtime permissions rather than replacing them. I maintain it here: github.com/suirindo/agent-role-con...
If you're interested, which finished task would make a fair fixture?
I write when an idea won't leave me alone π§ Building AI agents and the tools to build AI agents. Love connecting AI with other fields and yapping about all of them.
You call the two checkpoints heavy on small tasks, and I can see why. The code-reviewer already sorts findings from critical to info, so I'd keep the second ask only for fixes that come from critical findings and let the info-level ones apply after the first approval. Have you tried splitting it that way?
We're a place where coders share, stay up-to-date and grow their careers.
"Fresh eyes. The agent that wrote the code isn't the one reviewing it" is the most important sentence here, and it's the exact reason I stopped asking a single agent to review its own work.
The "propose first, apply after approval" rule is also smart, but I'm curious how you handle the case where the reviewer proposes a fix that the builder disagrees with. Does the builder just implement it, or does it push back and escalate to you?
Hi, as we all know, even AI makes mistakes, so a developer might not agree with whatβs being proposed.
In that case, you make an overall assessment and weigh the pros and cons of the proposal.
"Weigh the pros and cons" is the right answer for a human, but it's harder to automate.
If the reviewer suggests a fix and the builder disagrees, the final decision should probably go to the human (you), not to another agent. Otherwise you're just adding a third agent to argue with the first two.
Curious if your setup has a "tie-breaker" rule. Something like "if builder and reviewer disagree, escalate to human" β or does the builder just implement the reviewer's suggestion?
The "propose first, apply after approval" gate is the detail I'd steal first. In my own agent setups, failures rarely came from the model choosing the wrong edit β they came from edits landing in files nobody reviewed because the approval step was implicit rather than enforced. Your sandbox rule-ordering note is a good catch too: last-matching-rule-wins is exactly the kind of thing that silently breaks when someone reorders a config file months later. One thing I'm curious about: how do you keep the primary agent from over-delegating? Once an agent knows it has specialists, mine started dispatching for trivially small tasks and the token bill climbed fast. Did you add any threshold or heuristic for when NOT to call a subagent?
Hi, for now, I've simply instructed the agent to delegate to subagents only when the task at hand requires a specialist.
I'm also thinking, to avoid delegating too often, of asking the user for approval.
The failure mode I'd watch in "delegate only when a specialist is needed" is that the agent grades its own homework β the judgment of "needed" comes from the same system that benefits from delegating. One cheap fix: log a one-line reason with every delegation. Over-delegation stops being a vibe and becomes an auditable list.
On the approval gate: it's a good backstop, but measure it. Track approval latency, and the share of approvals that are rubber stamps. If users approve almost everything without reading, the gate is a delay rather than a check β and at that point widening the autonomous band, with the reason log as the audit trail, is the safer design.
Nice setup, βthe agent that wrote the code is the worst one to judge itβ is so true. Have you thought about an accessibility reviewer as a fifth one? Itβs the stuff that slips through most code reviews, like missing labels, focus order and contrast, and it fits the same propose-first flow really well.
Hi, yes, I'm actually developing it right now :)
The fresh-eyes split paid off for me too. The detail that bit me was rule order. I ported a similar setup between tools with different precedence, and the sandbox quietly stopped doing what the file said. Now the deny goes last everywhere so the config means the same thing copied. The agent file versus skill split is worth guarding. When both described the review process in mine they drifted apart, the agent kept following the stale copy, so process lives in one place only. The blanket MCP allow is the piece I'd tighten. Permission rules gate what the agent requests. The server process runs with its own access, so I enable MCP servers per project.
I had a similar idea for splitting to seperat roles. For my use case it was product owner, architect, dev & qa and reviewer.
It made a huge difference in my project, significant reduction in work redo.
But it does come with a cost π
Everything in life comes at a cost π€£
Iβd love to hear your thoughts on the roles I defined for my use case. I shared my approach here: dev.to/litalkumiq/we-split-claude-...
Propose first, apply after approval is the rule I'd keep even if I dropped everything else. Having the reviewer be a different agent from the writer matters more than people expect: the writer reads its own code as what it meant, not what it wrote.
Propose-first plus a second ask on every write is the part I'd steal immediately β the agent that just wrote the code is a terrible reviewer of it. Splitting into specialists also keeps each conversation shorter, which helps with the "one giant conversation gets messy" problem you opened with. In CodeCook I've been fighting that same mess by summarizing older turns instead of carrying the full transcript; curious whether your subagents start from a clean brief each time, or inherit the web-developer's full thread.
The split between a primary agent and specialists is a strong real-world test caseβespecially your
edit: askrule and the separate reviewer. Would you be open to a small, no-migration cross-check on one completed task? We would keep your OpenCode setup as-is, map the existing agent files to a role/task contract, record a baseline PASS, inject one contradiction (for example, the reviewer receives a task requiring an out-of-scope file write), repair it, and publish setup time plus any false positives.ARC only checks the supplied declarations offline; it would not prove that OpenCode enforced them, so this complements your runtime permissions rather than replacing them. I maintain it here: github.com/suirindo/agent-role-con...
If you're interested, which finished task would make a fair fixture?
You call the two checkpoints heavy on small tasks, and I can see why. The code-reviewer already sorts findings from critical to info, so I'd keep the second ask only for fixes that come from critical findings and let the info-level ones apply after the first approval. Have you tried splitting it that way?