Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your agent bill isn't decided by the model price. It's decided by your repeat rate.

Your agent bill isn't decided by the model price. It's decided by your repeat rate. A 20-step agent task re-sends its context at every step. That is the whole cost story, and it is easy to miss, because the price you shop for — dollars per million tokens — is the smallest term in the bill. The terms that actually decide it are in your own traces: how often the same goal repeats, how long the gaps…

Your agent bill is not determined by the model price alone. It is determined by the rate at which you repeat tasks, and how long the gaps are between repeats. The price you see listed, which is per million tokens, is just a small part of the total bill. The true cost is influenced by how often the same goal repeats, the time gaps between repeats, and the end-to-end cost of each finished task.

An example of this can be seen in a 20-step task on Sonnet 5.5, where re-sending the input resulted in a cost of $2.14 per task without caching, compared to $0.97 per task with an 80% cache rate. For 1,000 tasks a day over 30 days, this translates to $64,200 versus $29,088. The key factor here is not just the number of repeats, but the gaps between them.

A loop that repeats for 12 hours can cost around $318, while ten agents working in such a loop could cost up to $3,180. The structure of the bill is essentially steps multiplied by the re-sent context multiplied by the number of repeats. However, the most significant factor that is often overlooked in budgeting is the loop, or the repeat rate.

A study by Gartner 2026 indicates that agentic AI consumes 5-30 times more tokens per task than a traditional chatbot exchange. Additionally, a Stanford Digital Economy Lab finding shows that identical SWE-bench runs can vary up to 30 times in token cost, due to the stochastic nature of trajectories. The solution to this problem lies in reducing the re-sent context, and this is the focus of the article.

There are three key numbers to consider: the repeat rate, the gap distribution, and the cost per finished task. The repeat rate should be measured on goals, not just prompts, as the same goal can be phrased differently throughout the day. By clustering completed runs by goal and counting clusters with more than one member, you can determine your ceiling for caching.

If goal repeats across sessions are negligible, a trajectory cache may not be necessary. The gap distribution is crucial because a repeat after data changes results in a stale hit, not a saved run. By bucketing requests based on gap length and pricing each bucket separately, you can determine the optimal time dimension for caching.

The cost per finished task is the most accurate measure of cost, as it includes all runs, whether they were successful or not. Prefix caching and trajectory caching both aim to reduce costs, but they target different terms in the bill. Prefix caching reuses the re-sent context and makes each completion cheaper, while trajectory caching replays the recorded plan instead of re-deriving it, leading to faster responses without additional LLM invocations.

The safety of cached writes is also crucial, as a wrong hit can result in incorrect answers, duplicated charges, and unintended state changes. The gating mechanism ensures that only exact repeats trigger a cache write, preventing potential errors.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Modern C# 12: Refactoring with Primary Constructors and XML Docs

Simplifying Dependency Injection with C# 12 Primary Constructors C# development has evolved significantly with .NET 8 and C# 12.

  • C# 12 introduces Primary Constructors to simplify dependency injection in classes.
  • Legacy code required verbose setup of dependencies with XML documentation tags.
  • Primary Constructors reduce boilerplate, improve readability, and automate documentation.

ERR_PNPM_OUTDATED_LOCKFILE in GitHub Actions

ERR_PNPM_OUTDATED_LOCKFILE in GitHub Actions means pnpm ran a frozen install, compared pnpm-lock.yaml against every package.json it can see, and found a difference it is not allowed to write away.

  • ERRPNPMOUTDATEDLOCKFILE error caused by discrepancies between package.json and pnpm-lock.yaml
  • Regenerate lockfile using same pnpm version in package.json and commit changes
  • Ensure all dependencies are up-to-date and commit install settings alongside manifest changes

Docker OCI runtime exec failed

Docker OCI runtime exec failed comes from docker exec , not from starting a container, so to fix docker exec failures you look at the command you asked for and at the state of the container, never at…

  • Docker OCI runtime exec failed indicates command execution issue inside running container
  • Error may stem from missing executable file in $PATH or non-running container
  • Ensure binary inclusion, container status, and correct command syntax to resolve

Can RTX 3090 24GB really run Qwen4: The posted numbers don't tell.

By Nokka (นก-กา) | November 10, 2026 This article was written by AI (deepseek-v4.1-flash · Model provider: ollama-cloud) via Hermes Agent under human control and quality review - Nokka (นก-กา) posted…

  • RTX 3090 with 24GB VRAM can run Qwen3.8-27B model
  • Qwen4-27B model does not exist in official organization
  • 24GB limit is significant bottleneck for newer models

More from Sunday 15 November →