Ship It With AI Mihai Cvasnievschi

Rolling it out

8 min read

By the end you can run agents safely in a real repository and start a rollout the way most successful ones start: with one engineer.

TL;DR


Guardrails for a real repo

The agent is one more author with write access, so give it the boundaries every author gets.

These repo-level habits sit on top of Chapter 2's five layers and matter most on yellow codebases (Chapter 8). The human review floor that no review bot replaces is Chapter 5's.


Worktrees

Isolate concurrent agent work from unfinished local changes.

A worktree is a separate checked-out copy of the repository on its own branch. It is useful for concurrent tasks or when an agent would otherwise touch unfinished local work. A clean dedicated checkout or an already isolated environment can satisfy the same purpose. Worktrees prevent working-copy collisions; they are not a security sandbox, and all work still goes through normal review.


Two kinds of hooks

Hook the agent, hook the repository, and run the same checks in CI.

Local hooks are fast feedback: skippable and not guaranteed on every machine. Enforce acceptance with required server checks, protected workflow changes and required owner approval. Verify that the agent's credentials cannot change or bypass those rules; moving an editable check into CI does not by itself protect it.


Keeping it alive

Rules rot, so someone owns pruning them.

The mistake journal and its champion are Chapter 6. For process mistakes, keep a failure watchlist: recurring failures, what triggers them and the team's standard response. Review it every month or so and retire what is fixed.


The outer loop

Run the agent unattended only under a written contract.

The outer loop re-invokes the agent until a condition holds. It adds attempts, not judgment, so it multiplies whatever your inner loop permits (Chapter 4). Use it only when every unit meets Chapter 8's task prerequisites and can be independently verified and recovered, with controls suited to unattended work. A green preparation score alone is insufficient. Review the resulting pull requests before release.

Before the first unattended run, record a machine-evaluable stop condition, budget, protected acceptance gate, durable state and context handoff, and isolation sized for absence. Use a dedicated branch and working copy, verify each tool's sandbox coverage, keep production credentials out and test network restrictions. Appendix B.6 is the form, with the four signs that mean stop before relaunch.


How do you roll out AI coding agents on a team?

Start with one engineer who refuses to give up, not with a program.

The first time I taught the three-role rubric, an engineer in the back row said: "My manager has not heard of agentic AI. My lead does not have time. I am the only person on my team who cares. What do I do?"

The three-role arc would stall for him in month two, when the procurement conversation never happens. The grassroots arc would not, and it is how most successful adoptions in 2025 and 2026 started: one person plays champion, then de facto lead, then manager-advocate, in sequence. I have watched it succeed twice.

By month six it looks like the ideal arc at month three, in twice the time. The trade-off: the grassroots arc is fast to start and fragile, because if the one engineer leaves before peers and management are recruited, the practice dies with them. The three-role arc starts slower and survives a departure. With a manager who knows agents, an engaged lead and budget, run three roles; with only your own hours, run the grassroots arc.


The 90-day arc

The 90-day arc is one workable schedule, not a productivity law.

Before starting, establish an approved service and account, permitted repositories and data, a responsible owner, initial tested controls and a spending limit. Existing policy applies to a grassroots pilot too. The example then gives setup and a bounded pilot the first month, expansion the second, and operational ownership the third. Later governance work reviews expansion and recurring ownership; it is not the first approval. Track elapsed and human touch time, quality, review/rework and total cost from the start. Add instructions, skills and hooks for a demonstrated need or justified risk. The reusable calendar and measurement card are Appendix B.5.

One possible 90-day adoption schedule across three roles BEFORE STARTINGPilot prerequisitesOwner Approved service and account Permitted repositories and data Named owner and initial controls Spending limit and success criteria DAYS 1 - 30FoundationChampion Champion installs AGENTS.md drafted First green-light project Architecture review workflow proven DAYS 31 - 60ExpansionLead Lead onboards 2 - 3 more engineers AGENTS.md hardened Hooks configured Skills if useful Kill signals applied to portfolio DAYS 61 - 90ProductionizationManager Manager folds metrics into normal velocity tracking Expansion reviewed against pilot evidence Ongoing vendor and plugin governance owned
Figure: The 90-day adoption arc as one possible schedule. Each phase assigns responsibility; milestones depend on the pilot's needs and results.

Role commitments

Agree an explicit time budget and adjust these example commitments to the team.

The champion learns the workflow first. They need protected time and willingness to investigate failures; seniority alone does not select them. They run the architecture review (Chapter 7) on a familiar codebase, tighten the instruction file, and use Chapter 4's loop on a few features sized to each, logging friction in the mistake journal. By day 90 another engineer runs the workflow as fluently. Appendix B.5 has the week-by-week calendar.

The lead decides which work gets the agent.

The manager owns pilot eligibility and budget before work begins, then procurement, expansion decisions and recurring governance. Appendix A provides an illustrative twenty-engineer scenario and a complete hypothetical cost calculation; it does not supply measured adoption or cycle-time outcomes.


Dissent and overconfidence

Separate justified dissent from unexamined delegation, using evidence and the normal engineering process.

The principled skeptic may be identifying a real failure mode. Invite them to define representative tasks, consequential mistakes, evidence needed to expand scope and stop conditions. A demanding reviewer can improve the pilot without choosing to use the agent personally. Distinguish evidence-based dissent from obstruction through the normal engineering process. Resolve ownership and conduct disputes there; do not route around required expertise or approvals to preserve adoption momentum.

The uncalibrated delegator skips the careful read because "the agent always does it right". Defects compound, the team blames the agent instead of the missing review step, and eventually the engineer cannot debug what the agent helped build. Every agent-led PR gets the same human review as a human-led one. For the first month, pair them with a senior who reads the output line by line.


The vendor will have a bad week

Plan for the agent being unavailable.

I watched a team's velocity halve for a week when their primary model was rate-limited. In June 2026 the largest vendor's newest flagship tier was pulled worldwide days after launch and stayed unavailable for nearly three weeks; teams with fallbacks ran them for real; teams without rediscovered their old setup under deadline. Keep a non-agentic fallback for time-sensitive work, a senior who can still ship a hotfix at three in the morning, and a runbook for "the agent is throttled and the customer is waiting".


When it breaks

It breaks when What happens Fix
A champion, no lead The champion does all the agent work alone; the agent is labeled "interesting but limited" The lead's checklist, above
A champion and lead, no manager Procurement stalls, yellow projects stay yellow; the classification has no buyer The manager's page, Appendix A
A lead and manager, no champion Committed in theory, stuck in practice The champion's checklist, above
Local hooks treated as enforcement Skipped, edited or never installed Protected required server checks and reviewed policy changes

Do this Monday


Go deeper