As December starts, I'm thinking about the upcoming year. In 2027, I think smaller, cheaper models will play a much greater role in coding agents.

I've been writing [Nanna](https://dominic.computer/nanna), a local coding agent, since the end of 2025, and I've been using it as a case study in local intelligence applications for coding. These are my core takeaways:

1. There are many rote tasks in software development that could be deferred from frontier models to smaller, less capable models. The rote tasks are slightly different in different teams. These differences are important: a bank's core APIs shouldn't be tested or deployed in the same way as an internal static web app, or vice versa. Teams that can code with AI have already encoded these specificities into their codebases or their agents.
2. Users shouldn't interact directly with local coding agent models as their daily driver. It's not worth their time today. It's much, much easier to interact with more capable models which dispatch and manage tasks to less capable ones.
3. Local models should not be in the hot path during incident response or other high-urgency flows, even for rote work. We act differently while doing normal development than while mitigating an incident. The tooling should also be different.

I expect that the industry will dig more into small models in 2027, and that deferring rote work to them will become the norm. I think this mostly because they're so much cheaper, and the effort to offload work to them is fairly small.

## Money & CO2

<style>
.chart-caption { color: #666; font-size: 14px; line-height: 1.5; margin: 16px 4px 0; }
.chart-caption a { color: #333; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) {
.chart-caption { color: #999; }
.chart-caption a { color: #ccc; }
}
</style>

<figure style="margin: 1.5em 0;">
<div role="img" aria-label="Bar chart comparing energy per chat query in joules: Qwen3-8B at 287 J vs Qwen3-235B reasoning (A22B thinking mode) at about 6300 J">

```mermaid
xychart-beta
    %% horizontal-x-labels
    title "Smaller models use less electricity per query"
    x-axis ["Qwen3-8B", "Qwen3-235B reasoning"]
    y-axis "Joules / request" 0 --> 7000
    bar [287, 6300]
```

</div>
<figcaption class="chart-caption">Energy per chat query, from the <a href="https://huggingface.co/datasets/ml-energy/benchmark-v3">ML.Energy benchmark-v3 dataset</a> (<a href="https://ml.energy/leaderboard">ml.energy/leaderboard</a>, <a href="https://arxiv.org/abs/2505.06371">arXiv:2505.06371</a>).</figcaption>
</figure>

We can dig into the numbers on [Nanna's homepage](https://dominic.computer/nanna) to understand why local models make sense: if frontier models take 1-2 orders of magnitude more electricity to process the same request as a smaller local model, and token metering today bills at 1-2 orders of magnitude above electricity costs, then it's less expensive to defer to a local model compared to a frontier model so long as local agents can do the same work in no more than 100x as many requests (2 orders of magnitude).

They are also more environmentally sound, purely in terms of electricity generation, if they can perform the same work with no more than 10x as many requests (1 order of magnitude). The environmental inflection point increases if local model usage extends the useful lifespan of consumer devices and reduces datacenter demand, with the associated hardware, infrastructure, and water requirements.

## Laptop-Grade Harness Design

So, frontier models work on greater autonomy and new capabilities, while the name of the game in local intelligence is optimization: better interface design, tool selection, etc.

With Nanna, I use some 2025/2026-era harness design patterns because, unlike with frontier models, laptop-friendly model capabilities don't change as quickly as frontier ones. This is especially true in tool design, where the tool list for Nanna subagents needs to be tiny yet self-explanatory enough to be usable by models with a 64k context window.

General-intelligence laptop model capabilities haven't changed much since [gemma4](https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/) came out in April 2026. More recent results are in model specialization and distillation.

This stability lets us perform a level of harness optimization that would be impossible at the frontier (and, incidentally, counterproductive). In the mid-to-long term, the optimization pathway for harnesses like Nanna is that they can work with increasing capabilities on the same devices, or equivalent capabilities to today on smaller devices.

Nanna's limited scope also makes security guardrails much easier to implement: even if you want your agent of choice to have complete access to your computer and everything on it, Nanna does not need that level of permissiveness for rote coding tasks.

## Agent-to-Agent Delegation Interface

The idea for Nanna came to me in 2025 when I saw how many tokens I was spending and how much configuration I was setting up for things like retriggering flaky CI and resolving merge conflicts. Hitting subscription caps on busywork felt counterproductive.

I work in AI-DevX, so I'm familiar with how these costs and tooling gaps show up at scale. Across the industry, teams have been reining in AI spend by matching models to tasks, tuning reasoning effort, trimming context, and adding spend alerts. Deferring work to local models has received much less attention.

This year, while I was studying up on the MCP working group's initiatives to serve as a subject matter expert on the protocol, I learned about the [task interface](https://modelcontextprotocol.io/extensions/tasks/overview), which lined up with Nanna's interface for agent-to-agent task deferral. Local agents aren't ready to replace frontier models, but they don't have to do everything to be useful.

## Why Local Models Aren't Already Everywhere

Mostly, the gaps in using local intelligence weren't filled because they weren't an industry priority in 2026.

Industry focus was on tooling for deferring some tasks to off-device services instead: different hosted systems called background agents, [routines](/blog/2026/routines), code factories, self-healing repos, etc.

That was definitely the right call. Splitting up development into services which can be tuned, scaled, and specialized improves both the throughput and cost management of development compared to foreground-agent-on-laptop flows. Folks could shift development off laptops and into increasingly capable background agents and larger agentic systems.

Delegating to local models looked like the kind of niche cost-saving approach to try after you've exhausted the larger mechanisms. They have the potential to reduce costs in foreground agents, and at the beginning of 2026, there was no certainty that foreground agents would still be worth optimizing.

Now that 2027 is arriving and AI coding cost management is more mature, some investment in local model tooling makes sense.

## Limitations

Where doesn't deferral to local intelligence make sense? The most obvious case is where there is no orchestrating agent. If you have to work directly with local agents constantly, you're likely to get frustrated.

As local coding agents are slow, they shouldn't be part of large-impact incident response, where [MTTR](https://en.wikipedia.org/wiki/Mean_time_to_recovery) is critical. Where the cost of outages is extremely high, it makes sense to use a swarm of very fast, very expensive frontier-model-based agents for remediation. For similarly tight timelines (a critical feature that needs to be delivered before a customer meeting, a security patch before a release), saving minutes is worth spending money.

This leads into the gray area of foreground development. If you're working on valuable things, shouldn't you spend slightly more money to get results faster? Equivalently, if you're working on very valuable things, doesn't it make sense to spend a lot of money, even for small time gains?

Part of this boils down to actual ROI calculations for R&D spend, but part of this is about attention and getting folks working on critical stuff out of their agents' hot paths.

If you're working with a single agent on a single task, the human in the loop generally dominates cost and resource usage. Optimizing for low response time may make sense. Some folks still use agents that way, and there will probably always be cases in which that style of work makes sense.

But, even if folks don't customize their tooling at all, frontier harnesses aren't built as a single foreground agent anymore: they spawn subagents, both as a context management strategy and as part of their control flow to enable parallelism. Some agents even write code to orchestrate these subagents, making agentic workflows on the fly (this pattern is called "[ADAS](https://dominic.computer/blog/2025/adas_and_control)"; an example is [Claude's `ultracode`](https://code.claude.com/docs/en/workflows)).

The core UX concern is conservation of human attention. As long as things are happening behind the scenes in a harness, which is essentially universally the case today, some work could be offloaded.

## Conclusion

Deferring work to local models isn't a savings panacea, but I expect interest in local models will grow in 2027. While more software development will happen off-device, there is a countercurrent to shift some intelligence left in the remaining foreground agents, which presents an interesting and unique harness design problem.