Agent loops learn from your worst code: brownfield context poisoning
The brief
On brownfield codebases the code itself outweighs system prompts: an agent saw a deprecated pattern in 40+ files versus the correct one in 6, followed the majority and shipped working features that perpetuate old.
Sources
- r/ClaudeAIreddit.com