AI agents
What is agentic infrastructure, and how much of it do you need?
The model decides what to try, and a layer most demos never show decides what it may actually do.
What is agentic infrastructure?
Agentic infrastructure is the layer that lets an AI agent run in production under control. It covers the runtime, saved state, tool permissions, identity, tracing, evaluation, human approval and cost limits. The model decides what to try. The infrastructure decides what it may do, records what happened, and stops it when necessary.
The short version
- Agentic infrastructure is the layer around an AI model that runs an agent, limits what it can do and records what it did.
- An agent needs different infrastructure from a chatbot because a wrong decision can change a record, send a message or spend money.
- The first things to build are scoped tools, tracing and hard limits on steps and spend.
- Agent permissions belong in the tool layer, because an instruction in a system prompt is guidance, not a control.
- A task whose steps are known in advance needs ordinary workflow code, not agentic infrastructure.
What is agentic infrastructure?
Agentic infrastructure is the set of systems around a model that let an agent run in production: runtime, state, tool access, permissions, tracing, evaluation, approvals and cost limits. The model proposes the next action. This layer carries the action out, constrains it and keeps the record.
The term is loose. We know of no standard definition, and a vendor's definition tends to match what that vendor sells. It can also be read as agents that manage cloud infrastructure, which is a different subject. This guide means the systems an agent runs on.
Why does an AI agent need different infrastructure from a chatbot?
An agent needs different infrastructure because it acts. A bad chatbot answer is a sentence a person can ignore. A bad agent decision can update a record, send an email or issue a refund, and the next step builds on that mistake.
The shape of the work is different too. A normal web request follows a path someone wrote, and it usually finishes quickly. An agent chooses its path at run time, may make many model and tool calls for one task, and may wait hours for a person to approve a step. Timeouts, retries and logging built for short requests do not fit that shape.
Retries show the problem clearly. Retrying a failed read is harmless. Retrying a step that sent a payment before it crashed can pay twice. Every action with a side effect needs a way to tell that it already happened.
Failure is also quieter. An agent can finish, report success and be wrong. A successful HTTP status tells you that a call worked, not that the decision behind it was right.
What are the layers of agentic infrastructure?
A useful division has nine layers: runtime, state, tools, identity and permissions, sandboxing, human approval, tracing, evaluation and cost limits. It is a way of dividing the work, not a standard. A small agent may fold several into one service, which is fine if each job still has an owner.
What does each layer of agentic infrastructure do?
| Layer | What it does | What goes wrong without it |
|---|---|---|
| Runtime | Runs the agent loop, handles timeouts and retries, and resumes long tasks | A crash or deploy loses the task partway through |
| State | Stores task progress and anything the agent should carry forward | The agent repeats work or relies on stale facts |
| Tools | Exposes a defined set of actions and validates their inputs | The model can send any arguments to anything it was given |
| Identity and permissions | Decides whose rights each action runs with | Every task gets the reach of a shared credential |
| Sandbox | Isolates code execution and file access | Generated code runs next to real systems and data |
| Human approval | Pauses before costly or irreversible actions | Mistakes reach customers before anyone sees them |
| Tracing | Records every model call, tool call, input and output per run | Nobody can say why the agent did what it did |
| Evaluation | Tests behaviour against known cases before and after changes | A prompt or model change breaks something unnoticed |
| Cost limits | Caps steps, tokens and spend per run | A looping task keeps spending until someone sees the bill |
Which parts of agentic infrastructure should you build first?
Build scoped tools, tracing and hard limits first. Those three cap the damage, show you what happened and stop a runaway task. The other layers can wait until a real failure or real volume justifies them.
In what order should you add the layers of agentic infrastructure?
- Scope every tool. Offer the narrowest action that does the job, and validate inputs in code rather than in the prompt.
- Trace every run. Record each model call, tool call, input, output and decision against a single run ID.
- Cap every run. Set limits on steps, elapsed time and spend, and end the run cleanly when one is reached.
- Make writes safe to repeat. Use idempotency keys or check before acting, so a retry cannot do the work twice.
- Require approval for actions you cannot undo. Show the person the exact action and its inputs, not a summary written by the model.
- Build an evaluation set from real failures. Run it before any change to a prompt, model or tool.
- Add durable execution when tasks outlast a process. Until then, a clean failure and a manual restart may be enough.
How should permissions work for an AI agent?
Treat the agent as an untrusted caller of your own systems, and enforce permissions in the tool layer where the model cannot argue with them. An instruction in a system prompt is guidance, not a control.
The reason is that agents read content they do not control: emails, tickets, web pages and documents. Any of those can carry instructions. If one agent can read private data and also send data out, injected text has a route between the two. Remove one of those capabilities, or put a person between them.
Where possible, run the agent with the rights of the person it is acting for, so it cannot reach what they could not. Where a service account is unavoidable, give it the rights for one task and log its use. A shared admin credential gives every task the reach of the most powerful one.
When is agentic infrastructure not worth building?
It is not worth building when the task does not need an agent. If the steps are known in advance, ordinary workflow code with one or two model calls is cheaper to run, easier to test and easier to explain.
The test is simple: does the model have to choose the next step at run time? If it does not, write the workflow. Plenty of tasks described as agents are fixed sequences with a classification step in the middle.
Scale the rest to the consequences. A read-only assistant whose every output is reviewed by a person may need little more than logging and a spending cap. An early experiment on test data needs less still. Building a full platform for one low-risk agent spends money on problems you do not have.
Should you build agentic infrastructure or buy it?
Buy the generic plumbing and build what is specific to your business. Runtimes, tracing tools and sandboxes are sold as products. Your tool definitions, permission rules, approval points and evaluation cases are not, because they encode how your business works.
Managed runtimes make part of this a pricing decision. Anthropic's pricing page lists a price for Claude Managed Agents session runtime, so runtime belongs in the cost model alongside model usage when you compare options. List prices change, so read the current page rather than trusting a number in an article.
The less visible cost is people. Someone has to read traces, fix failed runs and keep the evaluation set current after launch. If you price that time from the US Bureau of Labor Statistics May 2025 wage figure for software developers, remember that it is a wage only and excludes QA analysts and testers, so it understates the cost of a team.
How many companies run agentic infrastructure?
We do not have a reliable figure, and we would be cautious of any figure quoted without its sample. The surveys closest to the question that we can point to each carry a limit you should keep attached to any number taken from them.
The U.S. Census Bureau's Business Trends and Outlook Survey is biweekly and nationally representative, but the article reviewing it covers AI in general, not agents specifically.
Measuring Agents in Production, from UC Berkeley with Intesa Sanpaolo, UIUC, Stanford University and IBM Research, surveyed 306 practitioners across 26 domains and added 20 in-depth case studies, between April and November 2025. Its respondents are technical practitioners, not small-business owners. It is an arXiv preprint, and we have not confirmed its peer-review status.
LangChain's State of Agent Engineering drew 1,340 responses between 18 November and 2 December 2025, 49% of them from organisations of under 100 people. The sample is self-selected, LangChain sells agent tooling, and the page is dated June 2026 although the data is from 2025.
None of these can tell you what your own agent needs. Your tool list and the cost of a wrong action can.
How do you test agentic infrastructure?
Test it by making things fail on purpose. Good infrastructure stops the agent, preserves its state and leaves a record a person can read. A demo cannot show you this, because a demo is the run where nothing went wrong.
Which failures should you force before an AI agent goes live?
- Kill the process halfway through a task. Check that it resumes or fails cleanly, and does not repeat a completed action.
- Make a tool return an error. Check that the agent reports it rather than inventing a result.
- Put an instruction inside a document the agent will read. Check that the tool layer blocks anything outside the task.
- Ask for a record the user is not entitled to see. Check that the request is refused at the tool layer.
- Force a loop. Check that the step and spend limits end the run.
- Pick any past run. Check that someone who did not build the agent can explain it from the trace alone.
Questions people ask
Do I need agentic infrastructure for a single AI agent?
You need some of it as soon as the agent can change anything. Scoped tools, a trace of every run and hard limits on steps and spend are the minimum. You do not need a platform, a multi-agent orchestrator or a dedicated team. If the agent only reads and a person reviews every output, logging and a spending cap may be enough.
Is agentic infrastructure the same as MLOps?
No, though they overlap. MLOps grew up around training, deploying and monitoring models. Agentic infrastructure deals with what happens after the model decides something: which tools it may call, with whose rights, what happens when a step fails and who approves the result. Many agents call a hosted model and train nothing, so much of the classic MLOps work never applies to them.
Can we use an agent framework instead of building this ourselves?
A framework can handle the agent loop, tool calling and sometimes state. It does not know which actions are dangerous in your business, who may approve them or what a correct result looks like. Those rules are yours to write whichever framework you choose. Check how much of the operating layer, such as tracing and resumable runs, the framework actually includes.
What does agentic infrastructure cost to run?
The bill has three parts: model usage, any managed runtime or tooling, and the engineering time to maintain it. We will not quote a general figure, because it depends on steps per task, task volume and model choice. Measure cost per completed task in a small pilot, and include failed and retried runs. They cost money too, and an average of successful runs hides them.
Can a small business run agents without a platform team?
Yes, if the scope stays narrow. One agent with a short list of tools, a managed runtime and a person approving risky actions does not need a platform team. It does need a named owner who reads the traces, handles failures and updates the evaluation cases. An agent nobody owns gets worse quietly as prompts, models and connected systems change.
What should we ask a vendor selling agentic infrastructure?
Ask which layers the product covers and which stay your job. Then ask how permissions are enforced, whether a failed run can resume without repeating a completed action, what a trace records, whether traces can be exported and how spending is capped. Ask what happens to your data and logs if you leave. Vague answers here are a reason to keep looking.
Related on this site
Sources
- Large Firms With at Least 20 Employees Biggest AI Users, Business Trends and Outlook Survey, a biweekly, nationally representative survey. The article reviews collection periods from December 14, 2025 to May 3, 2026. It covers AI in general, not agents specifically. · U.S. Census Bureau, data from 2026
- 2026 Report on Employer Firms: Findings from the 2025 Small Business Credit Survey, Convenience sample, not random: 6,525 responses from small employer firms with 1–499 staff across all 50 states and DC, fielded September 3 to November 14, 2025. The figure covers AI-using firms only and includes firms above 50 staff. · Federal Reserve Banks (Small Business Credit Survey), data from 2025
- Software Developers, Quality Assurance Analysts, and Testers, BLS Occupational Outlook Handbook wage figure, reference period May 2025. It is a wage only and covers software developers alone, excluding QA analysts and testers. · U.S. Bureau of Labor Statistics, data from 2025
- Measuring Agents in Production, Survey of 306 practitioners across 26 domains plus 20 in-depth case studies, April to November 2025. This figure rests on 60 responses about deployed agents. Respondents are technical practitioners, not small-business owners. arXiv preprint; peer-review status not confirmed. · UC Berkeley, with Intesa Sanpaolo, UIUC, Stanford University and IBM Research, data from 2025
- State of Agent Engineering, Public survey run by LangChain, an agent-tooling vendor, November 18 to December 2, 2025; 1,340 responses, 49% from organisations of under 100 people. Self-selected sample, and the page is dated June 2026 although the data is from 2025. The 32% covers all company sizes. · LangChain, data from 2025
- Pricing, Vendor's published list price for Claude Managed Agents session runtime, read from its pricing page in November 2026. The quote is a pricing table cell, not a sentence. · Anthropic, data from 2026