Yamakei.info

Notes on building reliable software with AI in the loop.

From General to Granular: When AI Agents Change Whether to Build Software at All

Generalization used to be the dominant move at scale. Agents introduce a third option that solves the specific instance without paying the generalization tax — and that changes what software is still worth writing.

2026-05-18

The Inversion

The conventional automation heuristic — "if you do it more than twice, automate it" — is starting to feel wrong. Not because the math has changed, but because a third option has shown up between "do it manually" and "build software for it."

Software was expensive because it had to generalize. To serve N users with M variations, you pay for:

  • the abstraction that lets one codebase fit many cases,
  • the implementation of that abstraction,
  • and the long tail of customization, configuration, and edge-case handling that follows.

Most of what makes "real" software hard isn't the core logic. It's the generalization tax. Agents collapse a meaningful slice of that tax — they can solve the specific instance well, on demand, without the codebase ever having to anticipate it.

This essay argues that AI is changing not just how we build software, but whether and when we should.

The Conventional Logic

The "build software" decision used to look like this:

OptionCostFit
Do it manuallyLow up-front, high recurringPerfect (you adapt every time)
Bespoke scriptMedium one-timeGood — but only for your case
Generalized productHigh one-time + maintenanceDecent across many cases, never perfect for any

The dominant move at scale was always "generalize" — because the per-user cost of a general product, amortized, beats per-user bespoke work. That's the entire SaaS thesis.

The Third Option

A new option appears:

Agent-mediated case-by-case solution. No abstraction up-front. The agent assembles the specific answer to the specific instance, with full access to the user's actual context. The "generalization" lives in the model, not in your codebase.

This option has properties the old three didn't:

  • Per-instance fit without per-instance build cost. The result can be tailored to one person's data, preferences, edge cases — without anyone writing code that knows about those cases.
  • Quality decouples from scale. Generalized products got cheaper per user as they scaled. Agent-mediated solutions are cheap per instance regardless of how few instances exist.
  • Edge cases stop being expensive. What used to be the "long tail of customization" is now just another instance the agent handles.

The Phase Shift, Compressed

EraWhen to build software
Pre-AIWhen manual repetition cost > generalization cost amortized over users
Agent eraOnly when the agent benefits from a substrate — durable state, structured interfaces, deterministic guarantees, audit trail — that prompts alone can't provide

Software still gets built. But the target shifts: less user-facing surface, more agent-facing substrate. The user gets specificity from the agent; the agent gets reliability from the software.

The Pattern in the Wild

The strongest concrete instance of the granular pattern winning a real market right now is Claude in Chrome — a browser extension that lets the agent read, click, and navigate websites alongside the user, in the user's existing Chrome, using the user's already-logged-in sessions. There is no task-specific software in that picture. The agent assembles the per-instance answer by puppeteering whatever general-purpose web UI happens to be open.

A few months ago I would have called this the wrong surface for agents — human UIs are optimized for human cognition, not for agent operation. DOMs are brittle. Sessions are shared. Layouts shift. Implicit human context is ambiguous.

All of that is still true, and it doesn't matter — yet. The extension model absorbs every one of those weaknesses by keeping the autonomy window small and the user co-present:

  • Zero install, zero setup. Click "Add to Chrome." The cost of trying it is roughly zero.
  • Co-watched trust. The agent acts in the tab you're already looking at. "Ask before acting" plus high-risk approval means you're functionally a copilot, not a delegator — which maps cleanly onto how most people currently feel about letting an agent act for them.
  • Official infrastructure. No reverse-engineering, no token arbitrage, no ban risk.
  • The browser already covers ~all useful per-user tasks. Gmail, GitHub, Slack, Google Docs. If you can puppeteer those, you've covered most of what an agent needs to do for one person.

What makes the extension model sufficient is exactly the granularity shift. Nobody had to build a task-specific app for "summarize this thread and propose a reply" or "find me a contractor and draft an outreach." The browser paid the generalization cost once. The agent provides per-instance fit on top.

You can see the same shift inside one person's portfolio. The earlier work — RallyHub, Moyai, Kokoro — was user-facing apps: surfaces designed to generalize across users. The later work — mpg, HouseholdOS, IntentLayer — is agent-facing infrastructure. Same instinct toward "build something durable," redirected at the substrate the agent calls into rather than the surface the user clicks on. The portfolio shift is the granularity shift playing out one project at a time.

Windows vs. Linux, Not iPhone vs. Android

It's tempting to read Claude in Chrome and agent-native infrastructure as two products competing in the same niche. They aren't. The right analogy is older:

Claude in Chrome is Windows in the late 90s. Integrated, dominant, beautifully distributed, pre-installed on the surface users already inhabit. Agent-native infrastructure — mpg, HouseholdOS, the open agentic stack — is Linux. Modular, open, scriptable, requires assembly.

What that frame predicts:

  • Consumer surface goes to Claude. Same reasons Windows won the desktop: users are already there, official integration, near-zero setup, network effects from being where the work happens. Trying to out-distribute the browser extension is the wrong bet, the same way trying to out-distribute Windows on the desktop was the wrong bet.
  • Servers and infrastructure went to Linux. Not because Linux beat Windows on consumer ergonomics — it didn't — but because the workloads where openness, scriptability, and per-instance configurability mattered most lived in places consumers don't see.
  • Both layers persist. Linux didn't have to win the desktop to be load-bearing. Most of the internet still runs on it.

The agent equivalent of "servers and infrastructure" is long-horizon work. Tasks that need to run overnight, coordinate across services, hold state across days, make decisions the user won't review one-by-one, plug into scoped credentials, leave audit trails. The places the extension model can't reach.

This frame is strictly stronger than "phase 1 now, phase 2 later." It explains why both layers persist rather than predicting one supersedes the other.

Where the Granular Pattern Stops

The browser-extension model has a clean ceiling, and naming it is useful because it's also the line where the granular pattern stops being sufficient on its own.

The ceiling sits roughly at "tasks the user could do themselves in a minute." One tab session, user co-watching, single logged-in service, failure recoverable by retry. Inside that envelope, an agent handing per-instance answers is plenty.

Step outside it and the assumptions collapse:

  • Autonomy duration past one session. Agents that run overnight, monitor things while you sleep, restart on failure, hold context across days — you can't co-watch those. Trust has to come from somewhere other than "the user is looking."
  • Shared-cookie blast radius. Co-watching bounds the risk of the agent inheriting your full browser identity to the seconds you're watching. If the agent is going to act for hours or days, your full session credentials are the wrong scope — too broad, too hard to revoke, too entangled with everything else you do in the same browser.
  • Multi-service coordination. "Read the email, check the calendar, find a slot, draft the reply, post the result" is already a stretch for a co-watched browser session. "Do that every weekday based on a policy I set last month" doesn't fit.
  • Multi-agent boundaries. My agent talking to a colleague's agent without leaking either side's private context — the browser-extension model doesn't even try.

Anthropic is already signaling that they see this ceiling. Claude Dispatch — assign a task and walk away — is the side panel's next step, and it lands the user squarely in the delegated trust model that agent-native infrastructure was always pointed at, routed through official infrastructure instead of reverse-engineered sessions. Side panel → dispatched task → eventually persistent worker. Even inside one vendor's product line, the progression is visible.

The browser extension knows what it is. Past the ceiling, you need durable infrastructure underneath.

What Still Gets Built

The substrate, not the surface.

The four-layer stack from Tokens Are Not Productivity — orchestration, structured interfaces, governance, evaluation — is exactly what survives the granularity shift. Those are durable in a way the user-facing app isn't, because the agent needs them more as it solves more specific instances, not less.

Concrete examples from the portfolio:

  • HouseholdOS doesn't generate UIs for every household scheduling case. It provides a deterministic constraint engine and a structured memory model. The agent assembles the case-specific answer; the substrate guarantees the answer doesn't violate scheduling invariants.
  • Ayumi doesn't build a per-user note-taking app. It provides structured memory plus agent-mediated retrieval — the user's specific question gets a specific synthesis, but the substrate handles persistence, scoping, and audit.
  • mpg didn't try to be a multi-project IDE. It provided routing and session persistence — the agent did the per-project work; the substrate just made sure the agent got to the right project with the right context.

These are the workloads the extension model can't reach: persistent context, minimal-permission credentials, multi-agent coordination, audit. They're the Linux-on-servers position, not the Linux-on-desktop one. The bet isn't to displace the dominant platform on its turf; it's to be the substrate that the long-horizon workloads run on when the autonomy window extends past what co-watching can hold.

A Heuristic for Stopping

When not to build:

  • One-shot retrieval. Answer one question, one time, from existing data. The agent does this for free. Don't build a search UI.
  • Formatting and calculation. Convert this CSV, summarize that thread, compute this ratio. Don't ship a tool; ask the agent.
  • Lookup with judgment. "Find me the right contractor for this kitchen, given my constraints." The agent assembles the answer from public data and your context. A directory site can't compete.

When to build:

  • Durable memory. The system needs to remember decisions across sessions — what scope was earned, what constraints were committed to, what's already been tried.
  • Multi-step transactions. Operations that have to succeed or roll back together, where partial completion is worse than no completion.
  • Deterministic constraints. Rules that absolutely must hold (no double-booking, no negative balances, no missing audit entries). The substrate enforces them; the LLM doesn't get a vote.
  • Auditability. When you need to prove later what was decided, why, and by whom. Agents are non-deterministic; their decisions need durable witnesses.
  • Multi-tenant trust boundaries. When the cost of a leak between users is high enough that "the agent will be careful" isn't a sufficient guarantee.

The pattern: build software where the agent needs help being reliable. Don't build it where the agent already does the job.

Not Just No-Code With Better Tooling

There's a risk this collapses into the recurring "no-code will replace software" trope. Two things separate it:

  1. The substrate-vs-surface line. The "no-code will replace software" pitch usually targeted the substrate too — "you won't need backends, just visual workflows." That has consistently failed because durable state, deterministic constraints, and audit trails are exactly the things visual workflow tools handle worst. The granularity argument goes the other direction: agents replace the surface and make the substrate more important, not less.
  2. The per-call quality. Previous "throwaway" approaches couldn't actually do the specific job well enough to ship. Agent-mediated specific solutions can. The throwaway is the product — but only for problems where per-instance, in-context assembly is sufficient.

If the agent's per-call cost (tokens, latency, error rate) exceeds the amortized cost of pre-built software, you build. As that ratio moves — and it's moving fast in one direction — the line between "build" and "don't build" shifts further toward "don't."

Where This Lands

The shift from generalization-as-virtue to granularity-as-virtue is the underlying paradigm. Three consequences fall out:

  • The arc of one developer's work — from user-facing apps toward agent-facing substrate — isn't a stylistic choice. It's the granularity shift expressed at the portfolio level.
  • The surface and the substrate aren't competing products in one market. They're different layers of the same stack, on different sides of the autonomy-duration ceiling.
  • The four-layer stack isn't a list of nice-to-haves. It's the answer to "what software is still worth writing when the agent handles the specific case."

The old question was: should I build this, or do it manually? The new question is: should I build this, or let the agent assemble it per call? The answer turns on whether the agent benefits from durable substrate — and increasingly, the honest answer for the surface is "no, just let the agent handle it."

What's left to build is the part the agent can't.