ccswarm: AI Multi-Agent Orchestration System
๐ Version 0.2.2 - Enhanced with Anthropic-inspired interleaved thinking, advanced LLM quality judge, and improved CI/CD compatibility!
ccswarm is an AI-powered multi-agent orchestration system that manages specialized AI agents using Claude Code, Aider, and other providers. It features session persistence, intelligent task delegation, auto-create functionality, and real-time monitoring through a Terminal UI.
๐ Key Features (v0.2.2)
- ๐ค Multi-Provider Support: Claude Code, Aider, OpenAI Codex, Custom tools
- ๐พ Session Persistence: 93% token reduction through conversation history
- ๐ฏ Intelligent Delegation: Master Claude analyzes and assigns tasks optimally
- ๐ Auto-Create System: Generate complete applications from natural language
- ๐ Enhanced TUI: Real-time monitoring with improved task management and filtering
- ๐ Git Worktree Isolation: Parallel development without conflicts
- โ Auto-Accept Mode: Safe automated execution with risk assessment
- ๐ Execution Mode: Runs with
--dangerously-skip-permissionsby default - ๐ LLM Quality Judge: Advanced code evaluation using Claude with multi-dimensional scoring
- ๐ Command Documentation: Comprehensive docs in
.claude/commands/ - ๐๏ธ Improved Session Pool: Better load balancing and resource management
- ๐ง Enhanced Config System: More flexible provider and agent configuration
๐ Quick Start
Note: Don't have Claude Code or API keys? Check out our Standalone Deployment Guide to run ccswarm without any AI dependencies!
1. Installation
# Install from crates.io
# Or build from source
2. Initialize Project
# Basic initialization
# With specific template
3. Start System
# Terminal 1: Start orchestrator
# Terminal 2: Start TUI for monitoring
4. Create Applications
# Generate TODO app
# Generate blog
๐๏ธ Architecture
Session-Persistent Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Master Claude โ โ Orchestration & Delegation
โ โโ Task Assignment โ
โ โโ Quality Review (30s interval) โ
โ โโ Remediation Task Generation โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Session-Persistent Manager โ โ 93% Token Reduction
โ โโ Session Pool & Reuse โ
โ โโ Conversation History (50 msgs) โ
โ โโ Batch Task Processing โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Git Worktree Manager โ โ Isolated Development
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Multi-Provider Agent Pool โ
โ โโ Claude Code (default) โ
โ โโ Aider โ
โ โโ OpenAI Codex โ
โ โโ Custom Tools โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Real-time Monitoring (TUI) โ โ Live Status Updates
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Agent Roles
๐ Core Commands
๐ Full command documentation available in
.claude/commands/
Basic Operations
# Initialize project
# Start system
# Launch TUI (enhanced in v0.2.0)
# Check status
# Stop orchestrator
Task Management
# Add task (enhanced in v0.2.0)
# Delegate task with improved analysis
# View delegation statistics
Auto-Create Applications (Enhanced)
# TODO app with modern stack
# Blog with advanced features
# E-commerce with full stack
# Custom template support (v0.2.0)
๐ฎ Terminal UI (TUI)
Start with ccswarm tui:
Key Bindings
Tab/Shift+Tab- Switch tabsโโ/jk- NavigateEnter- Select/Activatec- Command modet- Add taskq- Quit
Command Mode (c key) - Enhanced in v0.2.0
task <description> [high|medium|low] [feature|bug|test|docs|refactor]
agent <type>
session list|attach|pause|resume|stats
filter <pattern>
worktree list|clean
monitor <agent>
review status|history
help
Smart Task Parsing
task Fix login bug [high] [bug]
task Add docs [docs]
task Create dashboard [medium] [feature]
โ๏ธ Configuration
ccswarm.json Structure
Provider Configuration
Claude Code (Default)
Aider
๐ฏ Master Delegation System
Delegation Strategies
- ContentBased: Keyword matching
- LoadBalanced: Workload distribution
- ExpertiseBased: Historical performance
- WorkflowBased: Task dependencies
- Hybrid (default): Combined approach
Delegation Commands
# Analyze task
# Manual delegation
# View statistics
๐ Auto-Create System
Supported Applications
- TODO apps with CRUD
- Blogs with authentication
- E-commerce platforms
- Real-time chat apps
- Custom applications
Generated Structure
my_app/
โโโ index.html # React app
โโโ app.js # Components
โโโ server.js # Express API
โโโ package.json # Dependencies
โโโ Dockerfile # Container
โโโ README.md # Documentation
โโโ .gitignore # Git config
๐ง Session Management
Session Features
- Persistent conversation history
- Session pooling and reuse
- Batch task execution
- Auto-scaling
Session Commands
# List sessions
# Attach to session
# Pause/Resume
๐ก๏ธ Safety Features (Enhanced)
Auto-Accept Mode
- Risk assessment (1-10 scale)
- Enhanced file protection patterns
- Emergency stop capability
- Comprehensive audit trails
- Pre/post execution validation
Execution Mode
By default, ccswarm runs with dangerous_skip: true, which adds the --dangerously-skip-permissions flag to Claude Code commands for automated execution.
New in v0.2.0
- Improved risk assessment algorithms
- Better handling of sensitive files
- Enhanced validation patterns
๐ LLM-as-Judge Quality Review (v0.2.2)
Advanced Code Evaluation
Master Claude now uses sophisticated LLM-based evaluation to assess code quality across 8 dimensions:
-
Multi-Dimensional Scoring (0.0-1.0)
- Correctness: Does the code implement requirements correctly?
- Maintainability: Is it well-structured and easy to modify?
- Test Quality: Are tests comprehensive with good coverage?
- Security: Does it follow security best practices?
- Performance: Are there optimization opportunities?
- Documentation: Is the code properly documented?
- Architecture: Does it follow good design patterns?
- Error Handling: Is error handling robust?
-
Issue Severity Classification
- Critical: Must fix immediately (e.g., security vulnerabilities)
- High: Should fix before deployment (e.g., missing auth)
- Medium: Should address soon (e.g., low test coverage)
- Low: Nice to fix (e.g., minor documentation gaps)
-
Intelligent Remediation
- LLM generates detailed, context-aware fix instructions
- Suggestions tailored to agent specialization
- Tracks confidence levels for each evaluation
- Provides specific code examples and best practices
Example Quality Evaluation
Review Workflow
Task Completed โ LLM Quality Review โ Detailed Evaluation โ Remediation Task
โ โ โ
Score โฅ 0.85 Issues Found Smart Fix Instructions
โ โ โ
Task Approved Agent Fixes Re-evaluate
๐ Monitoring
Real-time Metrics
- Agent health status
- Task completion rates
- Session utilization
- Performance tracking
Debug Mode
# Verbose logging
RUST_LOG=debug
# Session debugging
RUST_LOG=ccswarm::session=trace
# View tmux sessions
๐งช Testing
# All tests
# Specific module
# Integration tests
# Examples (relocated to demos/)
๐จ Troubleshooting
Common Issues
Session not found
Provider errors
# Check API keys
# Verify provider config
Worktree conflicts
๐ ๏ธ Development
Adding Custom Providers
- Implement
ProviderExecutortrait - Add to
ProviderTypeenum - Update configuration parsing
- Add provider-specific configuration options
v0.2.0 Architecture Improvements
- Enhanced session pool management
- Improved task routing algorithms
- Better error recovery mechanisms
- Extended provider API support
๐ Standalone Deployment (No AI Dependencies)
ccswarm can run without Claude Code or other AI providers! Check out the STANDALONE_DEPLOYMENT.md guide for:
- Simulation Mode: Run with simulated agents for testing and learning
- Built-in Templates: Generate complete applications without AI providers
- Docker Deployment: Containerized setup for easy deployment
- Custom Providers: Create your own agent implementations
- Offline Operation: Full functionality without internet connection
Quick Standalone Example
# Start in simulation mode
CCSWARM_SIMULATION=true
# Generate a complete TODO app without AI
# Run the generated app
&& &&
For detailed instructions, examples, and Docker configurations, see STANDALONE_DEPLOYMENT.md.
Contributing
# Fork and clone
# Run tests
# Format code
# Check documentation
๐ License
MIT License - see LICENSE
๐ Acknowledgments
- Anthropic for Claude and Claude Code
- Rust community for excellent libraries
- Contributors and early adopters
๐ Release Notes (v0.2.0)
New Features
- Enhanced quality review system with iteration tracking
- Improved TUI with better task filtering and management
- Comprehensive command documentation in
.claude/commands/ - Better session pool management and load balancing
- Extended provider configuration options
Improvements
- More robust error handling and recovery
- Enhanced auto-create templates
- Better git worktree management
- Improved delegation algorithms
- Performance optimizations
Bug Fixes
- Fixed session persistence edge cases
- Resolved TUI rendering issues
- Corrected task priority handling
- Fixed provider timeout issues
Experience the power of AI agent orchestration with ccswarm v0.2.0 ๐