T
Tempell AI
Nexus

Your agents are paying retail for work they've already done.

One engineer working a heavy week on agentic coding can put roughly $1,000 of Claude/API spend across the wire. Nexus sits between your coding agents and the model providers — compressing context before the meter starts, protecting the prompt cache, routing each request to the cheapest model that can actually handle it, serving repeat work locally for free, and giving every session the memory it needs so nobody pays to re-explain the project on Monday morning.

Runs on your machines Your keys, your traffic No vendor in the request path
Billing meter · one engineer · one heavy Claude week 00:00 h
Direct to provider $0.00
0 requests · 0 tokens billed
Through Nexus $0.00
0 requests · 0 tokens billed
Same prompts. Same answers. Same engineer. Kept this week: $0.00
54–60%

of the total bill removed by compression, cache protection and routing together

Benchmark

$28.7k

kept per engineer per working year, all four levers plus Nexus

Modelled · $1k/week

< 1 ms

classification overhead before a request is routed

Measured

$0.00

cost of any workflow Nexus has already learned

By construction

Agentic coding bills you for the conversation, not the answer.

Every turn resends the whole history. A forty-turn session pays for turn one forty times. Meanwhile the same model handles "what does this flag do" and "refactor this service" at the same price — and your assistant starts each morning knowing nothing about the project it worked on yesterday.

Where the money actually goes

On a typical long-running agent session, input tokens dominate the bill — and most of them are text the provider has already seen.

Input51%
Cache read27%
Output22%

Share of baseline spend, benchmark traffic mix. Output is the part you genuinely cannot avoid.

And the part nobody meters

The first ten minutes of every session are spent rediscovering things the team already knows: which service owns this, why that workaround exists, what was decided last week and by whom. Your agent greps, reads, summarizes, and bills you for all of it — then forgets the moment the window closes.

That's the half Nexus fixes. Not a cheaper way to re-derive context — no re-derivation at all.

Four requests from one coding session.

Left: what the developer sees — an ordinary agent session, nothing installed but a provider entry. Right: what Nexus did to that request on its way out, and what it cost. Pick a request to replay it.

agent session — ~/src/billing-api request 01
model tempell/auto context —
Proxy wire logreq —
If sent direct$0.0000
Actually billed$0.0000
Replay reconstructed from the proxy's own session log schema. Costs use published list rates, scaled to the $1k/week workload and shown in full on the evidence page.
Four requests, direct $5.01 through Nexus $0.65 87.1% on this sample. A whole week of mixed traffic lands near the benchmark band instead — for one full-time engineer that is $1,000 → $410 a week, before Nexus trims the volume feeding into it.

Seven stages, one localhost hop.

Your client points at a local port instead of the provider. Everything downstream is unchanged — same wire format, same streaming, same tool calls. Requests that can be answered locally never leave the machine; the rest leave smaller and cheaper.

Nexus request path A request enters from the agent client, passes through seven proxy stages — ingest, session isolation, context budget, feature gate, semantic cache, routing, forward — with two exits that never reach a provider: a learned-workflow interception and a semantic cache hit. Remaining requests are forwarded to the cheapest capable provider. Agent client any coding agent NEXUS · localhost S1–S3 normalize registry learned? S5 cache compress cache-safe S6 route S7 send answered locally · $0.00 learned handler or cache hit — no API call Cheapest capable provider every provider you have configured, compared on price at request time only this leg is billed

Nothing about your client changes. One environment variable, or one provider block. Keys stay in your own environment, requests stay on your own machine until they're forwarded, and if the proxy is down the client falls back to talking to the provider directly.

Three levers are bounded. One isn't.

Compression, cache protection and routing each make a request cheaper — but no amount of any of them reaches zero. The learning loop is different: every workflow it absorbs is permanently free, so savings grow with use instead of plateauing.

LEVER 1

Compression

Prior turns are rewritten by deterministic regex before the request leaves the machine — collapsed whitespace, trimmed tool output, redundant phrasing removed. The current turn is never touched, and identical input always produces identical output, so retries and caches stay coherent.

15–40% of prior-turn input tokens · ~1 ms in-process · sha256-keyed, bounded cache

Turn 40 of a session
Raw18,942
Sent15,470
LEVER 2

Cache protection

A prompt cache hit costs a tenth of a fresh token — but only while the prefix is byte-identical. Aggressive compression is the fastest way to destroy that discount and end up worse off. Nexus tracks every live cache span and refuses to touch any block inside one.

Safe mode default · locks all messages up to the last cache checkpoint

12,100 repeated tokens
Broken$0.88
Intact$0.09
LEVER 3

Routing

Each request is classified in under a millisecond into one of four difficulty buckets, then handed to the lowest-cost endpoint across every configured provider that still satisfies the bucket's feature and context requirements. Nothing is hardcoded: add a cheaper provider, or wait for one to cut prices, and the router moves on its own.

Capability gates outrank cost · circuit breaker trips at 5% fallback rate and rolls back automatically

Same 1,240-token question
Frontier$0.17
Routed$0.002
LEVER 4

The learning loop

Software work is a closed set of moves — read a file, run the tests, stage and commit, push to a host, restart the service, parse a response. New arrangements of those moves appear constantly; new moves almost never do. Nexus watches idle sessions, classifies their commands into an action taxonomy, and when an arrangement recurs five or more times it generates a parameterized local handler plus an independent set of golden tests. Once the handler passes, matching requests are served locally and the model never sees them.

Read-only workflows auto-enable · anything that writes, transfers or commits waits for explicit approval · handlers run out-of-process with a hard timeout and re-validate nightly

A learned deploy workflow
Before$2.79
After$0.0000

Every failure falls through to the model transparently.

Nexus

Nexus cuts tokens by making calls cheaper and keeping context short.

Nexus combines a local optimization proxy with a self-hosted context server. It compresses, cache-protects and routes each call, then removes the calls that only exist because the assistant forgot. Memory, tasks, a knowledge graph and semantic search are shared across every client, so a session opens already knowing where it is.

Without shared memoryThursday, 9:04
$ agent pick up the retry work from Monday reading ARCHITECTURE.md reading services/billing/retry.py grep "backoff" (41 matches) reading git log --since=7.days reading 4 more files I've reviewed the retry logic. Before I continue — was the decision to cap at 5 attempts deliberate, or should I… ↑ it is asking you what you already decided
rediscovery14,200 tokens · ~7 min
VS
With NexusThursday, 9:04
$ agent pick up the retry work from Monday nexus.bootstrap(search: "retry") identity · who you are, how you work tasks · 2 open on billing-api memory · retry_backoff_decision graph · retry-cap → caused_by → SEV-142 Monday you capped retries at 5 after SEV-142 and left the jitter window open. Task #88 is still pending. Starting there. ↑ one call, then straight to work
bootstrap1,180 tokens · ~4 sec

That single comparison is worth 13,020 tokens — and an engineer running agents full time opens a cold context five or six times a day. But the rediscovery tax is the small half of the argument. The big half is what happens to every subsequent turn.

Every turn resends every previous turn.

A conversation's cost per turn doesn't stay flat — it climbs, because turn 40 pays to resend turns 1 through 39. Cost across a session is therefore quadratic in its length, not linear. Prompt caching blunts the slope, it does not change the shape.

Without durable memory, engineers are pushed the wrong way down that curve. Ending a session means losing state, so they nurse one enormous context all day, stuff ever-larger instruction files into the system prompt, and paste the same design docs back in after every compaction.

Nexus makes short sessions safe. State lives outside the window, so an engineer can close a 60-turn context and open a fresh one that bootstraps in 1,180 tokens — and stay near the cheap end of the curve all week.

retrieval on demand replaces a permanently large prefix
small stable prefixes also cache more reliably

Cumulative input tokens · 60 turns of work
Cumulative input tokens over 60 turns One continuous 60-turn session accumulates about 2.37 million input tokens because every turn resends the whole history. The same 60 turns split into six short bootstrapped sessions accumulates about 549 thousand — roughly 77 percent fewer.
One long session Six bootstrapped sessions
At turnOne long sessionBootstrapped
20429,000183,000
401,218,000366,000
602,367,000549,000

Modelled. 12,000-token cold prefix vs. 4,200-token bootstrapped prefix, 900 tokens added per turn, sessions reset every 10 turns. Assumptions stated in full on the evidence page.

Four places consistent context removes tokens

MechanismWhat it removesPer engineer / week
No rediscoveryCold-start greps, file reads and summarizing at the top of every session~9.5 M tok
Shorter prefixesRetrieval on demand instead of a permanently large system prompt and pasted docs~14.8 M tok
No re-litigatingTurns spent re-explaining a decision — and these land deep in the session, where turns cost the most~8.3 M tok
Survives compactionThe re-summarize-and-recover cycle after a context window fills~6.8 M tok
TotalRoughly a ninth of a full-time engineer's heavy weekly token volume, removed before the proxy even sees it~39.3 M tok

Nexus compounds its own savings instead of double-counting them. Shared memory shrinks the volume of tokens entering the pipeline; the local optimizer then compresses, cache-protects and reroutes whatever is left. The calculator applies those stages in sequence instead of picking the larger number.

Everything, everywhere, one brain

Every agent client your team uses, plus the browser, plus a phone — all reading and writing the same store. Start a task on your laptop, finish it from your phone, and the next session knows both happened.

MCP over stdio · Streamable HTTP with OAuth 2.0 + PKCE · REST

Organized, not a pile

Memories live in named namespaces, so every search, list and write is scoped. Retrieval runs query expansion, weighted fusion across keyword and vector lists, then a cross-encoder re-rank — the difference between "there's a memory about this somewhere" and getting the right one first, which is the difference between a 1,180-token bootstrap and a 9,000-token one.

900-token markdown-aware chunks · never split inside a code fence

Put your own spend in — and dial the claim down if you don't believe it.

The blended rate defaults to the low end of the benchmark band. Drag it anywhere you find credible; the arithmetic is the same either way.

$4,330 is the $1,000 heavy-usage week at the top of this page times 4.33 weeks.
Input tokens removed by bootstrapped short sessions instead of one long one. Applied first, because it shrinks what the proxy ever sees.
Benchmark band is 54–60%. Anything below 54 is you being conservative.
Share of requests matching an already-learned workflow. Zero on day one; grows as the registry fills.
$0 kept per year
Today — straight to the providers$0 / mo
With Nexus$0 / mo
Still billed Removed
LineMonthlyAnnual
Current API spend
Removed by Nexus — shorter, bootstrapped contexts
Removed by compression, cache & routing
Removed by learned workflows
Net spend after

Assumptions: savings apply to metered API spend only, not seat-based subscriptions. The four levers are applied in sequence — Nexus memory shrinks the token volume first, Nexus optimization works on what is left, and learned workflows intercept a share of what remains — so no saving is ever counted twice. Engineer time recovered by Nexus is deliberately excluded; it is real, it is larger than the token saving, and it is not in this number. Where each figure comes from →

Three kinds of number, labelled.

A cost-reduction pitch is only worth as much as its worst-supported claim, so here is the provenance of each one up front rather than in a footnote.

ClaimBasisStatus
54–60% combined reduction200-request synthetic suite, 70/20/10 traffic mix, published list ratesBenchmark
15–40% compression on prior turnsRegex compressor across recorded session bodies; the low end is what cache-safe mode allows on cache-heavy trafficBenchmark
Routing across four providers, liveReference deployment session logs span four distinct upstream providersObserved
Local interception works end to end135 interception results across 70,929 request events in the reference logsObserved
< 1 ms classificationIn-process timing of the classifier stageObserved
Nexus context reductionArithmetic of resending history: a 60-turn session vs. six bootstrapped 10-turn sessions, assumptions publishedModelled
Your annual savingYour inputs, above, times the rate you choseModelled

Cache-safe mode is deliberately conservative: on traffic that is already heavily cached, compression gives up most of its ground rather than risk a broken prefix, because a lost cache hit costs about ten times what the compression saved. That trade is the right one, and it is why the honest compression range starts at 15% and not at 40%.

The honest pilot

Two weeks, observe-only. The proxy logs what every request would have cost direct versus what it actually cost — per session, per model, per engineer. You decide on your measured numbers, not on this page.

1

Point one team at it

One environment variable, or one provider block. Nothing else about the workflow changes.

2

Observe for a week

Routing off. You get a measured traffic mix and compression ratio for your own codebase, with zero behavioural change.

3

Switch it on

Week two runs with routing enabled, so you compare the two weeks against each other rather than against our benchmark.

4

Read the delta

Off your own dashboard. If the measured saving doesn't justify the engagement, it doesn't.

Want this measured against your own traffic?

Book a consultation and we'll scope a two-week observe-only pilot on one of your teams.

Book a Consultation