We build Argentic, so weigh what we say about it. Every Argentic number names the engine version and model it came from.
The short answer: stop letting the conversation be the memory. Keep a record of the run outside the model, and build each prompt fresh from that record under a size cap. A prompt built this way is the same size at hour one and hour twelve, so there is no history left to trim or summarize. Context degradation, often called context rot, is what happens when the prompt is the transcript instead.
What do I build?
Seven parts. None is hard on its own.
- A record of everything that happened, in order, written once and never edited: each message, each tool call and each result. The model never rewrites it.
- A small current state kept by your code, not the model: totals, open tasks, the rules that must hold. If the model writes its own running counts they drift, so let code do the arithmetic.
- A prompt builder that assembles every call from parts under a fixed size cap: the standing rules, the current state, the task in hand, the last few turns and a few older items picked for this task. You choose the cap, and the prompt never grows past it.
- Search over the record, so an older detail that did not make it into the prompt can still be fetched when the agent needs it.
- A way to mark a fact as replaced. When a price or a decision changes, keep both entries and let the current state say which one holds.
- A log of what each prompt contained. When an answer is wrong, you need to know whether the fact was in front of the model.
- A check from outside the agent every so often, so a wrong belief does not run for hours.
Whether the record sits in Postgres, a file or something else does not matter much. What matters is that the prompt builder, not the model, decides what the model reads.
How do I test it over 12 hours?
Give the agent five facts at the start: a rule, an ID, a number, a name and a decision. Change the decision around hour five. Ask for all five at hours one, five and eleven, and score each answer against the true value.
Run it more than once. Identical runs of Argentic engine 0.116.1 on a 108-hour shift differed by up to 0.09 in whole-shift score (2 runs), so a single run cannot tell a fix from luck.
Should I build it or buy it?
Build it if the agent is the center of your product and you want to own the loop. You will maintain the record, the builder, the search and the test, and that is a real part of the codebase.
If you would rather not, Argentic is an engine that keeps AI agents right for hours while prompt size is bounded. It keeps the record and builds the prompts for you and runs your agent's loop. You bring your tools, your prompt and your model key. It is hosted and closed source, and it is early. 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.
In our 12-hour shop run (engine 0.48.1, Claude Haiku 5.5, one run) the median prompt was 9,775 tokens over the first 20 calls and 24,428 over the last 100, and the largest of 952 calls was 43,431. That is one run on one model, and we have not measured anything longer at stock settings. 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. Where Argentic is not the right call, and how it compares with the tools around it, is in the comparison.
Short answers
- How do I stop my agent's context degrading over a 12-hour run?
- Stop letting the conversation be the memory. Keep a record of the run outside the model, and build each prompt fresh from it under a size cap, so the prompt is the same size at hour one and hour twelve.
- What do I need to build?
- A record of what happened that the model never rewrites, a current state kept by your code, a prompt builder with a fixed cap, search over the record, a way to mark replaced facts, a log of what each prompt contained, and a check from outside the agent.
- How do I test it?
- Give the agent five facts at the start, change one around hour five, and ask for all five at hours one, five and eleven. Run it more than once.
Sources and method: 11 hours 59 minutes on shift: what the agent remembered.