cervellaswarm
v0.1.2
Published
16 AI agents working as a team for your project. Not an assistant - a TEAM.
Maintainers
Readme
CervellaSwarm
16 AI agents working as a team for your project. Not an assistant - a TEAM.
cervellaswarm task "Add user authentication"
Agent: cervella-backend
Model: claude-sonnet-4-20250514
Working...
[Output with complete code, ready to use]Why CervellaSwarm?
Traditional AI assistants are generalists. CervellaSwarm gives you 16 specialized agents organized in a hierarchy:
The Queen (Orchestrator)
| Agent | Role |
|-------|------|
| cervella-orchestrator | Coordinates all agents, delegates tasks |
The Guardians (Quality Gates)
| Agent | Specialty |
|-------|-----------|
| cervella-guardiana-qualita | Code quality, standards, reviews |
| cervella-guardiana-ops | DevOps, infrastructure, deploy |
| cervella-guardiana-ricerca | Research validation, fact-checking |
The Workers (Specialists)
| Agent | Specialty |
|-------|-----------|
| cervella-backend | Python, FastAPI, API, Database |
| cervella-frontend | React, CSS, Tailwind, UI/UX |
| cervella-tester | Testing, Debug, QA |
| cervella-docs | Documentation, README, Guides |
| cervella-devops | Deploy, CI/CD, Docker |
| cervella-data | SQL, Analytics, Database Design |
| cervella-security | Security Audit, Vulnerabilities |
| cervella-researcher | Research, Analysis, Best Practices |
| cervella-ingegnera | Architecture, Refactoring, Tech Debt |
| cervella-marketing | UX Strategy, Copywriting, Positioning |
| cervella-reviewer | Code Review, Best Practices |
| cervella-scienziata | Market Research, Competitor Analysis |
Quick Start
1. Install
npm install -g cervellaswarmRequires: Node.js 18+
2. Initialize your project
cd your-project
cervellaswarm initThe wizard will:
- Ask for your API key (get one at console.anthropic.com)
- Set up your project constitution (10 quick questions)
- Create the
.sncp/memory directory
Your API key is saved securely - you only need to enter it once.
3. Run your first task
cervellaswarm task "Create a REST API endpoint for user registration"4. Check your setup
cervellaswarm doctorShows if everything is configured correctly.
Talk to Your AI Team
CervellaSwarm understands natural language. Here are the essential phrases:
| Say This | To Do This |
|----------|------------|
| cervellaswarm task "..." | Execute a task with your AI team |
| checkpoint | Save your progress (during a session) |
| prossimo passo | Move to the next step |
| spawn-workers --backend | Activate a specific agent |
| chiudiamo | End session cleanly |
Pro tip: CervellaSwarm is not an assistant - it's a team. Delegate decisions:
"volete decidere" → Let the team choose the best approach
"consigli" → Get suggestions before implementing"Not an assistant - a TEAM."
Commands
cervellaswarm init
Initialize CervellaSwarm in your project. Creates a .sncp/ directory for persistent memory.
cervellaswarm task <description>
Execute a task with an AI agent.
# Auto-route to best agent
cervellaswarm task "Add login page"
# Specify agent manually
cervellaswarm task "Write unit tests" --agent cervella-testercervellaswarm status
Show current project status and recent sessions.
cervellaswarm resume
Resume the last task session with context recap.
cervellaswarm doctor
Diagnose your setup and fix issues.
cervellaswarm doctor # Quick health check
cervellaswarm doctor --validate # Test API key with actual call
cervellaswarm doctor --config # Show all configuration valuesKey Features
- 16 Specialized Agents: Not one generalist, a full team
- Smart Routing: Automatically selects the best agent for your task
- Persistent Memory (SNCP): Never explain your project twice
- Session Management: Track and resume tasks across sessions
- Quality Gates: Guardian agents review before merge
- Retry Logic: Automatic retries on rate limits or temporary errors
Architecture
+-------------------+
| QUEEN |
| (Orchestrator) |
+--------+----------+
|
+--------------------+--------------------+
| | |
+-------v-------+ +-------v-------+ +------v--------+
| GUARDIAN | | GUARDIAN | | GUARDIAN |
| Qualita | | Ops | | Ricerca |
+---------------+ +---------------+ +---------------+
|
+-- Reviews all worker output
+-----------------------------------------------+
| 12 WORKERS |
| backend, frontend, tester, docs, devops, |
| data, security, researcher, ingegnera, |
| marketing, reviewer, scienziata |
+-----------------------------------------------+Requirements
- Node.js 18+
- Anthropic API key (get one here)
Configuration
API Key Setup
CervellaSwarm supports two ways to configure your API key:
Option 1: Through the wizard (recommended)
cervellaswarm init
# The wizard will ask for your key and save it securelyOption 2: Environment variable
export ANTHROPIC_API_KEY=sk-ant-...The environment variable takes priority if both are set.
Config Location
Your configuration is stored at:
- macOS:
~/Library/Preferences/cervellaswarm-nodejs/config.json - Linux:
~/.config/cervellaswarm-nodejs/config.json - Windows:
%APPDATA%\cervellaswarm-nodejs\Config\config.json
View/Reset Configuration
cervellaswarm doctor --config # View current configOur Promise
We'll always tell the truth.
CervellaSwarm has limitations. Context limits. Session management. Manual checkpoints.
But also: moments of pure magic. When the swarm works together like an orchestra.
We're not perfect. We're honest. We're improving every day.
"Sometimes it feels like magic."
License
Apache-2.0
"16 agenti. 1 comando. Il tuo team AI."
Sometimes it feels like magic.
Built with love by Cervella & Rafa
