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.05287 |
| Opus 5.5 | $0.00010 | $0.02115 |
| Sonnet 5.5 | $0.00005 | $0.01057 |
| Haiku 4.5 | $0.00003 | $0.00529 |
Grade B, and why
specmanager-build scanned grade B with 1 finding 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 26d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
6c. **Ask for human prerequisites (once per build session, before 6b).** Read the target phase's `prerequisites` from `list_phases`. None → skip silently. Otherwise one `AskUserQuestion` listing each item (title, kind, ` How it starts
The opening of the file, as written. The whole thing — 103 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 }). Onnull, checklist_phases({ featureId }): if it has anemptyphase withkind: "placeholder", report "Placeholder phase awaits/specmanager-plan <feature>(fill after the spike)" and stop; otherwise report "All phases done — nothing to build" and stop. Otherwise find<phaseName>inlist_phases({ featureId }); if absent, list available phases and stop. A named phase withkind: "placeholder"is refused with the same placeholder message. 4c. Mark the build active (arms the builder 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 — aSubagentStophook that judges each builder as it completes — to this exact phase, and resets the phase's retry budget (every dispatch's N=3 counter starts again at zero); 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, a capped task or 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. 6a. Git strategy (once per build invocation, before 6c/6b; the bulk path asks the same once).- Learn, read-only. First the managed
CLAUDE.mdblock's### Git strategy(last confirmed strategy), then the newest few walkthroughs'### Git strategy(list_documents({ stage: "walkthrough" })), and any branching rule in the project'sCLAUDE.md. Then git:git branch --show-current; the default branch (git symbolic-ref --short refs/remotes/origin/HEAD, elsemain/master);git branch -anaming prefixes (feat/,fix/…);git log --oneline -20(message style, one commit per task or not); unmerged branches ahead of the default (stacking);git status --short(unrelated uncommitted work). Detached HEAD or no git repo → report it, skip the proposal, and ask whether to continue. - Suggest one proposal, each item with a one-line reason from what you observed: base branch; working branch
<prefix><slug>(reuse the current branch if it already is this feature's); granularity (one commit per task, staging only that task's files); message style (follow the log); push policy (never push until the user says); unrelated uncommitted work (leave untouched — never stash or commit it). - Confirm.
AskUserQuestion: Use this strategy (recommended) / Stay on the current branch / Other (free-text edits; apply them, show the result once). Never create a branch, switch, or commit before the answer. - Apply here, in the main session:
git switch -c <branch> <base>, orgit switch <branch>if it exists; uncommitted work carries over. Never commit, merge, rebase or push to the base branch. 6c. Ask for human prerequisites (once per build session, before 6b). Read the target phase'sprerequisitesfromlist_phases. None → skip silently. Otherwise oneAskUserQuestionlisting each item (title, kind,grantVia) with options Provide now (recommended) and Start now and ask when actually needed. Always suggest granting Claude access instead — connect an MCP server, log in a CLI, or export a token env var — so Claude can do the setup itself. Hold the answers (provided / deferred per id) in session state. Test accounts are the one exception, because the reviewer must sign in with them: whenever the owner gives atest-accountlogin — in this question or anywhere later in the chat — write it at once to.claude/specs/.cache/test-accounts/<prerequisite id>.env(KEY=valuelines, e.g.EMAIL=,PASSWORD=,OTP_SECRET=), aftergit check-ignore -qconfirms that path is ignored (if it isn't, add.cache/to.claude/specs/.gitignorefirst), thenchmod 600it. Tell the owner the path and that deleting the file revokes it. Every other answer: never write it to disk, never into.claude/specs/, never commit them. 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. 6d. Keep a build log (session state only). From here on, note each event as it happens: the git strategy (step 6a: proposed, what the user changed, and why), deferred prerequisites (6c) and when they were asked,NEEDS_HUMANpauses, R=2 retries, Stop-gate failures, reviewer verdicts (fail reasons and how each was fixed), and any task the gate blocked at its cap. Record access routes, never secret values. Step 8.3 hands it to the walkthrough-writer.
- Learn, read-only. First the managed
- Invoke the builder (per-task tier dispatch is the enforced default;
--bulkis the opt-in). Work the phase's tasks independsOnorder.
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.
- 26d ago Changed · +2 lines scan A → B 69344ac99514
- 1mo ago Changed · +22 lines 4f083c50be14
- 2mo ago Changed · -13 lines ba1b7fa9e1ba
- 3mo ago First seen · 92 lines · 25 tokens per session scan A 5afc6e0fe663
specmanager-build is a command published in the GitHub repository joanseg/specmanager (27 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 5,287 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
specmanager-build compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| specmanager-buildjoanseg/specmanager | Command | 27 | yesterday | MIT | B | 25 | Claude Code |
| ccc-orchestrateKevinZai/commander | Command | 6 | today | MIT | A | 53 | Claude Code |
| ccc-themeKevinZai/commander | Command | 6 | today | MIT | A | 47 | Claude Code |
| ccc-auditKevinZai/commander | Command | 6 | today | MIT | A | 45 | Claude Code |
| impact-analysisMozurok/fhorja.dev | Command | 10 | 1mo ago | MIT | A | 0 | Claude Code |
| release-planMozurok/fhorja.dev | Command | 10 | 1mo ago | MIT | A | 0 | Claude Code |
| standupskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 21 | Claude Code |