# Your Agents Lack Context: Here's How to Fix "You're Absolutely Right!"

Brandon Waselnuk, Unblocked | AI Engineer World's Fair 2026 | 14:09

Source: https://www.youtube.com/watch?v=KcVkq5L-0f0
Channel: AI Engineer (https://www.youtube.com/@aiDotEngineer). Summarised by AIE Talks.
Page: https://aietalks.com/talks/your-agents-lack-context-heres-how-to-fix-youre-absolutely-right
Published: 2026-09-09
Tags: agents, coding-agents, context-engineering, mcp

## TL;DR
- Agents need context about how a company works before they can produce code that is safe to merge.
- Curated Markdown files and MCP servers often leave important information undiscovered, stale, or unresolved.
- A context engine should unify company data, resolve conflicts, personalize retrieval, enforce permissions, and control token use.

## Summary
Brandon Waselnuk argues that AI-generated code should feel as if it came from a teammate who has worked at the company for years. Human engineers build that context through rejected pull requests, meetings, incidents, and daily work. A new agent session starts without it, so errors become correction loops, wasted search tokens, review work, and production risk as agents operate with less human supervision. Waselnuk describes two approaches that fall short: manually curated project files that decay over time, and MCP tools that agents may ignore or stop using after finding the first plausible answer. Unblocked's proposed context engine combines company data, relationships, permissions, conflict resolution, targeted retrieval, and token-aware output. In one comparison, the same prompt used about 21 million tokens without context and 10.8 million with it, finishing about two hours sooner. He also introduces open source tools for mapping engineering relationships, checking repository rules, and building a relational context engine.

## Key ideas
### Agents start each session without the company knowledge human teammates build over time
[00:58](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=58s)
Waselnuk says AI-generated code should feel like it was written by someone who has been on the team for years. Human engineers gain that understanding by asking questions, shipping pull requests that get rejected, attending meetings, and being present during incidents. They know how work gets shipped and why a production failure happened. A new agent terminal session may be intelligent, but it does not know how the company operates. It needs that information before it can reliably solve problems in an existing codebase.

### Bad context creates larger costs as agents become more autonomous
[03:39](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=219s)
With tab completion, a human can reject bad code immediately. As teams move toward agents that work with less supervision, those agents need answers when they hit obstacles. If their initial context is wrong, they enter correction loops where the human repeatedly says the result is wrong. Waselnuk calls the resulting search and rework waste unacceptable as token costs rise. Parallel agents add a review tax, while background agents need enough context to keep operating without constant intervention.

### Manually curated context files decay and have no clear owner
[04:17](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=257s)
The curated context trap starts with Markdown files in a local or virtual file system that describe how a project works. An agent can grep those files and often perform better. The problem shifts to distribution and maintenance. Teams must put the files somewhere everyone can access them, and the repository eventually becomes stale like other internal documentation. Waselnuk asks who has the judgment and authority to maintain one context repository for an entire organization.

### MCP gives agents access to sources, but access does not guarantee understanding
[05:10](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=310s)
Waselnuk says an agent may never call an MCP server because of the way its server or tool description is written. Even when it does call one, the agent can stop after finding the first answer that appears correct. He describes this as satisfaction of search bias. An architecture record might say to do one thing, while a Slack conversation from the previous night says to do another. If the agent stops at the first result, it misses the later instruction. Information access alone does not resolve the context problem.

### A context engine must connect identity, relationships, conflicts, permissions, and timing
[06:04](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=364s)
The engine should understand who a person is, where they work, which commits belong to them, and who reviews those commits. That information becomes a starting point for finding more relevant material. The engine also needs to resolve conflicts between sources, such as an old architecture diagram and a recent Slack discussion. It must enforce permissions so information about a restricted project does not enter an unauthorized answer. Finally, it should return the right amount of context for the workflow, with token-efficient responses for machine-to-machine use.

### The proposed engine combines broad company context with targeted retrieval
[07:13](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=433s)
Waselnuk describes an engine that ingests data from many sources, including real-time information from incident-management tools, and sends context into the workflow that needs it. He names six characteristics: unified system context, targeted retrieval, conflict resolution, personalized relevance, token optimization, and permission enforcement. Broad context can help models find unknown information across a company. Targeted retrieval is still needed when a user provides a link and expects a quick document lookup. Deep research and fast answers require different retrieval behavior.

### Context reduced token use and completion time in Unblocked's comparison
[09:16](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=556s)
Waselnuk says his team ran the same prompt against the same model twice, once with context and once without it. The run without context used about 21 million tokens. The run with context used 10.8 million and finished about two hours sooner. He attributes the difference to removing the repeated search work needed at the start of each session. He also describes the resulting pattern as fewer tokens, faster triage, and better answers because the model understood more about the business.

### The open source examples add relationship data, repository rules, and relational queries
[09:55](https://www.youtube.com/watch?v=KcVkq5L-0f0&t=595s)
The engineering social graph tool uses deterministic programming to inspect GitHub and map who works on what, who commits where, and who reviews the work. The repo rules agent finds rules files across repositories, reports duplicate or problematic rules, and creates an index for retrieval. The workshop teaches people to build a relational context engine from scratch across six pull requests. Waselnuk explains that retrieval-augmented generation alone cannot answer a question such as which authentication-related pull requests a person worked on during the previous week. That requires discovering a schema and writing a query.

## Notable quotes
- "AI-generated code should feel like it was written by someone who's been on your team for years." (00:58)
- "The problem is as you move these agents up in scale, that cost compounds if you get it incorrect at the beginning." (01:57)
- "Access to information is not understanding." (05:43)
- "The gap is not intelligence any longer. It's context." (13:07)

## Tools & references mentioned
- Unblocked
- MCP
- GitHub
- Slack
- OAuth
- SSO
- OpenAI
- Anthropic
- LinkedIn
- Workday
- General Motors
- RAG
- engineering social graph
- repo rules agent
- document query engine

## Who should watch
- You are building coding agents for an older production codebase and keep correcting outputs that ignore local conventions or business rules.
- Your team is adding parallel or background agents and needs to reduce repeated searches, review work, and permission risks.
- You want concrete starting points for mapping engineering knowledge, auditing repository rules, or building a relational context engine.

## Related talks

- [Stop Babysitting Your Agents](https://aietalks.com/talks/stop-babysitting-your-agents) (Brandon Waselnuk, Unblocked, 18:54)
- [Building Agents Is Trivial Now, Context Is the Next Frontier](https://aietalks.com/talks/building-agents-is-trivial-now-context-is-the-next-frontier) (Jeff Ng, Unblocked, 13:22)
- [How to Generate Mergeable Code with a Context Engine](https://aietalks.com/talks/how-to-generate-mergeable-code-with-a-context-engine) (Peter Werry, Unblocked, 18:36)
- [Context Is the New Code](https://aietalks.com/talks/context-is-the-new-code) (Patrick Debois, Tessl, 27:14)
- [Why More Context Makes Your Agent Dumber and What to Do About It](https://aietalks.com/talks/why-more-context-makes-your-agent-dumber-and-what-to-do-about-it) (Nupur Sharma, Qodo, 26:27)
