A just-in-time compiler for AI agents

Your agent does the job once. Hotpath runs it every day after.

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

~/agents · zsh
groq · gpt-oss-20b
wrap your agent's MCP servercompile one runrun it every dayWorks with Claude Code and any stdio MCP agent

Same result every run

Tool calls run as compiled code, in the same order, with the same checks.

A record of what ran

Every workflow is plain JSON you can read, diff and commit; every run is logged.

The model only for judgment

One small-model call where text needs writing. Most runs never wake the agent.

Recovers when a tool changes

It notices the new shape and hands the run to your agent instead of guessing.

How it works, in three steps.

Your agent keeps its tools and its model. Hotpath compiles what it repeats. No rewrite.

inbox-triagerecording
get_calendar {date}38ms
get_emails {unread:true}41ms
get_weather {city}29ms
agent: summarize · judgment2.9s
send_message {to, text}33ms

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

get_calendar get_emails get_weather llm: brief send_message

2 Hotpath compiles what it repeats

Tool calls become checked code. Only the text that needs judgment stays a model step, on a cheaper model.

hotpath run morning-brief1 llm call
5.3s$0.0006
cli start 0.6stools + 1 model call 4.7s
The agent, same task12.4s · $0.0176

3 Runs are served from the compiled path

The model is called only at judgment steps. When a tool changes, your agent takes over for that run and the path is recompiled.

Your agents redo the same work every day.

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.

Agent model priced like
Runs that fall back to the agent
Day 0 of 301,000 runs a day · per-day cost
MonTueWedThuFriSatSun
agent, every run from scratch Hotpath replay recorded once tool changed, healed

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.

Built to be trusted with real work.

A compiled path runs the same way every time, and it stops instead of guessing.

bank-reconciliation · tool changeddrift
Drift detecteda field was renamed; nothing sent
step 3
Fell back to the agenttask finished, new trace recorded
agent
Recompiledsafety check passed
v2
Back on the fast pathnext run
next run

Drift recovery

When a tool's output changes shape, the run stops before anything is sent, your agent does that run, and the path is recompiled.

Guards on the written text

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.

Side effects never repeated

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 runs

--dry-run shows what each side-effecting step would send, without sending it.

A record of what ran

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.

Tool calls become code. The model only judges.

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}}" } }
  ]
}

Inputs, not constants

Values that change between runs, like a date or a customer id, become {{inputs.name}}.

Side effects are marked

Any tool not flagged read-only is treated as side-effecting and skipped by --dry-run.

See the whole graph

hotpath view opens the workflow as a graph in your browser.

The numbers behind the bill.

Measured end to end on Claude: repeated data, new data, and a tool that changed under the workflow.

The agent 12.4s · $0.0176 Claude Sonnet 5.5, every step, every run
  • Decides each tool call again
  • Answer shape varies run to run
  • Adapts to anything
Hotpath 5.3s · $0.0006 Same task, new data · about 30× cheaper, 2.3× faster
  • Tool calls run as code
  • One cheap-model call for the brief
  • Falls back to the agent on drift
Start free
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.

How Hotpath compares.

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 the teams who run agents, and the people who back them.

For teams

Start with one workflow, on your laptop.

  • Open-source CLI, no account: record a run, compile it, replay it.
  • Your data stays on your machine. The dashboard is optional and only sees run summaries.
  • Design partners: we compile one of your real workflows with you and measure what it saves.
Become a design partner

For investors

The layer that makes agents cheaper every run.

  • Why now. Agents are moving into production, and every run pays for the same reasoning again.
  • What we build. A harness layer that learns from its own runs: compiled steps first, then small local models for the judgment that is left.
  • Where we are. Open source, 0.4.1 on npm, benchmark and limits published. Looking for our first design partners.
Talk to the founder
“The cheapest LLM call is the one your agent already made yesterday. Hotpath remembers it.”
Why Hotpath existsA JIT compiler for AI agents

Quick answers before you sign up.

Do I have to change my agent?

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

Which models does it work with?

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.

What if a tool's output changes?

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.

Can I see what it will do before it does it?

hotpath show lists every step, hotpath view draws the graph, and --dry-run shows what side-effecting steps would send without sending it.

Where is my data stored?

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.

How do I get it?

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.

Stop paying to think twice.

Sign up free Free · no card · open source

Not ready to sign up? Get product news only, a few emails a year. Stored with Formspree; unsubscribe any time. See pricing