Agents Should Leave Better Maps
An agent should not only return a patch.
It should return a better map.
Every useful run learns something about the repository: which symbols matter, which regions were touched, which gates proved something, which fixtures were brittle, which files are hotspots, which assumptions were wrong, and where the next worker should start.
If that knowledge stays in the transcript, the system forgets it.
Code Is Not The Only Artifact
A human developer leaves implicit maps in their head.
They learn that one test is flaky, one package has a hidden public contract, one helper is shared across routes, one CSS selector is global, and one generated file should not be edited by hand.
Agent systems need that map in data.
symbol graph
semantic regions
ownership boundaries
hotspot signals
gate coverage
known flakes
runtime probes
dependency risks
human decisionsWithout that map, every run starts too cold. Workers rediscover the same facts, ask the same questions, and produce patches that are expensive to review.
A Good Handoff Improves Navigation
The handoff should answer more than "what changed?"
It should say where future work should look.
- Symbols
- CheckoutForm, submitOrder, usePaymentIntentThe touched behavior now has named anchors for future work.
- Regions
- checkout route, payment effect, form validationFuture leases can target meaning instead of only files.
- Gates
- checkout smoke, payment mock, focus probeThe run records which evidence was useful.
- Risk
- provider sandbox state is nondeterministicA future worker can avoid treating this as a normal test failure.
- Next route
- Prefer micro-slice preview proof for checkout UI changesThe map feeds the next task shape.
The Map Is Operational
This is not documentation for its own sake.
The coordinator can use the map to route work:
Transcripts Are Too Weak
The transcript is still useful.
It is not the map.
A transcript is chronological. A map is queryable. A transcript says what happened. A map says what the system now knows about the repository.
Those are different shapes.
transcript: "I found the failing fixture after checking parser tests."
map: parser.recovery fixtures prove malformed input spans
transcript: "The route only failed when logged in."
map: billing route proof requires account fixture and auth state
transcript: "This helper is used by settings and checkout."
map: helper has cross-route ownership and should be leased broadlyThe map lets the next worker skip the rediscovery phase.
Better Maps Reduce Prompt Size
A stronger repo map is also a context-control tool.
Instead of giving a worker the whole project, the coordinator can give:
the target region
the public contract
the known gates
the nearby hotspots
the last useful evidence
the known non-claimsThat makes the task smaller and the output easier to review.
It also makes swarms less wasteful. More workers help only when each worker starts with a good enough map of where it belongs.
The Mental Model
Every agent run should pay rent.
The patch is one payment.
The map is the compound interest.