AI Coding Agents
Use a coding-agent plugin when you want to route tasks without changing application code. Claude Code and Codex are supported today.
| Agent | Maturity | Integration shape | Verification |
|---|---|---|---|
| Claude Code | Supported plugin | Marketplace plugin and slash commands | /hokusai:doctor |
| Codex | Supported plugin | Codex plugin with skills and an MCP server | $hokusai-doctor |
The interactive integration guide contains the current installation commands for both agents.
Common setup
- Create a Hokusai API key.
- Export
HOKUSAI_API_KEYbefore starting the coding agent. - Install the Hokusai plugin for that agent.
- Start a new session or reload plugins.
- Run the plugin doctor.
- Route one real task.
The coding agent only sees environment variables available when it starts. If the doctor reports a missing key, exit the agent, export the key in that shell, and start it again.
Completion checkpoints
The plugin doctor should report:
Connected · Routing enabled · Ready
Then route one task:
# Claude Code
/hokusai:route Find the performance bottleneck in this function.
# Codex
$hokusai-route Find the performance bottleneck in this function.
You are integrated when the command returns a model recommendation. The coding agent remains responsible for reviewing and executing that recommendation.
Optional outcome contribution
Outcome reporting is off the critical path. Route a task successfully before changing contribution settings.
When you opt in, the plugin previews the redacted contribution payload before submission. Raw prompts, tool arguments, completion text, secrets, and repository contents should not be included in an outcome row.
See Outcome Reporting for the contribution flow and fidelity tiers.
Troubleshooting
See Router Troubleshooting for missing credentials, plugin registration, candidate-model, and contribution-tier errors.