> Markdown version of [/videos/100665-beyond-file-dumps-context-engineering-for-coding-agents](https://www.wearedevelopers.com/videos/100665-beyond-file-dumps-context-engineering-for-coding-agents). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Beyond File Dumps: Context Engineering for Coding Agents Why do full-file dumps give coding agents a mere 12.7% accuracy on SWE-bench? Learn how to replace raw logs with AST-parsed, token-budgeted context packets to boost LLM performance. - **Speakers:** [Animesh Dutta](https://www.wearedevelopers.com/@animesh-dutta) - **Event:** Conference India 2026 - **Published:** November 26, 2026 - **Duration:** 23:10 - **URL:** https://www.wearedevelopers.com/videos/100665-beyond-file-dumps-context-engineering-for-coding-agents - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/4c9df314aa0e91686af178605f4e42fb/thumbnails/thumbnail.jpg?time=30000ms ## Summary Dumping raw files, stack traces, and unedited logs into LLMs exhausts token budgets and degrades performance on large codebases, with SWE-bench data showing full-file dumps yielding just 12.7% accuracy. Animesh Dutta introduces context engineering using Chronicle, an open-source, local-first Python SDK and MCP server that prepares structured context before an LLM call. Chronicle orchestrates context across three layers: extraction, selection, and handoff. It parses Python repositories into abstract syntax trees (ASTs) and static call graphs to trace downstream functional dependencies. Combining symbol lookup, keyword matching, and semantic search, it applies task-aware reranking to combat the "lost in the middle" phenomenon. It then compiles a versioned, Markdown-based evidence packet containing target sources, call chains, invariants, and validation checks. Crucially, engineering context requires strict token budgeting—compressing repeated log errors, fetching on demand, and reserving space for tool outputs and generation. In a live Codex demo, Chronicle indexes a repository locally to generate a compact `context_packet.md` with ranked drop orders, related tests, and confidence scores. When patches fail due to missing, unused, stale, or unchecked context, agents must "reread the changed code and rerun the test" to refresh caller dependencies and prevent stale memory. **Keywords:** context engineering for coding agents, chronicle python SDK, MCP server integration, abstract syntax tree indexing, static call graphs, task-aware reranking, lost in the middle LLM, token budget management, evidence packet generation, patch-aware retrieval, stale memory in AI agents, automated test validation, SWE-bench context accuracy, local-first context orchestration, log error compression, downstream dependency tracing ## Chapters 1. **Orchestrating the context pipeline for coding agents** (00:57) — Blindly prompting coding agents causes errors, which can be resolved by building a pipeline that retrieves symbols, expands call chains, and refreshes context after testing. 1. **Structuring evidence packets to track downstream dependencies** (03:44) — Unintended side effects during automated code changes are prevented by structuring evidence packets with task sources, expected call chains, validation checks, and version states. 1. **Managing token budgets and compressing log outputs** (05:26) — Dumping raw logs exhausts context windows, so developers must compress repeated errors, fetch data on demand, and reserve token budgets for tool outputs and code generation. 1. **Extracting ASTs and re-ranking symbols for agent handoff** (07:57) — Large language models often lose precision when relevant context is buried in the middle, requiring a three-layer architecture that parses abstract syntax trees and re-ranks symbols by task relevance. 1. **Generating context packets with Chronicle SDK and MCP** (10:17) — Scanning entire repositories wastes tokens, which is solved by integrating the local Chronicle MCP server with Codex to generate targeted markdown context packets and related test suites. 1. **Benchmarking context size and diagnosing patch failures** (15:36) — Full-file dumps lower agent accuracy and hide bugs, making it essential to right-size code excerpts and systematically diagnose missing, unused, stale, or unchecked patch failures. 1. **Comparing markdown context packets with graph representations** (21:00) — While markdown files align well with standard agent instruction formats, converting call chains into visual graph representations offers a promising alternative for future context compression. ## Related Moments - [Audience questions on context management and agent evaluation](https://www.wearedevelopers.com/videos/100439-context-engineering-kung-fu) (from "Context Engineering Kung Fu") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/7e149d20f0b5b6953e58dcccef9db5b1/thumbnails/thumbnail.jpg?time=225638ms - [Core concepts and advantages of the Model Context Protocol](https://www.wearedevelopers.com/videos/100305-api-mcp-or-mcp-app-choosing-the-right-surface-for-ai-agents) (from "API, MCP or MCP App? Choosing the right surface for AI agents") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/ac896e8d6e6c4a60793b5fd352249fe2/thumbnails/thumbnail.jpg?time=36800ms - [Balancing code quality trade-offs and managing agent context](https://www.wearedevelopers.com/videos/100689-ai-is-the-easy-part-why-faster-engineers-don-t-make-faster-businesses) (from "AI Is the Easy Part: Why Faster Engineers Don't Make Faster Businesses") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/d9da5c81d0cbe4e695e424f207be1839/thumbnails/thumbnail.jpg?time=60000ms - [Demonstrating the entire CLI for tracking agent context](https://www.wearedevelopers.com/videos/100001-the-agentic-assembly-line) (from "The Agentic Assembly Line") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/0917cd2f902071e0defa2fc385084a0d/thumbnails/thumbnail.jpg?time=91160ms - [Introduction to context engineering in AI](https://www.wearedevelopers.com/videos/100516-context-engineering-how-machines-remember-and-forget) (from "Context Engineering: How machines remember and forget") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/2fa19c057daf3922a790101779e888aa/thumbnails/thumbnail.jpg?time=94661ms - [Demonstrating Entire Sessions and Trails for agentic reviews](https://www.wearedevelopers.com/videos/100723-from-the-it-revolution-to-the-agentic-era) (from "From the IT Revolution to the Agentic Era") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/f2ef2ae453a097b06779946fcc075ae7/thumbnails/thumbnail.jpg?time=120000ms ## Related Articles - [Everything a Developer Needs to Know About MCP with Neo4j](https://www.wearedevelopers.com/magazine/604-everything-a-developer-needs-to-know-about-mcp-with-neo4j) - [Dev Digest 132 - Binging WADFlix?](https://www.wearedevelopers.com/magazine/473-dev-digest-132-binging-wadflix) - [Infer Once, Run Everywhere: Zero-Token Architecture](https://www.wearedevelopers.com/magazine/783-infer-once-run-everywhere-zero-token-architecture) - [6 Open-Source Tools to Reduce Your Token Usage](https://www.wearedevelopers.com/magazine/746-6-open-source-tools-to-reduce-your-token-usage) ## Related Jobs - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4667602-principal-software-engineer-copilot-code-review) at **GitHub** - [Staff Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4743636-staff-software-engineer-copilot-code-review) at **GitHub** - [Staff Software Engineer, GitHub Intelligence (Copilot Agents)](https://www.wearedevelopers.com/jobs/ext/4850314-staff-software-engineer-github-intelligence-copilot-agents) at **GitHub** - [Tech Lead Java/Spring](https://www.wearedevelopers.com/jobs/ext/4814922-tech-lead-java-spring) at **Neo4J** - [Senior Software Engineer - Semantic Data Lake (Open)SDE3](https://www.wearedevelopers.com/jobs/48597-senior-software-engineer-semantic-data-lake-open-sde3) at **WEX** - [Lead Engineer, Google Cloud](https://www.wearedevelopers.com/jobs/ext/4747258-lead-engineer-google-cloud) at **PwC**