Orchestrate swarms of Claude subagents with natural language
Project description
MAOS - Multi-Agent Orchestration System v0.7.0
๐ AUTONOMOUS MULTI-AGENT EXECUTION IS HERE!
๐ MAJOR BREAKTHROUGH in v0.7.0
MAOS now runs Claude agents AUTONOMOUSLY in PARALLEL:
- โ
REAL autonomous execution using Claude SDK with
--dangerously-skip-permissions - โ TRUE parallel processing - multiple Claude instances run simultaneously
- โ NO manual intervention - fully automated orchestration
- โ
Session persistence - resume conversations with
--resume - โ Cost tracking - see exactly how much each agent costs
- โ Performance monitoring - track execution times and turns
How It Actually Works Now
- You describe your task โ "Analyze this codebase and write tests"
- MAOS decomposes into subtasks โ Creates batches for parallel execution
- MAOS spawns Claude SDK processes โ Each agent runs
claude -p "task" --dangerously-skip-permissions - Agents run AUTONOMOUSLY โ No manual intervention, no prompts, just execution
- Results returned in real-time โ See progress, costs, and outputs as they complete
๐ What's New in v0.6.0
Complete Architecture Rewrite:
- โ
Proper Subagent Creation - Creates
.claude/agents/*.mdfiles with YAML frontmatter - โ Task Tool Integration - Generates delegation prompts for Claude Code
- โ No Process Spawning - Uses Claude's native subagent system
- โ Parallel Execution Works - Claude Code handles parallel tasks internally
- โ Database Tracking - Still tracks everything in SQLite
- โ Clean Architecture - Aligns with official Claude Code documentation
๐ฆ Previous v0.4.0
Enhanced Task Understanding & Visibility:
- โ Smart Task Decomposition - Correctly parses explicit agent requests like "use 2 agents, one which understand requirements"
- โ Explainable AI - Shows task understanding and explains decomposition decisions
- โ Real-time Monitoring - Live progress updates for each agent during batch execution
- โ Better Timeout Handling - Detects stuck agents and provides clear timeout messages
- โ Enhanced Database Logging - All tasks and operations properly saved to database
- โ Improved Error Messages - Clear visibility into what each agent is doing
๐ฆ Previous v0.3.2
Bug Fix Release:
- โ Fixed foreign key constraint issue in message bus
- โ Agents now properly created in database before messaging
- โ Prevents duplicate agent creation in database
๐ฆ What's New in v0.3.1
Bug Fix Release:
- โ Fixed SQLite Row conversion issue for Python 3.13 compatibility
- โ Proper dictionary conversion from aiosqlite Row objects
- โ All database queries now return proper dictionaries
๐ฆ What's New in v0.3.0
Complete Orchestration System:
- โ SQLite Persistence - All data stored in a robust database
- โ Task Decomposition - Automatically breaks tasks into parallel subtasks
- โ Session Management - Resume conversations, save/restore checkpoints
- โ Inter-Agent Communication - Agents coordinate and share information
- โ Smart Agent Allocation - Reuses existing agents when possible
- โ
Real SDK Mode - Spawns Claude with
-pfor actual task execution
What MAOS Does
MAOS orchestrates multiple Claude CLI instances to work on complex tasks in parallel:
User: "Implement the requirements in prd.md"
MAOS:
โโ Analyzes requirements
โโ Decomposes into subtasks
โโ Allocates agents (creates new or reuses existing)
โโ Executes tasks in parallel batches
โโ Coordinates inter-agent communication
Installation
# Install with pipx (recommended)
pipx install maos-cli
# Or with pip
pip install maos-cli
Quick Start
1. Basic Chat Interface
# Start the orchestrator
maos chat
# Now use natural language
MAOS> Build a REST API with authentication
2. How It Works
When you give MAOS a task, it:
- Decomposes - Breaks your request into parallel subtasks
- Proposes Agents - Shows which agents it will create/reuse
- Gets Approval - You approve the execution plan
- Executes - Spawns Claude processes in SDK mode
- Coordinates - Manages inter-agent communication
- Reports - Shows progress and results
3. Example Session
MAOS> Implement the requirements in prd.md
Analyzing request and creating task plan...
Determining agent allocation...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Agent Allocation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Agent allocation proposal:
โข Creating 3 new agents
โข Reusing 2 existing agents
NEW: architect-a3f2b1c8 (architect)
โ Design system architecture based on PRD
NEW: developer-b4d5c2e9 (developer)
โ Implement backend services according to PRD
NEW: tester-c6e7d3fa (tester)
โ Write comprehensive tests for PRD features
REUSE: security-auditor [session: 4d5e6f7a]
โ Review for security vulnerabilities
REUSE: reviewer [session: 8b9c0d1e]
โ Review code quality and standards
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Estimated duration: 10.0 minutes
Estimated cost: $0.1500
Proceed with this plan? (y/n): y
Starting execution...
Spawning agents...
โ Spawned architect-a3f2b1c8
โ Spawned developer-b4d5c2e9
โ Spawned tester-c6e7d3fa
โป Resumed security-auditor
โป Resumed reviewer
Executing batch 1/3
[Working... Agents collaborating]
๐ก architect-a3f2b1c8 discovered: Database schema requires indexing
โ ๏ธ developer-b4d5c2e9 needs from architect-a3f2b1c8: API endpoint specs
Execution complete!
Features
๐ง Intelligent Task Decomposition
- Automatically breaks complex tasks into subtasks
- Identifies dependencies between tasks
- Groups tasks for parallel execution
๐ค Smart Agent Management
- Creates specialized agents for different task types
- Reuses existing agents when appropriate
- Manages Claude sessions with SDK mode (
claude -p)
๐ฌ Inter-Agent Communication
- Agents can send messages to each other
- Broadcast discoveries to all agents
- Request dependencies from other agents
๐พ Persistence & Checkpoints
- SQLite database stores all orchestration data
- Save/restore checkpoints for long-running tasks
- Resume sessions across multiple days
๐ Real-Time Monitoring
- Track agent progress
- View inter-agent messages
- Monitor resource usage
Commands
Natural Language
Just type what you want:
"Build a REST API with authentication""Review and optimize my codebase""Fix all the failing tests""Implement the requirements in prd.md"
System Commands
status- Show current execution statussave checkpoint <name>- Save current staterestore <name>- Restore from checkpointlist checkpoints- Show available checkpointspause- Pause executionresume- Resume executionhelp- Show available commandsexit- Stop all agents and exit
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Natural Language Input โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Orchestrator Brain โ
โ โข Task Decomposer โ
โ โข Agent Allocator โ
โ โข Execution Planner โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Session Manager โ
โ โข Spawn Claude with -p <task> โ
โ โข Resume sessions with --resume โ
โ โข Manage process lifecycle โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Agent Message Bus โ
โ โข Inter-agent communication โ
โ โข Message routing โ
โ โข Discovery broadcasting โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SQLite Persistence โ
โ โข Agents, Sessions, Tasks โ
โ โข Messages, Checkpoints โ
โ โข Complete relational storage โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Requirements
- Python 3.11+
- Claude CLI (optional, for actual execution)
npm install -g @anthropic-ai/claude-code export ANTHROPIC_API_KEY="your-api-key"
Advanced Usage
Auto-Approve Mode
Skip manual approval for agent proposals:
maos chat --auto-approve
Custom Database Location
maos chat --db-path /path/to/my/maos.db
Configuration File
Create .maos/config.yaml:
orchestrator:
max_agents: 20
auto_approve: false
persistence:
db_path: ./maos.db
session:
max_turns: 10
timeout: 600
Troubleshooting
Claude CLI Not Found
MAOS works without Claude CLI - it creates agent definition files. To actually run agents, install Claude:
npm install -g @anthropic-ai/claude-code
Database Errors
Delete the database to start fresh:
rm maos.db
Session Issues
List and manage sessions:
MAOS> status
MAOS> list checkpoints
MAOS> restore <checkpoint-name>
Examples
Code Review
MAOS> Review all Python files for security issues and performance problems
[Creates security-auditor and performance-optimizer agents]
[Runs them in parallel across your codebase]
[Reports findings with specific file locations]
Test Generation
MAOS> Generate comprehensive tests for all modules
[Creates multiple tester agents]
[Each handles different modules in parallel]
[Produces test files with high coverage]
Documentation
MAOS> Document all public APIs and create a user guide
[Creates documentation-writer agents]
[Analyzes code and generates docs]
[Produces markdown documentation]
Version History
- v0.3.2 - Fixed foreign key constraint issue in message bus
- v0.3.1 - Fixed SQLite Row conversion for Python 3.13 compatibility
- v0.3.0 - Complete orchestration with SQLite, parallel execution, checkpoints
- v0.2.6 - Fixed agent spawning, improved natural language
- v0.2.0 - Added Claude CLI integration
- v0.1.0 - Initial release with agent definitions
Contributing
PRs welcome! Check out our contribution guidelines.
License
MIT - See LICENSE file
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Docs
Built with โค๏ธ for the AI orchestration community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file maos_cli-0.9.2.tar.gz.
File metadata
- Download URL: maos_cli-0.9.2.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c10016f0de4d1d2000b6b68da2eb55335355544a56d1d5ecaa884979133bd79
|
|
| MD5 |
907bfcca65a971fa5f908530346bd4c9
|
|
| BLAKE2b-256 |
7fd86d0ef35ea814189bfe0887d3daa0f14d7c1d3420452bc7c077a23b3e8652
|
File details
Details for the file maos_cli-0.9.2-py3-none-any.whl.
File metadata
- Download URL: maos_cli-0.9.2-py3-none-any.whl
- Upload date:
- Size: 313.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6561e345665729ab45be54204b61255a68f718120a3cc7944f9d978ab8b13625
|
|
| MD5 |
f9b480b3dbf92b337aa2d7563602bba7
|
|
| BLAKE2b-256 |
3ebf8d3dff96e81f717bafb6714fe98851ba8aa933f4b3bd3286253d343c296e
|