CORVUS Optimizes Context for LLM Coding Agents.

Mingwei Zheng, David OBrien, Siwei Cui, Pardis Pashakhanloo, Rajdeep Mukherjee, Myeongsoo Kim, Sachit Kuhar· July 28, 2026 View original

Summary

CORVUS is a novel trajectory architecture for LLM coding agents that decouples file-read actions from observations, maintaining a synchronized registry of relevant files to prevent stale snapshots and redundant re-reads. This significantly reduces input tokens, shortens prompts, and decreases reasoning cycles while maintaining pass rates.

Large language model (LLM) coding agents typically build trajectories that accumulate reasoning steps, tool calls, and results to facilitate multi-step decision-making. However, the common append-only architecture for these trajectories often tightly links file-read actions with their observations, creating fixed snapshots in the chronological history. This design leads to inefficiencies: as files are modified by the agent or concurrently by humans, these snapshots become outdated, causing reasoning errors and forcing agents to redundantly re-read files, which further bloats the trajectory with duplicate content. To mitigate these issues, researchers propose CORVUS, a new trajectory architecture. CORVUS addresses the problem by decoupling file-read actions from their observations. Instead, it maintains a synchronized registry of relevant files and injects only their current contents at each reasoning cycle. This fundamental structural change results in significantly lighter-weight trajectories that are inherently synchronized with the actual codebase state. This approach eliminates redundant file copies and stale snapshots that typically inflate conventional trajectories. Evaluated across four LLMs on SWE-POLYBENCH_VERIFIED and SWE-BENCH PRO benchmarks, CORVUS achieved substantial reductions: 9-50% fewer average input tokens per task, 15-32% shorter final prompts, and up to 37% fewer reasoning cycles, all while preserving comparable pass rates. This demonstrates a significant improvement in efficiency for LLM coding agents.

Why it matters

For professionals developing or using LLM coding agents, CORVUS offers a critical improvement in efficiency and reliability by preventing context bloat and stale information, leading to faster, cheaper, and more accurate code generation and problem-solving.

How to implement this in your domain

  1. 1Analyze your current LLM coding agent workflows for context window limitations and redundant file operations.
  2. 2Investigate adopting a decoupled file-read and observation architecture for your agent trajectories.
  3. 3Implement a synchronized file registry system that provides real-time file content to your LLM agents.
  4. 4Measure the token usage and reasoning cycles of your agents before and after implementing context optimization techniques.
  5. 5Explore open-source implementations of CORVUS principles to integrate into your agent development.

Who benefits

Software DevelopmentAI/TechDevOpsCybersecurityResearch & Development

Key takeaways

  • CORVUS optimizes LLM coding agents by decoupling file-read actions from observations.
  • It maintains a synchronized file registry, preventing stale context and redundant re-reads.
  • The architecture significantly reduces input tokens, prompt length, and reasoning cycles.
  • CORVUS improves efficiency without compromising the pass rates of coding agents.

Original post by Mingwei Zheng, David OBrien, Siwei Cui, Pardis Pashakhanloo, Rajdeep Mukherjee, Myeongsoo Kim, Sachit Kuhar

"arXiv:2607.22711v1 Announce Type: new Abstract: LLM coding agents operate by constructing trajectories that accumulate reasoning, tool calls, and results to enable multi-step decision-making. However, the conventional append-only trajectory architecture found in practice tightly…"

View on X

Originally posted by Mingwei Zheng, David OBrien, Siwei Cui, Pardis Pashakhanloo, Rajdeep Mukherjee, Myeongsoo Kim, Sachit Kuhar on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses