Subagent Router
Governance-Learning Default
Before acting on a durable error, escaped defect, failed mechanism, failed simulation, bad generated artifact, semantic drift, quality-gate miss, latency breach, architecture decision, validation result, or release-risk learning, search Casebook and related governance truth first. Read prior failed mechanisms, failed fix attempts, rejected approaches, guardrails, and validation history; do not repeat a fix path that already failed. Capture new mechanism-level learning in Casebook or Compass, and update Radar or plans, Registry, and Atlas when the learning changes planned work, component contracts, or flows.
CLI-First Non-Negotiable
- CLI-first is non-negotiable for both Codex and Claude Code. Remove all hand-authoring for places where Odylith CLI should be doing the heavy-lifting. When an Odylith CLI command exists for an operation, you must call the CLI command and you must not hand-edit governed files the CLI owns. Hand-authoring governed truth where a CLI exists is a hard policy violation, not a stylistic preference. The authoritative policy, CLI surface enumeration, allowed hand-edit surfaces, and failure-mode handling live in
odylith/agents-guidelines/CLI_FIRST_POLICY.md, anchored by Casebook learningCB-104. The rule travels through routedspawn_agentleaves on Codex and Task-tool subagents on Claude Code, so delegated work inherits the same contract.
Use this skill when the task is about choosing local execution versus delegation and about shaping route-ready execution payloads.
Default Flow
- preserve retained routing data
- default to routed native delegation for substantive grounded work when the route is bounded, the host transport supports it, and active host policy allows it unless Odylith returns
main_thread - keep consumer-facing route explanations task-first; do not narrate routing or degraded-start history unless a command, blocker, or lane distinction matters
- keep Odylith ambient by default during work; weave routing facts into ordinary updates and only emit explicit
Odylith Insight:,Odylith History:, orOdylith Risks:lines when the signal is real - reserve Odylith-by-name closeout text or visible-intervention fallback for one optional
Odylith Assist:line grounded in concrete observed counts, measured deltas, or validation outcomes, or a concrete chat-visibility complaint. Prefer**Odylith Assist:**when Markdown formatting is available. Lead with the user win, link updated governance IDs inline only when they actually changed, name affected governance-contract IDs from bounded request or packet truth when no governed file moved, frame the edge againstodylith_offor the broader unguided path when the evidence supports it, and keep it crisp, authentic, clear, simple, insightful, erudite in thought, soulful, friendly, free-flowing, human, and factual. Silence is better than filler. - keep reasons-to-stay-local explicit
- let Odylith-earned depth and delegation readiness drive the model ladder instead of manually jumping to the heaviest tier
- prefer additive routing contracts over prompt-only conventions
- treat native delegation as gated by host transport and active host policy; Codex emits routed
spawn_agentpayloads subject to that policy, while Claude Code uses Task-tool subagents plus the same routed contract and checked-in.claude/project assets