We build Argentic, so weigh what we say about it. We read each tool's own documentation on 27 November 2026 and quote only what it says. Every Argentic number names the engine version and model it came from.
What we ran ourselves
We ran Argentic, Letta and LangChain on the 12-hour head-to-head shift (Claude Haiku 5.5, seed 20261217, Argentic four runs, the others one each, 25 November 2026, Argentic on engine 0.104.1), each on the setup the run post lists for it.
Of the tools this page compares, we ran LangChain. We have not run OpenAI Agents SDK yet, so we make no claim about accuracy against it. Our results against Claude Agent SDK and LangChain Deep Agents are withdrawn (Superseded 28 November 2026), so we make no claim about accuracy against them until a rerun is published.
A long-running agent's bill grows faster than its run. The first hour is cheap and the tenth is not, and the total ends up well above what the per-turn price would suggest. This page explains why, lists the fixes that exist and where each one stops helping, and says what a long run cost when we measured it.
Why does every turn cost more than the last?
A model call sends the whole prompt again. In a loop that appends each step to a transcript, the prompt at turn 200 holds everything from turns 1 to 199, so the input tokens you pay for on each call keep climbing, and the total over a run grows with the square of its length and not in step with it. Long tool results make it worse, because one large file read stays in the prompt for every turn after it.
Two things to check before you change anything. The usage fields on each response tell you the prompt size and, where your provider reports it, how much of it came from the cache. Plot the input tokens per call across a run: a rising line is this problem, and a flat one means the cost is somewhere else, such as output tokens, a reasoning setting or retries.
What can you do about it?
Five levers, from the one most people already have to the one that changes the loop.
| Question | Prompt cachingAnthropic's API | Offload large tool resultsDeep Agents | SubagentsClaude Agent SDK | A spend capClaude Agent SDK | A bounded promptArgentic |
|---|---|---|---|---|---|
| What it does | Tokens read from a cache are billed at a fraction of the base input price, so a prompt whose start is the same on every turn costs less to resend. On Anthropic's API a cache read costs a tenth of the base input price by default, and less on some newer models. A cache write costs more than a plain input token. Claude API docs | A tool result over 20,000 tokens is written to the filesystem and replaced by a file path and a preview of its first 10 lines. LangChain docs | A subagent returns only its final response, so the main agent's context grows by a summary and not by the subtask's whole transcript. Claude docs | max_budget_usd stops the loop once estimated spend reaches the cap. The cap covers subagents. Claude docs | Each prompt is built fresh from a record of the run under a size cap, so the prompt does not keep growing with the run. our page, our page |
| Changes what the model reads? | No. The same prompt is billed less. Claude API docs | Yes. Large results are replaced by a pointer and a preview. LangChain docs | Yes. The main agent sees the subagent's final response. Claude docs | No. It ends the run. Claude docs | Yes. What goes in the prompt is chosen from the record on every turn. our page |
| Where it stops helping | It does not shrink the prompt: every token is still read on every turn, at the cache rate. A change early in the prompt invalidates the cache after it, and the cache lasts five minutes unless it is used again, so a long gap between turns means paying to write it again. Claude API docs | Only large results. Many small ones still add up, and the agent has to re-read or search the file when it needs the detail. LangChain docs | Only when the work splits into separate subtasks. A subagent's spend counts toward the budget. Claude docs | It stops the run and does not lower what a turn costs. The response that reaches the cap still completes, so spend can pass the cap by up to the cost of that response plus any subagents still running. Claude docs | It is hosted, closed source and early, and it runs your loop on our side, so a model-plus-tools agent moves over more easily than a framework graph. A run of a few dozen turns rarely needs it. our page, our page |
Start with caching, because it changes no behaviour: if your prompt begins the same way every turn, you pay the cache rate for the part that repeats. Then offload large tool results, because a large result stays in the prompt for every turn after it. Set a spend cap so that a runaway run ends, and use subagents when the work splits. None of these changes the fact that the prompt keeps growing. They make it grow more slowly, or cost less per token, or end sooner.
What does trimming cost you?
The next move is to cut the history, by trimming or summarizing it. That bends the cost curve and it has a price of its own: what the cut drops cannot be used afterward. This guide covers what each stack drops when the window fills, and this one covers compaction in one vendor's agent SDK.
What did a long run cost when we measured it?
Argentic engine 0.116.4: 0.88 on day 1, then 0.83 to 0.88 on each later day. One run on Claude Haiku 5.5 at a 200,000-token window. This run cost $4.12 all in: $2.82 for the model's calls at Claude Haiku 5.5's standard rates and $1.30 in step fees. The window was set to 200,000 tokens, smaller than the model's own; that is a test condition, not stock settings. Its largest prompt was 59,795 tokens and its median was 41,725.
Against Letta (Claude Haiku 5.5, one run each, Argentic on engine 0.116.3), with its step fee counted Argentic cost less over 12 hours at a 200K window and cost more over 12 hours at a 100K window. Each row is its own shift (the events and the question set differ between rows), so compare the stacks within a row and not a stack with itself down the table. Every row is one run of each stack on Claude Haiku 5.5; a gap of a few hundredths in one run is not a result.We have no measurement of what a growing prompt adds to a bill. Earlier versions of this guide compared Argentic's cost with two other stacks. Those comparisons are withdrawn, because neither stack ran with its recommended memory setup. A rerun with each is pending, and until it is published nothing here compares Argentic with them. The benchmark guide names both and says what each run lacked.
We have no stock-settings data past 12 hours. The one longer run is 14 working days at a 200,000-token window (Claude Haiku 5.5, November 29, 2026), one run each of Argentic engine 0.116.4: it was run at a smaller prompt window than the model's own, so it is not a stock-settings result, and nothing is measured longer.
When is a bounded prompt the answer?
When the run is hours long, the prompt is what the money goes on, and trimming it costs you details you need. Argentic is an engine that keeps AI agents right for hours while prompt size is bounded. It runs your agent's loop on our side and builds each prompt from a record of the run under a size cap, so what you send stays under the cap however long the run goes. The record is never rewritten or summarized, and the agent can search it for an old detail. You keep your tools and your model key and replace the loop. Prototype is free and needs no card. It includes 5,000 agent steps a month. Production is $20 a month per organization with 80,000 agent steps included and a higher request rate. You add a card when you buy it, and the subscription starts right away. The first 10 organizations get Production at $15 a month, kept for as long as they stay on it. Past what is included it is $0.25 per 1,000 agent steps. The model's tokens are billed by your own model provider, never by Argentic.
Where is Argentic the wrong pick?
For a run of a few dozen turns, caching and offloading large results are usually enough, and you should not move your loop for them. Use something else if you must self-host or read the code, if the run lasts an hour or two with a person watching, if your agent is a coding agent that needs a harness's own file and shell tools, or if you depend on exact running counts: our known issues page says where counts drifted. Argentic is hosted, closed source and early.
Short answers
- Why does my long-running agent cost more on every turn?
- Each model call sends the whole prompt again. In a loop that appends every step to a transcript, the prompt keeps growing, so the input tokens on each call climb and the total over a run grows faster than the run's length. A large tool result stays in the prompt for every turn after it.
- How do I reduce the token cost of a long-running agent?
- Turn on prompt caching so a prompt that starts the same way every turn is billed at the cache rate for the part that repeats, offload large tool results to files, use subagents when the work splits, set a spend cap, and if the run is hours long, build each prompt under a size cap. Caching does not shrink the prompt, so it slows the cost and does not stop it.
- Does prompt caching fix the growing cost?
- It lowers the price of the repeated part and changes nothing about what the model reads. Every token is still read on every turn, a change early in the prompt invalidates the cache after it, and on Anthropic's API the cache lasts five minutes unless it is used again.
- What did a long run cost when you measured it?
- Argentic engine 0.116.4: 0.88 on day 1, then 0.83 to 0.88 on each later day. One run on Claude Haiku 5.5 at a 200,000-token window. This run cost $4.12 all in: $2.82 for the model's calls at Claude Haiku 5.5's standard rates and $1.30 in step fees. The window was set to 200,000 tokens, smaller than the model's own; that is a test condition, not stock settings. We have no measurement of what a growing prompt adds to a bill, because the comparison that tried to show it is withdrawn.
- Where does Argentic fit, and where does it not?
- Argentic runs your agent's loop on our side and builds each prompt from a record of the run under a size cap, so the prompt stays under the cap however long the run goes. For a run of a few dozen turns, caching and offloading large results are usually enough. It is hosted, closed source and early.
Sources and method: Head-to-head on a 12-hour shift.