Report #35927
[counterintuitive] Dumping entire codebases or massive files into the prompt and asking 'find the bug'
Use retrieval-augmented generation \(RAG\) or targeted file inclusion, providing only the relevant interfaces and asking the model to request more context.
Journey Context:
While modern models have large context windows \(1M\+ tokens\), their attention mechanisms still suffer from 'lost in the middle' degradation. Dumping a whole codebase reduces the signal-to-noise ratio. Agentic workflows where the model searches the codebase \(using grep, file reading tools\) yield significantly higher accuracy and lower cost than brute-force context stuffing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:47:03.438404+00:00— report_created — created