GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing ct.rithul.dev — The reuse stack - Continuum The reuse stack¶Most of an agent run is work it has already done: the same system prompt re-sent every step, the same sub-question asked twice, a suite of near-identical eval prompts. Continuum removes that redundancy at the layer where the tokens are actually spent. Every The five tiers¶
If none match, the backend runs and its result populates the tiers for next time. How a key is built¶A cache key is derived from:
The interpreter canonicalizes textual and token inputs before lookup, and prefix length is measured against that canonical form, so a match survives formatting differences. Token reuse and state reuse¶A prefix hit has two halves that must agree:
Reuse is valid only when both align. If a state handle was derived from a
different canonical prefix length than the one being claimed, it is not used.
On the Azure path, prefix savings are currently approximated by sending
suffix-only requests and reporting Keeping reuse correct¶
Setting a policy¶from continuum._native import ReusePolicy, Session, BackendRegistry session = Session("agent-fleet", BackendRegistry()) session.policy = ReusePolicy.always() # reuse whenever a tier matches session.policy = ReusePolicy.never() # bypass every tier session.policy = ReusePolicy.threshold(min_len=64) # only reuse prefixes >= 64 tokens Cross-session persistence¶
Measured, per tier¶Isolated benchmarks against a live Azure OpenAI backend:
Full tables and the scripts behind every number are in docs/benchmarks.md. | ||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |