Repository navigation
Miwarang Senpi Delegate v0.9.0
Miwarang Senpi Delegate v0.9.0
Unified, prompt-driven delegation. Miwarang is no longer an OMO route table:
it is a delegation tool any agent platform can call with a prompt, while each
backend harness owns its model and agent.
Breaking changes
- Routes removed.
miwarang_delegatenow takesprompt,mode,
backend, andcwdonly. Theroutes,defaultRoute,
defaultModels,pricePolicy,defaultBackend, andblockNativeTask
config keys were removed; configs containing them fail validation with a
migration message. Backend order and fallbacks live in the top-level
delegationchain. - OpenCode runs through its CLI. The experimental
opencode-v2SDK
backend was removed. OpenCode is now anopencode-clicommand backend
runningopencode run --agent {{agent}}per the current
opencode.ai/docs. - Miwarang never selects models. All model plumbing (
{{model}}
placeholders,listModelsArgvprobes, model candidate lists) was removed.
Each harness owns its model. - Per-backend agents. Each backend config may set
agent(for example
Orchestratorfor OpenCode,Generalfor Command Code); Miwarang passes
it through{{agent}}. The delegate tool no longer acceptstarget,
model, oragentparameters. - The native-task interception hook was removed together with the route
system; Miwarang is harness-agnostic, not OMO-specific.
Preserved
- The OMO thread bridge: background runs keep
omoThreadIdalongside the
backendrunId, returned bymiwarang_wait/miwarang_cancel. - Provider-failure failover across the delegation chain (quota, rate limit,
429, upstream session failures) for foreground calls and for background
calls before a run ID exists. - Run records under
runsDirectorywith the same lifecycle tools.
Verification
bunx tsc --noEmit: exit 0.bun test: 71 pass / 0 fail / 149 assertions / 11 files.- Real-surface probe (Senpi 5.1.70 headless): a stub command backend received
run --agent Orchestrator Return exactly MIWARANG_V09_OK— the configured
agent passed through, no--model, no target key; loader exit 0.
Companion skill
The delegation skill was renamed and rewritten for this contract:
miwarang-skill
(skill id miwarang, v1.0.0).