CCode Story: Insights from Startup Tech Leaders
← All frameworks
StrategyPatrick Vuong

Three-Wall Agent Scale Diagnostic

Test agent systems for context, accuracy, and token efficiency

Difficulty
Easy
Time to result
~days to results
Steps
5
Confidence
94%

The diagnostic evaluates an agent system against three walls that emerge at scale. The context wall asks whether the agent can understand a large portfolio without repeatedly reading thousands of files or repositories. The accuracy wall examines nondeterministic mistakes and hallucinations that appear minor in a demo but multiply across high-volume execution. The cost wall measures tokens consumed while agents repeatedly reconstruct the same context. A team gathers evidence for each wall, projects the effect at its intended operating scale, and then decides where deterministic search, semantic models, cached context, or executable transformations are required. The model shifts evaluation away from impressive isolated outputs and toward sustainable, repeatable system behavior.

Origin

Extracted from Code Story: Insights from Startup Tech Leaders, where Patrick Vuong describes three barriers that coding agents encounter at organizational scale.

Core principles

  • 01Scale exposes failures that demos conceal
  • 02Context capacity limits agent effectiveness
  • 03Small nondeterministic errors compound across repositories
  • 04Repeated context reconstruction creates material cost

How to run it

  1. 1

    Define the target scale

    Specify the number of repositories, expected task volume, and frequency of agent runs. Use this operating target rather than a single demonstration as the evaluation baseline.

    Pro tip Include cross-repository tasks because they expose context limitations quickly.

    Watch out A benchmark that is much smaller than production can hide all three walls.

  2. 2

    Measure the context wall

    Observe how many files, repositories, and tool calls the agent needs to understand a task. Identify repeated discovery work and missing cross-file or cross-repository knowledge.

    Pro tip Separate useful code retrieval from broad file reading.

    Watch out More retrieved text does not necessarily mean better context.

  3. 3

    Measure the accuracy wall

    Repeat representative tasks and record incorrect suggestions, hallucinations, and inconsistent transformations. Estimate how those errors compound at the intended execution volume.

    Pro tip Track both visible failures and plausible-looking changes that require human correction.

    Watch out Do not classify a minor demo error as harmless without projecting its fleet-wide frequency.

  4. 4

    Measure the cost wall

    Count tokens and tool calls used to rediscover context on each run. Extrapolate the cost across the expected number of agents and repositories.

    Pro tip Look specifically for stable context that could be computed once and reused.

    Watch out Token costs can grow faster than task volume when agents repeatedly inspect overlapping code.

  5. 5

    Choose deterministic interventions

    Introduce precise search, precomputed context, or executable recipes at the walls with the highest projected risk. Re-run the same evaluation to verify the improvement.

    Pro tip Offload stable, repeatable operations before optimizing prompts.

    Watch out Do not assume that a more capable model eliminates structural scaling problems.

In the wild

Evaluating an agent across 10,000 repositories

A platform team tests a migration agent on several services, then models deployment across 10,000 repositories. It finds that repeated file discovery dominates token use and that a small rate of incorrect edits would create a large review queue. The team adds symbol-aware search and deterministic migration recipes before expanding the rollout.

→ The scale decision is based on projected context, accuracy, and cost behavior rather than demo quality alone.

Common mistakes

Extrapolating from a polished demo

A narrow demonstration may not reveal repeated context work, compounding errors, or portfolio-level review costs.

Measuring only model accuracy

Even accurate outputs can be uneconomical if agents burn excessive tokens reconstructing context for every task.

Is it for you?

Best for

Teams evaluating whether coding agents can operate safely and affordably across many repositories.

Not ideal for

Small experiments where scale, repeatability, and token costs are not yet meaningful constraints.

From the transcript

“So some of the blockers of why ages need some of these tool links, especially thinking about it at scale, is three different walls they…”

Patrick Vuong · 06:50

“It's non-determined mistake issues that seem minor in a demo, but they compound that scale.”

Patrick Vuong · 07:09

“Agents are actually burning millions of tokens rebuilding the context every single time to understand what's happening”

Patrick Vuong · 07:26

From the episode

Making AI Deterministic for Developers and their Agents, with Patrick Vuong of Moderne

Patrick Vuong

→