cortexweaver
v1.0.2
Published
CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate
Maintainers
Readme
🧠 CortexWeaver 1.0
🚀 The Next-Generation AI Agent Orchestration System
Intelligent • Modular • Production-Ready
✨ What is CortexWeaver?
CortexWeaver is a revolutionary AI agent orchestration system that transforms how developers approach software projects. Instead of wrestling with complex tasks alone, CortexWeaver deploys 20+ specialized AI agents that work together like a perfectly coordinated development team.
🎯 Think of it as having a team of expert developers, each specializing in different aspects of software development, all working together seamlessly.
📦 Available on NPM: https://www.npmjs.com/package/cortexweaver
🌟 Why Choose CortexWeaver?
🚀 For Developers
- ⚡ 10x faster development with AI agent assistance
- 🧠 Expert knowledge across all development disciplines
- 🔄 Automated workflows from design to deployment
- 📚 Learning accelerator - learn from AI expertise
- 🛡️ Quality assurance built into every step
🏢 For Teams
- 🎯 Consistent code quality across all projects
- 📋 Standardized processes and documentation
- 🔍 Built-in code review and testing
- 📈 Scalable development practices
- 💰 Cost-effective compared to hiring specialists
🎥 See CortexWeaver in Action
# Initialize a new AI-powered project in seconds (no installation needed!)
$ npx cortexweaver init my-awesome-app
✨ Creating project structure with 20+ AI agents ready to assist...
📁 Setting up modular architecture...
🤖 Configuring specialized agents...
✅ Project ready! Your AI development team is standing by.
# Start building with AI assistance
$ npx cortexweaver start
🧠 CortexWeaver Orchestrator starting...
🏗️ Architect Agent: Analyzing requirements...
💻 Coder Agent: Ready for implementation...
🧪 Testing Agents: Quality assurance online...
📊 Monitor Agent: Performance tracking active...
🚀 Your AI development team is now working!🚀 Quick Start
Choose your preferred installation method:
⚡ Option 1: NPX (Instant - No Installation)
# 1. Create your first AI-powered project (15 seconds)
mkdir my-project && cd my-project
npx cortexweaver init
# 2. Configure authentication (15 seconds)
npx cortexweaver auth configure
# 3. Start your AI development team! 🚀
npx cortexweaver start📦 Option 2: Global Installation
# 1. Install globally (30 seconds)
npm install -g cortexweaver
# 2. Create your first AI-powered project (15 seconds)
mkdir my-project && cd my-project
cortex-weaver init
# 3. Configure authentication (15 seconds)
cortex-weaver auth configure
# 4. Start your AI development team! 🚀
cortex-weaver start🔧 Option 3: Development Setup
# 1. Clone and install (60 seconds)
git clone https://github.com/mlbrilliance/CortexWeaver.git
cd CortexWeaver && npm install && npm run build
# 2. Create your first AI-powered project (15 seconds)
mkdir my-project && cd my-project
../CortexWeaver/dist/index.js init
# 3. Configure authentication (15 seconds)
../CortexWeaver/dist/index.js auth configure
# 4. Start your AI development team! 🚀
../CortexWeaver/dist/index.js start📋 Prerequisites
| Requirement | Version | Purpose | |-------------|---------|---------| | 🟢 Node.js | ≥ 18.0.0 | Runtime environment | | 🔧 Git | ≥ 2.25.0 | Worktree management | | 🗄️ Neo4j | Latest | Knowledge graph (optional) | | 🔑 Claude API | - | AI agent intelligence |
💡 Pro Tip: Use npx cortexweaver doctor or cortex-weaver doctor to check all prerequisites automatically!
🏗️ The Architecture That Powers Intelligence
graph TB
subgraph "🧠 Intelligence Layer"
Reflector["🧠 Reflector<br/>Self-Improvement"]
Governor["👑 Governor<br/>Meta-Strategy"]
Orchestrator["🌌 Orchestrator<br/>Task Coordination"]
CodeSavant["💡 CodeSavant<br/>Problem Solving"]
end
subgraph "🏗️ Development Specialists"
Formalizer["📋 Formalizer<br/>Contract Design"]
Architect["👷 Architect<br/>System Design"]
Coder["💻 Coder<br/>Implementation"]
SpecWriter["📝 Spec Writer<br/>Requirements"]
Prototyper["⚡ Prototyper<br/>Proof of Concept"]
end
subgraph "🧪 Quality Assurance Team"
LondonTester["🏴 London Tester<br/>Mockist/TDD"]
ChicagoTester["🇺🇸 Chicago Tester<br/>Classical/BDD"]
PropertyTester["🎲 Property Tester<br/>Property-Based"]
QualityGate["🛡️ Quality Gate<br/>Code Standards"]
TestDocumenter["📊 Test Documenter<br/>Documentation"]
end
subgraph "🔍 Analysis & Intelligence"
Monitor["📊 Monitor<br/>Performance"]
Debugger["🐛 Debugger<br/>Error Analysis"]
Critique["🔄 Critique<br/>Quality Review"]
KnowledgeUpdater["📚 Knowledge Updater<br/>Learning"]
end
%% Connections
Reflector --> Governor
Reflector --> Orchestrator
Governor --> Orchestrator
Orchestrator --> Formalizer
Orchestrator --> Architect
Orchestrator --> Coder
Orchestrator --> SpecWriter
Orchestrator --> Prototyper
Orchestrator --> LondonTester
Orchestrator --> ChicagoTester
Orchestrator --> PropertyTester
CodeSavant --> Coder
CodeSavant --> Debugger
QualityGate --> Coder
Critique --> Architect
Monitor --> Governor
TestDocumenter --> LondonTester
TestDocumenter --> ChicagoTester
KnowledgeUpdater --> Reflector
%% Styling
classDef intelligence fill:#e1f5fe
classDef development fill:#f3e5f5
classDef quality fill:#e8f5e8
classDef analysis fill:#fff3e0
class Reflector,Governor,Orchestrator,CodeSavant intelligence
class Formalizer,Architect,Coder,SpecWriter,Prototyper development
class LondonTester,ChicagoTester,PropertyTester,QualityGate,TestDocumenter quality
class Monitor,Debugger,Critique,KnowledgeUpdater analysis🎯 How It Works
- 🧠 You Define the Vision - Write your requirements in simple
plan.md - 🎯 Orchestrator Coordinates - Intelligent task distribution across agents
- 🤖 Agents Execute - Specialized AI agents handle their expertise areas
- 🌌 Knowledge Persists - Cognitive Canvas learns and improves over time
- 🔄 System Evolves - Reflector agent continuously improves the process
🤖 The Agent Ecosystem
🌟 20+ Specialized AI Agents at Your Service
🏗️ Development Powerhouse
- 👷 Architect - System design & API specs
- 💻 Coder - Implementation & programming
- 📋 Formalizer - Contract specifications
- ⚡ Prototyper - Rapid concept validation
- 📝 Spec Writer - Requirements analysis
🧪 Quality Guardians
- 🏴 London Tester - Mockist unit testing
- 🇺🇸 Chicago Tester - Integration testing
- 🎲 Property Tester - Property-based verification
- 🛡️ Quality Gate - Code quality enforcement
- 📊 Test Documenter - Test documentation
🔍 Intelligence Network
- 👑 Governor - Budget & resource management
- 📊 Monitor - System health & performance
- 🐛 Debugger - Intelligent error resolution
- 📚 Knowledge Updater - Learning & improvement
- 🔄 Reflector - Process optimization
💡 Real-World Examples
🎮 Example 1: Building a REST API
Using NPX (Recommended)
# 1. Initialize project (no installation needed)
npx cortexweaver init my-api
cd my-api
# 2. Define your vision in plan.md
echo "Build a user management REST API with authentication" > plan.md
# 3. Let the AI team work!
npx cortexweaver startUsing Global Installation
# 1. Initialize project
cortex-weaver init my-api
cd my-api
# 2. Define your vision in plan.md
echo "Build a user management REST API with authentication" > plan.md
# 3. Let the AI team work!
cortex-weaver startWhat happens behind the scenes:
- 👷 Architect designs the API structure and database schema
- 📋 Formalizer creates OpenAPI specifications
- 💻 Coder implements endpoints and business logic
- 🧪 Testing team creates comprehensive test suites
- 🛡️ Quality Gate ensures code standards compliance
- 📊 Monitor sets up performance tracking
🌐 Example 2: Frontend Application
# Using NPX
npx cortexweaver init my-frontend
echo "React dashboard with real-time charts and user management" > plan.md
npx cortexweaver start --workflow=frontend --agents=architect,coder,london-tester
# Using Global Installation
cortex-weaver init my-frontend
echo "React dashboard with real-time charts and user management" > plan.md
cortex-weaver start --workflow=frontend --agents=architect,coder,london-tester🔧 Example 3: Microservices Architecture
# Using NPX
npx cortexweaver init microservices-app
echo "E-commerce platform with user, product, and order services" > plan.md
npx cortexweaver start --parallel=5 --agents=all
# Using Global Installation
cortex-weaver init microservices-app
echo "E-commerce platform with user, product, and order services" > plan.md
cortex-weaver start --parallel=5 --agents=all📖 Comprehensive Documentation
🎮 Available Commands
🚀 Project Management
Using NPX (No Installation Required):
# Initialize new project
npx cortexweaver init [path]
# Check project health
npx cortexweaver status [path]
# Start AI orchestration
npx cortexweaver start [path]
# Monitor progress
npx cortexweaver logs <task-id>Using Global Installation:
# Initialize new project
cortex-weaver init [path]
# Check project health
cortex-weaver status [path]
# Start AI orchestration
cortex-weaver start [path]
# Monitor progress
cortex-weaver logs <task-id>🔧 Advanced Operations
Using NPX:
# Authentication management
npx cortexweaver auth status
npx cortexweaver auth configure
# Agent management
npx cortexweaver list-agents
npx cortexweaver retry <task-id>
# Project operations
npx cortexweaver merge <task-id>
npx cortexweaver attach <task-id>Using Global Installation:
# Authentication management
cortex-weaver auth status
cortex-weaver auth configure
# Agent management
cortex-weaver list-agents
cortex-weaver retry <task-id>
# Project operations
cortex-weaver merge <task-id>
cortex-weaver attach <task-id>🎯 Basic Development Workflow
NPX Workflow (Recommended)
# 1. Project Setup
mkdir awesome-project && cd awesome-project
npx cortexweaver init
# 2. Authentication
npx cortexweaver auth status
# If needed: npx cortexweaver auth configure
# 3. Define Requirements
cat > plan.md << EOF
# My Awesome Project
## Goal
Build a task management API with the following features:
## Requirements
- User authentication and authorization
- CRUD operations for tasks
- Real-time notifications
- Database persistence
- API documentation
## Acceptance Criteria
- RESTful API design
- Input validation
- Error handling
- Comprehensive tests
- Docker deployment
EOF
# 4. Start Development
npx cortexweaver start
# 5. Monitor Progress
npx cortexweaver status
npx cortexweaver logs task-001Global Installation Workflow
# 1. Install globally
npm install -g cortexweaver
# 2. Project Setup
mkdir awesome-project && cd awesome-project
cortex-weaver init
# 3. Authentication
cortex-weaver auth status
# If needed: cortex-weaver auth configure
# 4. Define Requirements (same as above)
cat > plan.md << EOF
# My Awesome Project
## Goal
Build a task management API with the following features:
## Requirements
- User authentication and authorization
- CRUD operations for tasks
- Real-time notifications
- Database persistence
- API documentation
## Acceptance Criteria
- RESTful API design
- Input validation
- Error handling
- Comprehensive tests
- Docker deployment
EOF
# 5. Start Development
cortex-weaver start
# 6. Monitor Progress
cortex-weaver status
cortex-weaver logs task-001🛠️ Advanced Configuration
⚙️ Project Configuration (.cortexweaver/config.json)
{
"project": {
"name": "my-awesome-project",
"version": "1.0.0",
"type": "fullstack"
},
"ai": {
"models": {
"claude": "claude-3-opus-20240229",
"fallback": "claude-3-sonnet-20240229"
},
"temperature": 0.7,
"maxTokens": 4000
},
"budget": {
"maxCost": 500,
"dailyLimit": 50,
"warningThreshold": 80
},
"agents": {
"preferred": ["architect", "coder", "london-tester"],
"maxConcurrent": 3,
"specializations": {
"frontend": ["architect", "coder", "london-tester"],
"backend": ["architect", "formalizer", "coder", "chicago-tester"],
"fullstack": ["architect", "coder", "london-tester", "chicago-tester"]
}
},
"quality": {
"codeStandards": "strict",
"testCoverage": 80,
"documentationRequired": true
}
}🔐 Environment Setup
# Core Configuration
export CLAUDE_API_KEY="your-claude-api-key"
export NODE_ENV="development"
# Optional Integrations
export NEO4J_URI="bolt://localhost:7687"
export NEO4J_USERNAME="neo4j"
export NEO4J_PASSWORD="your-password"
# GitHub Integration (optional)
export GITHUB_TOKEN="your-github-token"
# Advanced Settings
export CORTEX_LOG_LEVEL="info"
export CORTEX_MAX_PARALLEL_AGENTS="5"
export CORTEX_BUDGET_LIMIT="1000"📁 Project Structure
my-project/
├── 📝 plan.md # Project requirements
├── 📋 contracts/ # Formal specifications
│ ├── api-spec.yaml # OpenAPI specifications
│ ├── schema.json # Data schemas
│ └── requirements.md # Detailed requirements
├── 🤖 prompts/ # Agent customization
│ ├── architect.md # Custom architect instructions
│ ├── coder.md # Custom coding standards
│ └── tester.md # Testing preferences
├── ⚡ prototypes/ # Rapid development
│ ├── features/ # Feature prototypes
│ ├── experiments/ # Technical experiments
│ └── proofs-of-concept/ # Concept validation
├── ⚙️ .cortexweaver/ # System configuration
│ ├── config.json # Project settings
│ ├── agent-history.json # Learning data
│ └── performance-metrics.json # Usage analytics
└── 📊 .cortex-history/ # Knowledge persistence
├── cognitive-canvas.db # Knowledge graph
├── agent-interactions.log # Communication logs
└── improvement-suggestions.json # AI recommendations🌟 What Makes CortexWeaver Special
🚀 Production-Ready Architecture
| Feature | Benefit | Impact |
|---------|---------|--------|
| 🧩 Modular Design | Easy maintenance & testing | 🟢 High |
| 📏 500-Line Rule | Enhanced readability | 🟢 High |
| 🔒 Type Safety | Fewer runtime errors | 🟢 High |
| 🧪 Comprehensive Tests | Reliable deployments | 🟢 High |
| 📚 Self-Documenting | Reduced onboarding time | 🟡 Medium |
🎯 Intelligent Features
- 🧠 Cognitive Canvas: AI agents learn from every project and improve over time
- 🔄 Self-Healing: Automatic error detection and recovery
- 📊 Performance Monitoring: Real-time insights into development progress
- 🎯 Smart Task Distribution: Optimal agent assignment based on capabilities
- 💡 Continuous Learning: System gets smarter with each project
🛡️ Enterprise-Grade Security
- 🔐 Secure API Management: Encrypted credential storage
- 🔍 Code Review Integration: Automated security scanning
- 📋 Audit Trails: Complete activity logging
- 🚫 Permission Controls: Role-based access management
🎓 Learning Resources
📚 Getting Started Guides
👨💻 For Developers
🏢 For Teams
💡 Pro Tips
- 🎨 Customize Agent Personas: Tailor agents to your coding style
- 📊 Monitor Costs: Use budget controls to optimize AI usage
- 🔄 Iterative Development: Start small, let agents learn your preferences
- 🧪 Test-Driven Approach: Let testing agents guide development quality
- 📚 Document Everything: Agents learn from your documentation patterns
🤝 Community & Support
👥 Connect with the Community
🆘 Need Help?
- 🐛 Bug Reports: Create an issue
- 💡 Feature Requests: Request features
- ❓ Questions: Start a discussion
- 📖 Documentation: Browse the wiki
🏆 Created By
Nick Sudh
Passionate about AI, automation, and making developers more productive through intelligent tooling.
"Building the future of AI-assisted development, one agent at a time."
📄 License & Credits
CortexWeaver 1.0 is open source software licensed under the MIT license.
Built with ❤️ by Nick Sudh and the CortexWeaver community.
🙏 Acknowledgments
- 🤖 Anthropic for Claude AI capabilities
- 🧠 Neo4j for knowledge graph technology
- 🛠️ TypeScript for type safety and developer experience
- 👥 Open Source Community for inspiration and collaboration
🚀 Ready to Transform Your Development Process?
⚡ Instant Start with NPX (Recommended)
# No installation needed - get started in seconds!
npx cortexweaver init my-ai-project
cd my-ai-project
npx cortexweaver start📦 Install from NPM
# Global installation
npm install -g cortexweaver
cortex-weaver init my-ai-project
cd my-ai-project
cortex-weaver start🔧 Development Setup
# From source
git clone https://github.com/mlbrilliance/CortexWeaver.git
cd CortexWeaver && npm install && npm run build
mkdir my-ai-project && cd my-ai-project
../CortexWeaver/dist/index.js initStart building with 20+ AI agents today! 🤖✨
• ⭐ Star this project • 🔗 Share with friends • 📖 Read the docs
CortexWeaver - Intelligent AI Agent Orchestration System
Empowering developers with specialized AI agents for better, faster, smarter development.
Made with 🧠 and ⚡ by Nick Sudh
