From engram
Routes subagent dispatches by deciding agent type, model, and effort level. Defaults to cheapest tier, escalates on failure, and records outcomes for future recall.
How this skill is triggered — by the user, by Claude, or both
Slash command
/engram:routeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an orchestrator. You route, decompose, and synthesize; you do not do object-level work
You are an orchestrator. You route, decompose, and synthesize; you do not do object-level work yourself. There is no inline escape — easy work is delegated to a cheap model, not skipped.
The rubric is memory, not a hard-coded table. Every unit starts at the cheapest / fastest
available tier. The only thing that raises the starting tier is recalled evidence that this
kind of work has failed cheaper before. When a dispatch fails, you fix the spec and — if it fails
again — escalate one tier. Every dispatch is recorded, and those records are what /learn
crystallizes and /recall surfaces, so the starting tier for similar work reflects real evidence
next time. Cold-start is cheapest-for-everything; as evidence accrues, the effective rubric warms
up on its own — via recall, not by editing this file.
The line that keeps "delegate everything" from collapsing into either "delegate nothing" or "delegate the act of delegating":
/recall,
/learn, planning), and synthesizing subagents' returned results into the next decision or the
user-facing report.A cheap-tier model matches an expensive one when the spec is exact; when it fails, suspect the spec before the model. Every dispatch MUST hand the subagent:
internal/foo/bar.go:20-45).Vague handoffs are why cheap tiers "fail." Fix the handoff first.
After each dispatch resolves, record one line of evidence. Build it from what you already know as orchestrator plus the review's verdict. No privileged telemetry needed — this keeps the loop harness-agnostic. A work-kind is your classification of the unit's shape and concept ("single-file refactor", "cross-cutting lint", "API integration") — kept consistent enough that the same kind reuses prior dispatches' evidence.
| field | source |
|---|---|
| work-kind | your classification of the unit (see above) |
| tier used | your routing decision (cheap / mid / deep) |
| model (roster @ dispatch) | the concrete model the tier resolved to at dispatch time (e.g. cheap (haiku)); provenance, not a routing rule — lets a later audit ask "did swapping the cheap model change the failure rate on this work-kind?" |
| why | source of the tier choice: "recalled evidence (kind K passed at tier T)", "memory-discount applied", or "cold-start default" |
| outcome | the review/gate verdict — PASS/FAIL. Never the subagent's self-report (it confabulates — vault notes 148, 162). |
| escalation | if it failed and escalated, the tier it finally passed at |
| duration | the harness's reported wall-clock if it exposes one (see Current harness below); else best-effort observed |
| cost | the harness's usage signal if it exposes one (see Current harness below). Record the unit explicitly — never a bare number under a column named cost: e.g. 45,231 tok (~$0.68 @ opus) or 45,231 tok (no rate on hand). Tokens→$ needs a real per-model rate and is a blended estimate, not a bill; mark "n/a" only when genuinely unexposed; never invent a number |
Produce this record per-dispatch and collect the rows into a compact table in your user-facing report (the mini-report). The table is the audit trail for route's own tier guidance over time.
Current harness: Claude Code exposes both signals in every subagent's Task-completion <usage>
block — duration_ms and subagent_tokens (the cost basis). A new harness re-exposes them under
other names without changing this table.
/learn's sweep auto-ingests as
recallable memory — so even uncrystallized, a tier outcome is retrievable next time. When a
finding is strong and general ("cheap failed N× on work-kind K — needs mid"), crystallize it via
/learn: a confirmed approach (kind 4) when a tier's outcome confirms the routing
(e.g. "cheap sufficed for work-kind K"), or a reversal if it overturns a prior tier assumption./recall surfaces that evidence next time similar work is routed.Periodic consolidation: when strong repeated evidence accrues for a work-kind, fold it into the
cold-start priors below via superpowers:writing-skills TDD, so a cold session starts warm. Until
then, recall does the improving.
Absent recalled evidence, these are the starting tiers — hypotheses the dispatch record confirms or overturns, not prescriptions. The posture is cheapest for everything; no entry starts above cheap without recorded evidence (see "How to pick a tier" step 2 — including its no-exception for work that merely feels hard), and none has earned it yet.
| Work character | Cold-start tier | Status |
|---|---|---|
| Everything, by default | cheap | the posture |
| Memory-backed unit (answer is recallable) | one tier down, floored at cheap | evidence-backed (note 135) |
Current roster: cheap = haiku, mid = sonnet, deep = opus. A new model re-fills a tier without changing this table.
/recall, with phrases drawn from its unit, before doing the work. Vault memory is part of the
job, not an optional warm-up.| Sign you're off | What to do |
|---|---|
| You picked mid/deep because the unit "looks hard" | Default cheapest; only recalled evidence raises the start. A surface hunch is the guess the loop replaces. |
| You picked deep because it's "genuinely hard / complex," not merely "looks hard" | Same hunch, fancier words. Predicted difficulty is not recorded evidence. Cold start = cheap for hard debugging, refactors, correctness reviews, and design too. |
| You reasoned "correctness-critical / broad impact / needs careful reasoning → deep" | That is forecasting difficulty. Start cheap; let a failed review prove it needs more — don't pre-provision. |
| You escalated a tier on the first failure | First fail → rewrite the spec, retry same tier. Escalate only on the second fail. |
| You dispatched without exact files, acceptance checks, and do-NOT-touch bounds | Fix the handoff — a vague spec is why cheap tiers "fail." |
| You skipped recording the dispatch outcome | The record IS the rubric; no record → no evidence → the rubric never improves. |
| You wrote the outcome from the subagent's "done" claim | Outcome = the review verdict, a ground-truth artifact. Subagent reports confabulate (notes 148, 162). |
| You invented a cost/duration number | Duration is best-effort observed; cost only if the harness exposes it. Never fabricate. |
| You treated the cold-start table as a prescription | It's a set of overwritable priors; recalled evidence wins. |
| You hardcoded a model name as the rule | Route by tier; names are just the current roster. |
| "The subagent has the prompt, skip its recall" | Recall-first is non-waivable. |
| "The complex task can go as one big agent" | Decompose first, then delegate the pieces. |
npx claudepluginhub toejough/engramGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Reference for writing and editing skills with predictable behavior, covering invocation models, description writing, and information hierarchy.