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

Stop Letting AI Agents Design Your Architecture
AI agents like Claude are pathologically agreeable, producing plausible but context-free architectures. They can't say no, don't know your team's constraints, and turn senior engineers into ticket implementers.
Stripe Nears $7B Deal to Acquire AI Firm OpenRouter
Stripe is close to acquiring AI startup OpenRouter for over $7 billion, according to Bloomberg. The deal signals major consolidation in the AI infrastructure space.

Codestrap founders critique AI coding metrics and warn of quality issues
Codestrap founders argue AI coding tools are being measured incorrectly with metrics like lines of code and pull requests, while quality metrics show problems like a 3.7x larger codebase performing 2,000 times worse in an SQLite-to-Rust rewrite.
Open-sourcing AstaBrief, the fast report-generation model in Asta
Ai2 released AstaBrief 8B, an open-weights model that turns a research question plus retrieved literature excerpts into a cited report. Fast mode averages 51.1 seconds per report vs 178.5 for Thinking mode, and the training data ships alongside the weights.