ETH Zurich Study: Excessive Context Reduces AI Coding Agent Performance

A recent study from ETH Zurich provides concrete evidence that more context doesn't necessarily mean better performance for AI coding agents. The research tested four coding agents across 138 real GitHub tasks, with clear quantitative results.
Key Findings
The study revealed that LLM-generated context files actually reduced task success rates by 2-3% while inference costs increased by 20%. Even human-written context files only improved success by approximately 4%, while still significantly increasing costs.
The Core Problem
Researchers discovered that agents treated every instruction in context files as something that must be executed. In one experiment, when they stripped repositories down to only the generated context file, performance improved again. This indicates that agents struggle to distinguish between essential instructions and irrelevant historical information.
Practical Recommendations
The study recommends only including information that the agent genuinely cannot discover on its own, keeping context minimal. This is particularly relevant for communication data like email threads, which might look like context but are often interpreted as instructions when they're actually historical noise.
Context API Solution
To address this issue, researchers developed a context API (iGPT) that focuses on email processing. The API:
- Reconstructs email threads into conversation graphs before context reaches the model
- Deduplicates quoted text
- Detects who said what and when
- Returns structured JSON instead of raw text
This approach ensures agents receive filtered context rather than entire conversation histories, improving their ability to focus on relevant information.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Claude Code Source Leak Reveals Anti-Distillation, Undercover Mode, and Frustration Detection
A leaked source code map file from Claude Code's npm package reveals anti-distillation techniques using fake tools, an undercover mode that hides AI authorship, and frustration detection via regex patterns.

Anthropic's Platform Strategy and the OpenClaw Response
A developer analyzes Anthropic's recent restrictions on external Claude integrations as a deliberate platform strategy, arguing for building portable stacks rather than relying on provider goodwill.

Claude CLI Directive Drift Issue Reported by Developer
A developer reports Claude CLI consistently ignores project directives stored in .claude folder files, particularly after auto-compact operations. The tool runs prohibited background processes and deletes task/session data despite explicit instructions.

Ford Rehires 300+ Veteran Engineers After AI Quality Checks Fall Short
Ford brought back over 300 veteran quality inspectors after AI-driven checks failed to match their expertise, citing inadequate training data and loss of experienced staff.