sdd-continue

sdd-continue is a command for coding agents from Gentleman-Programming/gentle-ai. It costs 10 tokens per session (961 once invoked), scanned A, original, MIT.

A command for continuing the next phase of a structured development change. SDD means specification-driven development: work is divided into documented phases that guide an implementation.

In plain words
What is it for?
Resuming SDD work, checking phase status, and advancing a change through its dependency chain using the project's configured record store.
Why use it?
It determines which change and phase are active and checks the project's stored progress before continuing.

Command

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 commands/gentleman-programming/gentle-ai/sdd-continue
Clone the repo
git clone --depth 1 https://github.com/Gentleman-Programming/gentle-ai

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 sdd-continue

README.md
[![agentmods](https://agentmods.dev/badge/commands/gentleman-programming/gentle-ai/sdd-continue.svg)](https://agentmods.dev/commands/gentleman-programming/gentle-ai/sdd-continue)
Your own site
<a href="https://agentmods.dev/commands/gentleman-programming/gentle-ai/sdd-continue"><img src="https://agentmods.dev/badge/commands/gentleman-programming/gentle-ai/sdd-continue.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 961 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.00010 $0.00961
Opus 5 $0.00005 $0.00481
Sonnet 5 $0.00002 $0.00192
Haiku 4.5 $0.00001 $0.00096

Measured yesterday against content hash fb4210e41fc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sdd-continue 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

internal/assets/opencode/commands/sdd-continue.md · 40 lines

How it starts

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

Follow the SDD orchestrator workflow to continue the active change.

HARD GATE: SDD Session Preflight must already be complete for this session. It must include execution mode, artifact store, chained PR strategy, and review budget. If missing, ask the exact orchestrator preflight prompt and STOP. Do not launch the next phase in the same turn.

WORKFLOW:

  1. If the gentle-ai binary is available, run gentle-ai sdd-continue [change] --cwd <repo> and treat its dispatcher/status output as authoritative — but only when the session artifact store is openspec or hybrid. When the session artifact store is engram, do NOT invoke the native dispatcher at all — it cannot see the change (it reads only openspec/changes/); resolve status entirely from Engram (mem_search + mem_get_observation on the change's topic keys) using the manual status schema in ~/.config/opencode/skills/_shared/sdd-status-contract.md (the same schema used when the binary is unavailable). The dispatcher is authoritative only for openspec/hybrid. If unavailable, resolve the active change using the status contract. If $ARGUMENTS is missing and more than one active change exists, ask the user to choose and STOP. Do not guess.
  2. Produce or consume structured status before acting: schemaName, planningHome/changeRoot, artifactPaths/contextFiles, task progress, dependency states, next recommended action, blocked reasons, and actionContext.
  3. Check which artifacts already exist for the active change (proposal, specs, design, tasks)
  4. Determine the next phase needed based on the dependency graph: proposal → [specs ∥ design] → tasks → apply → verify → archive
  5. Launch the appropriate sub-agent(s) for the next phase only if authoritative status says the dependency is ready. Route only by nextRecommended and dependency states; never infer from free text. If blockedReasons is non-empty, do not proceed to apply, archive, or terminal work. If nextRecommended is verify, verification/remediation may run only to refresh evidence; if nextRecommended is resolve-blockers, report blockedReasons and stop; if nextRecommended is a planning token (propose, spec, design, or tasks), launch the corresponding planning phase.
  6. Present the result and ask the user to proceed

CONTEXT:

  • Working directory: before doing anything else, run git rev-parse --show-toplevel 2>/dev/null || pwd with your bash tool and use the returned path as the authoritative workspace. In OpenCode Desktop (Electron) the parse-time interpolation resolves to the app data directory, not the project.
  • Current project: the basename of the detected workspace above.
  • Change name: $ARGUMENTS
  • Execution mode: ask/cache per orchestrator
  • Artifact store mode: ask/cache per orchestrator; do not hardcode Engram
  • Delivery strategy: ask/cache per orchestrator
  • Review budget: ask/cache per orchestrator

ENGRAM NOTE: To check which artifacts exist in engram/hybrid, search: mem_search(query: "sdd/$ARGUMENTS/", project: "{project}") to list all artifacts for this change. Sub-agents handle persistence automatically using the selected artifact store.

Read the orchestrator instructions to coordinate this workflow. Do NOT execute phase work inline — delegate to sub-agents.

STATUS CONTRACT:

Prefer gentle-ai sdd-continue [change] --cwd <repo> when available — but only when the session artifact store is openspec or hybrid; when the store is engram, do NOT invoke the binary and resolve status from Engram using the manual status schema. Otherwise read the installed shared status contract from this agent's skills directory and follow it. Use ~/.config/opencode/skills/_shared/sdd-status-contract.md for OpenCode, ~/.config/kilo/skills/_shared/sdd-status-contract.md for Kilo Code, ~/.qwen/skills/_shared/sdd-status-contract.md for Qwen, or the equivalent configured skills directory for the current adapter. Do not use a workspace-relative skills/_shared/... path. Carry actionContext and allowed edit roots into any sub-agent launch. If status reports workspace-planning with no allowed edit roots, do not launch apply/verify/archive work that would infer repo-local ownership.

Read the full file on GitHub · 40 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. yesterday Changed · +4 lines fb4210e41fc9
  2. 4d ago First seen · 36 lines · 10 tokens per session scan A 71a16a42a2e8

Subscribe to this mod's changes

sdd-continue is a command published in the GitHub repository Gentleman-Programming/gentle-ai (6,194 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 961 once invoked, about $0.0001 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.