Getting Started
Start with the Technical Task Router if you are evaluating Hokusai for an engineering agent or coding harness.
The router accepts a task, normalizes it into a task packet, chooses a route from historical outcomes, and returns a recommendation. Your harness executes that recommendation and reports the result.
Choose Your Path
Integrate the Router
Use this path if you operate a coding harness, internal agent, benchmark runner, or autonomous engineering workflow.
- Read Inside a Routing Decision.
- Follow the Router Quickstart.
- Map your task format to a Task Packet.
- Execute the selected route inside your harness.
- Report the result through Outcome Reporting.
Evaluate Routing Quality
Use this path if you want to understand whether routing improves cost, reliability, or task acceptance.
- Define the tasks you want to route.
- Decide which models and workflow stages are available.
- Pick evaluation signals: tests, review score, human acceptance, cost, latency, and regressions.
- Compare Hokusai-selected routes against your current baseline.
- Inspect how feedback changes future routing decisions.
Understand Rewards
Use this path if you want to understand why contributors receive tokens and where value comes from.
- Routing calls pay per-decision fees.
- Fees back the router's token economics.
- Outcome data improves future route quality.
- Verified routing improvements can mint contributor rewards.
See Contributor Rewards and Rewards and Fee Flow.
Minimal Integration Shape
import { route } from '@hokusai/router';
const decision = await route({
task: userTask,
context: harnessContext,
});
const result = await runInHarness(decision);
await route.reportOutcome({
decisionId: decision.id,
result,
});
What the Harness Owns
Hokusai recommends the route. Your harness still owns:
- Prompt construction
- Context selection
- Tool permissions
- Model execution
- Retry policy
- Test execution
- Human review workflow
- Final acceptance decision
Legacy and Protocol Docs
The repository also contains detailed documentation for the broader protocol: model lifecycle, BenchmarkSpec, data contribution, AMM mechanics, smart contracts, and deployments. Those pages remain available under Protocol Internals and Reference, but they are no longer the primary first-run path for router integrators.