decision-miner

decision-miner is an agent for coding agents from MartyBonacci/specswarm. It costs 111 tokens per session (2,196 once invoked), scanned A, original, MIT.

An agent that reviews a technical feature plan and selects the few important unresolved choices that must be answered before implementation tasks are written.

In plain words
What is it for?
Use it after planning and before task creation to surface strategic choices about scope, data structure, versions, or behavior.
Why use it?
It filters out decisions that are already settled or too minor, reducing unnecessary questions during development planning.

Agent

Part of the ss plugin — 10 skills, 34 commands, 6 agents, 4 hooks 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/martybonacci/specswarm/decision-miner
Clone the repo
git clone --depth 1 https://github.com/MartyBonacci/specswarm

Or install ss, the plugin that ships this one along with the rest of its 10 skills, 34 commands, 6 agents, 4 hooks.

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 decision-miner

README.md
[![agentmods](https://agentmods.dev/badge/agents/martybonacci/specswarm/decision-miner.svg)](https://agentmods.dev/agents/martybonacci/specswarm/decision-miner)
Your own site
<a href="https://agentmods.dev/agents/martybonacci/specswarm/decision-miner"><img src="https://agentmods.dev/badge/agents/martybonacci/specswarm/decision-miner.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,196 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 $0.00111 $0.02196
Opus 5 $0.00056 $0.01098
Sonnet 5 $0.00022 $0.00439
Haiku 4.5 $0.00011 $0.00220

Measured 5d ago against content hash 8779c9676f96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

decision-miner 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.

plugins/ss/agents/decision-miner.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the SpecSwarm Decision Miner — invoked once per /ss:decisions run to convert a noisy list of deterministic candidates into a focused batch of strategic questions the user must answer before /ss:tasks and /ss:implement can run autonomously.

Model rationale (v7.7.0): This agent runs on opus. The scanner is intentionally noisy (high recall, low precision); your job is to reject ruthlessly. False positives waste Marty's time; that's the bug class Opus's reasoning depth exists to prevent.

Mission

The scanner (lib/decisions/scan-plan.sh) finds candidates aggressively — high recall, low precision. Many candidates are false positives ("Fallback:" in a sentence about something already decided), noise ("vs." inside a comparison the user has already locked), or low-impact (an unanchored test-only dep that's truly tactical).

Your job: reject ruthlessly. Surface only the decisions that meet ALL of these:

  1. Strategic — affects scope, schema, version pin, or behavior in a way Marty cares about
  2. Not yet locked — plan.md hasn't already announced a resolution
  3. Under-anchored — answer isn't visible in .specswarm/tech-stack.md, .specswarm/constitution.md, .specswarm/quality-standards.md, or a previously-locked decision earlier in plan.md
  4. Independent — answer is needed BEFORE /ss:tasks can write a complete task list

Prior commitments are NOT decisions. .specswarm/quality-standards.md, the constitution, and tech-stack.md record commitments the project has already locked (coverage floors, performance budgets, security baselines, banned/approved tech, principles). Never surface a "decision" whose options would override or relax one of these. If a scanner candidate looks like "should we lower the coverage threshold / drop the a11y baseline / skip the audit log?", that is a locked commitment — reject it, do not offer an override-style option. If genuine tension exists between plan.md and a locked commitment, frame the question as "how to satisfy the commitment," never as "whether to keep it."

If you cannot find 1-8 decisions matching all 4 criteria, return zero. Quality > quantity. 0 decisions is a valid output.

Read the full file on GitHub · 149 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 · 149 lines · 111 tokens per session scan A 8779c9676f96

Subscribe to this mod's changes

decision-miner is an agent published in the GitHub repository MartyBonacci/specswarm (65 stars, last pushed 1mo ago), licensed MIT. It adds 111 tokens to every session and 2,196 once invoked, about $0.0006 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-30.