Context & AI Agents. | Part 2 of 3 | Your agents have never been short on data. They’ve been short on context. This series is about the difference, and why it’s about to become the most expensive gap in enterprise AI.
TL;DR
Token spend on enterprise agents can grow fast as tasks get more complex, and it deserves close attention. It still doesn’t explain the full bill. AI agent cost in production also includes the hours people spend reconstructing system context the agent couldn’t establish on its own. What follows maps both sides of the ledger, and what changes when review moves from reconstructing an answer to verifying it.
In this Article
Your AI agents moved from pilot to production last quarter. They took on longer tasks, called more tools and ran more retrieval. The token bill went up, and finance approved a new forecast.
The program is still over budget.
Part of the money went into hours. A senior architect now spends part of every week checking what the change agent says about dependencies. Two engineers rebuild, by hand, the system context the agent needs before it can draft anything useful.
So the question behind AI agent cost gets very practical: what are you actually paying for?
The previous post in this series, on Context Engineering for Agents: Does Your AI Really Need More Data?, looked at why feeding agents more data rarely fixes wrong answers. This one follows what happens next. When that missing context matters in production, someone still has to reconstruct it, and that work has a price, on the token bill and off it.
How Much Does an AI Agent Cost?
AI agent cost has three parts.
- The first appears on the invoice: model tokens, infrastructure and licenses.
- The second appears in people’s calendars: the time spent checking answers, supplying context and fixing what went wrong.
- The third reaches the boardroom: changes that get postponed, systems nobody dares to retire and modernization plans that wait because no one can confirm the impact.
All three can grow in production, but only the first usually gets a line in the budget.
Broken down line by line, the bill looks like this:
| Cost line | On the invoice? | What drives it |
|---|---|---|
| Model tokens | Yes | Steps per task, context carried between steps, retrieval rounds |
| Infrastructure and licenses | Yes | Hosting, platform and monitoring |
| Human review | No | How often answers need checking before anyone acts on them |
| Context rebuilt by hand | No | How much the agent can’t establish about how systems connect |
| Rework | No | Wrong answers that get acted on anyway |
| Decisions on hold | No | Changes delayed because nobody can verify what depends on what |
Most conversations about AI agent cost focus on the first two rows, and they should take them seriously. The rest are where budgets tend to drift, because nobody meters them.
The Visible Line: AI Token Costs
A token is a small piece of text, roughly a short word or part of one. Models charge for the tokens they read and the tokens they write. AI token costs come down to simple math: tokens per step, times steps per task, times tasks per month, times the price per token. Teams can estimate tokens per request with a token calculator.
The simple math hides how agents consume them:
- The agent reads the task.
- It calls a tool and reads the result.
- It decides what to do next.
In workflows where each step carries previous results forward, the context the agent reads keeps growing, so token use tracks the number of steps more than the size of the question. Researchers at Stanford’s Digital Economy Lab found that most of the spend in agentic tasks sits in input tokens, and that the same agent running the same task could vary in cost by up to 30 times.
That makes token spend a real line of AI agent cost, and one that can become significant at production scale. Caching, smaller models for simple steps and limits per task all help keep it in check. None of them makes the token bill the whole picture.
Hidden Cost #1: Human in the Loop AI Agents
Wherever an agent can propose changes to production systems, human in the loop AI agents are standard practice, and for good reason. Someone accountable should approve the change.
AI agent cost starts to drift when approval turns into investigation. A reviewer who can see where an answer came from checks it in minutes. A reviewer who can’t has to rebuild it from the repository and from whoever still remembers the integration.
Take an illustrative case:
- An agent is asked whether the v1 orders API can be retired. It answers that no active consumers remain.
- The architect can’t verify that from the answer alone. The answer doesn’t show which systems the agent checked, so the architect traces every service that might call the API.
- The agent’s output took seconds. The review took most of an afternoon.
Multiply that afternoon across every change request that touches a critical system, and review time becomes a second layer of AI agent cost, stacked on top of the token bill.
Hidden Cost #2: Context Rebuilt by Hand
When an agent can’t establish how systems connect, the work doesn’t disappear. It moves to people.
Before a new task, an engineer works out:
- Which services are involved
- What depends on what
- Which job reads which table
Then, the engineer feeds all of it to the agent.
On the next task, the same gathering starts again, because nothing kept the last version. That knowledge concentrates in the few people who know the systems best, and they become the queue every agent task waits in.
This is the pattern behind agents burning budget just to work out context. The agent spends tokens searching for what it doesn’t know, and people spend hours filling in what the search couldn’t find.
A bigger AI context window lets engineers paste in more of what they’ve gathered. It doesn’t do the gathering. In workflows where each step carries that context forward, every pasted page can also be paid for again at the next step.
And the work never finishes. Every change in the systems makes yesterday’s version slightly wrong, so the reconstruction repeats, and so does this part of AI agent cost, for as long as the agents run.
Why Operational Costs of AI Agents Outgrow the Build
Most published estimates of AI agent cost focus on the build. The operational costs of AI agents work differently. They recur with every task, and they depend on something the build phase rarely measures: how much the agent can establish on its own about the systems it works across.
That’s the hidden multiplier in AI agent cost. When context about how systems connect is missing, two kinds of work rise at once:
- Agent work. The agent takes more steps and retrieves again, which pushes token use up.
- Human work. People verify, reconstruct and correct what the agent couldn’t establish, which pushes review hours up.
The organization pays twice for the same gap.
This is also why agent programs can look healthy as pilots and struggle a year later. A pilot runs on a few well-understood systems, with experts close at hand. Production means hundreds of systems, many connected in ways nobody fully documented. At that scale, what AI agents cost depends on complexity as much as usage.
Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, citing escalating costs, unclear business value or inadequate risk controls. Those three causes feed each other. When AI agent cost rises through tokens and review hours together, value gets harder to prove, and every unverified answer becomes a risk someone has to absorb.
The programs that survive will belong to teams that measured the whole cost early, including the part that lives in people’s calendars.
The Expensive Fix: RAG vs Agentic RAG
When agents lack context, the standard engineering move is better retrieval. That’s where the rag vs agentic rag question usually comes up, and it’s worth reading as an AI agent cost decision as much as a technical one.
- Traditional retrieval-augmented generation (RAG) runs one retrieval cycle: it searches the sources, picks the passages that best match the question and hands them to the model.
- Agentic RAG lets the agent run several cycles: it decides when to search, rewrites its own queries, checks results and searches again.
Each extra cycle adds queries, tool calls and results to the task and, depending on the implementation, more tokens. Side by side, the two approaches carry different cost profiles:
| Traditional RAG | Agentic RAG | |
|---|---|---|
| Retrieval cycles | One per question | Several, chosen by the agent |
| Token profile | Predictable | Can grow with each round, depending on the implementation |
| Points of failure | One retrieval step | Every query, tool call and judgment |
| What it can reach | The indexed sources | The same indexed sources |
The last row is where cost and results come apart. Take an agent asked whether a v1 orders API can be retired. With agentic RAG, it searches the wiki, rewrites its query, then searches the API documentation and the tickets. Four rounds of work, each one adding results to the task.
If no source records that the billing service still calls the API, the agent answers “no active consumers” anyway, now with a longer trail behind it. An architect still spends the afternoon checking.
More search can mean more work without closing the information gap. Agentic RAG is genuinely better at finding what the sources hold. For relationships that exist only in the systems, searching harder can raise AI agent cost and leave the human review exactly where it was.
What Context Aware AI Changes in AI Agent Cost
Context aware AI describes a system that works from reliable knowledge about the environment it acts in, instead of inferring that environment from whatever text it can find. For an enterprise agent, that environment is the IT ecosystem: what exists, how it connects, what depends on what.
From Reconstructing to Verifying
Human review stays. Someone accountable still approves the change. What can change is the work behind that approval, and with it the human side of AI agent cost.
Here is the same review, with and without reliable system context:
| Without reliable system context | With reliable system context | |
|---|---|---|
| The agent’s answer | A conclusion with no visible basis | A conclusion that points to the components and dependencies behind it |
| The reviewer’s job | Reconstruct the dependencies, then judge | Verify the dependencies listed, then judge |
| Accountability | Stays with the reviewer | Stays with the reviewer |
| Where the time goes | Rebuilding context the agent couldn’t establish | Checking context the agent was given |
Accountability doesn’t move. The effort behind it does.
Where Reliable Context Comes From?
So where should that context come from? Not from another round of search. Not from the few people who still carry the map in their heads. From the systems themselves, read directly and made queryable.
That’s the context layer Velorum builds:
- It maps the ecosystem. Velorum connects to code, databases, infrastructure and BI tools, and maps how they relate into a knowledge graph of the IT ecosystem.
- It builds the graph deterministically. Algorithms do the mapping, so no language model invents a relationship.
- It reads structure, not business data. It reads structure and definitions, and runs within the organization’s own infrastructure.
- It serves agents and people alike. Agents query structural facts through MCP servers. Teams ask the same questions in plain language through Navis.
Take an agent asked whether a v1 orders API can be retired. With that context in place, its answer points to the services that still call the API. The architect checks a list instead of rebuilding one.
The point is not that reliable context makes the model or its tokens free. AI agent cost still includes tokens, infrastructure and licenses. What changes is the human work required around those costs.
Without reliable system context, people spend time reconstructing the environment an agent is acting on. With it, they can spend that time verifying what the agent has found.
That capacity goes one of two ways: reconstructing context, or verifying it. The difference is part of AI agent cost that the token bill will never show.
Final Summary
Token spend is real, and it can grow as agents take more steps and repeat retrieval. It’s still only one part of AI agent cost. The rest sits in review hours and system context rebuilt by hand, and both trace to the same gap. When context about how systems connect is missing, organizations pay twice: once in agent work, once in human work. Reliable structural context keeps the review step and changes its job, from reconstructing to verifying.
Ready to explore what Velorum can uncover?
If you would like to see how Velorum can map and activate your organisation’s knowledge in weeks, our team can provide a tailored demonstration and a complimentary assessment of your current knowledge landscape.
What does the context window in an AI tool determine?
Capacity: how much text a model can consider in a single request, including instructions, retrieved documents and earlier steps. Whether that text is complete or current depends on the source. A larger window accepts more pasted context, which can raise spend per step while leaving the work of gathering it untouched. Velorum supplies system structure mapped directly from code, databases and infrastructure.
Can a knowledge graph cut the token bill of an enterprise agent?
Not directly. Token spend depends on the model, the task and how context is managed at each step. A knowledge graph matters more for the costs outside the invoice: the hours spent rebuilding and checking system context. Velorum gives agents and teams one source of structural facts, so answers trace back to real components.
Should human review be removed to lower agent costs?
Accountable approval stays essential for any change to production systems. What varies is the effort behind each approval. Checking the components an answer points to is quick. Rebuilding the context behind it can take an afternoon. With Velorum, the approval step stays and reviewers receive the dependencies an answer relies on, so review becomes verification.
