Imprint A/B
Does giving each agent a map of the repo before it starts help? A first run, with what it does and does not show.
Imprint turns a git commit into a small map of the repo: every file, what it exports, and what it imports. With ASSAY_IMPRINT=1, each agent gets that map in its first prompt, so it does not have to explore the repo to find its way.
We ran the same plans twice, with and without the map. Same model (Claude Haiku), same tasks, same hidden tests.
Short version
- Nothing broke. Every agent passed in both arms, and every task landed.
- Diffs were 9% smaller in both repos.
- Cost was flat or up. Same on one repo, 8% more on the other.
- Speed is not proven. One repo finished in half the time, but its agents took more turns, so the speedup most likely came from the model API being faster during that run. The other repo took fewer turns and the same time.
domain-race
Four features on a 30-file TypeScript repo, two agents per feature, merged onto one branch. Graded by vitest and tsc.
| Without map | With map | |
|---|---|---|
| Passed | 8/8 | 8/8 |
| Tasks landed | 4/4 | 4/4 |
| Turns | 78 | 92 (+18%) |
| Tool calls | 117 | 134 (+15%) |
| Fleet wall time | 173.6s | 89.7s (-48%) |
| Lines changed | 1,151 | 1,043 (-9%) |
| Cost | $0.8800 | $0.8803 |
More turns in half the time means each turn was faster. The map does not make the model reply faster, so this number mostly measures the API that day.
tally
Three tasks on a 20-file shop repo, two agents per task. Graded by node --test.
| Without map | With map | |
|---|---|---|
| Passed | 6/6 | 6/6 |
| Tasks landed | 3/3 | 3/3 |
| Turns | 35 | 29 (-17%) |
| Tool calls | 37 | 37 |
| Fleet wall time | 37.0s | 38.7s (+5%) |
| Lines changed | 399 | 364 (-9%) |
| Cost | $0.2164 | $0.2345 (+8%) |
Fewer turns, but the map adds about 2 KB to every prompt, so the cost went up.
What this does not show
- One run per arm. No repeats, so there is no way to tell a real effect from noise.
- Runs were not interleaved. Each arm ran at a different time, so API speed can differ between them.
- Everything passed. The tasks were too easy to show whether the map helps an agent succeed.
- Small repos. 20 and 30 files. A map should matter most where exploring is expensive, and these repos are cheap to explore.
- One model. Haiku only.
Run it yourself
shbun assay run examples/domain-race/plan-neon-isolated.json
ASSAY_IMPRINT=1 bun assay run examples/domain-race/plan-neon-isolated.jsonThe receipts are in examples/tally/receipts/imprint-ab.json.