Borrowing it
Nothing to install: this file belongs to drabaioli/cdd. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/drabaioli/cdd/main/.claude/commands/cdd-next-step.mdgit clone --depth 1 https://github.com/drabaioli/cddWrote 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/drabaioli/cdd/cdd-next-step)<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-next-step"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-next-step/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/drabaioli/cdd/cdd-next-step"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-next-step.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.00000 | $0.05433 |
| Opus 5.5 | $0.00000 | $0.02173 |
| Sonnet 5.5 | $0.00000 | $0.01087 |
| Haiku 4.5 | $0.00000 | $0.00543 |
Grade C, and why
cdd-next-step scanned grade C 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 6d 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.
Tells the agent never to refusehighAnti-refusal
Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.
**Recommend one lane in a single line**, naming which bound decided it — then do as the user says, in either direction, unconditionally. This is checkpoint 2, and the posture is the same as every other structural choice How it starts
The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scope the next roadmap task and produce a handoff file for a fresh plan session.
This is the exploratory-session command. Run on the main worktree. Output is a handoff file that a later, isolated plan session (/cdd-plan) will consume. This session does not modify any file in the repo; the only artifact it produces is the handoff file under ~/.cdd/handoffs/cdd/.
0. Mode: roadmap-driven, intent-driven, or issue-driven
This command has one optional argument. Dispatch on its shape, trying the rows in order:
$ARGUMENTS |
Mode | Branches at |
|---|---|---|
| empty | roadmap-driven | §3 |
issue or issues |
issue-driven, browse | §0b |
every whitespace-separated token matches the tracker's ref_pattern |
issue-driven, direct | §0b |
| anything else | intent-driven | §3-intent |
issue / issues is a fixed keyword and is checked before the pattern, so browsing stays available whatever the backend calls its references.
The argument splits on whitespace, and the direct row matches only when every token matches — one task may be sourced from several issues (/cdd-next-step 97 12). A single token is the common case and behaves exactly as before; a mixed argument (one token matching, one not) is not issue-driven and falls to intent-driven, where the whole string is read as a task prompt.
What a reference looks like is the tracker's decision, not this command's. Resolve the tracker down the ladder — project, then machine — and take the first file present:
for c in .cdd/tracker ~/.cdd/adapters/tracker; do [ -e "$c" ] && { echo "$c"; break; }; done
If one resolved, run describe and take .ref_pattern — an ERE — as the shape of a reference:
<adapter> describe # JSON on stdout; hermetic, so it needs no network and no credentials
Use it only if the file is executable and describe exits 0, parses as JSON, reports capability tracker, and reports a contract this CDD supports (currently 1). Otherwise — not executable, a non-zero exit, unparseable, another capability, or wrong version — the adapter is installed but broken: say so in one line naming its path, and stop the command. Do not try a lower rung: an installed adapter declares which tracker this project uses, so a lower rung would answer from the wrong system. With nothing resolved there is no ref_pattern, so no argument is issue-shaped: the direct row never matches, and issue / issues still dispatches to §0b, which stops with the install line.
Resolution done only to classify the argument is otherwise silent. The line naming which rung served is printed in §0b, where a tracker call is actually made: a line in every session in every repo is noise, and noise is how a load-bearing line stops being read.
Every mode first runs §0a (checkout freshness), §1 (read context) and §2 (stale-handoff sweep); the "Branches at" column is only where the mode-specific path begins after that.
- Roadmap-driven: pick the next item off the roadmap. Run §1–§8 as written.
- Intent-driven: the task is already chosen by the user, so skip candidate proposal (§3 is replaced by §3-intent below). Use this when the user wants to start something off-roadmap rather than picking the next checkbox.
- Issue-driven: a thin front-end onto intent-driven mode — the intent text comes from a tracker item instead of being typed. §0b resolves the item, then the flow is exactly intent-driven (§1 adaptive load, §3-intent, §4 onward).
All modes converge on the same machinery from §4 onward (stale-handoff sweep in §2 runs in all of them). Do not fork the flow beyond what §0b, §1, and §3 describe.
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.
- 6d ago Changed · +18 lines 87f2e283fe4a
- 28d ago Changed · -10 lines f3322e7d768d
- 1mo ago Changed 60b177c50af0
- 1mo ago Changed · +39 lines e6d0c9c43913
- 1mo ago Changed · -5 lines scan E → C 6ce286d6501f
- 1mo ago Changed · +19 lines scan C → E 33a26cfd3d50
- 1mo ago Changed · +21 lines d43b48d96c22
- 2mo ago First seen · 208 lines · 0 tokens per session scan C 24ba2d8549e5
cdd-next-step is a command published in the GitHub repository drabaioli/cdd (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,433 tokens. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
set-tracker
Set the issue tracker for the current project.
ijfw-status
Show IJFW state -- mode, routing, memory, recent activity, codebase index, settings. Use when you want the at-a-glance banner you'd otherwise get at session start.
resume-project
Run resume-project now — Now / Blocked / Next. Not a cheat sheet.
update-counts
Explicitly refresh public toolkit and committed marketplace source snapshots and numeric documentation.
maggy-init
Interactive wizard that configures Maggy for the user's org, issue tracker, and codebases. Writes /.maggy/config.yaml and ensures deps are installed.
specmanager-build
Build one phase of a SpecManager feature's plan via the builder subagent. Stops at the phase boundary; never advances.