external-model-delegation

Installation
SKILL.md

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

Delegation script pattern

Each script is a self-contained executable in ~/bin/ that accepts a prompt and writes the response to stdout:

Installs
2
Repository
alinaqi/maggy
GitHub Stars
708
First Seen
3 days ago
external-model-delegation — alinaqi/maggy