Skip to content

sddSpec-Driven Development for AI coding agents

Your AI writes code fast. The reasons disappear into chat. sdd is a local CLI that keeps short plans and notes next to your code—so you, your team, and the agent stay aligned.

Try it in three steps ​

Install Structured Vibe Coding from npm: @structured-vibe-coding/cli (binary: sdd)

bash
npm install -g --allow-scripts=better-sqlite3,onnxruntime-node @structured-vibe-coding/cli
cd your-app
sdd setup
sdd go "Fix empty list crash" --no-agent

Current npm skips dependency install scripts unless you allow them. Search needs better-sqlite3, and embeddings need onnxruntime-node. To allow those scripts for later global installs, then install again: npm config set allow-scripts=better-sqlite3,onnxruntime-node --location=user. sdd doctor loads both modules and prints the install command when either one is missing or not built.

On a terminal, sdd setup walks the pieces. Press Enter to write three roles when you have no roles yet. sdd setup --yes --no-agent writes those roles without questions. A role is a job in the repo. A duty is the kind of work it does: the planner plans, the architect names the modules, and the builder builds the change pack. The mapping is which stages of the workflow you named belong to that duty. sdd go asks their questions one at a time. With SDD_ROLE_MODEL set, the role writes the note and the guide hands the next stage to the next role. You still decide.

What they are, why that split helps, and the setup for a software team: Roles and duties.

A named host is sdd setup --ai copilot, or sdd init --here --ai copilot when you want to pick the workflow yourself.

Full walkthrough with a paste-ready example: Start in 10 minutes.

Learning tip

Add --no-agent the first time. You learn the process without the AI window popping up. Drop the flag later when you want the agent to help.


Which page should I open? ​

I want to…Open this
Learn sdd right nowStart in 10 minutes
Set up roles and dutiesRoles and duties
See the daily commandsEveryday loop
Add a feature to my appSimple feature
Build a new product from an ideaNew product (greenfield)
Do serious / multi-team workEnterprise path
Look up a commandCLI reference
Name a team in the repoRoles and duties
Write a design an agent can followSkill pack

What you need ​

NeedDetail
Node.jsCLI 0.24.0: 24 or newer. Next release: Node 20–23 works but isn't recommended; Node 24 is recommended.
CLI package@structured-vibe-coding/cli on npm
An AI toolOne of: GitHub Copilot, Grok, Claude Code, Ollama, or Kilo Code
TimeAbout 10 minutes for the first loop
EditorWhatever you already use

How it feels after the first run ​

You get a folder under changes/ with a short write-up of the work, a status that moves when you run sdd next, and a habit your AI can follow next time.

Ready for the daily rhythm? → Everyday loop