Wednesday, December 2, 2026 Search
Rivista.AI
Digital sovereignty for a connected Europe
Latest
TechGlobal

AI agents are burning tokens they don’t need. Context engineering is the fix

Agents can re-send the same instructions and files dozens of times per task. Regolo's tests show cuts of over 98% without changing the model.

Notebook on a desk
Photo: Rawpixel (CC0)

Agents changed the shape of AI bills. A chatbot answers once. An agent plans, calls tools, reads files, retries and reports, and at every step it re-sends its whole context. Costs grow with the length of the job, not the length of the question. For many teams the agent pilot was cheap and the production invoice was not.

Four techniques, measured

In a four-part “Context engineering for agents 101” series published in November 2026, Regolo Labs measured common fixes on open-weight models served from its EU platform:

Technique What it does Result in Regolo’s test
Progressive skill disclosure Load tool and skill instructions only when needed First-turn prompt cut from 53,452 to 1,019 tokens (-98.09%)
Offload and delegate Move bulky material to files and sub-agents Main agent prompt cut from 27,262 to 185 tokens (-99.32%)
Reversible compaction Summarise history but keep a way back to the detail Main-agent tokens cut by 66.4%
Context resets Restart long sessions from a clean, structured hand-off 201,369 tokens across three features cut to 3,963 (-98.03%)

One finding stands out for anyone running agents at scale: changing the system prompt every turn made turns 5.27 times slower on Qwen3.8-27B, because it breaks the prompt cache. Stable prompts are faster and cheaper.

Why the platform matters too

Context engineering cuts how many tokens you send. The platform decides what those tokens cost and where they go. On Regolo.ai:

  • open-weight models such as Qwen3.8-27B and GLM-5.2 are priced per token in euros, with flat subscriptions for predictable agent workloads;
  • every request is processed in the EU and discarded, so agents can read internal code and documents without creating a stored copy at the provider;
  • Brick routing can hand sub-agent work to small models automatically.

What to do this quarter

  1. Measure tokens per completed task, not per call.
  2. Freeze system prompts and load tools on demand.
  3. Give long-running agents a reset-and-handoff routine.
  4. Move the bulk of agent traffic to an EU open-weight provider with zero retention.

Agents will get more autonomous in 2027. The teams that learn to feed them lean context now will be the ones that can afford them.

Sources: Regolo Labs index (series parts 1–4) · Regolo pricing