Agents and engineering · September 2026

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.

>40% of agentic AI projects canceled by end-2027 (Gartner)20.6% of long workflows completed by the best agent (OSWorld 2.0)57% of surveyed teams with agents in production (LangChain)
In short

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.

Slash rule of thumb, September 2026, assuming a narrow scope, evaluation and human confirmation of irreversible steps.
Use caseFit todayWhy
Coding: fixes, tests, migrationsGoodTests and code review check the output
Research and analysis with sourcesGoodRead-only; a person uses the result
Support triage and draftsGood, with limitsRefunds and exceptions go to a person
Data entry across known systemsWorkflow firstKnown steps; an agent only adds variance
Long multi-app tasks through the screenWeak20.6% end to end on OSWorld 2.0
Payments, contracts, deletions without reviewNoOne 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.

Reference architecture we start from; each block has an owner.
BlockRoleProduction defaultFailure it prevents
ModelChooses the next actionEffort set per route, fallback from another vendorCost overruns, lock-in
ToolsAct on systemsFew, typed, idempotent, least privilegeWrong or duplicated actions
Memory and stateContext across stepsExplicit task record, append-only historyForgotten constraints, loops
PlanningBreaks the task downPlan checked by code, step by stepDeclaring success too early
GuardrailsFilter inputs, outputs and actionsPolicy in code, not only in the promptData leaks, unsafe actions
Human in the loopApproves sensitive stepsConfirmation of irreversible actions onlyCostly errors, approval fatigue
ObservabilityRecords every stepTraces, append-only logs, sampled evalsUnexplained failures
BudgetsCap tokens, steps, time and moneyPer-task caps, clean stopRunaway 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%.

Our reading

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.

  1. Narrow scope. One job, one owner, one metric. Resolving address-change tickets ships; automating customer service stalls.
  2. Typed, idempotent tools. Strict schemas, server-side validation and an idempotency key on every write, so a retry never pays twice.
  3. 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.
  4. Budgets and timeouts. Caps on steps, tokens, time and spend per task, with a clean stop and a summary for whoever takes over.
  5. 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.
  6. Sandboxing. Containers or virtual machines without default internet access, with credentials scoped to the task.
  7. 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.

Rule of thumb

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.

  1. Narrow task, named owner, measurable success criterion.
  2. A workflow tried first; autonomy only where the path is uncertain.
  3. Strict schemas, server-side validation, idempotent writes.
  4. Least privilege; no shared admin credentials.
  5. Human confirmation before paying, sending, deleting or publishing.
  6. Per-task caps on steps, tokens, time and spend.
  7. 20 to 50 real eval tasks, injection cases included, as a regression gate.
  8. Sandbox, egress rules and a kill switch outside the model.
  9. Append-only logs out of the agent's reach.
  10. 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

  1. Gartner predicts over 40% of agentic AI projects will be canceled by end of 2027 · Gartner, 2025-06-25
  2. The GenAI Divide: State of AI in Business 2025 · MIT NANDA, 2025-07
  3. State of Agent Engineering · LangChain, 2026-06-12
  4. OSWorld 2.0: long-horizon computer-use workflows (arXiv 2606.29537) · arXiv, 2026-06-28
  5. Time horizons of frontier AI models · METR, 2026-05-08
  6. Measuring AI agent autonomy · Anthropic, 2026-02-18
  7. Demystifying evals for AI agents · Anthropic, 2026-01-09
  8. Code execution with MCP · Anthropic, 2025-11-04
  9. Pricing · Anthropic documentation, 2026-09
  10. Prompt injection is not SQL injection · UK National Cyber Security Centre, 2025-12-08
  11. The Hugging Face incident and the road ahead · OpenAI, 2026-08-26
  12. Investigation of the OpenAI and Hugging Face incident · METR, 2026-08-26

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.

Frequently asked questions

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.

Talk to Slash

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.

Message Esteban