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.
git clone --depth 1 https://github.com/joanseg/specmanagerWrote 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/commands/joanseg/specmanager/specmanager-build)<a href="https://agentmods.dev/commands/joanseg/specmanager/specmanager-build"><img src="https://agentmods.dev/badge/commands/joanseg/specmanager/specmanager-build/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/joanseg/specmanager/specmanager-build"><img src="https://agentmods.dev/badge/commands/joanseg/specmanager/specmanager-build.svg" alt="Reviewed on agentmods" width="80" 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.00025 | $0.03368 |
| Opus 5.5 | $0.00010 | $0.01347 |
| Sonnet 5.5 | $0.00005 | $0.00674 |
| Haiku 4.5 | $0.00003 | $0.00337 |
Grade A, and why
specmanager-build 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 17d 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 — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build one phase of the plan for $ARGUMENTS.
$ARGUMENTS is <feature> <phaseName | "next"> [--force] [--bulk].
nextresolves to the first phase whose tasks aren't all done (get_next_phase).- Otherwise
<phaseName>must match a## Phase <name>heading fromplan.mdexactly. --forceallows building out of order. Off by default.--bulkdispatches the whole phase in one builder Task (max tier of its tasks) instead of the default per-task loop. Off by default — an explicit opt-in for tiny, tightly-coupled phases, since it re-accepts one 529's blast radius across the whole phase.
Steps
-
Parse the arguments. Split into
<feature>,<phaseName>, optional--force, optional--bulk. If<phaseName>is missing, ask the user (offerlist_phases({ featureId })). -
Resolve the feature.
list_features→ match byid/slug. Stop if not found. -
Check the Plan is approved.
check_gate({ featureId, stage: "plan" })must beok: trueAND an approvedplandoc must exist (list_documents({ featureId, stage: "plan" })). If not, report and stop — the builder needs a stable plan. -
Resolve the target phase.
next→get_next_phase({ featureId });nullmeans "All phases done — nothing to build", stop. Otherwise find<phaseName>inlist_phases({ featureId }); if absent, list available phases and stop. 4c. Mark the build active (arms the Stop-gate).set_active_build({ featureId, phase: <resolvedPhaseName> })— use the concrete resolved phase name, never"next". This writes the.cache/active-build.jsonmarker that pins the Stop-gate to this exact phase; without it the gate is a no-op. Pair it withclear_active_build()on the terminal paths only — phase complete (step 8) and persistent-fail blocked (step 7b). A mid-phase stop, an exhausted retry budget included, must not clear: the build is still in flight and a re-entered session resumes this phase. -
Order check (unless
--force). If any phase with a lowerorderthan the target hasstatus !== "done", refuse: "Phase X has open tasks — build it first, or pass--force." -
Idempotency. If the target phase is already
done, report and stop — suggest/specmanager-walkthrough <feature> <phaseName>instead. 6b. Confirm the session tier→model table (R2). Once per build session,AskUserQuestionto confirm or remap which Claude Code model alias each complexity tier dispatches at. Pre-fill the defaults fromcore/tiers.ts: cheap →sonnet(complexity 1), standard →sonnet(complexity 2), strong →opus(complexity 3, and anything >3 / unscored) — cheap issonnet, nothaiku: Haiku 4.5's 200K context cap is a correctness cliff, not a cost preference. Offer the defaults as the recommended option plus an "allopus" / custom alternative. Hold it in session state for this build —aliasForTiertakes it assessionTable, so what you return is live. Always use aliases, never dated model ids. If the user declines, keep the defaults. -
Invoke the builder (per-task tier dispatch is the enforced default;
--bulkis the opt-in). Work the phase's tasks independsOnorder.Default — per task (N=1, no flag). For each task: read its
complexity(list_tasks), resolve it through the session table (1 → cheap, 2 → standard, 3 → strong, >3 or null → strong), and dispatchAgent({ subagent_type: "builder", model: <alias>, prompt: ... })with: feature id/title/slug, the resolved phase name (notnext), the single task id + title, the Plan doc id, and the phase's exit-test line lifted fromplan.md. If the resolved alias is unknown/unavailable, omitmodel:so the builder runs at the session default (inherit) — never error or block (AC4). The builder marks that taskin_progress→donewith artifacts; on its return move to the next task. Per-task is the default because it isolates a 529 to a single card.Opt-in —
--bulk. When--bulkwas passed (step 1), dispatch all the phase's tasks in one builder Task at the max tier of its tasks (resolve each task's alias, pick the strongest). Then fall through to step 8's re-resolve exactly as the per-task path does.
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.
- 17d ago Changed · -13 lines ba1b7fa9e1ba
- 1mo ago First seen · 92 lines · 25 tokens per session scan A 5afc6e0fe663
specmanager-build is a command published in the GitHub repository joanseg/specmanager (23 stars, last pushed 14d ago), licensed MIT. It adds 25 tokens to every session and 3,368 once invoked, about $0.0001 per session on Opus 5.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-30.
Other commands, from other repositories
implementation-plan
Define an incremental plan for the active task as IMPLEMENTATIONPLAN.md plus a TASKSTATE.md update: smallest safe slices with scope, validation and exit criteria. No code is written. A --spec mode derives slices from a spec or PRD. A retrofit mode annotates in-progress plans so they can adopt implement-fleet. Do not…
slice-closure
Decide whether the current slice is ready to close, separating slice completion from task completion, and record the result in slice notes and TASKSTATE.md. Use when a slice was implemented, validated or reviewed and may be ready to close. Do not use before slice implementation, during planning, or for overall task…
task-close
Close a whole finished task: verify the spec done-conditions, set TASKSTATE.md to its final closed state, and move the folder from active/ to archive/. Use when all slices are closed, the work is merged or explicitly waived, and the task is ending. Do not use for one slice (use slice-closure), unfinished work…
autonomous-run
Run one approved task in one supervised session with the direct-use reference dispatcher, delegating verifiable slices to existing commands and emitting PROPOSED diffs only and never creating commits or attestation refs. Use when a maintainer invokes Fhorja directly after approve-plan and a BOOT verdict from…
pr-feedback-ingest
Turn PR feedback (Greptile, CI, bots, humans) into a traceable backlog, so the next step is a narrow implement-approved-slice. Corrective scope only. Use when a PR has review feedback to map to files and slices. Do not use for a new direction or contract (use post-review-pivot), no payload, or task-memory drift only…
execute
Execute the next available tracked task with TDD, pre-commit validation, PR creation, AI code review, and issue tracker bridge sync.