Documentation
README
External Model Delegation Pattern
A UserPromptSubmit hook classifies every user prompt into one of six cost/performance tiers. The hook injects additionalContext instructing Claude to run a specific delegation script and return the output.
Tier routing table
| Tier | Delegation command | Cost |
|---|---|---|
| QWEN | qwen3 "prompt" |
$0 (local Ollama) |
| DEEPSEEK_FLASH | deepseek --flash "prompt" |
$0.14 / $0.28 per M tokens |
| DEEPSEEK_PRO | deepseek --pro "prompt" |
$0.44 / $0.87 per M tokens |
| KIMI | kimi --quiet -p "prompt" |
$0.60 / $2.50 per M tokens |
| CODEX | codex exec |
varies |
| CLAUDE | handle natively | $3-5 / $15-25 per M tokens |
This is the opening of the README. Read the full README on GitHub.