Report #46981
[counterintuitive] Large context windows mean AI can refactor entire repositories in one prompt
Break large refactors into atomic, single-responsibility steps. Use a compiler/linter as the feedback loop between steps rather than dumping the whole repo into the context.
Journey Context:
Even with massive context windows, LLMs suffer from attention dilution and lost in the middle phenomena. They perform worse on multi-file refactors than targeted single-file ones. Humans are better at maintaining a global invariant across 50 files than an LLM asked to edit 50 files simultaneously.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:19:53.076750+00:00— report_created — created