Skip to content

In 2026, the model is only one component: the agent architecture I would actually run in production

Kimi, Jev, the Agents API, and modern coding agents make one thing clear: differentiation is moving from the standalone model to the harness, tools, controls, and verification.

By 6 min read
  • ai agents
  • architecture
  • llm
  • openai
  • software engineering

The model stopped being the system

If I had to summarize what changed in AI agents during 2026 in one sentence, it would be this:

Passage link

the model stopped being the architecture.

Passage link

It still matters. Sometimes it is the most expensive and capable component in the system. But asking only "which LLM is best?" now feels as incomplete as choosing a backend by looking at CPU benchmarks alone.

Passage link

The last few weeks made that especially visible.

Passage link

Kimi Code is pushing up to 1M context, subagents, plugins, and integrated execution. TypeSafe launched Jev around typed decisions. OpenAI launched the Agents API in public beta on September 10, 2026, exposing the harness and infrastructure behind long-running agents. Coding agents increasingly treat context, tools, environments, and long tasks as infrastructure problems, not prompt problems.

Passage link

That changes what I consider a good AI architecture.

Passage link

Before: one model in the middle of everything

A first-generation LLM application often looked like this:

Passage link
txt
user
 ↓
huge prompt
 ↓
LLM
 ↓
JSON
 ↓
application
Passage link

Then tool calling arrived:

Passage link
txt
user
 ↓
LLM ↔ tools
 ↓
result
Passage link

The problem is that, as more responsibility moves into the same model, it has to decide:

Passage link
  • what to remember;
  • which tool to call;
  • whether to call it;
  • in which order;
  • when to stop;
  • whether the answer is trustworthy;
  • whether it may perform a sensitive action;
  • whether it should ask for help.

That works up to a point. Then it becomes a concentration of responsibility I would reject in almost any other system component.

Passage link

The architecture I prefer today

I would separate at least six responsibilities.

Passage link
txt
┌──────────────┐
│   1. Input   │
└──────┬───────┘
       ↓
┌──────────────┐
│ 2. Decision  │  routing / risk / classification
└──────┬───────┘
       ↓
┌──────────────┐
│ 3. Planner   │  decomposes objective
└──────┬───────┘
       ↓
┌──────────────┐
│ 4. Executor  │  tools + environment
└──────┬───────┘
       ↓
┌──────────────┐
│ 5. Verifier  │  tests / schema / policies
└──────┬───────┘
       ↓
┌──────────────┐
│ 6. Delivery  │  result / PR / approval
└──────────────┘
Passage link

These blocks can use different models. Some do not need AI at all.

Passage link

That is the key.

Passage link

1. Input: turn a request into observable state

Before reasoning begins, I want enough state to reproduce the run.

Passage link
ts
type RunContext = {
  runId: string
  userId: string
  objective: string
  permissions: PermissionSet
  budget: {
    maxTokens: number
    maxDurationMs: number
    maxToolCalls: number
  }
  artifacts: ArtifactRef[]
}
Passage link

If I cannot reconstruct what the agent knew and what it was allowed to do, debugging a failure becomes archaeology.

Passage link

2. Decision: not every gate needs a frontier model

Routing, classification, and scoring are natural places for smaller or specialized models.

Passage link

Jev is a recent example of that direction: instead of generating text, it returns typed decisions with confidence.

Passage link

Even without Jev, the principle already applies:

Passage link
ts
if (isDeterministic(input)) {
  return handleWithCode(input)
}

if (isLowRiskClassification(input)) {
  return cheapClassifier(input)
}

return reasoningModel(input)
Passage link

Using the strongest model for every if is technically lazy and economically wasteful.

Passage link

3. Planner: a plan is a hypothesis, not a commandment

A planner should produce a decomposition that can be inspected.

Passage link
json
{
  "steps": [
    { "id": "s1", "action": "inspect repository" },
    { "id": "s2", "action": "locate authorization pattern" },
    { "id": "s3", "action": "implement change" },
    { "id": "s4", "action": "run focused tests" }
  ]
}
Passage link

The executor should be allowed to invalidate a step when new information appears.

Passage link

I avoid architectures where the model's first thought becomes a rigid twenty-step plan. Agents operate in environments that reveal information during execution.

Passage link

Planning needs to be revisable.

Passage link

4. Executor: a tool is a capability with policy

The most dangerous output from an agent is not incorrect text. It is an incorrect action.

Passage link

So I would model tools together with permissions:

Passage link
ts
const tools = {
  readFile: allow('workspace:read'),
  writeFile: allow('workspace:write'),
  createPullRequest: allow('github:pr:create'),
  mergePullRequest: deny(),
  deleteDatabase: deny(),
}
Passage link

The policy should not live only inside a prompt.

Passage link

"Do not delete production" in natural language is a recommendation. A missing permission is architecture.

Passage link

5. Verifier: the least glamorous and most valuable component

I try to turn as much quality as possible into deterministic checks.

Passage link

For code:

Passage link
  • lint;
  • typecheck;
  • tests;
  • build;
  • diff policy;
  • security scans.

For documents:

Passage link
  • schema;
  • required fields;
  • business rules;
  • valid references.

For automation:

Passage link
  • idempotency;
  • invariants;
  • financial limits;
  • authorization.

An LLM can critique its own output. I use that as an additional signal, not a replacement for checks that code can perform better.

Passage link

6. Delivery: the result should enter the workflow people already use

In DevAgent, the natural delivery mechanism is a pull request.

Passage link

In another domain it could be:

Passage link
  • a document draft;
  • an approval queue item;
  • an enriched support ticket;
  • a classification proposal;
  • a report with evidence;
  • a transaction waiting for authorization.

I am skeptical of AI products that create a new work console without a good reason. If a company already approves code in GitHub and handles support in its CRM, the agent should show up there.

Passage link

Long context belongs where it actually helps

Kimi K3 and other huge-context models make long tasks more practical.

Passage link

I would use that as planner/executor capability, not as a replacement for context architecture.

Passage link

The agent still needs to distinguish:

Passage link
  • stable information;
  • retrievable information;
  • execution state;
  • historical memory;
  • noise.

The fact that something fits does not mean it belongs in the prompt.

Passage link

Observability needs to be first-class

In a traditional backend I want traces, metrics, and logs. In an agent I want those plus more:

Passage link
ts
type AgentTrace = {
  modelCalls: ModelCall[]
  toolCalls: ToolCall[]
  decisions: Decision[]
  approvals: Approval[]
  tokenUsage: TokenUsage
  retries: Retry[]
  finalOutcome: Outcome
}
Passage link

And I want product metrics:

Passage link
  • completion rate;
  • human intervention rate;
  • cost per completed task;
  • time to result;
  • rollback rate;
  • false automation: runs marked complete that a human had to redo.

Without this, a company is buying the feeling of automation.

Passage link

Evals should be born with the product

Another common mistake is to build the agent first and ask how to measure it later.

Passage link

I would rather maintain a representative task set from early on:

Passage link
txt
10 trivial
20 routine
10 ambiguous
10 high-risk
10 the agent should refuse or escalate
Passage link

Every model, prompt, tool, or memory change runs against that set.

Passage link

That is the closest thing to regression testing for probabilistic behavior.

Passage link

The near future looks more modular

What Kimi, Jev, the Agents API, and the evolution of coding agents suggest to me is not a future with one definitive model.

Passage link

It is a future with more specialized components:

Passage link
  • a strong model for reasoning;
  • a fast model for simple execution;
  • a decision model for gates;
  • retrieval for context;
  • deterministic code for invariants;
  • a harness for coordination;
  • a sandbox for execution;
  • evals for regression;
  • humans retaining authority where risk requires it.

That looks less like "talking to an intelligence" and more like designing a distributed system whose most unpredictable component is also extremely capable.

Passage link

For backend engineers, that is a useful shift in perspective.

Passage link

We already know how to deal with components that fail. We know timeouts, retries, circuit breakers, queues, idempotency, and observability.

Passage link

The new part is applying the same discipline to probabilistic reasoning.

Passage link

The question I use now

When I evaluate an agent idea, I try not to ask "which model should I use?" first.

Passage link

I ask:

Passage link

which part of this workflow truly requires judgment, which part is deterministic, and where must a wrong decision stop before it becomes an action?

Passage link

Once that is clear, model selection gets much easier.

Passage link

References

Reference with source and version

Download BibTeX

Suggest a correction

https://lagrotti.dev/blog/model-is-not-the-architecture-ai-agents-2026 · EN

Your text stays in this form until you prepare and open the draft. You review and publish the issue on GitHub.

Which topic should go deeper?

Results are unavailable right now

Share this article

LinkedInWhatsAppXEmail

Need someone for a challenge like this one?

I work end to end: architecture, development and running in production. I'm open to remote roles and custom projects.