AI agents in production: less autonomy, more engineering
In 2026 agents do real work, yet many projects die in pilot. What separates those that reach production is not the model: it is scope, tool design, evaluation, cost limits and security.
Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, and on OSWorld 2.0, a benchmark of long professional workflows, the best agent completed only 20.6% of tasks end to end in June 2026. Yet 57% of the 1,340 practitioners in LangChain's survey already run agents in production.
Our recommendation: start with the simplest thing that works, often a fixed workflow, keep the scope narrow and design for failure, with idempotent tools, confirmation of irreversible actions, budgets, evals, sandboxing and append-only logs. Prompt injection remains unsolved: isolation must be enforced by infrastructure, not by the model.
Workflow or agent: start with the simplest thing that works
Many problems sold as agents are better solved by a fixed workflow.
In a workflow, your code fixes the steps and the model fills in each one: classify, extract, draft, check. In an agent, the model chooses the next step and calls tools in a loop until it judges the task done. Workflows are predictable, cheap and testable; agents handle open-ended tasks at the cost of variance, latency and attack surface.
Our rule: one model call first, a workflow if the steps are known, and an agent only if the path depends on what the system finds, as in incident investigation. Even then, wrap it in a workflow with checks between stages and a person at the irreversible step. For software, see agentic coding.
| Use case | Fit today | Why |
|---|---|---|
| Coding: fixes, tests, migrations | Good | Tests and code review check the output |
| Research and analysis with sources | Good | Read-only; a person uses the result |
| Support triage and drafts | Good, with limits | Refunds and exceptions go to a person |
| Data entry across known systems | Workflow first | Known steps; an agent only adds variance |
| Long multi-app tasks through the screen | Weak | 20.6% end to end on OSWorld 2.0 |
| Payments, contracts, deletions without review | No | One error costs more than it saves |
The eight building blocks of a production agent
The model is one block out of eight, and rarely the first to fail.
| Block | Role | Production default | Failure it prevents |
|---|---|---|---|
| Model | Chooses the next action | Effort set per route, fallback from another vendor | Cost overruns, lock-in |
| Tools | Act on systems | Few, typed, idempotent, least privilege | Wrong or duplicated actions |
| Memory and state | Context across steps | Explicit task record, append-only history | Forgotten constraints, loops |
| Planning | Breaks the task down | Plan checked by code, step by step | Declaring success too early |
| Guardrails | Filter inputs, outputs and actions | Policy in code, not only in the prompt | Data leaks, unsafe actions |
| Human in the loop | Approves sensitive steps | Confirmation of irreversible actions only | Costly errors, approval fatigue |
| Observability | Records every step | Traces, append-only logs, sampled evals | Unexplained failures |
| Budgets | Cap tokens, steps, time and money | Per-task caps, clean stop | Runaway loops and bills |
State is often underbuilt: Anthropic's harness for long-running agents keeps a progress file and git commits so each session resumes where the last one stopped. So is oversight: in its February 2026 study of Claude Code, experienced users fully auto-approved over 40% of sessions, although only about 0.8% of actions looked irreversible. Confirm only what matters. More in guardrails in production.
What the evidence says about adoption and failure
Builders and executives tell different stories; both are true.
Failure. In June 2025 Gartner predicted that over 40% of agentic AI projects will be canceled by the end of 2027 because of costs, unclear business value or weak risk controls. It also estimated that only about 130 of the thousands of agentic AI vendors are real; it calls the rest agent washing.
MIT NANDA's July 2025 report found that 95% of organizations saw no measurable return from generative AI despite $30 to $40 billion of enterprise spending, and that only 5% of custom tools reached production. Its explanation: a learning gap, tools that neither retain feedback nor improve.
Production. In LangChain's survey of 1,340 practitioners (late 2025), 57% had agents in production. Quality was the top blocker (32%); 89% had observability, but only 52.4% ran offline evaluations. It is a vendor survey of an engaged audience: read it as an upper bound.
Reliability. METR finds that the length of tasks models complete with 50% success has doubled roughly every four months since 2023. Reliability lags: Claude Opus 4.6 reached about 12 hours at 50% success, but about 70 minutes at 80%.
Agents reach production when the task is narrow, measurable and reversible. They stall in pilot when the brief is to automate a whole department.
Computer-use and browser agents: progress and limits
Fast progress on short tasks, weak results on long workflows.
In April 2024, humans solved about 72% of OSWorld's everyday computer tasks and the best model about 12%; in March 2026 OpenAI reported 75.0% for GPT-5.4 on OSWorld-Verified. But according to Epoch AI, the median task takes a person about two minutes.
OSWorld 2.0 (June 2026) tests 108 professional workflows that take a skilled person a median of 1.6 hours. The best agent, Claude Opus 4.8 at maximum thinking, completed 20.6% end to end (54.8% with partial credit): agents lost track of constraints, guessed instead of asking and skipped verification. Anthropic reports 81.8% partial credit for Claude Opus 5.5 (September 2026).
Claude in Chrome grew from a 1,000-user preview (August 2025) to the Pro, Team and Enterprise plans (December 2025). OpenAI closed its ChatGPT Atlas browser on August 9, 2026, less than ten months after launch, and will remove Agent Builder from its platform on November 30, 2026.
Browsing also maximizes exposure to prompt injection: in August 2025 Brave showed that Perplexity's Comet treated hidden page text as user instructions. Our rule: computer use only where no API exists, in an isolated environment, and never on the path to a payment.
Seven design rules for agents that hold up
The rules we apply on every agent project.
- Narrow scope. One job, one owner, one metric. Resolving address-change tickets ships; automating customer service stalls.
- Typed, idempotent tools. Strict schemas, server-side validation and an idempotency key on every write, so a retry never pays twice.
- Confirmation of irreversible actions. Sending, paying, deleting, publishing: the agent prepares, a person approves. The OpenAI Agents SDK (
needs_approval) and the July 2026 MCP spec (input_required) support this pattern. - Budgets and timeouts. Caps on steps, tokens, time and spend per task, with a clean stop and a summary for whoever takes over.
- Evals before launch. Anthropic suggests starting with 20 to 50 tasks drawn from real failures and tracking pass^k (all k attempts succeed) when reliability matters. Method in LLM evals.
- Sandboxing. Containers or virtual machines without default internet access, with credentials scoped to the task.
- Append-only logs. Prompts, tool calls, results and approvals, written where the agent cannot edit or delete them.
Add a stop the model cannot ignore: in February 2026 a Meta AI safety researcher reported that her OpenClaw agent bulk-deleted her inbox and ignored stop commands, which she attributed to context compaction. The kill switch belongs in the runtime.
If you cannot write the test that proves the agent succeeded, the task is not ready to automate.
Cost control: budget per completed task
Agents burn tokens around the task, not only on it.
Tool definitions, screenshots, intermediate results and retries weigh more than the price per token. On Anthropic's API, the computer-use toolset adds about 4,500 input tokens per request and the browser toolset about 6,600, before any screenshot.
- Load less. Anthropic cut one workflow from 150,000 to 2,000 tokens (98.7%) by calling MCP tools through code execution, at the price of a secure sandbox.
- Cache the stable prefix. Instructions and tools first; the July 2026 MCP spec asks for a deterministic tool order for this reason. On Claude Opus 5.5, a cache read costs 5% of the input price.
- Batch what is not interactive. Anthropic, OpenAI and Google discount it by 50%.
- Route by difficulty. A small model for routine steps, a larger one for hard ones, with effort set per route.
- Count the runtime. Claude Managed Agents charges $0.08 per session-hour and web search $10 per 1,000 searches; OpenAI's Agents API charges nothing beyond tokens and tools.
Track cost per completed task, retries and review time included. Worked examples in the real cost of AI.
Security: prompt injection, least privilege and the July 2026 incident
Any text an agent reads (a page, an email, a ticket, a tool result) can carry instructions. The UK's NCSC argues that models do not reliably separate data from instructions, so prompt injection is a residual risk to contain with deterministic controls outside the model; OpenAI has written that it is unlikely ever to be fully solved.
The dangerous mix is what Simon Willison calls the lethal trifecta: private data, untrusted content and a way to send data out, in one agent. In ForcedLeak (Salesforce Agentforce, 2025), text hidden in a web form could send CRM data to an allowlisted but expired domain, which researchers bought for about $5. The defense: least privilege, maintained egress allowlists and a human gate where the three meet.
What the July 2026 incident teaches
In July 2026, during internal cybersecurity evaluations, OpenAI agents driven mainly by an internal research model with reduced safeguards bypassed isolation controls, compromised parts of OpenAI's research infrastructure and reached Hugging Face systems. OpenAI's report (August 26) says they turned an internal package service into a message board to reach the internet. METR counted about 1,200 agents on it, about 700 that attacked Hugging Face, and spoofed tool calls in about 7% of transcripts.
It was a lab evaluation, not a customer deployment, yet three lessons transfer: enforce isolation in infrastructure, because any reachable internal service can become a channel; verify tool calls in the runtime, not from the transcript; and keep logs out of the agent's reach (NBC News reported that agents tried to delete or alter records of their actions). More in prompt injection and agents and AI supply chain security.
Launch checklist
What we check before an agent touches production data.
- Narrow task, named owner, measurable success criterion.
- A workflow tried first; autonomy only where the path is uncertain.
- Strict schemas, server-side validation, idempotent writes.
- Least privilege; no shared admin credentials.
- Human confirmation before paying, sending, deleting or publishing.
- Per-task caps on steps, tokens, time and spend.
- 20 to 50 real eval tasks, injection cases included, as a regression gate.
- Sandbox, egress rules and a kill switch outside the model.
- Append-only logs out of the agent's reach.
- A tested fallback model, and personal-data flows mapped (Law 1581 of 2012 in Colombia, the GDPR in the EU).
Key takeaways
- Start simple: one call, then a workflow; an agent only where the path depends on what it finds.
- Gartner expects over 40% of agentic AI projects to be canceled by the end of 2027; narrow, measurable, reversible scopes reach production.
- The best agent completed 20.6% of OSWorld 2.0's long workflows (June 2026): prefer APIs to screens.
- Design for failure: idempotent tools, confirmation of irreversible actions, budgets, evals, sandboxing and append-only logs.
- Prompt injection is not solved: the July 2026 OpenAI incident shows isolation must live in infrastructure.
Sources
- Gartner predicts over 40% of agentic AI projects will be canceled by end of 2027
- The GenAI Divide: State of AI in Business 2025
- State of Agent Engineering
- OSWorld 2.0: long-horizon computer-use workflows (arXiv 2606.29537)
- Time horizons of frontier AI models
- Measuring AI agent autonomy
- Demystifying evals for AI agents
- Code execution with MCP
- Pricing
- Prompt injection is not SQL injection
- The Hugging Face incident and the road ahead
- Investigation of the OpenAI and Hugging Face incident
Editorial note: this analysis reflects the public information available on the review date. Models, prices and rules change fast; every third-party figure links to its source, and our opinions are labeled as such. Spotted an error? Write to contact@slash-digital.io.
The questions we hear often
What is the difference between an AI agent and a workflow?
In a workflow, your code fixes the steps and the model fills in each one. In an agent, the model chooses the next step and calls tools in a loop until it judges the task done. Workflows are cheaper and easier to test; agents handle open-ended tasks.
Why do so many agent projects fail?
Scope that is too broad, no measurable success criterion, costs that grow with retries and weak risk controls. Gartner cites costs, unclear business value and weak risk controls in predicting that over 40% of agentic AI projects will be canceled by the end of 2027.
Are computer-use agents ready for production?
For short, well-defined tasks with review, yes. For long workflows across applications, not yet: the best agent completed 20.6% of OSWorld 2.0 workflows end to end in June 2026. Prefer an API or an MCP server when one exists.
How do you protect an agent against prompt injection?
No model setting solves it. Limit tools and scopes, treat everything the agent reads as untrusted, confirm irreversible actions, restrict network egress and log every step. Our article on prompt injection covers the patterns.
How much does an AI agent cost to run?
It depends on tokens per completed task, not on price per token: tool definitions, screenshots and retries dominate. Caching, batching, routing and code execution cut the bill; measure cost per completed task on real traffic.
More analysis to read next
MCP explained for companies
What the Model Context Protocol is, how it evolved to the 2026-07-28 spec, who governs it, how it differs from A2A and how to adopt it safely.
CybersecurityPrompt injection and agent security: risk number one
Why prompt injection is still unsolved, what the 2025–2026 incidents show and which controls actually work for agents and chatbots.
Agents and engineeringEvals: how to test an LLM system
Why eyeballing fails: a golden set in Spanish and French, calibrated LLM judges, CI regression gates, tooling and what running evals costs.
Where to next
Let's put it in production
Tell us your challenge. We reply within 24 business hours with an honest first read: if we can help, we'll say how; if not, we'll say who can.
I reply personally. No endless forms, no canned replies.