Overview
The/sdd-init command bootstraps Spec-Driven Development in your project. It detects your tech stack, identifies conventions, and initializes the active persistence backend.
Run this command once per project before using other SDD commands.
Usage
This command takes no arguments.
What It Does
1. Detects Project Context
The init sub-agent scans your project to understand:- Tech stack - Checks
package.json,go.mod,pyproject.toml,Cargo.toml, etc. - Conventions - Identifies linters (ESLint, Prettier), formatters, test frameworks
- Architecture patterns - Detects existing patterns like MVC, layered architecture, etc.
- Testing infrastructure - Finds test commands and coverage tools
2. Bootstraps Persistence Backend
Behavior depends on the configured artifact store mode:- engram mode
- openspec mode
- none mode
- Persists project context to Engram
- Creates observation with
topic_key: sdd-init/{project-name} - No project files created
- Zero filesystem footprint
3. Generates Configuration
When usingopenspec mode, creates a config file with:
Example Output
With engram Mode
With openspec Mode
When to Use
First Time Setup
Run once when adding Agent Teams Lite to an existing project
New Project
Run immediately after project scaffolding
Team Onboarding
Each team member runs in their environment
CI/CD Integration
Run in CI to validate SDD structure
Re-initialization
If you run/sdd-init on a project that’s already initialized:
- engram mode: Updates the existing observation with fresh context
- openspec mode: Reports what exists and asks if you want to update
config.yaml - none mode: Returns fresh context without modifying anything
Configuration Options
The init process respects these settings from your agent configuration:Controls where artifacts are stored:
engram, openspec, or noneEnable Test-Driven Development workflow in
/sdd-applyCommand to run tests (e.g.,
npm test, pytest)Command to build the project (e.g.,
npm run build)Next Steps
After initialization, you can:Related Commands
- /sdd-explore - Investigate ideas after initialization
- /sdd-new - Start your first change
- /sdd-ff - Fast-forward through planning phases