# Agent Fleet turns a coding request into a tested change in Git.

> Source: <https://blog.devgenius.io/agent-fleet-turns-a-coding-request-into-a-tested-change-in-git-c73deaa38e48?source=rss----4e2c1156667e---4>
> Published: 2026-12-01 12:09:28+00:00

**Key takeaway:** Agent Fleet caps repair at three rounds total and hands off before pull requests, human review or remote pushes, so teams should measure cost per independently accepted change on their own tickets rather than assume savings.

Agent Fleet is a Python command-line tool for developers who want to hand a small coding task to AI agents. Give it a request such as “update our CSV parser to accept quoted fields.” A cloud model specifies how the parser should behave. Two workers, configured to run locally, divide the work. One edits the parser and the other writes its tests. The tool combines their changes and runs the test suite. If it passes, the code lands on a local Git branch for the developer to review. [Repository at the reviewed revision](https://github.com/sgnagnarella/agent-fleet/tree/5343611c0f086c1dc27edff94b34ce790358bd3f)

The repository includes a second tool for a different job. It runs the agents on sample problems, checks their code against tests written in advance, and compares different versions of their instructions. A team can use that evidence to decide whether a new instruction is worth adopting for future work. [Evaluation runner](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/runner.py#L27)

Quoted fields sound like a minor parser change until someone asks whether "a,b" counts as one field or two, or what should happen when the closing quote is missing. An engineer still has to specify the behavior, catch regressions in existing files, and investigate disagreements between the parser and its tests. A tool that generates the function leaves much of the original ticket on the engineer’s desk.

Agent Fleet takes responsibility for a larger piece of that work. On a failed integration check, a cloud model reads the evidence and gives the workers a chance to repair their commits. The engineer can inspect the combined change and the tests that admitted it. Opening a pull request, requesting a human review, pushing to a remote, and releasing the software belong to the team operating it. A manager estimating time saved should draw the boundary at that handoff. [Merge and promotion implementation](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/merge_gate.py#L68)

The economic bet is that a stronger paid model can write one useful specification and leave most of the typing to a smaller model running on hardware the team controls. That looks attractive for a backlog of small changes with explicit interfaces. A request to reconcile pricing behavior across three services has a different cost structure. Somebody has to discover which service owns the rule. The planner in this repository has no file-inspection tools. An engineer who supplies that knowledge in the brief has already done part of the job. [Planner and worker definitions](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/agents.py#L32)

I would compare **cost per independently accepted change** on a sample of the team’s own tickets. Charge cloud calls for failed attempts to the numerator. Count the reviewer’s time spent correcting a plausible answer. Give the local machine an operating cost, and record waiting time separately so it stays visible. Count a ticket in the denominator when it meets acceptance criteria agreed before the run. The repository ships the workflow and the means to evaluate it. The reviewed revision includes no measured savings against an engineer or a cloud-only coding agent.

The process starts in a Python command-line application. Google’s Agent Development Kit, or ADK, runs a fixed sequence that the repository author defined in code. The planner writes a specification to session state under execution_plan. ADK starts the two workers, waits for their part of the round to finish, and transfers control to the Git merge gate. A successful gate ends the loop. On failure, the diagnostician writes feedback that the workers can read on another attempt. The default limit is three rounds in total. [Workflow assembly](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/agents.py#L88) · [Runtime defaults](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/config.py)

A Git worktree is a separate directory where a branch of the same repository is checked out. Here that gives the implementation worker a place to edit production code and the test worker a place to write tests against the agreed interface. Neither has to wait for the other to finish typing. The two sets of commits share a repository history, so ordinary Git can bring them together later. There is no custom patch format for the agents to agree on. [Worktree setup in the project](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/README.md#setup) · [Git worktree reference](https://git-scm.com/docs/git-worktree)

Four model-driven roles appear in the live workflow, but the machine does not need four different models. The planner and diagnostician share one configured cloud route. Both workers share a local coding route. The gate is a Python component with no model attached. That accounts for an otherwise curious detail in the diagram. A first-round pass skips the diagnostician entirely, yet the gate still does its full job. [Model routing](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/litellm_config.yaml) · [Success and failure state updates](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/merge_gate.py#L173)

The architecture has two records of progress. Git holds the code and its history. The running ADK session holds a plan, prose reports from each worker, and information about the current attempt. Starting the CLI with a session ID gives the run a recognizable identifier. The CLI creates an in-memory session service for that invocation, so reusing a name in a new process does not resume the former process’s memory. A run’s JSON trace and its branch commits are the records available for later inspection. [CLI runner and session creation](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/fleet.py#L66) · [Trace capture](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/plugins.py#L30)

The default request asks for fibonacci(n) and is_prime(n) in a file called math_utils.py, plus a test file. The planner prompt asks for exact file paths, signatures, validation rules, and edge cases. That detail is what buys the test writer its head start. A test can specify that the tenth Fibonacci number is 55 without seeing a single line of the implementation. The moment the signature or the meaning of an input is ambiguous, the two workers can do careful work on different problems. [Default task](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/config.py) · [Planner instructions](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/planner.py)

There is a good example of the ambiguity inside the repository itself. The short default prompt asks for input validation. The separate benchmark version spells out what validation means. It requires a type error for a Boolean argument and a value error for a negative Fibonacci input. Python treats bool as a subclass of int. A worker can write an integer check that accepts True, and its partner can write perfectly passing tests covering only ordinary integers. An independently written acceptance test for fibonacci(True) finds their shared omission. [Math benchmark and its assertions](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/dataset.py#L12)

Both workers have the same five tools. They can list files, read a file, write a file, run a command to check their work, and commit changes. Their prompts give them different assignments. The implementation writer gets an instruction to run checks before committing. The test writer gets an instruction to write the suite and commit it. That is a sensible division for a new module. Testing a new import in the test worker’s own checkout before the implementation arrives would say little about the combined change. [Implementation prompt](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/worker_a.py) · [Test prompt](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/worker_b.py)

A role description is only as strict as the code that enforces it. Each worker’s file tools resolve paths against its checkout. Inside that checkout, either worker can address either filename. The planner’s instruction to assign disjoint files lowers the chance of a conflict. The gate still needs to handle a real conflict when both agents touch the same lines. An existing project with shared fixtures or package exports gives them plenty of reasons to do so. [Worktree tools](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/tools.py) · [Conflict-handling test](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/tests/test_agent_fleet.py#L303)

One practical consequence shows up before either worker touches Git. A ticket that says “make this match the old parser” leaves the planner guessing which behaviors matter. The workers can inspect existing files within their own checkouts, but their shared plan has already been written. For a migration I would put the public signature and one representative legacy input and output in the request. That gives the test writer something the old system actually did, and gives a reviewer a reason to challenge a plan that silently changes it.

The checked-in configuration sends planning and diagnosis to Gemini 4 Carbon through a local LiteLLM proxy. For routine coding, that proxy points to an MLX server running a four-bit version of Qwen2.5-Coder-7B-Instruct. MLX serves the model on the local machine. LiteLLM exposes named routes so the application can ask for coder-local without embedding a provider-specific server address in each worker. A second route names Gemini 4 Hydrogen as the coding fallback. These are the settings in the reviewed revision. [Exact proxy configuration](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/litellm_config.yaml)

The proxy limits the local endpoint to one request at a time. ADK can schedule two workers concurrently, and their file operations happen in different directories. They still take turns using the local model. A developer deciding how much hardware to buy should separate those two facts. The worktree arrangement solves conflicting edits. A second assignment in progress does not double the local model’s capacity to generate tokens. On short tasks the planning call and process startup can consume a meaningful share of elapsed time. Measuring that share requires a live run.

The same configuration settles a data-handling question. The request reaches the cloud planner in the normal course of a job. A failed round can send the plan, worker reports, prior round information, and the latest test or merge output to the cloud diagnostician. Fallback can send a worker request to a cloud model too. A team evaluating the system for a sensitive codebase needs to inspect the content of those requests, including test diagnostics that quote application data. “The coding model runs on my laptop” answers only one part of that review. [Diagnostician inputs](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/diagnostician.py) · [Fallback route](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/litellm_config.yaml)

For a first installation, the project documents three running processes. The fleet CLI talks to the LiteLLM proxy, which can call the MLX server. It provides the setup commands and the environment-variable names, including GEMINI_API_KEY. The defaults place the proxy on local port 4000 and MLX on 8080. The operator prepares the target Git repository and its two worktrees before starting a normal job. The evaluation runner does its own provisioning, which explains how benchmark cases can start clean without disturbing an engineer’s working directory. [Installation and startup commands](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/README.md#setup) · [Temporary evaluation repository setup](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/scoring.py#L23)

A quick check on a fresh installation is git -C workspace worktree list, run from the project root. The output should associate each worker directory with the branch the configuration names. A healthy model endpoint tells you nothing about that mapping. The built-in sample runs with python fleet.py from the activated environment. To make the base explicit for a trial, the CLI accepts --base-branch and the name of the local branch you want the gate to advance. [Run instructions and CLI flags](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/README.md#how-to-run)

The gate starts each attempt from the chosen base branch. It creates agent/integration-staging and merges both worker branches into it, preserving their merge history. Only the combined tree runs the integration command, which defaults to pytest. The default gate timeout is 60 seconds. An existing suite that routinely takes several minutes would turn a healthy change into a repeatable timeout under that setting. More model retries would just buy another minute of the same information. [Gate implementation](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/merge_gate.py#L68) · [Configurable test timeouts](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/config.py)

A zero exit status allows the gate to check out the base and fast-forward it to the tested staging commit. The fast-forward condition matters. If the base and staging histories have diverged, this command rejects the promotion. Silently creating another merge at that point would introduce a combined state that the gate had never exercised. Following promotion, the gate deletes staging and attempts to bring the worker worktrees up to date with the new base. It can report a sync warning even after the base has advanced. [Promotion and worktree synchronization](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/merge_gate.py#L146)

Conversely, an integration failure produces evidence for the next round. Git can supply conflict output and an excerpt of the diff. A failing test command supplies its exit status and the tails of its standard output and error. A timeout gets a distinct diagnostic. The gate restores the base checkout and removes staging. The worker commits remain available for repair. That last distinction saves work on the common case where an otherwise sound feature needs one correction. [Failure handling](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/merge_gate.py#L86)

The cloud diagnostician sees the original plan and both worker reports alongside that evidence. Its output goes into review_feedback. A file-specific instruction such as “change the comparison at the expiry boundary” is something the implementation worker can act on. A report saying merely “the tests failed” leaves it to reconstruct the same context at another model’s expense. The history of earlier rounds helps the diagnostician see a repeated failure, though the history contains short summaries. The full output from every subprocess does not live in that field. [Diagnosis prompt](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/diagnostician.py) · [Round-history construction](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/merge_gate.py#L173)

A passing suite establishes exactly what the configured command tested. An operator can replace the integration command, and the live gate has no separate check that both expected files appeared. If a task leaves an existing green suite untouched, the gate can still receive a zero. I would keep a regression test outside the generated change for a bug with a known reproducer. It gives promotion a condition connected to the original defect, independent of how the workers choose to express their assignments. The repository’s offline evaluator makes a related distinction explicit.

There is a consequence for shell automation here. After an ordinary run exhausts its three attempts, the cleanup callback emits a halt message. The CLI prints the events and returns without converting that exhausted-loop outcome into a nonzero process exit status. An unattended job that treats a normally exited Python process as the definition of success can record a failed change as complete. For that integration, read merge_succeeded from the matching run trace and compare the base revision with the commit you intended to accept. [Loop cleanup](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/callbacks.py) · [CLI completion behavior](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/fleet.py#L66)

Every benchmark case gets a fresh temporary repository with its own main branch and worker directories. The evaluator passes the case prompt to the live workflow and waits for its final state. After a successful merge, it writes a separate test file containing the benchmark author’s assertions, runs it against the merged code, records the result, and removes the file. A failed merge skips this test run. The score report preserves that distinction so someone reading it can tell a wrong answer from a change that never made it out of staging. [Evaluation runner](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/runner.py#L27) · [Golden test execution](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/scoring.py#L66)

The weights explain an easy-to-miss result. In a hypothetical run, two workers deliver every expected file, merge on the first attempt, and fail every independent test. They still earn **0.55 out of 1.00**. The merge earns 0.30, the files earn 0.10, and first-round efficiency earns 0.15. The 0.45 allocated to independent correctness contributes zero. A composite score is useful for choosing between prompt experiments. For a customer-facing defect I would look directly at the assertion covering the reported behavior. [Scoring formula](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/scoring.py#L109)

The validation cases go beyond the usual happy paths. The rate-limiter case issues requests at explicit timestamps. At time 11, an event that occurred at time 1 must have expired from a ten-second window. A single comparison determines whether the code admits the next request. The topological-sort case asks for a deterministic order when multiple nodes are eligible, including nodes that occur only in a dependency list. Either program can look reasonable on casual inspection and still implement the wrong public behavior. [Rate-limiter acceptance criteria](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/dataset.py#L192) · [Graph acceptance criteria](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/dataset.py#L234)

The suite report carries separate measures for mean score, merge success rate, golden-test pass rate, average iterations, and total duration. Those answer different adoption questions. A fall in retries can make the system more pleasant to use. A rise in golden-test failures can make the very same revision less suitable for the team. An aggregate across cases can conceal either change. The per-case output records missing files and the independent test results, which is where I would start investigating a surprising change in the mean. [Result aggregation](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/runner.py#L153)

For a baseline on just the two validation cases, python eval_cli.py eval --split val --output baseline.json produces a report with the per-case outcomes. That command makes live model requests once the local and cloud routes are ready. The repository test suite, run with python -m pytest -q, exercises the machinery with controlled inputs. A passing result from the latter cannot supply the numbers missing from the former. Keeping the two outputs beside their commands avoids a surprisingly expensive mistake in a pilot review. [Evaluation command and report output](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/eval_cli.py)

The offline command eval_cli.py climb starts with the current instructions and evaluates a baseline. Four training cases cover math utilities, text processing, an LRU cache, and interval handling. A model receives detailed evidence from those training runs and proposes edits to one or more of the four live roles’ prompts. It can change what the planner asks a worker to specify. The Git promotion code and its exit-status check sit outside the set of files the optimizer edits. [Optimizer input and proposal format](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/optimizer.py) · [Prompt bundle](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/bundle.py)

Prompt text is a runtime interface in this project. For example, a worker template carries references to the execution plan and the previous round’s feedback, plus a branch placeholder. Deleting the feedback reference could yield a well-written instruction that makes recovery worse. The bundle validator checks that required placeholders survive before a candidate consumes another round of model calls. That catches a genuine class of editing errors. It still takes an evaluation to discover whether the revised prose helps a model understand what to fix. [Required placeholders and validation](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/prompts/bundle.py)

The default selection decision uses the separate rate-limiter and graph cases. A better mean validation score can win. For near-equal scores, fewer average iterations can win if merge success holds up. The model proposing edits sees detailed training outcomes and a summary of previous rounds, including scalar validation scores. Calling those validation tasks “held out” describes the separation of detailed case evidence. Repeatedly using the same two tasks to pick winners still makes them part of development. I would reserve fresh tasks for an adoption decision. [Candidate selection](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/hill_climb.py#L40) · [History visible to the optimizer](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/models.py#L147)

The command writes a record of each round and the best prompt bundle. Writing instructions back into the source files requires --apply-best and a qualifying score improvement over the baseline. That extra condition has a subtle consequence. A candidate can win a tie on efficiency inside the experiment without qualifying for a source rewrite on its own. An operator trying to reproduce a result needs the saved bundle, the prompt revision used to start, and the model routes used for the experiment. [Persistence conditions](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/evals/hill_climb.py#L273) · [Evaluation CLI options](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/eval_cli.py)

Start with the repository boundary. The default target named workspace/ is a separate Git repository. The normal runner expects two existing worker checkouts and uses fixed branch names, including one staging name. Two simultaneous jobs aimed at this same arrangement would contend for those names and for the base checkout. Giving two CLI processes different session IDs separates their ADK state. Independent target repositories or separately managed working arrangements are necessary if the jobs must proceed without interacting through Git. [Path and branch configuration](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/config.py) · [Project setup](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/README.md#setup)

File isolation deserves equal care. The dedicated read and write tools check resolved paths and block access to Git metadata. The worker’s test tool accepts a shell command, launches a subprocess in the worktree, and inherits the host process environment. Git worktrees give each worker its own checkout. The operating system determines what a process launched in that checkout can access. For a team admitting untrusted repositories or tasks, a least-privileged execution environment would be a separate deployment decision. [Path checks and worker command execution](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/tools.py)

The trace files are the best place to study what operators actually spend time fixing. A normal CLI run saves the prompt, plan, worker reports, latest failure log, round history, elapsed time, and final outcome as JSON. The failure-only trace view helps an engineer find examples worth turning into regression cases. Someone still has to choose a case, express its acceptance criteria, and add it to the dataset. The live runner does not silently learn a new instruction the next time a similar request arrives. [Trace fields](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/agent_fleet/plugins.py#L30) · [Trace inspection command](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/eval_cli.py)

A pilot could lose money on a cheap model simply by repeating expensive work. I would log first-pass acceptance beside eventual acceptance, record which model route actually served the workers, and attribute reviewer minutes to each original ticket. The trace plugin supplies duration and iteration counts. The checked-in trace schema has no token or billing fields. A claim about savings therefore needs additional measurements from the model-serving layer and the people doing the review. For latency, compare elapsed time at similar acceptance quality. A fast incorrect result barely registers in a tokens-per-second chart.

The repository’s 22 tests passed at the reviewed commit. They cover promotion, merge conflicts, timeouts, independent test scoring, prompt selection, and trace capture. A separate exercise ran the actual ADK workflow in a temporary Git repository. It used scripted model responses to force a known disagreement between the workers and observe how the system handled it. [Fleet tests](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/tests/test_agent_fleet.py) · [Evaluation and optimizer tests](https://github.com/sgnagnarella/agent-fleet/blob/5343611c0f086c1dc27edff94b34ce790358bd3f/tests/test_evals_and_hill_climb.py)

The assignment was to write a function called double. In the first round the implementation worker returned its input. The test worker committed an assertion that double(3) should return six. Both workers had completed their assignments as far as Git was concerned. When the gate combined the branches and ran the test, it got three. The base branch stayed where it was.

The diagnostician supplied a correction for the implementation worker. On the second attempt the worker changed the return expression and committed it. The test worker kept the original assertion. This exercises a real failure and recovery through ADK, the file tools, Git, and the test runner. The scripted responses leave model quality, generation latency, and inference cost as separate questions for a live trial.

For a replay, inspect the round_history and the code on the base branch, then compare those records to the requirement the user issued. In the scripted exercise, the first history entry recorded a failed integration test. The second recorded a pass. The trace ended with iterations_used equal to 2 and merge_succeeded equal to true. The implementation on main returned x * 2. The unchanged assertion that had rejected three now received six.

More actionable advice over at [https://mohammed-brueckner.com/publications](https://mohammed-brueckner.com/publications) — and discover the playbook for surviving the compression in the agentic era with my book at [https://platformeconomies.com](https://platformeconomies.com) — out now and ready to buy in both Kindle and hardcover. Direct Amazon links:

[Agent Fleet turns a coding request into a tested change in Git.](https://blog.devgenius.io/agent-fleet-turns-a-coding-request-into-a-tested-change-in-git-c73deaa38e48) was originally published in [Dev Genius](https://blog.devgenius.io) on Medium, where people are continuing the conversation by highlighting and responding to this story.
