Undercurrent.
All articles16 min left
Undercurrent research16 min read
Undercurrent · Deep Dive · Technology

The Agent
Stack

AI agents are not better chatbots. They are systems that combine models, tools, memory, planning, permissions and execution loops to complete work across time. As foundation models commoditise, the durable value migrates to the harness layer — the system that turns raw model capability into reliable labour.

AI AgentsHarnessCodingEnterpriseGovernance2026
75%
AI-generated code at Google
engineer-approved; up from 50% (Cloud Next 2026)
$380bn
Anthropic Series G valuation
$14bn run-rate; $2.5bn from Claude Code
518.7m
GitHub PRs merged in 2025
+29% YoY; 80% of new devs use Copilot in week 1
4 / 30
Agents with safety evals
MIT AI Agent Index 2025 — most fields blank

The chatbot era was about conversation. The agent era is about delegation. That distinction sounds small. It changes the architecture of the product.

The unit of work is becoming an outcome.

01
From Chat To Delegation

Software Is Beginning To Receive Work

On a Friday evening in November 2025, Peter Steinberger reportedly built the first version of OpenClaw, a local-first personal AI assistant that now presents itself as a control plane for sessions, channels, tools, events, cron jobs and multi-agent routing. The one-hour origin story still needs independent verification, but the open-source repository itself is real and sizeable. On 14 May 2026, the public GitHub page showed roughly 372,000 stars, 77,000 forks, almost 50,000 commits, and a README describing a secure, local-first assistant able to speak, listen, use tools, coordinate events and run across devices.

That is the point. The important story is not whether one repository grew faster than every project in GitHub history. The important story is that software development has entered a new phase in which the interface is no longer only a chat window, the product is no longer only a model, and the unit of work is no longer only a prompt.

A chatbot answers. An agent plans, calls tools, changes state, monitors results, and hands back either a completed task or an auditable failure.

Weekly Enterprise messages have grown roughly 320× year on year. Enterprise users report saving 40 to 60 minutes per day. Frontier workers send six times more messages than median workers; frontier firms send twice as many messages per seat.

— OpenAI, The State of Enterprise AI 2025

The market has noticed. Anthropic's February 2026 funding announcement put the company at a $380 billion post-money valuation, with $14 billion of run-rate revenue and Claude Code run-rate revenue above $2.5 billion after general availability in May 2025. Anthropic also cited an analysis estimating that 4% of all public GitHub commits worldwide were authored by Claude Code. Coding agents are the first mass-market wedge for autonomous knowledge work.

Yet the deployment reality is messier than the adoption curve suggests. PwC's 2025 agent survey shows 88% of executives planning to increase AI-related budgets because of agentic AI, but 68% reporting that half or fewer employees interact with agents in everyday work. Trust falls sharply for high-stakes tasks such as financial transactions and autonomous employee interactions. The frontier is moving faster than the enterprise operating model.

02
What An Agent Actually Is

A Control Loop, Not An Interface

The term "agent" is now used too loosely. Vendors apply it to chatbots with function calling, workflow automations with an LLM step, vertical SaaS copilots, browser automation tools and autonomous enterprise processes. The result is conceptual fog. A cleaner definition:

An AI agent is a goal-directed software system that uses a model to reason over context, select actions, call tools, observe results, update state and pursue an outcome under explicit constraints.

The model is necessary but insufficient. A model supplies language, reasoning and pattern recognition. The agent harness supplies memory, tools, permissions, monitoring and control. The business application supplies workflow context, distribution and economic demand. The agent emerges from the relationship between all three.

System typeUser givesReturnsState changeFailure mode
Search engineQueryRanked linksNone or minimalBad retrieval, SEO manipulation
ChatbotPromptText answerUsually noneHallucination, weak grounding
CopilotContext plus intentSuggested completion or actionHuman approves changeOverreliance, subtle errors
Workflow automationTrigger and rulesDeterministic actionPre-definedBrittle logic, integration failure
AI agentGoal and constraintsCompleted task, partial work or escalationDynamic and tool-mediatedPermission overreach, cascading error, opaque accountability

Five system types. The agent is the only one that pursues an outcome through tools while the world changes around it.

The MIT AI Agent Index defines inclusion around autonomy, goal-directedness and tool use. It requires that an agent operate with minimal human oversight, make consequential decisions without continuous user input, issue multiple autonomous tool calls, receive high-level task specifications rather than step-by-step instructions, and use tools or APIs that create substantial environmental changes. That definition captures the difference between a model that says what to do and a system that does it.

The agent is therefore best understood as a control loop. It observes the environment, reasons over the current state, acts through tools, receives feedback, and repeats. As the loop lengthens, the system becomes more valuable and more dangerous. A one-step tool call is a convenience. A 50-step autonomous sequence across production systems is an operational risk.

03
The Five-Layer Framework

Where Capability Becomes Trusted Autonomy

The agent economy can be divided into five layers. Each has different economics, different control points and different risks. The layers are not perfectly separable in practice; large companies will bundle across them. But the framework is useful because it explains where value accrues as model capability becomes more widely available.

LayerFunctionExample control pointsLikely economics
1. Foundation ModelsReasoning, language, code generation, multimodal understandingFrontier capability, inference cost, latency, context windowHigh value while capability is scarce; margin pressure as models converge
2. Harness & OrchestrationPlanning, tool routing, memory, agent loops, retries, stateWorkflow graphs, tool registries, memory stores, permission gates, evalsPotentially durable — owns reliability and task completion
3. Tool & Action LayerAPIs, browsers, terminals, code editors, databases, enterprise appsIntegrations, write access, identity, secrets, approval workflowsDistribution-sensitive; incumbents have strong advantages
4. Data & Context LayerProprietary knowledge, codebases, documents, customer records, eventsRetrieval, permissions, freshness, lineage, groundingDurable where data is proprietary and context-rich
5. Governance & TrustObservability, audit, sandboxing, policy, compliance, escalationLogs, evals, red-teaming, approval rules, incident responseBecomes mandatory as agents enter regulated workflows

Five layers, five sets of economics. The first wave of value accrued to models. The next wave accrues to systems that make capability deployable.

Foundation Models remain the engine. Frontier model labs retain significant power in the near term, but capability alone is not the whole product. Anthropic's Claude Code traction shows how model capability becomes economically powerful when packaged into a workflow developers use repeatedly. Google's 75% internal code-generation figure says the same thing at hyperscale: the value comes not only from generation, but from code being reviewed, approved and integrated into engineering workflows.

The Harness is where an agent becomes an agent. It defines the task loop: plan, act, observe, retry, remember, ask for approval and stop. It decides which tools are available, when a human is required, which context is retrieved, how errors are handled, and what counts as completion. OpenClaw is a harness. Claude Code is a harness. Cursor is a harness embedded in an editor. GitHub Copilot coding agent is a harness embedded in the GitHub workflow. If models become cheaper, the harness becomes more important — because cheaper intelligence increases the number of tasks worth delegating.

The Tool layer gives agents hands. Code editors, terminals, browsers, databases, SaaS applications, ticketing systems, cloud consoles, payment systems, identity providers and internal APIs. The Model Context Protocol has emerged as one attempt to standardise tool integration; the MIT index found that 20 of 30 indexed agents support MCP. Microsoft, Google, Salesforce, Atlassian and ServiceNow do not need to win the model race to win agent distribution. They already own the places where work happens.

The Data layer is where vertical agents build moats. The best domain-specific agent will not necessarily have the best base model. It will have the best data access, workflow context, evaluation set and feedback loop. In enterprise software, that is often more defensible than raw model performance.

Governance is not a compliance afterthought; it is the condition for deployment. The MIT index found significant transparency gaps around safety, with most safety-related fields lacking public information and only four indexed agents providing agent-specific safety evaluations. The companies that answer the board's questions well will not be selling optional features. They will be selling permission to deploy.

04
Six Early Deployment Patterns

Bounded Autonomy Inside High-Frequency Workflows

The agent market is early, but patterns are visible. The most credible deployments do not start with total autonomy. They start with bounded autonomy inside high-frequency workflows where the payoff is obvious and the review loop is manageable.

PatternWhat the agent doesWhy it worksPrincipal risk
Coding agentWrites code, edits files, opens PRs, runs testsClear tools, fast feedback, high-value labourSilent bugs, permission overreach, insecure code
Code-review agentReviews PRs, flags vulnerabilities, suggests fixesNatural review gate; human retains approvalFalse confidence, missed edge cases
Support agentResolves tickets, retrieves knowledge, drafts repliesLarge volume of repetitive workHallucinated policy, customer harm
Back-office process agentProcurement, finance, HR, operations workflowsStructured systems and repeatable processesCompliance errors, bad approvals
Research agentCollects sources, synthesises findings, drafts documentsTool-rich knowledge work with editorial reviewFabricated citations, weak source hierarchy
Personal operating agentCoordinates messages, calendars, reminders, devicesHigh-context but user-supervised workPrivacy, over-permissioning, identity misuse

Six patterns visible in the field today. Coding leads because the environment is already instrumented for machine participation.

Beyond Google

Software development is the beachhead because the environment was already built for agents. Code compiles or it does not. Tests pass or fail. Git records every change. Pull requests create natural review gates. Issue trackers provide structured work queues. GitHub's 2025 Octoverse data confirms the shift is mainstream: developers merged 518.7m pull requests (+29% YoY); 80% of new developers use Copilot in their first week; half of open-source projects have at least one Copilot-using maintainer; and repositories with coding-agent PRs skew toward larger, older and more-starred projects rather than disposable demos.

05
Four Ways Agents Break In Production

Probabilistic Reasoning, Deterministic Tools

The central operational problem is that agents combine probabilistic reasoning with deterministic tools. The model may be uncertain. The database delete command is not. That creates a new class of failure.

1. Permission overreach. Agents inherit the permissions of the systems that invoke them. The contested AWS/Kiro story is useful precisely because Amazon's own rebuttal points to the real issue. Amazon says the December interruption was not caused by AI taking down AWS, but by user error and misconfigured access controls, limited to AWS Cost Explorer in one region, with additional safeguards including mandatory peer review for production access added afterwards. That does not prove the AI-agent version of the story. It does prove the operational lesson: agentic systems require least privilege, peer review and production-access gates.

2. Context collapse. Agents operate over context windows, retrieval systems, memory stores and tool outputs. They can lose track of constraints, confuse environments, retrieve stale documentation or apply the wrong policy. A model with a large context window is not a substitute for permissioned retrieval, source ranking, environment labelling and state tracking. In many enterprise deployments, the limiting factor will not be whether the model is intelligent enough — it will be whether the agent knows which context is authoritative.

3. Tool-use cascades. Fast Company reports that PocketOS founder Jer Crane claimed a Claude-powered Cursor agent deleted the company's production database in nine seconds after encountering a credential mismatch, finding an API token and issuing a Railway volume-delete command. Railway said this was an outlier involving a rogue customer AI accessing an outdated legacy endpoint, that delayed deletes were patched, and that lost data was restored. The details are contested at the edges. The pattern is clear: a local error can cascade through tools into a production incident. The agent does not need malicious intent. It only needs access, a mistaken plan and no hard stop.

4. Accountability gaps. When a human employee makes a mistake, organisations know how to investigate. When an agent makes a mistake, responsibility is distributed across the model provider, harness vendor, tool provider, internal configuration, human supervisor and enterprise policy. As deployment scales, auditability becomes a purchasing criterion.

The PwC trust gap (PwC AI Agent Survey 2025)
Plan to ↑ AI budgets
88%
Executives expecting agentic AI to drive competitive advantage
≤Half employees use agents
68%
Daily interaction remains uneven across the workforce
Trust agents w/ money
32%
Trust collapses for high-stakes autonomous tasks (illustrative)
Trust agents w/ customers
28%
Customer-facing autonomy is the slowest area to gain trust (illustrative)
06
The Deployment Gap Is The Opportunity

Controlled Autonomy, Not Full Autonomy

PwC's survey shows executives planning larger budgets and expecting competitive advantage, but limited everyday employee interaction and low trust for high-stakes autonomous tasks. OpenAI's enterprise report shows deepening usage, but a widening divide between frontier users and median users. MIT shows a surge in agent deployment, but a shortage of public safety and evaluation information. Taken together, the message is straightforward: the frontier is moving faster than the enterprise operating model. That gap is where the best companies will be built — not in generic chat, not in another thin wrapper around a model, but in the systems that let companies safely delegate meaningful work.

Enterprise barrierWhat it looks likeProduct opportunity
TrustExecutives do not trust agents with money, customers or production systemsPolicy engines, approvals, sandboxing, simulation
IntegrationAgents cannot reach the systems where work happensConnectors, MCP servers, API orchestration, enterprise identity
ObservabilityTeams cannot explain what an agent didTraces, logs, replays, audit trails, eval dashboards
ContextAgents use stale, incomplete or unauthorised dataPermissioned retrieval, lineage, context governance
Change managementWorkers do not know when or how to delegateWorkflow redesign, training, role-based deployment
LiabilityNobody knows who owns an agent mistakeGovernance frameworks, contractual controls, insurance products

Each enterprise barrier is also a product category. The control plane will be sold before the autonomy is.

The near-term winners will not promise full autonomy. They will sell controlled autonomy — agents that may read these systems, write to those systems, spend this amount, contact these people, deploy only after approval, and stop when confidence falls below a threshold.

07
Where Value Accrues

Layered Monopolies And Local Moats

The most durable value is unlikely to sit in a single layer. But the distribution of value will change over time.

In the early phase, model labs capture outsized value because capability is scarce. Anthropic's Claude Code revenue is evidence that model capability bundled into a high-frequency workflow can produce large and rapid monetisation. Google and Microsoft's internal code-generation claims show frontier companies using AI to reshape their own engineering productivity.

In the middle phase, the harness layer gains power. As model quality rises and inference costs fall, the hard problem becomes reliability, integration and governance. The harness owns the task loop and therefore owns the user's trust. It becomes the place where models are swapped, tools are routed, policies are enforced and outcomes are measured.

In the mature phase, value fragments by workflow and data. Horizontal platforms dominate broad distribution. Vertical systems dominate specialised workflows. Governance vendors become mandatory infrastructure. Tool owners tax access. Model providers still matter, but they increasingly compete on price, latency, reliability and ecosystem integration rather than intelligence alone.

LayerCommoditisation pressureDurable moatLikely winners
Foundation modelsHigh for common tasks; lower at frontierScale, data, talent, inference infrastructure, brand trustOpenAI, Anthropic, Google, xAI, Meta and specialised model labs
HarnessLower if deeply embeddedWorkflow data, evals, orchestration, reliability, developer mindshareClaude Code, Cursor, GitHub, OpenClaw-like systems, enterprise agent platforms
ToolsMixedDistribution, identity, existing workflowsMicrosoft, Google, Salesforce, Atlassian, ServiceNow, cloud providers
Context / dataLow where proprietaryData access, freshness, permissions, domain feedbackVertical SaaS, incumbents, data-rich enterprises
GovernanceLow as risk risesCompliance trust, audit depth, incident history, integrationsSecurity vendors, observability platforms, cloud governance layers

If the model is the brain, the harness is the nervous system. It decides what the brain can touch.

08
Strategic Implications

Operating Layers, Not Features

For founders, the lesson is to avoid building undifferentiated chat interfaces. The opportunity is in workflows where there is clear economic value, repetitive task structure, tool access, data advantage and a natural review loop. Coding worked first because it has all five.

For incumbents, the lesson is to protect workflow control points. If agents become the interface to software, then the company that owns the agent may disintermediate the company that owns the application. This is why Microsoft, Google, Salesforce, ServiceNow and Atlassian will not treat agents as features for long. They will treat them as operating layers.

For investors, the lesson is to underwrite operational depth rather than demo quality. A beautiful agent demo is cheap. A reliable agent system with least privilege, replayable traces, domain-specific evals, rollback, human escalation and enterprise integration is hard. The market will initially overfund demos and then re-rate toward infrastructure.

For enterprises, the lesson is to start with bounded workflows and build the control plane early. The wrong approach is to buy agents everywhere and govern later. The right approach is to define where autonomy is allowed, what evidence is required, how permissions are scoped, and when humans must approve.

09
What Would Make This Thesis Wrong

The Risks That Cap The Labour-Substitution Story

The bullish agent thesis could fail in several ways. Model reasoning may plateau before agents become reliable enough for high-value work. Inference costs may remain too high for long-running autonomous loops. Regulatory or liability shocks may slow deployment. Users may prefer copilots over autonomous agents because they want control. Incumbent software vendors may bundle agents so aggressively that standalone harness companies struggle to monetise.

The most serious risk is reliability. If agents continue to make obvious mistakes in production, enterprises will confine them to low-stakes assistance. That would still be economically useful, but it would cap the labour-substitution thesis. The second is accountability. If no one can explain why an agent acted, regulated industries will deploy slowly.

But these risks do not invalidate the category. They define the product roadmap. The history of enterprise software is the history of turning risky capabilities into governed workflows. Databases, cloud computing, APIs, mobile devices and SaaS all followed versions of this path. Agents are likely to do the same.

10
The New Unit Of Software Is The Worker

Where Intelligence Becomes Work

The agent transition is not about replacing every human with a bot. It is about changing the abstraction layer of software. For decades, software helped humans do work. Now software is beginning to receive work.

That shift starts in code because code is structured, instrumented and valuable. It then moves into research, support, operations, finance, sales, compliance and personal productivity. Each domain will require its own context, tools, safeguards and evaluation. The model will matter. The system around the model will matter more.

The companies that win the agent era will not be the ones that produce the most impressive chat response. They will be the ones that make autonomous work safe enough to trust, cheap enough to scale, and useful enough to become habit. That is why the harness layer matters. It is where intelligence becomes work. It is where the agent receives tools, memory, permissions and constraints. It is where value accrues when models commoditise. And it is where the next software market will likely be decided.

The agent is not the model. It is the system wrapped around the model.

Publication QA Notes

This report intentionally distinguishes between verified facts, vendor claims, press-reported claims and contested incidents. The OpenClaw repository scale is verified from the public GitHub page, but the one-hour build story and fastest-growing-in-history claim were not independently verified and are framed cautiously. The Anthropic figures are taken from Anthropic's own funding announcement; a more aggressive $44 billion revenue figure circulating in the market was not verified and is excluded. The AWS/Kiro incident is treated as contested because Amazon publicly disputes the AI-causation framing. The PocketOS/Cursor database-deletion incident is treated as a reported founder claim with Railway's response included. The PwC trust-gap percentages on money and customers are illustrative directional values; the headline 88% / 68% figures are taken directly from PwC's published survey.

Source References
  1. GitHub, "openclaw/openclaw" repository, accessed 14 May 2026.
  2. Sundar Pichai, Google Blog, "Google Cloud Next 2026".
  3. TechCrunch, "Microsoft CEO says up to 30% of the company's code was written by AI", 29 April 2025.
  4. GitHub Blog, "Octoverse: A new developer joins GitHub every second as AI leads TypeScript to #1", 28 October 2025.
  5. Anthropic, "Anthropic raises $30 billion in Series G funding at $380 billion post-money valuation", February 2026.
  6. MIT AI Agent Index, "The 2025 AI Agent Index: Documenting Technical and Safety Features of Deployed Agentic AI Systems".
  7. PwC, "PwC's AI Agent Survey", 2025.
  8. OpenAI, "The State of Enterprise AI: 2025 Report".
  9. Amazon, "AI coding bot didn't take down AWS, Amazon confirms", 20 February 2026.
  10. Fast Company, "Cursor/Claude AI agent deleted software company PocketOS database", 28 April 2026.
Undercurrent
The hidden systems behind the world you live in
Deep Dive · Technology · AI & Compute · May 2026

You’ve looked beneath the surface.

Now follow the connection.

Escape Velocity

A connection through “The hidden bottleneck”: Find the physical and institutional constraints beneath apparently limitless systems.

The 1987 Mainframe

A connection through “The hidden bottleneck”: Find the physical and institutional constraints beneath apparently limitless systems.

The AI Stack Map

A connection through “The hidden bottleneck”: Find the physical and institutional constraints beneath apparently limitless systems.

Explore this article’s connections ↗
A suggested reading trail

Who owns the future?

From the foundations of AI to the ownership of information.

Download sharing card ↗Follow the next investigation via RSS ↗