D
Daniel Shin
Guest
I build order APIs by day, and like a lot of developers this year, I started handing real work to Claude Code. One session was fine. The trouble started when I ran several at once on the same repo.
Two agents edited the same file. One reported “done” while its tests never ran.
A third kept looping on its own review feedback. And the worst one: a change went out that I never looked at. The agents were fast. Losing control of them was the pain.
So I built a small open-source plugin to fix the exact failure modes I kept hitting. It’s called AgentQuest, and it runs as
Every failure I hit fell into one of four buckets, and each one has a concrete fix — not a prompt tweak, a mechanism.
1. Collisions. Two sessions editing the same files overwrite each other. Fix: every task gets its own isolated git worktree and branch. If two tasks touch overlapping files, the second one waits in a queue instead of running in parallel.
2. Fake “done.” An agent says it’s finished, and nothing actually proves it. Fix: tests are written to fail first, on purpose. A test that never failed proves nothing. Only when the failing tests turn green, and your own test suite passes, does the task count as done.
3. Infinite loops. An agent reviews its own work forever. Fix: at most two review rounds. A critical or major finding left after round two stops the task and brings it to you.
4. Self-approval. An agent approves its own work, or relays an approval from another session. Fix: the release is pinned to one exact commit SHA, and only you approve it, typed by you in the release-manager window. An approval relayed by an agent is refused. If anything moves after your approval, the approval is void, and you’re asked again. The push is non-force, always.
You talk to one conductor window, in plain language. The flow is nine steps, and one of them is yours:
There’s also a database write guard: every database write needs your approval, and subagents and auto-accept permission modes are always denied. The guard is a guard rail for the model, not a sandbox — it can’t see writes your application code makes internally, so you can add your own scripts to its watch list.
The four failures above were accidents. The fifth one isn’t. Indirect prompt injection — a web page, a file, an issue comment, or a tool result that talks your agent into doing something irreversible — is now the standard attack on coding agents, and no model reliably notices it. This year a popular email MCP server shipped a routine update that silently BCC’d every message it sent to the developer’s own address. Nothing in the tool call looked wrong. The call was never the problem; who ordered it was.
So in v1.2.0, I added a second gate, one level down: an Approval Gate on every individual tool call, in any session, conductor or not. It’s a PreToolUse hook that decides allow/ask/deny using only regexes, resolved paths, and allow-lists. No LLM call, no network — there is nothing for an injected instruction to persuade.
It ships with three scopes (coding, device-control, research), a JSONL audit log of every tool call, and a session-start baseline that hashes your MCP and config files — if one changes mid-session, the next call stops, which is how you catch a rug-pull update.
The test suite runs 90 checks: 58 known attack shapes blocked, 22 normal coding tasks passed. The honest limit: if a compromised server adds a recipient on its own side, at send time, the gate can’t see it — which is exactly why the scope allow-list of which servers may run at all matters more than any single decision.
It’s free and open core. You bring your own Claude Code subscription, and running several jobs in parallel uses more of that plan’s usage than a single session would. It runs locally — each job in an isolated worktree in your repo.
You need Claude Code with plugin support, Node.js 18+, and git 2.20+. For several sessions at once, you need tmux 3.x in a terminal or the Claude desktop app. Without either, the conductor writes you a ready-to-paste brief for each work session instead. macOS and Linux work natively; Windows works via WSL2. The approval gate needs Python 3.
Two commands to install:
Then
The lesson wasn’t “agents need better prompts.” It was that parallel work needs the same things human teams need: isolated workspaces, a definition of done that can fail, a limit on review rounds, and a release gate that only a human can open.
The approval gate is the whole point — now at both levels. Agents do the work. The ship decision, and every irreversible call on the way there, stays yours.
Disclosure: I’m the author of AgentQuest (conductor-kit). It’s free and open source under Apache 2.0 — source at github.com/seattle78/AgentQuest, v1.2.0 release at github.com/seattle78/AgentQuest/releases/tag/v1.2.0, landing page at agentquest.dev.
Two agents edited the same file. One reported “done” while its tests never ran.
A third kept looping on its own review feedback. And the worst one: a change went out that I never looked at. The agents were fast. Losing control of them was the pain.
So I built a small open-source plugin to fix the exact failure modes I kept hitting. It’s called AgentQuest, and it runs as
conductor-kit inside Claude Code. It’s free, Apache 2.0, and it runs entirely on your own machine.The four ways parallel agents go wrong.
Every failure I hit fell into one of four buckets, and each one has a concrete fix — not a prompt tweak, a mechanism.
1. Collisions. Two sessions editing the same files overwrite each other. Fix: every task gets its own isolated git worktree and branch. If two tasks touch overlapping files, the second one waits in a queue instead of running in parallel.
2. Fake “done.” An agent says it’s finished, and nothing actually proves it. Fix: tests are written to fail first, on purpose. A test that never failed proves nothing. Only when the failing tests turn green, and your own test suite passes, does the task count as done.
3. Infinite loops. An agent reviews its own work forever. Fix: at most two review rounds. A critical or major finding left after round two stops the task and brings it to you.
4. Self-approval. An agent approves its own work, or relays an approval from another session. Fix: the release is pinned to one exact commit SHA, and only you approve it, typed by you in the release-manager window. An approval relayed by an agent is refused. If anything moves after your approval, the approval is void, and you’re asked again. The push is non-force, always.
How a change flows
You talk to one conductor window, in plain language. The flow is nine steps, and one of them is yours:
- Say it once — one request.
- Plan reviewed — scope locked to named files.
- Isolated worktree — its own branch, no collisions.
- Failing tests first — proof they bite.
- Review + test gates — max two rounds.
- SHA pinned — one exact commit.
- You approve in the Release Manager.
- Non-force push — exactly that SHA.
- Shipped.
There’s also a database write guard: every database write needs your approval, and subagents and auto-accept permission modes are always denied. The guard is a guard rail for the model, not a sandbox — it can’t see writes your application code makes internally, so you can add your own scripts to its watch list.
The Fifth Failure: Somebody else gives the order.
The four failures above were accidents. The fifth one isn’t. Indirect prompt injection — a web page, a file, an issue comment, or a tool result that talks your agent into doing something irreversible — is now the standard attack on coding agents, and no model reliably notices it. This year a popular email MCP server shipped a routine update that silently BCC’d every message it sent to the developer’s own address. Nothing in the tool call looked wrong. The call was never the problem; who ordered it was.
So in v1.2.0, I added a second gate, one level down: an Approval Gate on every individual tool call, in any session, conductor or not. It’s a PreToolUse hook that decides allow/ask/deny using only regexes, resolved paths, and allow-lists. No LLM call, no network — there is nothing for an injected instruction to persuade.
- Safe reads and allow-listed local commands (like
git status) pass silently. - Anything irreversible — sending mail, posting, paying, deleting, force-pushing — stops and asks, with the resolved target, the full arguments, and where the instruction came from on the approval screen.
- The worst patterns are denied without asking: credential reads (
~/.ssh,.env),rm -rf /,sudo, pipe-to-shell, and any MCP server not on your allow-list. A deny holds even under--dangerously-skip-permissions.
It ships with three scopes (coding, device-control, research), a JSONL audit log of every tool call, and a session-start baseline that hashes your MCP and config files — if one changes mid-session, the next call stops, which is how you catch a rug-pull update.
The test suite runs 90 checks: 58 known attack shapes blocked, 22 normal coding tasks passed. The honest limit: if a compromised server adds a recipient on its own side, at send time, the gate can’t see it — which is exactly why the scope allow-list of which servers may run at all matters more than any single decision.
Code:
claude plugin install approval-gate@conductor-kit
What it costs, and what it doesn’t do
It’s free and open core. You bring your own Claude Code subscription, and running several jobs in parallel uses more of that plan’s usage than a single session would. It runs locally — each job in an isolated worktree in your repo.
You need Claude Code with plugin support, Node.js 18+, and git 2.20+. For several sessions at once, you need tmux 3.x in a terminal or the Claude desktop app. Without either, the conductor writes you a ready-to-paste brief for each work session instead. macOS and Linux work natively; Windows works via WSL2. The approval gate needs Python 3.
Two commands to install:
Code:
claude plugin marketplace add seattle78/AgentQuest
claude plugin install conductor-kit@conductor-kit
Then
/conductor-kit:setup once per repo, and /conductor-kit:conductor to open the conductor window.What I actually learned
The lesson wasn’t “agents need better prompts.” It was that parallel work needs the same things human teams need: isolated workspaces, a definition of done that can fail, a limit on review rounds, and a release gate that only a human can open.
The approval gate is the whole point — now at both levels. Agents do the work. The ship decision, and every irreversible call on the way there, stays yours.
Disclosure: I’m the author of AgentQuest (conductor-kit). It’s free and open source under Apache 2.0 — source at github.com/seattle78/AgentQuest, v1.2.0 release at github.com/seattle78/AgentQuest/releases/tag/v1.2.0, landing page at agentquest.dev.