• Writing
  • Work
  • Activity
  • Contact

Mike Garite

ok@mikeg.meResume
  • GitHub (opens in a new tab)
  • LinkedIn (opens in a new tab)
Writing/Engineering

Agents as a Team, and Where They Fail

Each agent has a job. One plans, one codes, one reviews, one runs QA. Here's how I organized them into a team, what they do well, and where they still fall short.

November 15, 20264 min read

I run a team of AI agents. They're not chatbots. They don't answer questions. They do real work: write code, review PRs, run QA, and deploy changes. Each one has a job, and each one knows when to stop and ask.

But they're not magic. They fail in predictable ways, and understanding where they fail is what makes them useful.

How the team is organized#

Each agent has a discrete role:

  • The planner. It reads a task, breaks it into steps, and writes a plan with acceptance criteria. It doesn't write code. It decides what needs to change and in what order.
  • The coder. It takes the plan, reads the relevant files, writes the patch, and opens a PR. It doesn't deploy. It doesn't decide if the change is good. It writes the diff and stops.
  • The reviewer. It reads the PR, checks it against coding standards, and either approves or rejects it. If it rejects, it explains why. The coder gets one retry, then the task escalates to me.
  • The QA runner. It runs lint, typecheck, tests, and browser journeys. If any of them fail, it reports back with the error. The coder fixes it, or the task escalates.

Each agent works from a queue. When a task lands, it goes to the planner. When the plan is done, it goes to the coder. When the code is done, it goes to the reviewer. When the review is done, it goes to QA. When QA passes, the system merges.

What they do well#

Volume. An agent can write a CRUD route, a migration, a form screen, and a test scaffold in minutes. That work is well understood, easy to check, and boring to do by hand. The agent does it faster and doesn't complain.

Consistency. An agent follows the coding standards every time. It doesn't get tired, it doesn't skip steps, and it doesn't decide that this one file is special enough to break the rules.

Determinism where it matters. The gates are deterministic. Lint fails or it doesn't. Tests pass or they don't. The agent can't wave through a broken change because it looks close enough.

Where they fail#

Judgment. An agent can write a function, but it can't decide if the function is worth writing. It can't tell you that the feature is solving the wrong problem, or that the simpler version would work just as well. That's still the job.

Subtle bugs. An agent can pass lint and typecheck and still write code that does the wrong thing. It can misread the requirements, invent a behavior, or assume a constraint that doesn't exist. The only fix is review discipline.

Context that doesn't fit. When a task touches more than a few files, or when the right answer depends on a decision made two months ago, the agent struggles. It has the files, but it doesn't have the judgment to know which parts matter. That's when tasks escalate, and that's fine.

Knowing when to stop. The hardest problem is teaching an agent to stop when it's stuck. An early version burned 24 tool calls re-reading the same file because it thought the content was truncated. The fix was a loop-breaker: after three identical calls, the agent gets a direct instruction to stop and do something else. That's not intelligence. It's a safeguard.

The contract#

The agents work because they have a contract, and I hold up my end.

  • The code reviews itself, and the system merges. Once the checks and balances pass, the change ships. I design the loop. I don't sit on every diff.
  • Every merge gets reviewed. No exceptions. The reviewer is part of the loop, not a person waiting to click merge. If the review doesn't pass, it doesn't merge. That discipline is what makes the agent team safe.
  • Deterministic checks gate everything. Lint, typecheck, tests, and a secret scan run on every change. If any of them fail, the change doesn't proceed. The agent fixes it, or the task escalates.
  • Escalation is a feature, not a failure. When an agent can't finish a task, it parks the task with evidence and stops. I'd rather have a parked task than a doom loop.

What this isn't#

This isn't a fully autonomous system. The agents don't decide what to build. They don't set priorities. They do the volume, and I do the judgment. Shipping is a closed loop: the code reviews itself, and the system merges when the checks pass.

This also isn't a demo. The agents ship real code to real products that real people use. The review discipline is what makes that safe. If a change couldn't be reviewed in under two minutes, I wouldn't trust the loop to merge it.

The takeaway#

Agents are useful when they have a job, a contract, and a stop condition. They do the volume, but they don't replace judgment. The team works because each agent knows its role, and because every change is reviewed before it ships. That's not a limitation. It's the design.

Tagged

  • AI
  • Agents
  • Architecture
← PreviousOne Console for a PortfolioNext →Starship: The Home Mac Fleet

Related

  1. June 22, 2026·Engineering

    The Art of the Rock Tumbler: Polishing Loops for Code and Agents→

    A rock tumbler doesn't make a stone smooth in one pass. It uses coarse grit, then finer grit, then polish, and checks between stages. That's how I build agent loops in Starship: bounded retries, deterministic gates, and lessons that are only allowed to hurt once.

    Agents · AI · Architecture · Delivery7 min read

  2. June 20, 2026·Engineering

    Why I Run My Own Model Fleet→

    Starship runs its coding and planning agents on a small fleet of Apple Silicon Macs I own. Here is when local models beat the cloud, what it cost me in operational lessons, and where I still reach for a hosted model.

    AI · Agents · Architecture · Local LLMs6 min read

  3. June 18, 2026·Engineering

    The Agent Loop That Ships Its Own Code→

    How Starship's coding agents go from a planned task to a merged pull request without a human driving each step, and the gates, retries and postmortems that make that safe to leave running.

    AI · Agents · Architecture · Delivery6 min read