One AI agent that analyses, writes, tests and reviews its own work tends to lose focus, and nothing independent checks it. So in 2026 I designed two teams of agents instead. One mixes providers: Claude, Gemini and Codex, each in its own terminal pane. The other uses a single provider, Kiro, with eight role-specific agents. I used the second one in my daily work. The first one I tried only on a personal project, and I haven’t verified it well.

The idea and the designs were mine, and I built them with AI coding agents. The multi-provider design took shape from April to August, and the single-provider one from late August to October. The code is private, so this post is about the design.

What they share

Both designs use the same four ideas:

  • One pane per agent. Each agent runs in its own tmux pane, with its own context.
  • Files as the only channel. Agents don’t talk to each other. They write results into a handoff/ folder, and the next agent reads them.
  • Dispatch, then wait. An orchestrator agent sends a task to a pane with tmux send-keys, then waits for the result file. It must not do the task itself. I wrote this rule into both orchestrator prompts because, left alone, an orchestrator tends to do the work it just delegated.
  • A human gate before anything irreversible or final.
flowchart TD
  H["Human"] --> O["Orchestrator pane"]
  O --> W["Worker panes"]
  W --> F["Handoff files"]
  F --> O
  O --> G["Human check"]

In short: a human gives the orchestrator a task, it dispatches to worker panes, they answer through files, and a human checks the result.

The single-provider team

Eight agents share one provider: an orchestrator for code tasks, an orchestrator for ticket-driven work, a planner, a developer, a QA agent, a reviewer, an analyzer and a docs writer. The last two run as subagents for cheap read-only jobs. Two modes start the right set of panes: a code team and a ticket-driven team.

What makes it work in practice is the control around the agents:

  • Per-role permissions. The developer can write only inside the folders it works on and can run only listed commands. The reviewer can write only to handoff/. Roles that must not change code can’t.
  • A guard hook, with a blocklist I borrowed from a shared team tool, that runs before every shell call and blocks dangerous patterns such as recursive deletes, forced pushes and reading credential files.
  • Shared steering files. Fourteen files hold the rules every agent reads: coding, git, testing, security and the project’s own conventions.
  • A review in two phases. The reviewer first checks the work against the spec, then checks quality, scoring four weighted dimensions.
  • One memory file. synthesis.md is append-only for the life of a ticket and gets archived when it closes, so an agent that loses its context can read it and carry on.

The multi-provider team

The second design assumes that different providers have different blind spots. Claude orchestrates, Gemini reviews for security, Codex reviews performance, and the orchestrator merges the three reports. There are three modes: a three-way review, a build-and-validate pair, and a multi-angle analysis. I built these scripts with the single-provider team: a five-agent Kiro team wrote, tested and reviewed them.

It borrows some ideas I liked from another team-orchestration tool. A handoff folder with three layers: project, agent and task. A task is escalated to a human after three failures. Each resolved failure becomes an entry in a known-pitfalls file that later tasks are told to read. A health check runs before the orchestrator writes its summary, and reviewers have to score honestly: if they catch themselves writing “minor issue”, they must report it anyway. The design’s own leak list says plainly that your code goes to several vendors, so check your policy first.

What I found when I tested the scripts

When I reviewed them for this post, I ran everything in a throwaway copy, with stand-in AI commands and a separate tmux server, so I touched no real agent, model or running session. All the findings below come from those runs or from reading the code.

In the single-provider team:

  • Both launch modes worked even with no tmux configuration. Starting twice made two separate sessions with numbered names, and nothing was killed.
  • The wait script handled a race well. If an agent finished before the orchestrator started waiting, it returned at once, and a stale file older than the task brief didn’t count as done. The comments say this bug happened for real.
  • The guard hook, which I borrowed and didn’t write, is a blocklist, and a blocklist has gaps. Trivial variants of two blocked commands passed, as did reading a credential file with a different tool. If the hook’s input is missing, malformed, or the interpreter is missing, it allows everything. The developer’s command list also allows the Python interpreter with any arguments, so any script it writes can run.

In the multi-provider team:

  • The same race bug is still there. If the agent finishes before the wait starts, the wait times out, because it compares against the file’s time at the start. I confirmed it. The other design had already fixed it.
  • The launcher fails on a plain tmux setup. It addresses window number 1, which exists only when your tmux config starts numbering at 1. Without that config, it stops with an error after creating the session. It works on my machine because of my own config. The single-provider launcher reads the setting instead of assuming it.
  • “Persistent” files aren’t always. The docs call the project-level files persistent across tasks. A fresh launch deletes them. Only the repair option and the task-switch script keep them.
  • Smaller sharp edges. A task that starts with a dash is read by tmux as a flag, and launching again silently replaces a running session of the same name, extra windows included.
  • The tests can’t start where they live. Their paths assume a different folder layout, including a worktree folder that isn’t in the repository. In the layout they expect, all 46 pass. They take about two minutes because the mocks skip only some of the waits.

I didn’t test any real model, any real agent run, the Gemini and Codex command-line tools, the monitor pane or the web view. That the first team worked in daily use is from my own use, and the multi-provider design says itself that its Gemini non-interactive mode is unverified.

What I’d do differently

  • Put the shared scripts in one library, so a fix lands in both designs.
  • Address panes by their stable IDs and read the tmux settings, never assume them.
  • Make the guard an allowlist that fails closed, and give every command pattern a test.
  • Run the tests from a clean checkout in CI, so a moved folder can’t hide a broken suite.
  • Mark every design claim as verified or not, in the document itself.

What I took from it

An orchestrator needs an explicit rule to wait, or it does the work itself. Controls matter more than prompts: per-role permissions and a human gate did more for safety than any instruction. A fix that lives in only one of two copies of the same idea is how the same bug survives. And a second provider only adds an independent check if its guardrails are as good as the first one’s.

If you’re skimming for skills: multi-agent system design, tmux and shell scripting, agent permissions and guardrails, test and failure analysis, and working with AI coding agents.