1 Your agent runs
Hotpath sits between your agent and its MCP server and records every tool call. Today you pick the runs to record; finding the repeated paths by itself is coming soon
A just-in-time compiler for AI agents
It turns the paths your agents repeat into checked code. About 30–60× lower model cost.
Open source (Apache-2.0) · CLI and TypeScript SDK · Claude Code and any stdio MCP agent · OpenAI-compatible APIs and Anthropic
Tool calls run as compiled code, in the same order, with the same checks.
Every workflow is plain JSON you can read, diff and commit; every run is logged.
One small-model call where text needs writing. Most runs never wake the agent.
It notices the new shape and hands the run to your agent instead of guessing.
Works with the agent you already run
Your agent keeps its tools and its model. Hotpath compiles what it repeats. No rewrite.
Hotpath sits between your agent and its MCP server and records every tool call. Today you pick the runs to record; finding the repeated paths by itself is coming soon
Tool calls become checked code. Only the text that needs judgment stays a model step, on a cheaper model.
The model is called only at judgment steps. When a tool changes, your agent takes over for that run and the path is recompiled.
And you pay the model for the same thinking every run. Put in your volume and see the month: with the agent on every run, and with Hotpath serving the repeated work.
The calculator uses only the ratios we measured, nothing else. Measured on Claude (2026-11-16, morning-brief, 10 runs): a Sonnet 5.5 agent run costs $0.0176–0.0179, a Haiku 5.5 replay of new data $0.0005–0.0006. At 1,000 runs a day that is about $537 against $18 a month (about 30×), or about $71 if 1 run in 10 falls back to the agent (about 8×). The Opus line is the same run's tokens at Opus list prices, an estimate, not measured on Opus (about 60×, or 15× with fallbacks). Your agent's cost per run sets the bill; the ratio comes from the model class you pick. The recording run is left out.
Same calls. Same order. You only pay to think once.
A compiled path runs the same way every time, and it stops instead of guessing.
When a tool's output changes shape, the run stops before anything is sent, your agent does that run, and the path is recompiled.
Every report is checked against the data before it is sent. Sums, counts, currency conversions and time-zone conversions are recomputed by code on every run and checked in the report.
Any tool not marked read-only is a side effect. A run that crashes between two actions does not repeat the first one when run again.
--dry-run shows what each side-effecting step
would send, without sending it.
The workflow is a JSON file you can read and commit, and every run is logged.
| Measured | Result | Run |
|---|---|---|
| Data changed shape (8 kinds: renamed, removed or retyped field, new currency, empty result, error payload, extra nesting, renamed tool) | Noticed 8 of 8, nothing sent | bank-reconciliation, two models, 2026-11-16 |
| Recovery by the agent after a renamed field | 3 of 3 | Claude, 2026-11-16 |
| False fallbacks on healthy new data | 0 of 30 | Claude, Haiku 5.5 replay, 2026-11-18 |
| False fallbacks on healthy new data, eleven tasks | 0 of 110 by the bench's rule | qwen3:1.7b, 2026-11-18 |
Synthetic data. On the small model, 11 of the 13 stops were wording slips a reader might accept, so read it as 0–10% depending on how strict you are. The samples are small. Method and every failure: How we measure.
A compiled workflow is a JSON file you can read, edit and commit.
// workflows/morning-brief.json { "steps": [ { "id": "cal", "tool": "get_calendar", "args": { "date": "{{inputs.date}}" } }, { "id": "mail", "tool": "get_emails" }, { "id": "wx", "tool": "get_weather" }, { "id": "brief", "llm": true, "prompt": "Write a short morning brief…", "from": ["cal", "mail", "wx"] }, { "id": "send", "tool": "send_message", "args": { "text": "{{steps.brief}}" } } ] }
Values that change between runs, like a date or a customer id,
become {{inputs.name}}.
Any tool not flagged read-only is treated as side-effecting
and skipped by --dry-run.
hotpath view opens the workflow as a graph in
your browser.
Measured end to end on Claude: repeated data, new data, and a tool that changed under the workflow.
| Scenario | Agent | Hotpath | Faster | Cheaper | Finished |
|---|---|---|---|---|---|
| morning-brief · repeated data (earlier run) | 7.3s / $0.0179 | 0.89s / $0 | 8× | no model call | 10 of 10 |
| morning-brief · new data | 12.4s / $0.0176 | 5.3s / $0.0006 | 2.3× | 29× | 10 of 10 |
| bank-reconciliation · repeated data (earlier run) | 10.1s / $0.033 | 0.94s / $0 | 11× | no model call | 20 of 20 |
| bank-reconciliation · new data | 12.7s / $0.0288 | 4.9s / $0.0004 | 2.6× | 67× | 20 of 20* |
| bank-reconciliation · tool changed | – | recovered, $0.028 each | – | – | 3 of 3 |
Anthropic API, 2026-11-16: Claude Sonnet 5.5 agent, Haiku 5.5 replay, list prices. 10–20 runs per scenario, median time end to end, one recording per task, synthetic data. New-data rows: the latest run, after the engine update of 2026-11-16 (totals recomputed by code, the selected lines checked by rule). Repeated data reuses the saved answer, so it is only right when the data is identical. *Every report correct, no fallback; in the earlier run 4 of 40 stopped and handed the run to the agent. When a tool's output changes shape (8 kinds tested), the replay stops before sending and the agent runs instead. Earlier Groq results and the method: How we measure.
| Hotpath | Re-running the agent | Hand-written script | |
|---|---|---|---|
| Built from one agent run | Nothing to build | By hand | |
| Same steps every run | Varies per run | ||
| Handles judgment calls | Small-model step | Hard-coded rules | |
| Adapts when tools change | Falls back and recompiles | Breaks | |
| Cost per run (morning brief) | $0.0006 | $0.0176 | $0 |
| Changes to your agent or server | None | None | A rewrite |
For teams
For investors
“The cheapest LLM call is the one your agent already made yesterday. Hotpath remembers it.”
No. Hotpath wraps the MCP server your agent already uses. Point
the agent's MCP config at
hotpath record -- <your server> and run it.
Pointing your agent's model URL at Hotpath instead, with no
other change, is coming soon
Any OpenAI-compatible API (OpenAI, Groq, NVIDIA, Kimi/Moonshot, local models and others) and Anthropic's Claude API. Set one model for the agent and a cheaper one for the judgment steps.
The workflow checks each step's output. If it no longer looks right, it falls back to the agent, records a new trace and recompiles.
hotpath show lists every step,
hotpath view draws the graph, and
--dry-run shows what side-effecting steps would
send without sending it.
Local runs: your recordings, workflows, inputs and results stay on your machine; if you sign in, we get only counts, timings, token counts and each workflow's tool names, never inputs, prompts or answers. Cloud runs: workflows you push and each run's inputs and results are stored in our database (Supabase, Frankfurt) and run on Render (Frankfurt); inputs and results are deleted after 30 days. Details in the privacy notice.
The CLI is open source: install it from npm and run the demo in a few minutes. Sign up free, no card, for the dashboard; we turn on cloud runs for small groups of testers first.