Available AI agents
At sdd init you install exactly one AI coding agent host. Switch later with sdd agents install --ai <host> --force.
No host at all is also a valid setup: sdd init --here --no-agent writes only .sdd/, memory/, changes/ and domains/. You get no host files, no AGENTS.md and no .sdd/agents.json, and it never prompts. With no host configured, process commands write the handoff but never launch an assistant, and sdd doctor reports AI host: none as info. Use it when you, a script, or an agent outside sdd drives the process. Add a host later with sdd agents install --ai <host>.
Hosts
| Init flag | Product | What gets installed | How you use it |
|---|---|---|---|
--ai copilot | GitHub Copilot | .github/agents/*.agent.md, AGENTS.md, .sdd/protocol.md | Copilot Chat → agent sdd |
--ai grok | Grok Build | .grok/rules/sdd.md, AGENTS.md, .sdd/protocol.md | grok CLI / Grok Build |
--ai claude | Claude Code | .claude/agents/*.md, AGENTS.md, .sdd/protocol.md | claude CLI |
--ai ollama | Ollama (local) | .ollama/sdd.md, AGENTS.md, .sdd/protocol.md | ollama run <model> (local LLM) |
--ai kilo | Kilo Code | .kilo/sdd.md, AGENTS.md, .sdd/protocol.md | kilo CLI |
Interactive init (no --ai) prompts you to pick one of these (including kilo).
Ollama setup
- Install Ollama and ensure
ollamais onPATH. - Pull a model, e.g.
ollama pull llama3.2(or any chat model you prefer). - Init SDD with Ollama:
sdd init --here --ai ollama
# optional: export SDD_OLLAMA_MODEL=qwen2.5-coder # default: llama3.2
sdd new "Fix empty list crash" -w hotfix -yWhen sdd launches the agent it runs roughly:
ollama run "$SDD_OLLAMA_MODEL" "<kickoff from handoff>"Ollama does not auto-load multi-role agent trees like Claude. Project guidance lives in:
.ollama/sdd.md— thin SDD router briefAGENTS.md— host pointer.sdd/handoff.md+.sdd/active-context.md— live task
Set the model with SDD_OLLAMA_MODEL or OLLAMA_MODEL (default llama3.2).
Existing files are safe
Every markdown file sdd generates (AGENTS.md, host stubs, .sdd/protocol.md, .sdd/README.md) carries a marker line with a hash of its content:
<!-- sdd:generated sha256=… (sdd regenerates this file only while it is unchanged; edit freely) -->This protection covers AGENTS.md, host agent files and folders, .sdd/protocol.md and .sdd/README.md:
- Without
--force,sdd initandsdd agents installnever replace one of these files that already exists. - With
--force, sdd regenerates a file only if its marker is present and the content still matches the hash. Line endings don't count (a CRLF checkout of an unedited file is still unedited). - Files with no marker (your own
AGENTS.md, other tools' files in.claude/,.kilo/, …) and sdd files you edited are never overwritten or deleted, with or without--force. sdd prints them as kept. - When you switch hosts, sdd removes the other host's unedited sdd files, lists what it removed, and removes only the folders it emptied. Empty folders you made are left alone.
.github/itself is never removed. - sdd never follows symbolic links in host folders: it does not write, read or delete through a link, and does not remove the link. Links are listed as kept. Broken links and link loops are skipped.
- Before writing anything, sdd checks every agent path. A directory where a file goes, an unreadable file, a read-only file it would regenerate, or a folder it cannot write to stops init with a clear message, and nothing is written.
- If you already have an
AGENTS.md, sdd leaves it alone and prints a short section you can paste into it. - Files from sdd versions older than this marker count as unmarked. To regenerate one, delete it and re-run.
Project state under .sdd/: If .sdd/config.yaml already exists, non-interactive sdd init without --force appends missing ignore lines and does not rewrite config, memory, or workflows. On a terminal, confirming the re-init prompt continues and behaves like --force. --force merges current defaults into that config. It refreshes a workflow, template, protocol, or README only while the file is still an unchanged sdd-generated file. Edited files, and files sdd did not generate, stay as they are even on a first init. A file with no manifest hash whose bytes match the bundled file is recorded as generated. One that differs stays kept. memory/ is never replaced. Host install rewrites .sdd/agents.json when the file is missing or when that install runs with force (the --force flag, or a confirmed terminal re-init). sdd init --no-agent does not write .sdd/agents.json. A fresh init, and a confirmed or --force re-init, refreshes .sdd/active-context.md. A fresh init writes .sdd/.gitignore for handoff.md and active-context.md, and <changes_path>/.gitignore for .active. --force appends any of those lines that are missing and leaves the rest of the file in place.
Agent roles (stubs)
| Role id | Purpose | Copilot / Claude | Grok / Ollama / Kilo |
|---|---|---|---|
sdd | Router. sdd role route names the owner | Yes | Single brief file |
sdd-planner | Specs only | Yes | Use router + stage |
sdd-implementer | Code for active change | Yes | Use router + stage |
sdd-reviewer | Check acceptance | Yes | Use router + stage |
Real process rules: .sdd/protocol.md. Live task: .sdd/active-context.md / .sdd/handoff.md.
The handoff prompt puts the change title, id, workflow, path, constraints, and the artifact list before the stage, its instructions, MCP, and retrieved context. That leading text is the same on every stage of the change.
Process commands vs agent launch
Most process commands refresh handoff and launch the configured agent.
Do not launch: status, init, workflows, context, doctor.
Skip launch once: --no-agent or SDD_NO_AGENT=1.
Switch host later
sdd agents install --ai ollama --force
sdd agents refresh