AI-native Software Development Lifecycle protocol engine
Project description
snodo
AI-SDLC Protocol Engine — a governance layer for AI-assisted software development.
snodo lets you define a protocol — a YAML specification of operational modes, validators, and constraints — and then executes tasks through that protocol. Each task passes through validation gates before and after execution, with disagreement policies (unanimous, majority, quorum, any) determining whether work proceeds, escalates, or halts. The result is a structured, auditable workflow where AI-generated code is checked against your standards before it lands.
Preprint: Specifying AI-SDLC Processes: A Protocol Language for Human-Agent Boundaries — arXiv:2606.20615 (doi:10.48550/arXiv.2606.20615).
Project status
snodo is an actively-developed research implementation (beta). Current state of the codebase:
| Metric | Value |
|---|---|
| Tests | 2,125 passing across 88 files — unit, integration, end-to-end, and property-based |
| Coverage | 67% (whole-repo) — gated in CI (fail under 63%); badge committed at .github/badges/coverage.svg |
| Code | ~24,700 lines across 6 packages |
| Complexity | average cyclomatic complexity A (3.9) — no high-complexity hotspots |
| Lint / architecture | ruff clean; package layering enforced in CI by import-linter |
| Python | 3.12 and 3.13 (CI matrix) |
The enforcement invariants (token integrity, capability boundaries, non-overridable blockers, audit completeness) are verified by property-based tests over randomized inputs.
Install
From PyPI (recommended)
pip install snodo
From source
snodo is a uv workspace of modular packages:
git clone https://github.com/snodo-dev/snodo.git
cd snodo
uv sync --all-extras # installs all workspace packages editable, plus dev + studies extras
Requirements
- Python 3.12+
- API keys for your LLM provider (Anthropic, OpenAI, or Google)
Quickstart
1. Initialize a project
snodo init --template solo
This creates .snodo/protocol.yml with a single-mode protocol:
protocol_id: "solo"
name: "Solo Developer Protocol"
version: "1.0.0"
modes:
- mode_id: "producer"
name: "Producer Mode"
tools:
- "edit"
- "dispatch"
- "resolve"
- "test"
- "validate"
- "commit"
- "merge"
validators:
- "security"
- "architecture"
- "quality"
- "meta-spec"
transitions: {}
validators:
- validator_id: "security"
validator_type: "security"
evaluation_phase: "pre_execute"
criteria:
- "Check for security vulnerabilities"
- "Validate input sanitization"
- "Check authentication/authorization"
- validator_id: "architecture"
validator_type: "architecture"
evaluation_phase: "pre_execute"
criteria:
- "Check design patterns"
- "Validate separation of concerns"
- "Check for tight coupling"
- validator_id: "quality"
validator_type: "quality"
evaluation_phase: "post_execute"
tooling: {} # auto-detect from repo marker files
disagreement_policy: "unanimous"
initial_mode: "producer"
global_constraints: []
2. Configure your API key
Configuration lives in ~/.snodo/config.yml, managed via the snodo config commands:
snodo config add anthropic sk-ant-... # store a provider key
snodo config set model claude-sonnet-4 # set the default model
A provider key already exported in your environment (e.g. ANTHROPIC_API_KEY) is auto-detected if it isn't in the config. See Configuration for the full file format.
3. Run a task
snodo run "implement a hello world function"
4. Dry run with mock coder (no API key needed)
snodo run "implement a hello world function" --mock
Protocol Language
A protocol is defined in YAML and consists of:
| Concept | Description |
|---|---|
| Mode | An operational stage with a defined set of tools and validators. Modes enforce separation of capabilities (e.g., producer can edit, reviewer can merge). |
| Validator | An evaluation criterion applied to a task. Each has a validator_type (security, architecture, quality, conventions, protocol, planning, etc.), an evaluation_phase (pre_execute or post_execute), and criteria (LLM prompt strings or tooling config). |
| Disagreement Policy | How validator results are combined: unanimous (all must pass), majority (>50%), quorum (configurable threshold, default 2/3), or any (at least one). |
| Severity | Validator results are pass, warn, or blocker. Any blocker halts execution regardless of policy. |
| Constraint | A rule enforced over execution artifacts (e.g., files must be within scope, tests must exist for modified code). Constraints use a predicate framework for deterministic evaluation. |
| Transition | A declarative event-to-mode mapping that documents the protocol's intended mode handoffs. |
Three templates ship with snodo:
| Template | Modes | Description |
|---|---|---|
solo |
producer | Single developer with full access |
team |
producer, reviewer, planner | Three-mode team workflow |
2+n |
producer, reviewer | Paper reference config: producer + reviewer with N validators and global constraints |
CLI Reference
snodo init
Initialize a snodo project.
--template, -t TEXT Protocol template: solo, team, or 2+n
--force, -f Overwrite existing .snodo/ directory
--mode, -m TEXT Starting mode (skips interactive picker)
snodo run
Execute a task through the protocol.
DESCRIPTION Task description (required unless --plan is used)
--protocol TEXT Path to protocol file [default: .snodo/protocol.yml]
--model, -m TEXT Model to use (e.g., claude-sonnet-4-20250514, gpt-4)
--verbose Show detailed output
--mock Use mock coder instead of real LLM
--plan, -p TEXT Execute a plan by name
--wave, -w INTEGER Execute only a specific wave (requires --plan)
--interactive, -i Confirm each task before execution
--from-pr INTEGER Fetch PR comments as task context
--background, -b Run task in background
--sandbox TEXT Sandbox type: local or docker [default: local]
--resume TEXT Resume execution from session ID
snodo serve
Start MCP server from protocol definition.
--protocol TEXT Path to protocol file [default: .snodo/protocol.yml]
--mode TEXT Serve a single mode (default: all modes)
--transport TEXT Transport type: stdio or sse [default: stdio]
--port INTEGER Port for SSE transport [default: 8080]
--install Install MCP servers into Claude Desktop config (deprecated)
--uninstall Remove this project's MCP entries (deprecated)
--uninstall-all Remove ALL snodo MCP entries (deprecated)
--project-name TEXT Override project name for MCP entry naming
snodo plan
Manage plans. Subcommands: list, status, create.
snodo plan create DESCRIPTION Create a new plan from an intent description
--name, -n TEXT Plan name (auto-generated if omitted)
--protocol TEXT Path to protocol file
--model, -m TEXT Model to use
--mock Use mock coder instead of real LLM
snodo session
Manage protocol sessions. Subcommands: list, show, delete, prune.
snodo session list
--mode TEXT Filter by mode
--project TEXT Filter by project path
--status TEXT Filter by status
snodo mode
Manage active protocol mode. Subcommands: show, change.
snodo mode change NEW_MODE
snodo config
Manage API keys and configuration. Subcommands: show, add, remove, test, set, get.
snodo config add PROVIDER KEY Store an API key (provider: openai, anthropic, google)
snodo authorize
Review and authorize (or reject) pending decisions the orchestrator escalated to a human — disagreement adjudications and set_model proposals.
snodo authorize [TASK_ID]
--yes, -y Skip the confirmation prompt
--reject-all Bulk-reject all pending decisions
snodo job
Manage background jobs. Subcommands: list, status, logs, wait, cancel.
snodo job logs JOB_ID
--stream, -s TEXT Log stream: stdout or stderr [default: stdout]
--tail, -n INTEGER Show last N lines
snodo agent
Manage agent memory and threads. Subcommands: list, memory, reset, rotate.
snodo sandbox
Manage Docker sandbox. Subcommands: build, status.
snodo sandbox build
--tag, -t TEXT Image tag (default: snodo-worker:latest)
snodo install
Install MCP servers into Claude Desktop config.
--protocol TEXT Path to protocol file [default: .snodo/protocol.yml]
snodo uninstall
Remove MCP servers from Claude Desktop config.
--mode TEXT Remove a single mode entry
--all Remove ALL snodo-* entries from Claude config
--purge Also delete .snodo/ directory and sessions
--orphans Detect and remove orphan MCP entries
--yes, -y Skip confirmation prompts
snodo dashboard
Launch the TUI dashboard (snop).
snodo recon
Fan out read-only exploration agents to answer a question about the codebase.
snodo recon "how does token issuance work?" [PATHS...]
--agents, -n INTEGER Number of agents to fan out (default: from config)
snodo models
List available models for a provider, with cost and capability filters.
snodo models --provider anthropic --id-contains sonnet
snodo logs
Stream logs for a job or recon run.
snodo logs <j_xxx | rec_xxx> [--watch]
snodo meta
Show metadata and usage for a job or task.
snodo meta <j_xxx | task_xxx>
snodo cloud
Manage the snodo cloud connection and audit sync. Subcommands: connect, disconnect, status.
snodo cloud connect <api-key>
snodo task
Manage task branches. Subcommands: list, abandon, prune.
Architecture
-
Mode-based capability separation. Each mode declares its available tools. Disjoint tool sets between modes (enforced by WF1 well-formedness checks) ensure structural separation of duties — a producer cannot merge, a reviewer cannot edit.
-
Validator gates with disagreement policies. Tasks pass through
pre_executevalidators before execution andpost_executevalidators after. Results (pass/warn/blocker) are combined via a configurable policy (unanimous, majority, quorum, any). Any blocker halts immediately. -
JWT validation tokens. When validators agree, a signed JWT token is issued. Mutating MCP tools require a valid token (WF1 enforcement at the server level), making validation non-overridable at the capability boundary.
-
Session resumability. Execution state is checkpointed to
~/.snodo/sessions/(or$SNODO_HOME/sessions/). Sessions can be resumed withsnodo run --resume <session_id>. Escalated disagreements are adjudicated viasnodo authorizeand the session continues. -
Coder adapter pattern. The code generation backend is abstracted behind a
CoderAdapterinterface. Built-in adapters includeLiteLLMAdapter(any LiteLLM-supported model), provider-specific adapters (Anthropic, OpenAI, Gemini), anOpenCodeAdapter(containerised OpenCode), andMockAdapter(deterministic stubs for testing). New backends can be plugged in without changing the engine. -
LangGraph execution engine. The protocol is compiled into a LangGraph
StateGraphwith nodes for governance, validation, execution, and completion. The graph is dynamically built from the protocol YAML, supporting arbitrary mode and validator configurations. -
Modular package layout. The codebase is split into independently-installable packages under a
uvworkspace:snodo-core(kernel — config, predicates, sandbox),snodo-tools(workspace/git/shell primitives and code-host providers),snodo-foundation(infrastructure, compiler, protocols),snodo-engine(execution engine, validators, coders), andsnodo-mcp(MCP servers, recon, jobs) — with the rootsnodopackage as the CLI and dashboard app. Dependency layering is enforced in CI byimport-linter.
Configuration
snodo stores its configuration in ~/.snodo/config.yml (override the location with $SNODO_HOME). Manage it with the snodo config commands rather than editing by hand:
snodo config add anthropic sk-ant-... # add a provider API key
snodo config set model deepseek/deepseek-v4 # default model for all roles
snodo config set engine.max_subtask_depth 3
snodo config show
A typical config.yml:
model: deepseek/deepseek-v4 # default model for all roles
llm:
coder: # per-role overrides
max_tokens: 64000
temperature: 0.1
validator:
model: openai/@cf/google/gemma-4 # role-specific model override
max_tokens: 25000
classifier:
model: openai/@cf/google/gemma-4 # omit -> falls back to top-level `model`
recon:
num_agents: 2
models:
- deepseek/deepseek-v4
engine:
max_subtask_depth: 3
max_session_age_days: 30
token_ttl_seconds: 1200
providers:
anthropic:
api_key: sk-ant-...
api_key_env: ANTHROPIC_API_KEY # env var the key is injected into at runtime
deepseek:
api_key: sk-...
api_key_env: DEEPSEEK_API_KEY
cloudflare:
api_key: cfut_...
api_key_env: OPENAI_API_KEY # Cloudflare Workers AI via the OpenAI-compatible endpoint
account_id: <account-id>
base_url: https://api.cloudflare.com/client/v4/accounts/<account-id>/ai/v1
cloud: # optional: snodo cloud sync
api_url: https://api.snodo.dev
sync_enabled: true
Each provider's api_key is injected into its api_key_env environment variable when a matching model runs, so provider SDKs pick it up automatically.
Environment variables
These are read directly from the environment (not stored in config.yml):
| Variable | Purpose |
|---|---|
SNODO_HOME |
Override the snodo home directory (default: ~/.snodo). Config, sessions, and agent memory live here. |
SNODO_TOKEN_SECRET |
Override the HMAC secret for JWT validation-token signing (default: randomly generated per process). |
GITHUB_TOKEN |
GitHub token for PR-related features (--from-pr). |
<PROVIDER>_API_KEY |
Any provider key set in the environment is auto-detected if it isn't already in config.yml. |
Research
snodo is described in a research paper covering the protocol language, well-formedness conditions, enforcement invariants, and empirical evaluation of disagreement policies.
Prifti, Y. (2026). Specifying AI-SDLC Processes: A Protocol Language for Human-Agent Boundaries. arXiv:2606.20615. https://doi.org/10.48550/arXiv.2606.20615
@misc{prifti2026snodo,
title = {Specifying AI-SDLC Processes: A Protocol Language for Human-Agent Boundaries},
author = {Prifti, Ylli},
year = {2026},
eprint = {2606.20615},
archivePrefix = {arXiv},
doi = {10.48550/arXiv.2606.20615},
url = {https://arxiv.org/abs/2606.20615}
}
Empirical studies are included in the studies/ directory and can be run with:
uv sync --extra studies
make studies
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Copyright (C) 2026 The snodo Authors
Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snodo-0.5.4-py3-none-any.whl.
File metadata
- Download URL: snodo-0.5.4-py3-none-any.whl
- Upload date:
- Size: 115.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5c1932cb456c36182ade9d08dd57f4f71059305f73db05b6b1b437026ad447a
|
|
| MD5 |
9133cf12ce16a227a265e05156f4284d
|
|
| BLAKE2b-256 |
84ba57ae269fb289d63633260842041a4180951bf52ecf4177415542bf64b63b
|