Edited by humans. Written by AI. How our editing works
All articles

AI Agents Keep Losing the Plot on Your Codebase

Peter Werry of Unblocked argues AI agents don't lack access to information—they lack understanding. Here's what a context engine actually does differently.

Rachel "Rach" Kovacs

Written by AI. Rachel "Rach" Kovacs

August 28, 20267 min read
Share:
Man speaking beside bar chart showing AI maturity levels, with text discussing context layers for AI agents in engineering…

Photo: AI. Marco Velez

There's a diagnostic failure mode that radiologists have a name for: satisfaction of search. You're reading a scan, you find one suspicious region, your brain registers "found it," and you stop looking. The other indicators—the ones that would have changed the diagnosis—go unread.

Peter Werry, co-founder of Unblocked, walked an AI Engineering conference audience through why this is also an exact description of what your coding agent does to your codebase. It finds something plausible. It stops. It builds on that. And if it found the wrong thing first, every subsequent step compounds the error.

The argument Werry makes in his talk is sharper than the usual "agents need more context" framing that's been making the rounds. His actual claim is that access to information and understanding are not the same thing—and that almost everything the industry is currently selling (bigger context windows, MCP connectors, wiki integrations) addresses the first problem while leaving the second untouched.

The new employee who never stops being new

The analogy Werry reaches for is a good one. Think of your coding agent as an expert software engineer who's perpetually on their first day. They're technically capable. They can read your code. But they don't know why that module is structured the way it is, what the team decided against six months ago in a Slack thread, or that the reason your deploy pipeline looks weird is because of a production incident in Q3 that left everyone gun-shy about a particular dependency.

"Agents are like new employees," Werry says. "They reset their knowledge every time you start a new task."

What's actually getting lost between tasks isn't code—it's organizational sediment. The intent behind architectural choices. Team conventions that exist because someone got burned. Past decisions that aren't documented anywhere except in the memory of three engineers who were in the room.

Before agents, a human engineer accumulated that sediment over time. They were, as Werry puts it, the context layer. The agent replaces them on tasks but can't replicate what they carried around in their heads.

Why throwing more tokens at it doesn't work

The obvious rebuttal is: fine, just give the agent everything. Dump the whole codebase, all the architecture docs, the Confluence wiki, into a million-token context window and let it reason over everything at once.

Werry's pushback on this is practical rather than theoretical. First, organizational context—the real stuff, not just code—doesn't fit even in a large window. Second, and this is the part that gets underappreciated, a bloated context window doesn't make agents smarter. It makes them distracted.

"When you're working on a task, you want task-specific flow," he says. "Your agents will get distracted easily if you give them things that cause them to look this way and that way."

The Unblocked blog makes a related point about MCP connectors specifically: giving an agent a connection to your data sources isn't the same as synthesizing that data into understanding relevant to the current task. A connector says "here's the door." A context engine says "here's what matters on the other side of it, for this specific thing you're doing right now."

This maps to a broader pattern in AI coding agent adoption: agents tend to underperform not because they lack raw capability, but because they lack the scaffolding that tells them what to ignore.

What a context engine actually does

Werry's demo showed the system answering a question about an internal component called the source mark engine. The response included an architecture diagram that didn't previously exist—generated from how the code actually operates, with sources attached so a human could verify or correct it. That "show your work" feature matters more than it might seem: it's the difference between a system you have to trust blindly and one you can audit.

The agent comparison was more instructive. Werry ran the same optimization task in Claude Code twice—once with Unblocked's context engine feeding it, once without. Without the context engine, the agent had to discover things on its own. Werry reported the cost at under a dollar and the run time at roughly a minute with context. Without it, roughly double the time and more cost—because the agent had to explore, found some things wrong, and later steps ran on bad assumptions.

But Werry was explicit that the headline numbers aren't the point. "The real value of a context engine is not the upfront cost on these short tasks. It's the compounding effect." An agent operating on a wrong assumption in step three doesn't just waste step three—it potentially invalidates steps four through eight and forces a loop. The divergence between "agent with good context" and "agent without it" widens on every multi-step task.

The review agent section of the demo illustrated a different dimension of this. Unblocked's system surfaces code review comments weighted by the commenter's seniority and expertise—essentially asking, "what would your senior engineers say here?" based on their actual historical comments. One engineer, Richie, saw the agent produce a comment and recognized it as something he himself would have said. Because it was: the system had surfaced a pattern from his previous reviews.

When the volume of flagged review issues dropped sharply, Richie debugged it with Unblocked and traced the drop to a Slack conversation about a model switch. The context engine connected the operational symptom back to the organizational decision that caused it. That's the kind of institutional memory that usually lives in one person's head until they leave.

The demo problem, and what to do about it

Werry ran his demo on Unblocked's own repository. That's the standard move—you demo what you know—but it's also where evaluation gets hard. A system that knows your codebase intimately will look impressive on your codebase. The question worth asking any vendor in this space: can you run the same demo on a repo you've never seen before, with someone from my team driving?

There's also a distinction worth pressing on: "we surface relevant context" and "we surface the right context for this task" sound similar but aren't. Relevant context is a recall problem. Right context is a judgment problem. A system that retrieves plausibly related information is useful. A system that synthesizes which of that information actually governs this specific task is what Werry is describing—and it's a harder bar to clear. Ask any vendor to show you their sources, and watch whether those sources actually explain the task at hand or just gesture at the general neighborhood.

Werry's case that context is the bottleneck in agent-driven development is broadly consistent with what practitioners are finding. Where it gets genuinely interesting is his argument about the shape of the failure: not that agents have insufficient access to information, but that they don't synthesize it into understanding the way a tenured engineer would. Human oversight remains load-bearing not just as a safety net, but as the thing that catches exactly the compounding errors Werry is describing—the ones that start small and ramify.

The two open-source tools Werry mentioned—a query engine that runs over your GitHub pull request history, and a social graph that visualizes review coverage by team—are worth a look if you want to probe the idea without committing to a product. Thin review coverage and knowledge silos are problems most engineering teams know they have and don't have great visibility into.

The practical test for any context engine, Unblocked's or anyone else's, is whether it shows its work. If a tool can surface a claim about your codebase or your team's practices and point you directly to the PR, the Slack thread, or the architecture doc that supports it, you can evaluate it. If it produces confident answers with no trail back to evidence, you're back to the satisfaction of search problem—except now it's your tool doing the stopping, not just the agent.


Rachel "Rach" Kovacs covers cybersecurity and digital safety for Buzzrag.

More Like This

Man in black hoodie presenting AI pipeline workflow diagram with "Bright Data" logo and "Stop Parsing with LLMs" headline…

AI Agents Now Build and Fix Their Own Web Scrapers

AI agents can now build, run, and repair web scrapers without human input. Here's what that pipeline looks like—and what it means for everyone online.

Rachel "Rach" Kovacs·3 months ago·7 min read
Developer at desk viewing Hacker News website with code editor, surrounded by neon green Y Combinator branding and glowing…

Hacker News Digest: June 12, 2026

From a $6K AI AWS bill to Meta's facial recognition playbook, Hacker News surfaced the tensions defining tech in June 2026. Here's what mattered.

Rachel "Rach" Kovacs·2 months ago·8 min read
Man in glasses wearing dark shirt presenting slides about AI context engineering and Unblocked software with performance…

Your AI Agent Knows Nothing About Your Org

Context engines promise smarter AI agents—but they work by hoarding your Slack history, CTO messages, and code review patterns. Is the tradeoff worth it?

Rachel "Rach" Kovacs·3 months ago·7 min read
Man in dark shirt smiling in front of blue interface displaying context engine technology, with AI Engineer Europe and…

The Context Problem AI Agents Can't Solve Alone

Peter Werry of Unblocked explains why RAG, MCP servers, and bigger context windows won't save your AI agents—and what a real context engine actually requires.

Yuki Okonkwo·4 months ago·7 min read
A man in a dark shirt presents on stage with code visible in the background, with text overlays reading "think series" and…

How AI Agents Connect to Tools Securely

From bare API keys to vault-backed short-lived credentials, IBM's Grant Miller maps five patterns for connecting AI agents to tools—and the security tradeoffs of each.

Rachel "Rach" Kovacs·2 weeks ago·7 min read
Gauntlet Loop 2.0 diagram showing a robot-like device with four AI model icons (OpenAI, Claude, and others) connected in a…

The Gauntlet Loop Works—Until It Doesn't

The gauntlet loop lets Claude Code build full apps from a single prompt. AI LABS breaks down why it fails on original projects—and how Wayfinder fixes it.

Rachel "Rach" Kovacs·2 weeks ago·7 min read
Two excited people comparing three AI logos (Microsoft, Runway, Google) with a sci-fi landscape marked as winner versus an…

Seedance 2 vs Google Omni vs Runway Aleph 2

CyberJungle tested three AI video tools head-to-head. The results tell you which to use—and why Google's content policy is a real workflow problem.

Rachel "Rach" Kovacs·3 months ago·8 min read
White text reading "Claude Opus 4.8" with an orange starburst icon on black background highlighting the latest AI model…

Claude Opus 4.8: The Agent Upgrade That Actually Matters

Claude Opus 4.8 ships dynamic workflows, multi-agent coordination, and a massive long-context leap. Here's what the benchmarks actually tell you—and what they don't.

Rachel "Rach" Kovacs·3 months ago·7 min read

RAG·vector embedding

2026-08-28
1,777 tokens1536-dimmodel text-embedding-3-small

This article is indexed as a 1536-dimensional vector for semantic retrieval. Crawlers that parse structured data can use the embedded payload below.