Crates.io | ccswarm |
lib.rs | ccswarm |
version | 0.2.2 |
created_at | 2025-06-12 01:32:45.149162+00 |
updated_at | 2025-06-14 10:29:42.407988+00 |
description | AI-powered multi-agent orchestration system with session management |
homepage | https://github.com/nwiizo/ccswarm |
repository | https://github.com/nwiizo/ccswarm |
max_upload_size | |
id | 1709290 |
size | 1,322,366 |
๐ 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.
--dangerously-skip-permissions
by default.claude/commands/
Note: Don't have Claude Code or API keys? Check out our Standalone Deployment Guide to run ccswarm without any AI dependencies!
# Install from crates.io
cargo install ccswarm
# Or build from source
git clone https://github.com/nwiizo/ccswarm.git
cd ccswarm
cargo build --release
cargo install --path .
# Basic initialization
ccswarm init --name "MyProject" --agents frontend,backend,devops
# With specific template
ccswarm init --name "AiderProject" --template aider-focused
# Terminal 1: Start orchestrator
ccswarm start
# Terminal 2: Start TUI for monitoring
ccswarm tui
# Generate TODO app
ccswarm auto-create "Create TODO app" --output ./my_app
# Generate blog
ccswarm auto-create "Create blog with auth" --output ./blog
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 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
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
pub enum AgentRole {
Frontend, // UI development only
Backend, // API development only
DevOps, // Infrastructure only
QA, // Testing only
Master, // Orchestration (no coding)
}
๐ Full command documentation available in
.claude/commands/
# Initialize project
ccswarm init --name "Project" --agents frontend,backend
# Start system
ccswarm start
# Launch TUI (enhanced in v0.2.0)
ccswarm tui
# Check status
ccswarm status --detailed
# Stop orchestrator
ccswarm stop
# Add task (enhanced in v0.2.0)
ccswarm task "Create login form" --priority high --type feature
# Delegate task with improved analysis
ccswarm delegate analyze "Add authentication" --verbose
ccswarm delegate task "Add auth" --agent backend --priority high
# View delegation statistics
ccswarm delegate stats --period 24h
# TODO app with modern stack
ccswarm auto-create "Create TODO app" --output ./todo
# Blog with advanced features
ccswarm auto-create "Blog with auth and comments" --output ./blog
# E-commerce with full stack
ccswarm auto-create "Online shop with cart" --output ./shop
# Custom template support (v0.2.0)
ccswarm auto-create "Project description" --template custom --output ./app
Start with ccswarm tui
:
Tab/Shift+Tab
- Switch tabsโโ/jk
- NavigateEnter
- Select/Activatec
- Command modet
- Add taskq
- Quitc
key) - Enhanced in v0.2.0task <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
task Fix login bug [high] [bug]
task Add docs [docs]
task Create dashboard [medium] [feature]
{
"project": {
"name": "MyProject",
"master_claude_instructions": "Orchestrate agents efficiently"
},
"agents": [
{
"name": "frontend-specialist",
"role": "Frontend",
"provider": "claude_code",
"claude_config": {
"model": "claude-3.5-sonnet",
"dangerous_skip": true,
"think_mode": "think_hard"
},
"auto_accept": {
"enabled": true,
"risk_threshold": 5
}
}
],
"coordination": {
"method": "JSON_FILES",
"delegation_strategy": "Hybrid"
},
"session_management": {
"persistent_sessions": true,
"max_sessions_per_role": 3
}
}
{
"provider": "claude_code",
"claude_config": {
"model": "claude-3.5-sonnet",
"dangerous_skip": true,
"think_mode": "think_hard"
}
}
{
"provider": "aider",
"config": {
"model": "claude-3-5-sonnet",
"auto_commit": true,
"edit_format": "diff"
}
}
# Analyze task
ccswarm delegate analyze "Create responsive nav" --verbose
# Manual delegation
ccswarm delegate task "Add API endpoint" --agent backend
# View statistics
ccswarm delegate stats --period 24h
my_app/
โโโ index.html # React app
โโโ app.js # Components
โโโ server.js # Express API
โโโ package.json # Dependencies
โโโ Dockerfile # Container
โโโ README.md # Documentation
โโโ .gitignore # Git config
# List sessions
ccswarm session list
# Attach to session
ccswarm session attach <session-id>
# Pause/Resume
ccswarm session pause <session-id>
ccswarm session resume <session-id>
By default, ccswarm runs with dangerous_skip: true
, which adds the --dangerously-skip-permissions
flag to Claude Code commands for automated execution.
Master Claude now uses sophisticated LLM-based evaluation to assess code quality across 8 dimensions:
Multi-Dimensional Scoring (0.0-1.0)
Issue Severity Classification
Intelligent Remediation
{
"overall_score": 0.78,
"dimensions": {
"correctness": 0.90,
"test_quality": 0.65,
"security": 0.75,
"documentation": 0.70
},
"issues": [
{
"severity": "high",
"category": "TestCoverage",
"description": "Test coverage is 65%, below 85% requirement",
"suggested_fix": "Add unit tests for error cases"
}
],
"feedback": "Good implementation but needs more comprehensive testing",
"passes_standards": false,
"confidence": 0.92
}
Task Completed โ LLM Quality Review โ Detailed Evaluation โ Remediation Task
โ โ โ
Score โฅ 0.85 Issues Found Smart Fix Instructions
โ โ โ
Task Approved Agent Fixes Re-evaluate
# Verbose logging
RUST_LOG=debug ccswarm start
# Session debugging
RUST_LOG=ccswarm::session=trace ccswarm start
# View tmux sessions
tmux ls
# All tests
cargo test
# Specific module
cargo test session
cargo test identity
cargo test quality_review # New in v0.2.0
# Integration tests
cargo test --test integration_tests
# Examples (relocated to demos/)
cargo run --example todo_app_builder # See demos/todo-app/
cargo run --example monitoring_demo # See demos/multi-agent/
cargo run --example session_demo # See demos/session-persistence/
cargo run --example auto_create_demo # See demos/auto-create/
Session not found
ccswarm session list
ccswarm session create --agent frontend
Provider errors
# Check API keys
echo $ANTHROPIC_API_KEY
# Verify provider config
ccswarm config show
Worktree conflicts
ccswarm worktree list
ccswarm worktree clean
ProviderExecutor
traitProviderType
enumccswarm can run without Claude Code or other AI providers! Check out the STANDALONE_DEPLOYMENT.md guide for:
# Start in simulation mode
CCSWARM_SIMULATION=true ccswarm start
# Generate a complete TODO app without AI
ccswarm auto-create "Create TODO app" --output ./my-app
# Run the generated app
cd my-app && npm install && npm start
For detailed instructions, examples, and Docker configurations, see STANDALONE_DEPLOYMENT.md.
# Fork and clone
git clone https://github.com/yourusername/ccswarm.git
# Run tests
cargo test
# Format code
cargo fmt
cargo clippy -- -D warnings
# Check documentation
cargo doc --no-deps --open
MIT License - see LICENSE
.claude/commands/
Experience the power of AI agent orchestration with ccswarm v0.2.0 ๐