Skip to Content
Recodocs

Caching and cost

What RecoX caches, what it never caches, and how the spend guard and token usage keep model cost bounded.

2 min read

An assistant that rereads the same reference material on every turn may pay for work already done. Caching avoids repeated work without treating obsolete evidence as current. A spend guard stops model calls that exceed their allowed budget. The Caching tab shows settings and usage appears alongside the Directory. Inference infrastructure explains how repeated context affects session economics.

Status: Live feature.

What is cached

CacheWhat it storesLifetime
Provider prompt reuseThe repeated start of a prompt, reused by the model providerProvider-defined
Exact-text result cacheThe result of a model call keyed on its exact inputs: instructions, input, model and output limits. Only complete, valid results are stored24 hours
Embedding cacheThe vector for a piece of text, keyed on the text and the embedding model28 days

Cache entries are scoped to the organisation and the purpose they were created for, so one organisation never sees another's entries. Every entry has a finite lifetime.

What is never cached

A cache is a shortcut for equivalent work. If permissions, evidence scope or freshness requirements differ, the shortcut may no longer be valid.

Never cachedWhy
RecordsA cached record is a wrong record. Records are always read fresh
Access checksRole and permission checks run on every call
Approvals and decision stateA decision is pending, approved or applied exactly once
Failed or incomplete model outputA failure is not served again as an answer

Spend guard

The spend guard checks model calls before they are sent. When it stops a call, the run ends as failed and keeps its completed steps. It does not interrupt a call already in progress, and a tool call already started finishes and is read back. A stopped run raises no further decisions; decisions already pending stay valid.

Recobot also has fixed limits per run: 30 model requests, 100 tool calls and 300 seconds. See Runs and observability.

Usage

Usage shows runs, failed runs and tokens per component, including cached tokens when the provider reports them. A rising share of cached tokens next to input tokens means prompt reuse is working. Cost depends on the model connection: a ChatGPT or Codex plan connection is covered by the plan, and an Anthropic API key connection is billed by the provider.

Planned

Budgets per component in USD and cost-based reporting in the console are not built. They are planned. See the roadmap.

How is this page?

Last updated on