Building a Product With a Team of AI Agents: What Worked and What Broke
I ran 3arif.ai with separate AI agent sessions for coding, library curation, product management and engineering review. The rules that made it work, and the failures that taught me them.
Much of 3arif.ai has been built with AI coding agents. I want to describe how I organised that, because the useful lessons were about process, not prompting. I directed and reviewed the work; agents did a large share of the implementation. Where it matters, I say which was which.
The setup
I ran separate Claude sessions with distinct roles:
- A coding agent that implements tasks.
- A librarian that researches which works are missing from the library and prepares ingestion.
- A product manager that keeps the product requirements, the bug list and the user-testing notes.
- An engineering-review role that reviews branches, re-runs tests, and decides what ships.
They coordinated through shared documents in the repository, the product requirements, the bug list and a written task file, and through messages between sessions.
Rules that worked
Every agent works on its own branch in its own worktree. It never works in the shared checkout, which holds other people's uncommitted work.
Authority is explicit. The coding agent may not push to master and may not run ingestion or migration scripts. Anything that writes to production data needs me to say go, for that specific item. When I approved a batch of library additions I said so for that batch.
Review means re-running, not reading. Before work merges, the reviewer runs the tests independently instead of trusting the agent's report. Frontend changes also need a clean type check, because a type error stops the deploy.
Tasks are written down. A task file gives each item a priority, the files involved, and what done looks like, so a fresh session can pick it up with no memory of the conversation.
Reports are evidence. Each agent reports the branch, the commits, and the commands it ran with their output, not a summary of how it went.
What broke
Messages between sessions did not arrive. Messages sent from one session to another sat waiting for approval, and I could not see them. The fix was to put the sessions in the same permission mode. I had called this comms feature vital, and until it worked the agents were effectively idle.
An agent deleted my dependencies. While cleaning up a review worktree that contained a linked folder, the agent removed the linked folder's real contents, which wiped the main checkout's frontend dependencies. I restored them with a clean install. The rule now: unlink before you remove.
Agents idle without a queue. An agent with no written task waits. I had to treat the task file as a living backlog, not a one-off.
A real bug hid behind a passing build. A user-visible blank chat bubble appeared when the stream sent an error event, because the code had no handler for it. It was found by looking at the product, not by tests, and then fixed with a test.
What I think this shows
The work that mattered was the same work that matters with human teams: clear ownership, written specifications, review that re-checks, boundaries on production, and a shared record of what is true. Agents make the cost of unclear process show up faster, because they do exactly what the brief says.
What I am still unsure about
Agents are confident in the same tone whether they are right or wrong, so independent verification is not optional. I also do not yet have a good way to measure how much faster this is than working with people. I can show what shipped, not a controlled comparison.
Takeaway
If you are going to build with agents, spend your effort on the operating model: branches, boundaries, written tasks and independent checks. The model quality is the part you buy; the process is the part you own.