Research on why agentic LLMs prefer adding code over subtracting it — and what (if anything) can shift that bias without killing usefulness.
The completed larger-refactor replication is presented as:
- Research site — responsive, static GitHub Pages presentation
- Rendered paper — compiled research-style PDF
- Paper source — reproducible LaTeX manuscript
- Paper build instructions
- Findings memo
- Registered protocol
The evidence bundle is committed under
research/phase-2/live/, including the
full report,
factor effects,
summary, and
wave metadata.
The bounded result is task- and model-conditional subtraction, not a universal D component: 240/240 selected behavior checks passed, six initial adapter failures remain separate provenance, and no priced cost claim is made.
Pre-LLM elite craft often meant leaning out: fewer abstractions, tighter control flow, deleting dead paths. LLM-era agentic coding often produces the opposite shape of diff: large +, tiny -, even on "refactors."
Two competing explanations (not mutually exclusive):
- Demand / task-mix bias — We ask models to ship features faster than we ever did by hand, so the corpus of successful agent traces is addition-heavy. The bias looks architectural because the workload changed.
- Model / objective bias — Preference training, tool loops, and risk asymmetry make additive patches the path of least resistance even when subtraction would be better.
This repo stages research to separate those, then pressure-test interventions and token-cost implications.
- Is the bias mostly prompt/task distribution (feature factory era)?
- Is it a genuine training/architecture/incentive fault (RLHF helpfulness, completion bias, local patch tools, fear of breakage)?
- How much is measurement illusion (refactors that move/copy look like adds)?
- Prompt / rubric / gate interventions (net-negative budgets, delete-first passes, "prove deletion" checklists)
- Training / reward / routing interventions
- Is correction expensive at inference time?
- If we bend the curve even a little, do we save tokens later via smaller contexts and less rework?
| Phase | Goal | Artifacts |
|---|---|---|
| 0 — Frame | Multi-model synthesis of causes + intervention space | research/phase-0/ |
| 1 — Measure | Define metrics; sample real agent diffs for +/− shape |
research/phase-1/ |
| 2 — Intervene | Controlled prompts/gates on fixed tasks; compare net LOC & quality | research/phase-2/ |
| 3 — Cost | Model token/$ impact of leaner diffs over multi-turn work | research/phase-3/ |
Phase 0 starts with three Cursor-adapter models writing independent memos:
- GPT-5.6 Luna with maximum effort (
gpt-5.6-luna) - Grok 4.5 (
grok-4.5) - Composer 2.5 (
composer-2.5)
Then we reconcile into a single frame doc before measuring.
research/
QUESTIONS.md # frozen research questions
HYPOTHESES.md # falsifiable claims
literature/ # prior work, datasets, and open-source tools
phase-0/ # multi-model framing memos + synthesis
phase-1/ # measurement protocol + samples
phase-2/ # intervention experiments
phase-3/ # cost models
notes/ # scratch, session notes
- Repo created
- Phase 0 multi-model memos
- Prior-work reconnaissance
- Phase 0 synthesis
- Phase 1 measurement protocol and offline benchmark
- Phase 1 three-model live pilot
- Phase 1 cleanup-task replication
- Phase 2 factorial ablation harness and fail-closed provenance
- Phase 2 one-repetition two-task successful-adapter pilot
- Phase 2 repeated variance study (r5, 120 preregistered cells)
- Phase 2 live atomic component-ablation screen (r5, 120 completed receipts; findings)
- Artifacts:
research/phase-2/live/ablation-screen-r5-results.json,ablation-screen-r5-report.json,ablation-screen-r5-factor-effects.json,ablation-screen-r5-summary.json,ablation-screen-r5-token-analysis.json
- Artifacts:
- Phase 2 confirmation wave (r5, 240 completed receipts; findings)
- Artifacts:
research/phase-2/live/confirmation-r5-results.json,confirmation-r5-report.json,confirmation-r5-summary.json,confirmation-r5-token-analysis.json,confirmation-r5-initial-rate-limit-failures.json,confirmation-r5-retry-provenance.json
- Artifacts:
- Phase 2 larger-refactor replication (r5, 240 completed receipts; findings)
- Result: task- and model-conditional interaction; D did not replicate across both larger fixtures
- Artifacts:
research/phase-2/live/larger-refactor-r5-results.json,larger-refactor-r5-report.json,larger-refactor-r5-factor-effects.json,larger-refactor-r5-summary.json,larger-refactor-r5-wave-meta.json,larger-refactor-r5-initial-failures.json,larger-refactor-r5-retry-provenance.json
- Phase 3 token-usage analysis with optional cost and scenario reporting
- Priced multi-turn cost wave deferred because the larger-refactor effect did not survive both fixtures