Research essay

The More Software We Build, the Less Intelligence We Should Need

· 11 min read

Part 3 of 6 in The Last Engineer

We examined new research on AI coding agents and simulated 2,400 development tasks to investigate whether context engineering can produce compounding efficiency.

The promise of AI-assisted software development is that we can build more software with less effort.

But there is a more ambitious possibility.

What if the hundredth task became cheaper not simply because the AI model improved, but because the previous 99 tasks had made the entire development system more capable?

What if every completed project contributed something that reduced the cost of the next?

And what if the greatest long-term savings came not from giving artificial intelligence more information, but from steadily eliminating the need for it to reason about problems already solved?

These questions are becoming testable.

In 2026, researchers began producing increasingly detailed evidence about how coding agents consume context, where their tokens go, and whether additional instructions actually improve their work.

We examined that research and, with ChatGPT, built an illustrative Monte Carlo simulation of a software-development operation running for two years. Its code was not kept. A later rerun from the assumptions stated here found the same pattern, costlier at first and cheaper later, but not the same sizes: at 45% recurring work the two-year result ran from a loss of about 7% to a saving of about 22%, depending on values this essay does not state, upkeep above all.

The result was revealing.

In our central simulation, the system designed to accumulate reusable capabilities eventually reduced total development costs by approximately 14%. But for the first three months, it was more expensive.

And one of the most interesting findings was that reducing context could make overall development less efficient.

1. The Real Research Is Starting to Challenge Our Assumptions

Consider three findings from 2026.

More instructions don't necessarily improve results

Researchers at ETH Zürich investigated the use of repository-level context files such as AGENTS.md.

Across their evaluations, adding these files did not improve overall task success, yet increased inference costs by more than 20% on average.

The agents followed additional instructions, explored more files, and performed more work.

But more work did not reliably produce better outcomes.

The implications are substantial.

A project can accumulate documentation and guidance intended to help AI agents, while inadvertently making every future task more expensive.

In some circumstances, context becomes a form of technical debt.

Research: Evaluating AGENTS.md, ETH Zürich, 2026

A small share of coding sessions consume a remarkable amount of context

In October 2026, Microsoft Research reported an analysis of 13.5 million GitHub Copilot agentic coding sessions, encompassing approximately 760 million language-model calls.

Only 7.8% of those sessions triggered context compaction.

Yet those sessions accounted for 44.2% of total token consumption.

The same research introduced an alternative approach that maintained more stable context prefixes and prepared incremental summaries outside the agent's critical path.

Its reported improvements reached 25.4% in total cost and 9.6% in agent execution time in the evaluated settings.

This suggests that context inefficiency is not distributed evenly.

Some workflows are disproportionately expensive, and improving those workflows could produce outsized returns.

Research: CompactionBench, Microsoft Research, October 2026

Agents search for far more information than they ultimately use

Another 2026 study, ContextBench, evaluated context retrieval using 1,136 real software issue-resolution tasks across 66 repositories.

The researchers found substantial differences between the code an agent explored and the code it actually used.

The models tended to prioritize retrieving enough information over retrieving only relevant information.

That distinction matters because every unnecessary search, file read, and model call contributes to the total development process.

Research: ContextBench, February 2026

Together, the studies suggest a possible shift in engineering priorities.

Instead of asking how much information we can fit into an agent's context, we should be asking how little information it needs to complete a task correctly.

But that raises an important question.

What happens when we actually model the economics?

2. We Simulated Two Years of Software Development

We built a Monte Carlo model with 600 simulated runs of the same 24-month development operation.

Each run contains 2,400 tasks distributed across a hypothetical portfolio of software projects.

The portfolio includes custom engineering work and recurring work that might eventually be automated.

The simulation compares six development strategies.

Full context: Repeatedly supplies broad context to the agent
Bloated instructions: Adds instructions and assumes 20% more inference spending
Full context + cache: Reuses previously processed context where possible
Targeted retrieval: Retrieves substantially less information
Retrieval + cache: Combines smaller context with cache reuse
Compounding reuse: Adds selective automation and reusable capabilities

The assumed operation completes 100 development tasks per month.

Forty-five percent of tasks belong to 18 recurring workflow families. The others are custom work.

We used illustrative pricing of $2 per million uncached input tokens and $10 per million output tokens, plus an imputed developer labor rate of $75 per hour.

A full-context attempt uses approximately 260,000 input tokens. A targeted attempt uses 95,000.

To avoid assuming that less context is automatically better, we penalized targeted retrieval by two percentage points of first-attempt correctness.

We also included automated checks, retry costs, human review, and maintenance.

Reusable automation requires a three-hour engineering investment plus an initial model expense, and can only be created after a workflow demonstrates sufficient repetition.

These are assumptions, not measurements of a real company's operating costs. The experiment tests how different economic mechanisms interact.

3. The First Surprise: Fewer Tokens Can Cost More Money

Here are the central simulation results after 24 months.

Full context: AI spending $2,280, total cost including labor $40,767
Bloated instructions: AI spending $2,736, total cost including labor $41,228
Full context + cache: AI spending $1,570, total cost including labor $40,045
Targeted retrieval: AI spending $1,263, total cost including labor $41,612
Retrieval + cache: AI spending $1,035, total cost including labor $41,383
Compounding reuse: AI spending $1,125, total cost including labor $34,918

Values are medians across 600 simulated runs, rounded to the nearest dollar.

Notice what happened to targeted retrieval.

Its model spending fell significantly.

Yet its total cost increased.

Why?

We introduced a relatively small reduction in first-attempt correctness. Because missed requirements and failed attempts require additional human attention, those extra retries cost more than the saved inference.

This is an important warning about optimizing development using token counts.

A model that consumes half as many tokens is not necessarily half as expensive to employ.

Its true cost depends on how often its output needs correction.

The objective cannot simply be context reduction.

It must be context reduction without unacceptable deterioration in verified outcomes.

4. The Second Surprise: The Best Strategy Gets Worse Before It Gets Better

The compounding-reuse strategy did not immediately win.

During the opening months, it had to pay for building reusable capabilities while simultaneously performing ordinary development tasks.

Those initial investments created additional cost.

Here is how the simulation evolved.

3 months: full-context cumulative cost $5,052, compounding-reuse cumulative cost $5,343
6 months: full-context cumulative cost $10,153, compounding-reuse cumulative cost $10,048
12 months: full-context cumulative cost $20,385, compounding-reuse cumulative cost $18,747
24 months: full-context cumulative cost $40,767, compounding-reuse cumulative cost $34,918

By the third month, the more sophisticated system had spent approximately $291 more.

By month six, its median cumulative cost had moved just below the baseline.

At one year, the advantage was approximately $1,638.

At two years, it had grown to approximately $5,849.

This is what compounding efficiency can look like.

Early work produces infrastructure.

Infrastructure reduces the cost of repeated work.

Repeated work creates more opportunities to identify what should become infrastructure.

The critical change is not necessarily that an agent becomes smarter. It is that the software system surrounding the agent becomes more capable.

However, this result depends on continued reuse.

Without sufficient repetition, the upfront investment may never be recovered.

5. Repetition Changes Everything

We repeated the simulation under different assumptions about how much development work belonged to recurring workflow families.

The results changed dramatically.

15% of tasks recurring: two-year cost reduction ~1.5%
45% of tasks recurring: two-year cost reduction ~14.3%
65% of tasks recurring: two-year cost reduction ~26.2%

At just 15% recurring work, the median savings nearly disappeared, and some simulation runs produced losses.

At 65%, the benefits became much more substantial.

These results reveal a useful way to think about architectural investment.

Not every repeated action deserves a reusable abstraction.

A task completed twice may be cheaper to perform manually.

A task repeated hundreds of times across several applications may justify considerable upfront engineering.

The deciding factor is the expected future value of reuse.

A good automation investment must account for its creation cost, maintenance cost, operational risk, and likely number of future executions.

Without that calculation, teams can easily over-engineer their systems in the name of efficiency.

6. The Most Important Savings Weren't AI Tokens

Another result deserves attention.

In the central simulation, the full-context strategy spent approximately $2,280 on AI.

The compounding-reuse strategy spent approximately $1,125.

That's a reduction of about 51%.

But the difference in human labor costs was even more consequential in absolute dollars.

The full-context strategy incurred approximately $38,473 in imputed labor.

The compounding-reuse strategy incurred approximately $33,789.

Of the roughly $5,849 total savings, approximately $4,684 came from human labor.

The lesson is that a strategy designed around AI efficiency can create much greater value by reducing the need for human intervention.

A reusable workflow with strong verification can eliminate repeated setup, debugging, review, and correction work.

Interestingly, the compounding-reuse strategy spent slightly more on AI than the targeted-retrieval-plus-cache strategy.

But it spent much less on total development.

That distinction matters.

The cheapest AI workflow is not necessarily the cheapest software-development workflow.

7. What This Means for a Portfolio of Products

Consider a portfolio like Alludio, where several distinct products may share infrastructure.

One application publishes articles.

Another documents physical products and could sell them.

Another handles sports competition.

Another is producing animated media.

At first glance, these projects seem different.

And much of their product-specific logic should remain different.

But beneath the surface, recurring patterns emerge: media ingestion, authentication, permissions, content publishing, data export, automated testing, deployment, and notifications.

These patterns represent opportunities for accumulated learning.

Suppose an AI agent spends considerable time developing a reliable media-processing pipeline for an article publication.

The first implementation may require architectural research, implementation, debugging, and testing.

The second application should not require that same investigation.

If the pipeline can be packaged behind a stable interface, subsequent products should invoke it rather than rediscover its internals.

The same principle applies to AI-generated articles.

Researching a subject may remain intelligence-intensive because every topic introduces new uncertainty.

But generating the article's publication record, validating its schema, producing formatted assets, running quality checks, and preparing distribution should become increasingly deterministic.

Animated production provides another example.

A new scene may require creative decisions, visual direction, and quality evaluation.

But the processes of storing assets, tracking scene versions, applying technical specifications, rendering variations, and collecting review feedback can potentially become reusable software.

In each case, the important distinction is between creative or technical uncertainty that genuinely requires intelligence and repeatable execution that should eventually be handled by software.

8. The Research Also Exposes a Danger: Context Reduction Can Remove Something Critical

In August 2026, researchers introduced CodeGrep, a specialized retrieval agent designed to improve coding-agent context selection.

In its evaluation on 500 SWE-bench Verified tasks, it reduced token use on resolved instances by 19% and agent rounds by 15%, while maintaining a comparable task-resolution rate.

But another retrieval method in the same study degraded downstream performance when its precision was insufficient.

Research: CodeGrep, August 2026

This is a critical distinction.

A targeted context system is only useful when it supplies the information necessary for correct decisions.

An agent may perform excellent reasoning on an incomplete representation of the problem and still arrive at the wrong answer.

That is precisely why retrieval quality should be tested against completed tasks and correctness checks, not merely against smaller token counts.

And reusable automation has its own version of this problem.

An outdated template can reproduce an old mistake with extraordinary consistency.

If a shared service contains a security flaw, every dependent application may inherit it.

Automation amplifies reliability when the underlying implementation is reliable.

It can also amplify defects.

This is why automated tests, explicit contracts, versioning, ownership, and maintenance cannot be treated as optional overhead.

They are part of what makes reusable capability economically valuable.

9. A Different Model of Software Development Begins to Emerge

The conventional mental model is straightforward.

A developer identifies a task.

The developer or an AI agent completes it.

Another task arrives.

The process repeats.

A compounding-development system works differently.

The first time a problem is encountered, an agent explores it.

The second time, the system should benefit from the original discovery.

If the problem keeps recurring, its solution should be evaluated for extraction into a reusable capability.

Once extracted and tested, future work should primarily involve invoking and validating that capability.

Eventually, the agent may no longer need to understand the internal implementation at all.

It only needs to understand the contract.

That changes the shape of development costs over time.

At first, the organization spends heavily on discovery.

Then some of that discovery is embedded into documentation, tests, schemas, interfaces, and software.

As the reusable system matures, familiar problems become cheaper.

The remaining intelligence can focus increasingly on genuinely new problems.

There is a theoretical extreme here.

Imagine that every solved problem could be perfectly transformed into reusable software.

After enough development, the marginal cost of familiar work would approach its execution and verification cost rather than its original discovery cost.

Reality is less convenient.

Requirements evolve. Dependencies change. Old solutions become obsolete. New problems rarely match old problems perfectly.

Nevertheless, the direction is meaningful.

The objective becomes accumulating useful capabilities faster than the complexity of maintaining them grows.

10. The Next Experiment Should Use Real Project Telemetry

Our simulations provide a useful hypothesis, not proof that a particular engineering system will save 14% or 26%.

We assumed a particular distribution of task repetition, success rates, model costs, human review time, and automation reliability.

We also assumed failures were detected by verification before tasks were considered completed.

Real software projects may behave differently.

The next investigation should therefore use actual development tasks.

A practical experiment could compare similarly scoped work using normal agent workflows, targeted context retrieval, and selectively automated processes.

Every task would record model spending, input and output tokens, context retrieval activity, human review time, retries, regressions, and whether reusable infrastructure was created.

The same tests and acceptance criteria would apply across approaches.

Over several months, we could evaluate not only immediate task costs but how the cost of repeated workflow families changes.

It would also be useful to track when reusable capabilities become liabilities.

If maintaining a shared abstraction begins to cost more than it saves, the system should be willing to retire or simplify it.

That may ultimately be as important as discovering opportunities for reuse in the first place.

Conclusion: The Best Development System Learns to Need Less Help

AI development is often described as a competition to produce increasingly intelligent agents.

But another competition is developing alongside it.

Who can build the systems that make intelligent agents less necessary for familiar work?

The research suggests that context has substantial, sometimes hidden costs.

Our simulations suggest that eliminating redundant reasoning is useful, but that accumulating verified, reusable capabilities can produce greater long-term returns when work repeats often enough.

The economic advantage does not emerge automatically.

It must be engineered.

That means treating context as a managed resource, testing whether smaller context preserves correctness, measuring total costs rather than tokens alone, and turning genuinely repetitive solutions into durable software.

The ultimate goal is not an AI agent that knows everything about every project.

It is a development system that knows what has already been solved, can reliably reuse those solutions, and brings powerful intelligence into the process only when there is something new worth understanding.

The most efficient future may not be the one where AI writes more code. It may be the one where yesterday's AI work eliminates the need to write tomorrow's.

Did this change how you think about it?

About this piece

Kind
Research essay. An argument grounded in published research.
Evidence
Limited
Research
Standard, 0 sources
Reviewed
Development
Developed in one recorded pass, beginning in November 2026. How it is judged
Record
sha256:95c2781471356bedce034b3d772624a5bd9129d50500fa6934f8f88d22c25ca6

How this was made