Scan · Early access
Find out what happened to the code your agents merged.
Hokusai analyses your PR history and shows which changes survived, which required rework, and what predicts failure.
We don't guess which code looks better. We predict which code survives.
The loop
A sequence a reader can locate themselves in. Routing is one act of this loop, not a legacy product below the fold.
- 1
Route the work
Pick the model most likely to deliver work that survives, from the pool your environment can actually run.
- 2
Generate alternatives
Have competing implementations drafted so you can compare them, not accept the first thing that compiles.
- 3
Arbitrate the result
Score each PR on how likely it is to need rework after merge, learned from outcomes across many codebases.
- 4
Learn from what survives
Reverts, fix PRs, and incidents already live in your git history. Each outcome makes the shared models sharper.
Before you merge
Compare competing implementations and flag risky PRs.
After you merge
Learn from what survived.
Across organisations
Contribute those outcomes to models everyone can use, and that contributors own.
What the scan measures
Measurements, not opinions.
Each PR you merged becomes a data point in a measurement window with known outcomes. The scan reads what your git history already records.
30-day horizon
Rework measured 7, 30, and 90 days after merge.
3 outcome signals
Reverts, fix PRs, and incidents linked to the change.
Per-PR prediction
Each PR gets an out-of-sample survival score and a flagged decision.
Agent decisions, informed by real outcomes.
Rework Risk
Early accessReview the agent code that needs it.
A 30-day rework risk score on every pull request, learned from what actually happened across many codebases.
See how it worksModel Match
LiveSpend less on models without losing quality.
Picks a model from your pool for each coding task, based on how similar tasks turned out.
Start routingYour decision here
Open to partnersBring outcome data for a new model.
Tool selection, escalation, and retrieval are next. Have outcomes for a decision your agents make? Build it with us.
Talk to usHokusai is a protocol for setting up decision models for AI agents and the incentives around them. Each model stands on its own and learns from outcomes across many organizations. Hokusai measures every improvement and gives the people who made it a stake in the model.
For agent builders
Keep your harness. Stop hand-building every decision inside it.
Whether you run Claude Code and Codex, a multi-agent harness, or custom agents built in-house, your loop is full of decisions: which model, whether a change is safe to rely on, where a human should look. You can train those on your own history, but the outcomes that matter are rare and slow to show up. Models built on Hokusai learn from many teams at once.
Neutral
No preferred harness, model provider, or tool.
Advisory
A score or recommendation your code acts on, outside the request path.
Owned
Keep the ownership your outcomes earn, or pass it through to your users.
Integration
Bring Hokusai to your existing workflow.
Use Hokusai from coding assistants, agent harnesses, backend services, or direct API calls. Pick the path that matches your workflow, then route tasks and report outcomes.
Choose an integration point
Start from the workflow you already use: a coding assistant, an agent harness, application code, or a direct API call.
Route against your model pool
Pass only the candidate models your environment can actually run. Model Match recommends one; your system still executes the task.
Report outcomes
Send coarse success, cost, latency, and token signals back so Model Match improves.
Coding / Multi-Model Routing
Model Match
Model Match's first training corpus comes from real autonomous coding evals, not synthetic routing examples. The data spans migrations, features, bug fixes, infra, tests, refactors, and docs across TypeScript, JavaScript, Python, Bash, and mixed-language repos. This provides a starting point for learning routing behavior while leaving clear room to expand coverage across more repositories, languages, and task families.
When we're compared to…
Eval platforms
Braintrust, LangSmith
- They help you evaluate what your agents did. Rework Risk learns what happened afterward, across organizations, and predicts which work will hold up. They work well together.
AI code review
Review bots, static analysis
- They review the PR as it looks today. Rework Risk predicts what happens to it after merge, scored against what actually happened.
Tests
Unit, integration, CI
- Tests tell you code passes. Rework Risk predicts what happens to code that passed.
Routers and gateways
OpenRouter, Not Diamond
- Model Match is a model router that never sits in your request path. It recommends a model from your pool based on how similar tasks turned out.
Building it in-house
Your own history
- You can. But rework is rare and slow to observe, so no single team sees much of it. Rework Risk learns from far more, and you keep your harness.
Shared intelligence. Shared ownership.
Hokusai is the protocol underneath every model. Each model is owned by the people who improve it. When your outcome data produces a measurable improvement, the protocol mints you tokens in that model. For Model Match, that token is HROUT.
Integrators pay per-decision fees in USDC, and tokens redeem against those fees. Keep your stake, pass it through to your users, or redeem it for USDC anytime.
How ownership works