Can a map of relationships in a codebase help a coding agent find and repair a bug? A coding agent combines a language model with tools that read files, edit code and run tests.
The study tests a specific claim: explaining how one part of a program affects another may help the agent reach the cause of a bug. Reading that explanation also costs time and tokens, the units of text a model processes.
Figure 1.1. A map may shorten the search for a bug. Proposed mechanism; no confirmatory result.
1.1 The proposed benefit
A bug can appear in one part of a program while its cause sits elsewhere. The experiment compares repairs with different documentation and different amounts of help in the written bug report.
| We vary | We measure |
|---|---|
| Whether the agent receives a relationship map | Correct repairs within a fixed budget |
| How precisely the report identifies the cause | How the agent finds the cause |
| The project and defect being repaired | Tokens used and elapsed time |
The intended map comparison holds all other documentation equal. The stored pilot versions also differ in comments inside the code, so they do not yet isolate the map alone.
1.2 What the evidence shows
The imported-project study is still being prepared. It has no confirmatory result for this claim. Separate exploratory runs test whether the agent tools and measurement system work correctly.
Any later result will concern the projects, defects and model settings tested. Human readability and long-term maintenance are outside the measured outcomes.
Evidence and source records
source: 5. Experiment/0. Plan/1. Introduction, section 1.1; 5. Experiment/0. Plan/5. Task Execution and Metrics.md, section 5.11.4
source: 5. Experiment/0. Plan/Appendix C (Hypotheses and Estimands), Table C; 5. Experiment/0. Plan/5. Task Execution and Metrics.md, section 5.11.4
source: 5. Experiment/0. Plan/3. The LAP Profiles.md, sections 3.1 and 3.5; operations/BROWNFIELD-DEFECT-EXPERIMENT-PLAN-2026-09-19.md, section 2; 2. Research Proposal/Research Proposal.md, reference 3
source: 5. Experiment/0. Plan/NORTH_STAR.md, section 2
source: 5. Experiment/2. Project Library/Project J - changedetection.io/source_manifest.json; 5. Experiment/5. Run Sets/run_index.csv; 5. Experiment/0. Plan/Appendix R (The Local-Model Measurement Harness (Pi))
source: 5. Experiment/2. Project Library/Project J - changedetection.io/variants/J-LAP-MATCH/changedetectionio/notification_service.py; 5. Experiment/2. Project Library/Project J - changedetection.io/variants/J-LAP-FULL/changedetectionio/notification_service.py; 5. Experiment/1. Harness/README.md
Explore the experiment
| Start with | Then explore |
|---|---|
| The design | The experiment process · The documentation · The comparisons |
| The work | The codebases · One measured attempt · The repair tasks |
| The evidence | Success and cost · The analysis · Limits of the study |
| Current findings | Pi and model behaviour · Research status · Glossary |