Version 0.4.3 - Rust-Native Multi-Agent Orchestration with ai-session Integration
ccswarm is a workflow automation framework for coordinating specialized AI agents using Claude Code CLI. It provides task delegation infrastructure, template-based scaffolding, and Git worktree isolation for parallel development.
AI Integration: ccswarm uses native PTY sessions via ai-session crate. Multi-provider system exists but orchestrator coordination loop is not fully implemented. See docs/UPCOMING_FEATURES.md for roadmap.
| Category | Status | Description |
|---|---|---|
| CLI Infrastructure | ✅ Working | All commands parse and route correctly |
| Session Management | ✅ Working | Native PTY-based sessions |
| TUI Monitoring | ✅ Working | Real-time terminal UI with ratatui |
| Configuration | ✅ Working | Project configs, agent settings |
| Git Worktrees | ✅ Working | Create, list, remove, prune |
| Template System | ✅ Working | Predefined templates for app scaffolding |
| Task Queue | ✅ Working | Task queuing and tracking |
| AI Execution | Returns keyword-based responses | |
| Provider System | 🚧 Planned | Code exists, not integrated |
| ACP Integration | 🚧 Stub | CLI wrapper only, no WebSocket |
| Parallel Executor | Structure exists, not integrated with orchestrator | |
start Command |
Initializes but coordination loop not implemented | |
| Auto-Create | Templates work, full AI generation incomplete | |
| Sangha (Voting) | 🚧 Planned | Data structures only |
| Extensions | 🚧 Planned | Stub implementation |
Note: See docs/analysis/ for detailed capability gap analysis.
| Document | Description |
|---|---|
| Getting Started | Installation, tutorial, first project |
| Architecture | System design, components, data flow |
| Configuration | All configuration options with examples |
| Commands Reference | Complete CLI command reference |
| Claude ACP Guide | Claude Code integration setup |
| Troubleshooting | Common issues and solutions |
| Upcoming Features | v0.4.0 implementation patterns |
| Application Spec | Detailed feature specifications |
| Contributing | How to contribute |
Status Legend: ✅ Working |
⚠️ Partial | 🚧 Planned
- Provider Architecture: 5 providers implemented (ClaudeCode, Aider, ClaudeAPI, Codex, Custom)
- Current Execution: Simulated responses (keyword-based matching)
- ACP Module: Stub implementation (CLI wrapper, no WebSocket)
- Status: Code exists but not integrated with orchestrator
- See docs/UPCOMING_FEATURES.md for integration roadmap
- Interactive Setup Wizard: Guided configuration for new users
- Built-in Tutorial: Learn by doing with hands-on chapters
- Smart Error Messages: Helpful suggestions and solutions
- Progress Indicators: Real-time feedback for operations
- Contextual Help:
ccswarm help <topic>for detailed guidance - System Doctor:
ccswarm doctor --fixdiagnoses and fixes issues
- Native PTY Sessions: Cross-platform terminal sessions (no tmux)
- Session Lifecycle: Create, list, attach, detach, pause, resume
- Auto-Recovery: Automatic reconnection and state persistence
- Resource Monitoring: Track session usage and statistics
- Predefined Templates: Rust CLI, security review, performance optimization
- Variable Substitution: Dynamic content generation with context
- Category Organization: Application, utility, review, optimization
- Custom Templates: Create and store project-specific templates
- Validation System: Type-safe template validation
- Parallel Development: Multiple branches simultaneously without conflicts
- Per-Agent Workspaces: Isolated environments for each agent role
- Automatic Management: Create, list, remove, prune operations
- Safe Isolation: No cross-agent file access or conflicts
- Task Management: Create, queue, and track tasks
- Priority Levels: High, medium, low task prioritization
- Status Tracking: Pending, in-progress, completed states
- Task Metadata: Tags, descriptions, dependencies
- ProactiveMaster: Intelligent task analysis (structure exists)
- Agent Assignment: Optimal agent selection (basic routing works)
- Coordination Loop: Continuous monitoring (not implemented)
- Dependency Resolution: Auto task ordering (planned)
- ParallelExecutor: Multi-agent concurrency structure exists
- Message Bus: Inter-agent communication framework ready
- Resource Management: File locking and conflict prevention designed
- Integration: Not wired to orchestrator yet
- Template Scaffolding: Generate project structure (working)
- Variable Substitution: Dynamic content generation (working)
- AI-Driven Generation: Natural language to app (incomplete)
- Custom Templates: User-defined project types (working)
- Span Tracking: Trace agent execution across workflows
- Token Usage Metrics: Monitor and optimize LLM API costs
- Trace Visualization: Hierarchical span trees for debugging
- OpenTelemetry Export: Jaeger, Zipkin integration (file-export ready)
- Langfuse Integration: LLM-specific observability (file-export ready)
- Approval Workflows: Gate critical actions with human oversight
- Policy-Based Rules: Define approval requirements by risk level
- CLI Notifications: Interactive approval prompts
- Timeout Handling: Automatic escalation on timeout
- Audit Trail: Complete history of approval decisions
- Multi-Channel: Slack/Email integration (planned)
- Short/Long-term Memory: Session-aware memory consolidation
- Retrieval Augmented Generation: Context-aware responses
- Importance Retention: Smart memory decay and prioritization
- In-Memory Backend: Fast access for current session
- Vector Embeddings: Semantic search (planned)
- Persistent Storage: File/vector DB backends (planned)
- DAG Workflows: Define task dependencies as graphs
- Conditional Execution: Dynamic workflow paths
- Parallel Tasks: Run independent tasks concurrently (structure ready)
- Approval Gates: HITL integration at checkpoints (planned)
- Sub-workflows: Compose complex workflows (planned)
- SWE-Bench Style: Standardized agent performance testing
- Predefined Suites: Basic coding, bug fixes, refactoring
- Metrics Collection: Track pass rates, scores, improvements
- Leaderboard System: Compare agent performance over time
- Custom Benchmarks: Create project-specific evaluation suites
- Sangha System: Democratic decision-making (data structures only)
- Self-Extension: Agents propose improvements (stub implementation)
- Experience Learning: Continuous introspective analysis (planned)
- Consensus Algorithms: Smart proposal voting (planned)
- Safe Implementation: Risk assessment and rollback (planned)
See docs/UPCOMING_FEATURES.md for detailed implementation patterns and integration guides.
Features with code already in codebase but not fully integrated:
- 🔧 Hook System Integration - Extensible execution hooks with priority registry
- 🔧 Verification Agent - Auto-verify applications with 6-check workflow
- 🔧 DynamicSpawner - Intelligent workload balancing for agent selection
- 🔧 Parallel Execution - True multi-agent parallelism (command & PTY-based)
- 🔧 ai-session MessageBus - Inter-agent coordination with 93% token savings
- 🔧 Session Persistence - Resume/fork/checkpoint with crash recovery
Roadmap:
| Phase | Task | Priority | Status |
|---|---|---|---|
| 1 | Fix start command coordination loop |
Critical | Not Started |
| 1 | Wire ParallelExecutor to orchestrator | Critical | Not Started |
| 1 | Implement inter-process communication (Unix socket/SQLite) | Critical | Not Started |
| 2 | Integrate ai-session MessageBus for agent coordination | High | Not Started |
| 2 | Enable context compression (93% token savings) | High | Not Started |
| 2 | Make ACP optional (--enable-acp flag) |
Medium | Not Started |
| 3 | Multi-vendor agent support (Gemini CLI, Codex CLI, OpenCode) | Medium | Planned |
| 3 | Sangha collective decision-making | Low | Planned |
Note: ACP (Agent Client Protocol) will be optional. PTY/CLI remains the primary execution method. See Issue #67 for discussion.
New to ccswarm? See the Getting Started Guide for a complete walkthrough.
git clone https://github.com/nwiizo/ccswarm.git
cd ccswarm
cargo build --release
cargo install --path crates/ccswarm# Interactive setup
ccswarm setup
# Or quick init
ccswarm init --name "MyProject" --agents frontend,backend
# Start system
ccswarm start
# Launch TUI (in another terminal)
ccswarm tui
# Create a task
ccswarm task "Create login form [high] [feature]"
# Auto-create complete app
ccswarm auto-create "Create TODO app with React" --output ./todo-appcd sample/
./setup.sh
./claude_acp_demo.sh # Claude Code integration
./task_management_demo.sh # Task management
./multi_agent_demo.sh # Multi-agent collaboration┌─────────────────────────────────────────┐
│ ProactiveMaster │ ← Type-State Pattern
│ ├─ Channel-Based Orchestration │ Zero shared state
│ ├─ Task Analysis & Delegation │ Pattern matching
│ └─ Quality Review Integration │ Async/await
├─────────────────────────────────────────┤
│ Multi-Provider Integration │ ← Planned (v0.4.0)
│ ├─ Provider System (5 impl.) │ Code exists, not wired
│ └─ Current: Simulated Execution │ Keyword-based responses
├─────────────────────────────────────────┤
│ Specialized Agent Pool │ ← Actor Model
│ ├─ Frontend Agent (React/Vue/UI) │
│ ├─ Backend Agent (APIs/Database) │
│ ├─ DevOps Agent (Docker/CI/CD) │
│ └─ QA Agent (Testing/Quality) │
├─────────────────────────────────────────┤
│ Template System │ ← Variable substitution
├─────────────────────────────────────────┤
│ Git Worktree Manager │ ← Isolated development
├─────────────────────────────────────────┤
│ Real-time Monitoring (TUI) │ ← Crossterm-based
└─────────────────────────────────────────┘
- Type-State Pattern: Compile-time state validation with zero runtime cost
- Channel-Based Orchestration: Message-passing without shared state or locks
- Iterator Pipelines: Zero-cost abstractions for task processing
- Minimal Testing: Only 8 essential tests covering core functionality
- No Arc: Replaced with actor model and channels
ccswarm/
├── crates/
│ └── ccswarm/ # Main orchestration crate
│ ├── src/
│ │ ├── acp_claude/ # Claude ACP integration
│ │ ├── cli/ # CLI commands
│ │ ├── orchestrator/ # ProactiveMaster
│ │ ├── agent/ # Agent types
│ │ ├── session/ # Session management
│ │ ├── template/ # Template system
│ │ ├── subagent/ # Parallel execution
│ │ ├── tui/ # Terminal UI
│ │ └── resource/ # Resource monitoring
│ └── tests/
├── docs/ # Documentation
└── sample/ # Demo scripts
| Limitation | Impact | Workaround |
|---|---|---|
start command exits immediately |
No continuous orchestration | Use TUI or individual commands |
| ParallelExecutor not wired | No true parallel agent execution | Tasks run sequentially |
| ACP WebSocket not functional | No real-time bidirectional comms | Uses CLI wrapper instead |
| ai-session MessageBus unused | No inter-agent coordination | Agents work independently |
| No IPC between processes | Commands are isolated | Each command is standalone |
| macOS/Linux only | No Windows support | Use WSL on Windows |
See docs/analysis/00-capability-gap-analysis.md for detailed analysis.
cargo test --workspace
cargo fmt --all
cargo clippy --workspace -- -D warningsSee CONTRIBUTING.md for guidelines.
ccswarm can run without Claude Code! See STANDALONE_DEPLOYMENT.md for:
- Simulation mode for testing
- Built-in templates without AI
- Docker deployment
- Custom providers
MIT License - see LICENSE for details.
Experience Claude Code integration with autonomous AI orchestration in ccswarm v0.4.3