sudocode
v1.1.26
Published
Git-native spec and issue management for AI-assisted software development - meta-package
Readme
sudocode
Lightweight agent orchestration tool for AI-assisted software development.
Overview
sudocode is a lightweight agent orchestration system that lives in your repo. Adding sudocode into your repo adds instant organizational capabilities to your coding agents. They'll gain the ability to track context over long-horizon tasks and work collaboratively on complex tasks. sudocode manages git worktrees so you can run multiple agents in parallel in isolation with minimal management.
Key capabilities
- Automate context handoff for complex tasks with sudocode's git-native agent memory system
- Bring order to chaos by organizing your requirements, background context, and implementation plans into structured, executable issue graphs
- Visualize outputs and execution feedback in real-time
- Run as many Claude Code/Codex/Cursor (+more) agents in parallel as you can handle
- Isolate agent work in worktrees and creates checkpoints
- Load work items from external sources (GitHub Issues, Spec Kit, openspec, beads, etc) and orchestrate agents to implement them
Quick Start
# Install globally (recommended: use npx instead to avoid Node version conflicts)
npm install -g sudocode
# Initialize a sudocode project in your project directory.
sudocode init
# Run the local sudocode server from anywhere
sudocode serverFor Claude Code, you can install the plugin:
claude plugin marketplace add sudocode-ai/sudocode
claude plugin install sudocodeCheck out our Quick Start Guide for instructions on setting up other agents.
How to use it
The sudocode package includes a CLI, local server/UI, and an MCP server.
Use the CLI for managing specs and issues in sudocode's agent memory system. It contains a complete interface for viewing, editing, and managing relationships between entities.
Use the local server to automatically sync memory and enable agent execution and visualization. The issue kanban view helps you track issue status and progress. You can spawn new agents, update agent implementation plans, and provide feedback or guidance to running agents in a single, focused view.
What's Included
This meta-package bundles all sudocode components:
Core Packages
- @sudocode-ai/cli - Command-line interface (
sudocodecommand) - @sudocode-ai/mcp - Model Context Protocol server for AI assistants
- @sudocode-ai/local-server - Local backend server with execution engine
- @sudocode-ai/types - TypeScript type definitions
Integration Plugins
sudocode supports bi-directional syncs and imports with multiple third-party data sources. Create a discussion/issue on our repo to suggest any other data sources you'd like us to support!
- @sudocode-ai/integration-github - Import GitHub issues using
ghCLI - @sudocode-ai/integration-beads - Sync with Beads local file-based issue tracking
- @sudocode-ai/integration-openspec - Sync with OpenSpec standardized specification format
- @sudocode-ai/integration-speckit - Sync with spec-kit markdown-based specification system
Core Commands
# Initialization
sudocode init # Set up .sudocode/ directory
# Specs (specifications/requirements)
sudocode spec create <title> [options] # Create a spec
sudocode spec list # List all specs
sudocode spec show <id> # Show spec details
# Issues (tasks/bugs)
sudocode issue create <title> [options] # Create an issue
sudocode issue list [options] # List issues
sudocode issue update <id> [options] # Update issue
sudocode issue close <id> # Close issue
# Relationships
sudocode link <from> <to> --type <type> # Link entities
sudocode ready # Show unblocked work
sudocode blocked # Show blocked issues
# Feedback (link issues to spec lines)
sudocode feedback add <issue> <spec> [options] # Add anchored feedback
sudocode feedback list # List feedback
# Status
sudocode status # Quick status
sudocode stats # Detailed statistics
# Sync
sudocode sync # Sync JSONL with database
sudocode sync --watch # Auto-sync on changesFor full command documentation, see @sudocode-ai/cli.
MCP Integration
Sudocode includes an MCP server for seamless AI assistant integration. To use with Claude Code, you can either:
- Add sudocode as a plugin:
# In Claude Code
/plugin marketplace add sudocode-ai/sudocode
/plugin install sudocode- Configure Claude Code MCP server:
{
"mcpServers": {
"sudocode": {
"command": "sudocode-mcp"
}
}
}Restart Claude Code to apply changes.
For full MCP documentation, see @sudocode-ai/mcp.
Example Workflow
Creating a Feature
# Create a spec for the feature
sudocode spec create "OAuth2 Authentication" -p 4 --tags auth,security
# Create implementation issues
sudocode issue create "Set up OAuth provider configuration" -p 3 -a alice
sudocode issue create "Implement login endpoint" -p 3 -a bob
sudocode issue create "Add token refresh logic" -p 2 -a alice
# Link issues to spec
sudocode link ISSUE-1 SPEC-1 --type implements
sudocode link ISSUE-2 SPEC-1 --type implements
sudocode link ISSUE-3 SPEC-1 --type implements
# Model dependencies
sudocode link ISSUE-2 ISSUE-1 --type depends-on
# Check what's ready
sudocode ready
# Shows: ISSUE-1 (no dependencies)
# Start work
sudocode issue update ISSUE-1 --status in_progressAdding Feedback to Specs
# Add feedback at a specific line
sudocode feedback add ISSUE-4 SPEC-1 \
--line 42 \
--content "Should we support 2FA?" \
--type suggestion
# Or search for text
sudocode feedback add ISSUE-5 SPEC-1 \
--text "password requirements" \
--content "Consider adding passwordless options" \
--type comment
# View feedback
sudocode feedback list --spec SPEC-1File Structure
After sudocode init, your project will have:
.sudocode/
├── meta.json # Config & ID counters (git tracked)
├── specs.jsonl # All specs (git tracked)
├── issues.jsonl # All issues (git tracked)
├── cache.db # SQLite cache (gitignored)
├── specs/ # Generated markdown that you can edit (gitignored)
├── issues/ # Generated markdown that you can edit (gitignored)
└── .gitignore # Ignores cache and generated filesThe JSONL files are designed to be merged in git like code - each line is a complete entity.
Why Git-Native?
Traditional approach: Project management data lives in external tools (Jira, Linear, etc.), disconnected from your code.
Sudocode approach: Project management data lives alongside your code in git, enabling:
- Branch specs/issues with your code branches
- Merge specs/issues when merging branches
- Revert specs/issues along with code changes
- Review specs/issues in pull requests
- Version specs/issues with release tags
- AI assistants can read and modify directly
Use Cases
- AI-assisted development - Let AI agents manage issues and provide spec feedback
- Spec-driven development - Write specs, generate issues, track implementation
- Context management - Store project context that moves with your code
- Local-first workflow - No external services required, works offline
- Team coordination - Share specs/issues through git, merge like code
Documentation
- CLI Reference: @sudocode-ai/cli
- MCP Server: @sudocode-ai/mcp
- Type Definitions: @sudocode-ai/types
Individual Package Installation
You can also install packages individually:
# Core packages
npm install -g @sudocode-ai/cli # CLI only
npm install -g @sudocode-ai/mcp # MCP server only
npm install -g @sudocode-ai/local-server # Local backend server
npm install @sudocode-ai/types # Types only (for development)
# Integration plugins
npm install @sudocode-ai/integration-github # GitHub issues import
npm install @sudocode-ai/integration-beads # Beads sync
npm install @sudocode-ai/integration-openspec # OpenSpec sync
npm install @sudocode-ai/integration-speckit # Spec-kit sync