subagentskills

.com agent skill

← all skills

model-routing-hooks

open cwc-engineering skl_model_routing_hooks
description (verbatim frontmatter)
The zero-token model router + telemetry spine for Agent/Task dispatches: four stdlib-only python3 hooks in scripts/hooks/ (PreToolUse router rewriting an absent `model` param to sonnet via updatedInput, async PostToolUse usage capture, SessionStart policy context, async Stop flush of redis route:queue into postgres agent_dispatch_events). Use when the user asks "why did my subagent run on sonnet", "route subagents to a cheaper model", "model router", "routing-rules.json", "route:queue", "agent_dispatch_events", "subagent token telemetry", "pin a subagent's model", or wants to change/disable the routing policy or query per-dispatch token spend. This skill owns the hook layer only — the eval and optimizer that consume agent_dispatch_events live at eval/ and optimizer/ inside this same skill dir (built separately; reference by path).
summary

The zero-token model router + telemetry spine for Agent/Task dispatches: four stdlib-only python3 hooks in scripts/hooks/ (PreToolUse router rewriting an absent `model` param to sonnet via updatedInput, async PostToolUse usage capture, SessionStart policy context, async Stop flush of redis route:...

source

plugins/cwc-engineering/skills/model-routing-hooks/SKILL.md

provenance

created 2026-07-10 18:13:13 · JSON