mp-spec-decomposer

mp-spec-decomposer is an agent for coding agents from rasatpetabit/masterplan. It costs 93 tokens per session (1,784 once invoked), scanned A, original, MIT.

An agent that splits an approved software specification into separate subsystems, or coherent parts of a system, for parallel planning. It also decides whether parallel planning is worthwhile.

In plain words
What is it for?
Use it after approving a specification to define the subsystems that other planning agents will cover.
Why use it?
It helps identify clear boundaries between parts of a project before assigning planning work, while avoiding parallel planning when it would not help.

Agent

Part of the masterplan plugin — 2 skills, 1 command, 7 agents, 1 hook shipped together

Install

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.

agentmods
npx agentmods add agents/rasatpetabit/masterplan/mp-spec-decomposer
Clone the repo
git clone --depth 1 https://github.com/rasatpetabit/masterplan

Or install masterplan, the plugin that ships this one along with the rest of its 2 skills, 1 command, 7 agents, 1 hook.

Wrote 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.

agentmods badge for mp-spec-decomposer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rasatpetabit/masterplan/mp-spec-decomposer.svg)](https://agentmods.dev/agents/rasatpetabit/masterplan/mp-spec-decomposer)
Your own site
<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>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash 867bf9e50cee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

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.

agents/mp-spec-decomposer.md · 114 lines

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.mjs swaps 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.md and goals.md (both provided as quoted data alongside the repo, for context on where each subsystem's code lives) and return a digest. You never write state.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_parallel is advice; L1's planning.mode (serial/parallel/auto) makes the final call. Under auto, 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.

Read the full file on GitHub · 114 lines

Changes

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.

  1. 5d ago First seen · 114 lines · 93 tokens per session scan A 867bf9e50cee

Subscribe to this mod's changes

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.