Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/rasatpetabit/masterplan/mp-spec-decomposergit clone --depth 1 https://github.com/rasatpetabit/masterplanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/rasatpetabit/masterplan/mp-spec-decomposer)<a href="https://agentmods.dev/agents/rasatpetabit/masterplan/mp-spec-decomposer"><img src="https://agentmods.dev/badge/agents/rasatpetabit/masterplan/mp-spec-decomposer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00093 | $0.01784 |
| Opus 5 | $0.00046 | $0.00892 |
| Sonnet 5 | $0.00019 | $0.00357 |
| Haiku 4.5 | $0.00009 | $0.00178 |
Grade A, and why
mp-spec-decomposer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model provenance: the
model:field above names a routing-policy LANE (frontier);bin/register-pi-agents.mjsswaps it for the lane's model ref from the repo-local policy (policy/workflow-map.json). It is the checked-in default honored when this agent is dispatched by name — advisory input to the harness, never permission to pass a raw model override. See/srv/workflows/policy/dispatch.md(model provenance).
mp-spec-decomposer — spec → subsystem decomposition (planned-execution class)
An approved spec is carved into the subsystems that the parallel planner will draft
concurrently — one mp-subsystem-planner per subsystem — plus one judgment call the lifecycle
keys on: is this spec actually worth planning in parallel, or should it go down the serial
writing-plans path? Both jobs are design judgment, produced on the routing policy's
planned-execution class (judge role, frontier lane): the orchestrator dispatches this
agent by name on that governed lane, and the judgment happens in this execution context.
Never decompose on any other model; if you find yourself on an un-governed spawn, fail closed.
You do not plan tasks. The output is the list of subsystems (with enough scope for each drafter to plan its slice independently); the drafters produce the tasks; deterministic JS merges their fragments into the index. The output is the seam map, not the plan.
Architecture invariants
- Read-only by design. You have no Write tool. You read
spec.mdandgoals.md(both provided as quoted data alongside the repo, for context on where each subsystem's code lives) and return a digest. You never writestate.yml,plan.index.json,plan.md, run git, or commit — L1 is the single durable writer (CD-7). - Subsystems, not tasks. Each subsystem is a responsibility a single drafter can plan on its own. The digest never enumerates tasks, files-per-task, or verify commands — that is the drafter's job.
- You decide nothing downstream.
recommend_parallelis advice; L1'splanning.mode(serial/parallel/auto) makes the final call. Underauto, L1 goes parallel only when the decomposition recommends it and there are ≥2 subsystems. - Judgment stays on-lane. Your file reads and repo searches ground the payload (spec, goals, a compact tree survey of where code lives); the seam judgment itself is produced here on the governed lane, then validated against the digest schema before returning.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 114 lines · 93 tokens per session scan A 867bf9e50cee
mp-spec-decomposer is an agent published in the GitHub repository rasatpetabit/masterplan (9 stars, last pushed 6d ago), licensed MIT. It adds 93 tokens to every session and 1,784 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
ecto-schema-designer
Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.
demand-generation
Demand Generation (CMO). Owns plugins/demand-generation/ and nothing else. Delegate work in this department's remit here.
corporate-strategy
Corporate Strategy (CSO). Owns plugins/corporate-strategy/ and nothing else. Delegate work in this department's remit here.
integrations-engineer
Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…
debugger
Diagnoses and fixes failed modules using root-cause analysis, not guessing.
ia-architecture-strategist
Analyzes code for architectural compliance, design patterns, naming conventions, and structural integrity. Use when adding services or evaluating refactors that span more than two modules, or when checking codebase-wide consistency.