Back to Research

AI coding team workflow beats prompt tuning

An AI coding team workflow built on child receipts, decision stubs, and scope ledgers outperforms prompt tuning, and it survives the people who wrote it.

Mount Starr King, Yosemite, landscape painting by Albert Bierstadt (1866).
Rogier MullerMarch 28, 20266 min read

If your agent output is inconsistent across the team, the fix is almost never a better prompt. It's a written workflow. An AI coding team workflow is the shared contract that decides how agent work gets scoped, verified, and merged, independent of whoever wrote the prompt. Teams that skip the contract tune prompts forever and never get their weekends back.

Here's why prompts run out of road. A prompt improves one person's session. The reviewer, the next operator, and the merge never see it. The expensive failures, scope drift, silent permission creep, diffs nobody can explain, all live between sessions. Only written rules reach that far.

Stop tuning prompts, start writing the contract

Picture a normal pairing session: the architecture talk stops and PR archaeology starts. Who told the agent to touch this file, and where is that decision written down? When the answer is "it's in someone's chat scrollback," your best engineers turn into forensic accountants.

The instinct is to ask "how do we phrase the prompt better?" That's the wrong question. The real one is "how do we make delegation explainable?" Fixing the first polishes one session. Fixing the second fixes the team.

Green CI does not mean explainable delegation. They feel the same until the first merge nobody can defend, and then they feel very different.

Build the contract one clause at a time

A workflow contract retires four failure modes that prompt tuning only delays. Each clause is small, and each one targets a specific way handoffs go bad.

Recursive handoff blur is the first. Chained agents return tidy summaries that quietly drop the file paths the child touched. The fix is a child receipt block: every child reports paths touched, commands run, and the tests that prove the regression guards held. Now the receipt either matches the diff or it does not, and parents stop green-lighting mystery changes.

Review queue theater is the second. CI is green, yet reviewers still ask "why this approach?" and find no written answer. The fix is a decision stub in the PR template: constraints considered, rejected alternatives, verification proof. The debate happens once, in writing.

Cursor scope fog is the third. The .mdc rule language reads as precise until reviewers argue about what it actually meant, and the rules compete with chat memory. The Cursor agent docs describe what the agent can do, not where its boundaries sit. The fix is a scope ledger in the parent chat: goal, allowed paths, forbidden paths, verification command, merge owner.

Permission creep is the fourth. On shared laptops, bash approvals become muscle memory, and the Claude Code getting started guide sets up hooks, but your file decides which hook wins. The fix is a supremacy clause at the top of CLAUDE.md that states hook precedence, human-eyes folders, and where temporary overrides live.

The whole contract fits in one boundary file you can paste today:

---
description: Delegation boundary snapshot (adapt globs to your repo)
globs:
  - "**/*"
alwaysApply: false
---

- Cursor: keep scopes explicit in `.mdc`; forbid undeclared MCP domains.
- Claude Code: cite `CLAUDE.md` precedence before expanding bash scope.
- Codex: ensure `AGENTS.md` carries replay-friendly verification notes for CLI runs.

Undeclared MCP domains stay banned for a reason. The Model Context Protocol specification defines what connectors can do; your workflow decides what they may do. This is the operating layer of agentic coding governance: parallel agent output should be inspectable without replaying any session.

Check your workflow against four gate questions

A workflow is real when someone unfamiliar can answer all four of these from the PR alone, with no chat replay.

Gate Question
Reviewer path Can someone unfamiliar trace intent without chat replay?
Risk routing Were red folders touched, and who approved?
Replay proof Which commands prove regression guards?
Receipt match Does the PR body list scopes plus verification transcript?

Before you publish a PR, run this quick checklist:

  • Primary-doc links were smoke-checked after publishing edits.
  • MCP connectors mentioned (if any) list owners.
  • Verification command output is pasted or linked.
  • Forked agent work lists parent and child responsibilities.

Know where the workflow stops helping

A repo that cannot state its boundaries in plain text will watch agents guess, and guessing scales badly. The NIST AI Risk Management Framework calls this risk governance; a tech lead calls it knowing who owns the merge.

The point underneath all four clauses is simple. If the repo cannot say "allowed" and "forbidden" in plain words, neither can the agent, and no prompt will say it on the agent's behalf.

Common questions

  • Why does prompt tuning fail for agent teams? Because prompts are session-scoped and teams are not. A tuned prompt improves one operator's run and does nothing for the reviewer, the next operator, or the merge. The failures that actually hurt, scope drift, silent permission creep, unexplainable diffs, live between sessions, where only written contracts operate.

  • What does an AI coding team workflow include? Four artifacts: a scope ledger per delegation, a decision stub in the PR template, a precedence clause in CLAUDE.md, and child receipt blocks for any agent-to-agent handoff. The whole thing passes one test: can an unfamiliar reviewer trace intent without replaying chat? If yes, the workflow is doing its job.

  • How do child receipts work when agents delegate to agents? Every child agent ends its run by reporting paths touched, commands run, and the tests proving regression guards held. The parent pastes those receipts into its own summary instead of paraphrasing them. Paraphrase is where the telephone game starts. Verbatim receipts are how it stops, even three handoffs deep.

  • Which artifact should we add first? Start with the child receipt block. It is the smallest change that makes delegation chains inspectable, and it exposes your worst handoffs within a week. Then count the "why this approach?" comments on your last five agent PRs: each one is a decision stub your workflow failed to force.

Where to go next

Pick one clause, add it to your PR template this week, and watch which questions stop showing up in review. If you want the full operating contract with receipts and gates laid out end to end, our training walks teams through it.

Further reading

Related training topics

Related research

Ready to start?

Transform how your team builds software.

Book a 15-minute sync