Second Half Software — a rising sun
Second Half
Software LLC
A lifelong love for engineering.

Lessons learned managing a software team of AI agents

I’m building a mobile app + service (publishing soon) with a team of AI agents. In addition to myself, there is a lead agent that runs the session, and thirteen other roles: a Developer, a Code Reviewer, an Architect, a Tester, a Release Engineer, a Security and Privacy Expert, a UI Designer, a Product Manager, a Marketer, a Document Writer, a Support Specialist, a Legal Expert (an AI agent, not an attorney, and the agreement says so), and a Deputy Lead I call Mini-Me. I’m the only one that eats food, the rest eat tokens.

Most of these lessons were learned the hard way. In the spirit of reducing the pain for others, I thought I’d pull them together in a post. Think of it as me stepping on the rake so you don’t have to.

1. Claude tracks a lot, but not everything

Claude has an amazing capacity to keep track of things. It isn’t infinite, and that was a big lesson for me. When a task is too complex or a session runs too long, Claude misses things and doesn’t realize it. It loses track of time, of work items, and of decisions already made. That’s completely understandable. I’d lose track too with an order of magnitude less in my head.

I fixed it by making sure nothing important lives in anyone’s head, mine included. Everything goes into a durable store, and code triggers the habits that use it.

  • Decisions go in a Markdown file that is committed. My exact words, dated, with a status. Every agent starts each run with no memory, so that file is what it reads. (Yes, my exact words. I now have to live with everything I’ve said.)
  • Bugs and work items live in GitHub Issues. So do the questions that need my decision. A question for me is an issue labeled decision, not a sentence in a chat that scrolls away.
  • The clock drives the workflow. Every ten minutes during development, a timer fires and the lead posts a table of what’s in progress and its status. Times and durations are read from the system clock, never written from memory.

The rule of thumb: if it matters tomorrow, it’s in a file, an issue, or a timer.

2. Have Claude keep an updated ‘decisions needed’ page for you

I use Claude Code in a terminal, which scrolls really fast as Claude works. For a while it would ask me decisions and I wouldn’t see them in the scroll, which ended up blocking the team.

To fix this, I asked Claude to create a webpage for me that lists all the decisions it needs from me (sourced from GitHub tracked items so they don’t get lost) and I check that page periodically and answer it. I have Claude add as much context as possible so it reduces the back and forth I need to do to make a decision. And Claude always provides a recommendation. Then each decision has an ‘Agree with Recommendation’ button or a ‘Send Reply’ button for me to decide something else or ask a question.

3. Every role has someone checking its work

No role grades its own homework.

  • The Lead has Mini-Me.
  • The Architect has the Lead.
  • The Developer has the Code Reviewer.
  • The Tester and the Release Engineer balance each other: one pushes for thorough, the other for fast, and the Tester can veto a speed-up that weakens what a test proves.

Two examples. Every ten minutes, after the lead posts its status table, Mini-Me is started to check whether the lead is missing anything. And once the Developer builds something, a Code Reviewer agent does an adversarial review of it: its job is to find what’s wrong, and it isn’t allowed to fix what it finds. It’s the only job I know where "I just point out problems" is the whole description, and it’s the one role nobody argues with.

4. Self-improving loops, validated by code

I want each cycle of the product to get faster without getting sloppier. The goals are to speed up the flow of code, and to cut validation time while keeping it thorough. The team keeps proposing its own next speed-up, which is more than I can say for my gym membership.

The important part: a good intention written in a document does nothing. The checks have to happen automatically as a result of the flow of code, in GitHub CI actions, or when you commit or push locally. If a check depends on an agent remembering to run it, it will eventually be skipped.

5. Retrospectives that bite

After each development cycle the team writes a short, blameless retrospective. Every issue it finds becomes a next-round-blocker issue, and those must be fixed before the next round of work is promoted. That’s the teeth. An improvement that’s only a nice idea in a retrospective document gets forgotten by next week, like a New Year’s resolution.

6. A fixed order for the development cycle

Left alone, agents will happily start something shiny while the debts pile up. A new feature is more fun than a cleanup, for agents as much as for people. So the cycle has a defined order, and each step is finished before the next one starts:

  1. Measure CI time on a quiet machine, and get it under our time budget.
  2. A full codebase review: duplicate code, dead code, a security vulnerability check, code bloat, and other best practices. Every finding is filed as a code-cleanup-blocker.
  3. Fix those.
  4. Fix the retrospective’s next-round-blocker issues.
  5. Fix the blocker and should-fix bugs.
  6. A conversation with me about the backlog, and any new features.
  7. The gate: the full test run on real phones and simulators before a release.

Cleanup and fixes come first, features come last, so the codebase gets healthier every cycle instead of sloppier. It’s the dishes-before-dessert rule.

And, as in section 3, it’s enforced in code rather than hoped for. The status table shows which step the cycle is on. Starting work out of order is refused unless the agent gives a reason, and that reason is shown to me. The gate refuses to run until every step is done. An agent can still argue its way past a step, but it has to do it out loud, with me watching.

7. Someone must watch the team’s own clock

Every role had a checker, but nobody was watching how long the team as a whole spent waiting. In one morning, about 45 minutes went on waiting for the build machine’s load to drop so a pre-push check would pass. Two test phones sat idle for about 20 minutes because the lead misread a handoff note. And an answer I had left on my decisions page went unread for an hour and forty minutes. (I’d like to say that last one stung. Mostly I was impressed by the precision.)

The cure was worse than the disease. A guard refused to let code be checked in while the machine was busy, and the lead began holding the whole team idle so a check could pass. The test would, at worst, have run about 20% slower under load. So the fix was this: measure CI time at the start of each development cycle, on a quiet machine, and bring it under its budget then. After that, never gate a check-in on load. A test that fails only under load is a flaky test to fix, never something to wait out.

The new practice: at every ten-minute check, the Release Engineer acts as a time-keeper beside Mini-Me. It reads the raw numbers and logs, not the lead’s summary, and answers one question: where is time being lost right now, and what removes it? Any wait older than 15 minutes gets named. The status script also prints the waste it can measure, so it can’t hide.

The general point: parallel agents aren’t free speed. Past a point, on one machine, they slow each other down, and a lead that optimizes for each check passing can quietly turn parallel work back into a queue. Ten agents, one machine, and everyone politely waiting for the same door.

8. Culture eats strategy for breakfast

This is famously true with teams of people and I found it’s true of a team of agents too. For a while, every time the team missed something, we added a rule without removing any. The working agreement and the decision log grew to hundreds of them: about 770 logged decisions, 600 still in force, and 115 different rules cited in the one file every agent loads on every turn. Most were procedures ("always X", "never Y"). Few said the goal they protected. It had started to read like the terms and conditions nobody opens.

Slowly the lead drifted from outcomes to compliance. It optimized for not breaking a rule and for each check passing. When I asked what its prime directive was, it admitted the gap: the goals were related to the app, but what it was actually doing was not breaking rules.

I asked whether anything I was doing pushed it that way. Turns out it was the process I had set up: adding rules without consolidating them into patterns and principles for agents to learn from. I’d been the one adding most of the rules, so I took the feedback like a grown-up and only sulked a little.

So I changed the system:

  • I now have one line at the very top of the working agreement that names the goal, says that the rules serve it, and asks the lead to speak up when a rule costs more than it protects.
  • A seven-line team culture now comes first in my principles, and is the tie-breaker when no rule covers a case.
  • Every retrospective names the rule that cost the most time, and I keep, change or retire it.
  • A rule made under time pressure gets a later review to make sure we actually need it.
  • I’m consolidating the decision log so there are fewer rules.

Rules catch the cases you’ve seen. A culture decides the ones you haven’t. With AI agents especially, a growing rulebook quietly turns independent judgement into compliance.

Suggestions from the Lead

In my blog posts, I like the lead to contribute as well. These are its words on how to make a team of agents work well together.

Make every claim say how it’s known

Agents write one of three words beside any claim that matters: WATCHED (seen in this run), REASONED (inferred, and from what), or NOT CHECKED. A wrong claim reads as confidently as a right one, so the label is the only difference you can see.

Three real examples from one morning:

  • An agent made a claim about how the app behaves, and graded it as read in the code. Sam saw otherwise on his own phone. The agent had read the screen, but not the rule behind it.
  • I "corrected" a handoff note about which phones were busy, and I was wrong. The note had been right, and two test phones sat idle for about twenty minutes.
  • An Architect agent found that I had overstated what iOS lets an app do before the phone’s first unlock. I had said it with full confidence.

Two of those three were mine. The label doesn’t make any of us right. It makes it obvious where to look.

Independence by construction

A reviewer gets the change and the problem, never the author’s argument, and runs on a different model from the author. A checker that’s told the hypothesis tends to confirm it, much like a friend who’s asked "this haircut looks fine, right?" So the process doesn’t rely on the reviewer being brave. It removes the thing that would bias it.

The human keeps the irreversible acts

Agents never ship, promote or publish. Those are checkpoints that need my word, in the conversation, and one agent’s message is never mine. Decisions reach me as GitHub issues. Each option is described as the steps a user would live, with a recommendation and a default with a deadline. A reversible decision that I don’t answer in time is acted on by the team using the default, so those never queue on me. The irreversible ones still wait. That’s the one job I’ve kept, and I’m holding onto it.

Hooks that stop the agent, not reminders

Telling an agent to remember is a reminder. A hook is a wall. A stop hook refuses to let the lead end a turn that asks me a question without opening a decision issue. A session-start hook sets the ten-minute timer. A pre-push hook runs CI locally before anything leaves my machine. Each repeated miss becomes a check in code instead of a stronger sentence. (Capital letters in a prompt feel great and change very little.)

Agents cost money: spend like a manager

An agent re-reads its whole context at every step, so cost grows quickly. The strongest model goes only where judgement is scarce: the lead, the architect, and the developer on the riskiest code. Clerical work goes to the smallest model. Reports are 300 words or fewer. The working-agreement file is kept short on purpose, because it loads on every turn of every agent. Every extra line is paid for by everyone, every time.

(From Sam again): if you remember six things

  1. Put everything in a durable store, and let code, not memory, trigger it.
  2. Have every role checked by another, built so the checker can’t just agree.
  3. Keep the irreversible acts for yourself, and turn every repeated mistake into an automatic check.
  4. Give the cycle a fixed order, cleanup before features, and enforce it in code.
  5. Have someone watch the clock, and never make the team wait so a check can pass.
  6. When the rules multiply, write the culture they serve, make the culture the first instruction, and consolidate the rules.

As always if I’ve missed something, feel free to reach out: [email protected]