London

June 28–29, 2027

New York

September 15–16, 2026

Berlin

November 9–10, 2026

Your AI coding agent lacks context

Context is where the hours go.
November 24, 2026

You have 1 article left to read this month before you need to register a free LeadDev.com account.

Estimated reading time: 3 minutes

Key takeaways:

  • Rework is the cost to watch: in one enterprise case, giving AI tools company context cuts a year’s work on a product from 9,600 engineering hours to 4,000.
  • Context can change what an agents builds.
  • Treat context as something you own.

Generating code is now cheap. Getting it to fit a 15-year-old codebase is where the hours go.

That’s the argument in The AI Coding Drift Report from DesignVerse. The company studied 15 private enterprise codebases across aviation, banking, and defense. Each was between 15 and 20 years old and held more than one million lines of code.

If you’ve worked in a system like that, you know the code that matters most is often the least documented.

Where the hours go

In one case, the research estimated that a year’s work on a single product would require 9,600 engineering hours without what DesignVerse calls an enterprise context layer.

The layer gives AI tools access to the organization’s existing code, architecture, and technical standards. With it, the total fell to 4,000 hours, a 58% reduction.

DesignVerse values the 5,600 hours saved at around $882,000, or about three engineers’ worth of capacity. The company presents that as time that could go to other work and doesn’t claim a cut in staffing costs. That framing will go down better in a planning meeting.

The more telling figure is what the agents built. DesignVerse compared two unmanaged AI coding agents with its own context-engineered system.

The context-engineered system used the organization’s own internal components 92% of the time. The unmanaged agents managed 55% to 59%, and the rest of the time they invented components or swapped in public alternatives. Anyone who has reviewed a pull request that quietly reimplements a helper the team wrote a decade ago will recognize the pattern.

Consistency followed the same shape. With context, 97% of repeated runs gave the same answer. Without it, the figure was 61% to 69%.

“If companies are paying for AI to write code, only to pay their engineers to fix it afterwards, they need to ask some serious questions about the return on that investment,” says Andrei Manolache, CEO and cofounder of DesignVerse.

A token metric that measures waste

Most teams can’t see this cost yet. In LeadDev’s AI Impact Report 2026, 31% of respondents said their organization measures AI’s impact, and 68% named a lack of clear metrics as a challenge. Token usage was the most common metric among organizations that measure AI’s impact, with 58% tracking it. The same share of respondents rated token metrics ineffective.

DesignVerse’s Engineering AI Drift Index puts tokens to better use. It measures how much an agent has to read before it produces code that gets accepted into an existing system. Across the codebases studied, agents without a context layer read a median of ten tokens for every token of accepted code. On one client’s legacy system, the ratio hit 150 to 1.

The company compares the agent to a skilled new hire with no handover. The new hire at least remembers what they read last week. The agent starts from scratch every session.

Review won’t catch it all

DesignVerse sells an Engineering Context Layer, so its headline conclusion lines up with its product. The hours and dollar figures come from a single case and are estimates, and the release doesn’t name the two unmanaged agents it tested. 

The direction is worth taking seriously anyway. LeadDev’s new AI Code Review Report 2026 found that only 14% of respondents’ organizations apply clearly defined, consistent standards for reviewing AI-generated code, and 47% rely on the coding agent to review its own work.

If review isn’t catching drift consistently, the context an agent starts with carries more weight.

NYC 27 Pre sale ticket block image

Give the context an owner

The report’s recommendations are practical. Build a persistent context layer covering existing code, architecture, standards, and project knowledge. Give agents only what’s relevant to each task. Enforce standards as code is generated, and keep an audit trail of which standards shaped it.

The last recommendation is the one most teams will skip: give a named person responsibility for keeping that context accurate. Context goes stale the same way documentation does. If nobody owns it, you’ll end up paying for the rework again.