Sandbox
@VibeCodingWithPhil/agentwise

Multi-agent workflow system for Claude Code

Agentwise adds a workflow layer around Claude Code so you can break work into specialist agents, share context, and monitor progress in real time. It also includes planning, database, GitHub, MCP, and protection features so the agent loop is more structured and reviewable.

46 starsโ€ข14 forksโ€ขTypeScriptโ€ขUpdated 9mo ago
Who it's for

Builders who use Claude Code and want coordinated multi-agent project work with shared context and verification.

What it delivers

You can run larger Claude Code tasks with clearer planning, parallel execution, and automatic checks instead of re-explaining the project each time.

What it does

Multi-agent orchestration

Coordinates specialist agents for frontend, backend, database, DevOps, testing, deployment, design, and code review.

Shared context and token optimization

Uses shared context and caching to reduce repeated prompt content across agents.

Requirements planning

Turns an idea into requirements, task plans, and visual specs before implementation.

Automated verification

Includes testing and verification flows so agent output can be checked before moving on.

Claude Code commands

Adds commands such as `/create`, `/task`, `/monitor`, `/requirements`, and `/deploy`.

MCP and tool integration

Connects Claude Code to external services through MCP configuration and setup commands.

How to get it

  1. 1No shell scripts, no security concerns, full transparency.
    # Install with interactive prompts (secure & easy)
    npm create agentwise@latest
    
    # Or with yarn
    yarn create agentwise
    
    # Or with pnpm
    pnpm create agentwise
  2. 2NPM Update (Recommended)
    # Run the installer again - it will detect and update existing installations
    npm create agentwise@latest
    # Choose "Update existing installation" when prompted
  3. 3Manual Update (if preferred)
    cd ~/agentwise
    git pull origin main
    npm install --legacy-peer-deps
  4. 4Secure installation without shell scripts
    # Interactive installer - works on all platforms
    npm create agentwise@latest
    
    # Alternative package managers
    yarn create agentwise
    pnpm create agentwise
  5. 5Run
    /requirements <idea>             # Generate project requirements
    /requirements-enhance            # Enhance existing requirements
    /requirements-visualize          # Create visual HTML specifications
    /requirements-to-tasks           # Convert requirements to tasks
  6. 6Run
    /database-wizard                 # Interactive database setup wizard
    /database-setup                  # Quick database configuration
    /database-connect                # Connect to existing database

README

๐Ÿš€ Agentwise

Multi-Agent Orchestration System for Claude Code

License: Apache 2.0 + Commercial Node.js Version TypeScript Claude Code PRs Welcome GitHub Release

Coordinate multiple AI agents for parallel task execution, intelligent task distribution, and seamless Claude Code integration.

๐Ÿš€ Quick Install โ€ข Features โ€ข Documentation โ€ข Contributing โ€ข License

๐Ÿ“š View Full Documentation


โšก Quick Install (30 Seconds) - No Shell Scripts!

Created: August 20, 2025
Lines of Code: 335,998+ in src/ folder alone
Test Coverage: 184 comprehensive tests

๐Ÿ”’ Secure NPM Installation (Recommended)

No shell scripts, no security concerns, full transparency.

# Install with interactive prompts (secure & easy)
npm create agentwise@latest

# Or with yarn
yarn create agentwise

# Or with pnpm
pnpm create agentwise

What this does: โœ… Interactive menu to choose installation path
โœ… Auto-detects existing installations
โœ… Full user control with confirmation prompts
โœ… Cross-platform (Windows, macOS, Linux)
โœ… Pure JavaScript - no shell scripts

โœ… What Gets Installed

  • 8 Specialized Agents working in parallel
  • Global /monitor command accessible from anywhere
  • Sandboxed execution - no --dangerously-skip-permissions needed
  • Token optimization - 15-30% reduction through intelligent context sharing
  • Real-time dashboard at http://localhost:3001

๐ŸŽฎ After Installation

# Create projects without any flags!
claude /create "a todo app with React"

# Monitor all agents in real-time
/monitor start

# Configure settings
claude /configure-agentwise

# Update to latest version (NEW!)
/update-agentwise

๐Ÿ”„ Updating Agentwise

NPM Update (Recommended):

# Run the installer again - it will detect and update existing installations
npm create agentwise@latest
# Choose "Update existing installation" when prompted

Manual Update (if preferred):

cd ~/agentwise
git pull origin main
npm install --legacy-peer-deps

๐Ÿ“– Complete Installation Guide | ๐Ÿ”ง Manual Installation


๐ŸŽฏ Overview

Agentwise is a comprehensive development platform that transforms project creation through intelligent automation. Built as an extension for Claude Code, it provides complete end-to-end project setup including requirements planning, database integration, GitHub configuration, and automated security protection.

Why Agentwise?

  • ๐Ÿš„ Parallel Execution: Multiple agents work simultaneously on different aspects of projects
  • ๐ŸŽญ Self-Improving Agents: Agents learn and improve from every task (VERIFIED โœ…)
  • ๐Ÿ”„ Smart Orchestration: Intelligent task distribution and phase management
  • ๐Ÿ“Š Real-time Monitoring: Track progress across all agents with live dashboard
  • ๐Ÿ—๏ธ Smart Model Routing: Automatic model selection based on task type
  • ๐Ÿ’พ Context Management: Organized project context and task coordination
  • ๐Ÿ–ฅ๏ธ Local Model Support: Ollama, LM Studio, and OpenRouter integration
  • ๐Ÿง  Hybrid AI Strategy: Mix Claude, local models, and cloud APIs for optimal cost/performance
  • ๐Ÿ” No --dangerously-skip-permissions Required: Sandboxed execution with automatic permission handling

๐ŸŒŸ Key Features

๐Ÿ” Sandboxed Execution (No --dangerously-skip-permissions Needed!)

Agentwise now operates without requiring the dangerous permissions flag:

Automatic Permission Handling

# Before: Required dangerous flag
claude --dangerously-skip-permissions /create my-app

# Now: Works without the flag!
claude /create my-app

How It Works

  • Terminal Monitoring: Detects permission prompts automatically
  • Smart Responses: Responds based on your configuration
  • Workspace Sandboxing: Restricts execution to safe directories
  • Safety Modes: Prevents dangerous operations in production

Configuration

/configure-agentwise              # Interactive setup wizard
/configure-agentwise permissions  # Configure permission handling
/configure-agentwise workspace    # Set sandbox boundaries

Enhanced Claude Code Capabilities

๐Ÿ“„ Document Upload Support

Upload and process documents directly in Claude Code:

/upload requirements.pdf spec        # Convert PDF to project specs
/upload design-brief.docx context   # Use Word docs as project context
/upload technical-docs.pdf          # Process any document format
  • Supported: PDF, Word, Text, Markdown, RTF
  • Auto-extraction: Content, requirements, specifications
  • Smart conversion: Documents โ†’ Project specs โ†’ Working code

๐ŸŽจ Figma Dev Mode Integration

Direct integration with Figma Dev Mode MCP Server for seamless design-to-code:

/figma connect                      # Connect to Figma desktop
/figma generate Button              # Generate component from selection
/figma sync                         # Sync design tokens & components
/figma tokens ./tokens.json         # Export design variables
/figma image ./screenshot.png       # Capture design screenshots
  • Real-time connection: Direct link to Figma desktop app
  • Multi-framework: React, Vue, Angular, Swift, Kotlin support
  • Design tokens: Auto-extract colors, typography, spacing
  • Code Connect: Links Figma components to actual code
  • Live sync: Changes in Figma instantly available

๐Ÿ–ผ๏ธ Image Context Understanding

Enhanced image processing and visual context understanding:

/image                              # Visual file browser
/upload screenshot.png              # Process UI screenshots
/upload mockup.jpg                  # Convert mockups to code
  • Visual understanding: Claude analyzes images properly
  • Screenshot โ†’ Code: Build UIs from screenshots
  • Mockup conversion: Turn designs into working apps
  • Context awareness: Understands what's in the image

๐ŸŒ Website Cloning

Clone and customize websites with AI assistance:

/clone-website https://example.com exact     # 1:1 replica
/clone-website https://site.com similar      # Keep style, change brand
  • Complete extraction: HTML, CSS, components, interactions
  • Smart customization: Apply your branding automatically
  • Component recognition: Identifies reusable patterns

Why These Features Matter

Before Agentwise:

  • โŒ No way to upload documents to Claude Code
  • โŒ Manual conversion of Figma designs
  • โŒ Limited image understanding
  • โŒ No website cloning capabilities

With Agentwise:

  • โœ… Direct document processing in CLI
  • โœ… Automatic Figma โ†’ Code conversion
  • โœ… Full visual context understanding
  • โœ… Website replication and customization

These features extend Claude Code's capabilities for more comprehensive development workflows.

๐Ÿ†• Enhanced Context Management

Agentwise implements a dual-context system for better project organization:

๐Ÿ“‹ AGENTS.md (Context 2.0)

Based on OpenAI's AGENTS.md specification, this provides a universal interface for AI tools:

  • Universal Compatibility: Any AI CLI can understand your project
  • Human-Readable: Clear guidance for both humans and AI
  • Standardized Format: Following OpenAI's open specification
  • Project Guidelines: Setup, testing, architecture, conventions

๐Ÿง  CodebaseContextManager (Context 3.0)

Our proprietary real-time context awareness system:

  • Dynamic Understanding: Tracks your entire codebase
  • Real-Time Updates: File changes tracked automatically
  • Deep Analysis: Extracts imports, exports, classes, functions
  • Smart Updates: Only refreshes changed portions
  • Hierarchical Understanding: Maintains project structure relationships

How They Work Together

AGENTS.md โ†’ Universal AI Interface (any tool can read)
     +
CodebaseContextManager โ†’ Deep, Real-Time Understanding (Agentwise exclusive)
     =
Comprehensive Context System: Universal compatibility + deep awareness

Note: Our approach combines universal compatibility (AGENTS.md) with real-time codebase understanding, making it particularly well-suited for multi-agent workflows.

โœจ Features

Core Capabilities

๐Ÿค– Multi-Agent Orchestration

  • 8 Specialist Agents (Frontend, Backend, Database, DevOps, Testing, Deployment, Designer, Code Review)
  • Dynamic Agent Generation for custom specialists โœจ
  • Combined Token Optimization - 15-30% reduction through intelligent optimization ๐Ÿ’Ž
  • Parallel Execution with intelligent task distribution
  • Self-Improving Agents with learning persistence ๐Ÿง 
  • Phase-based Synchronization across all agents
๐Ÿ’Ž Agentwise Token Optimization System

โœ… REALISTIC PERFORMANCE: 15-30% token reduction through intelligent optimization

Our dual optimization system provides meaningful cost savings:

Context Sharing (15-20% typical reduction):

  • SharedContextServer: Centralized context management on port 3003
  • Differential Updates: Agents only send/receive changes, not full context
  • Smart Sharing: All agents reference the same shared context
  • Context Injection: Optimized agent files created with shared references

Smart Caching (10-15% additional reduction):

  • Semantic Understanding: Analyzes entire codebase structure
  • Relationship Mapping: Builds connections between components
  • Impact Analysis: Prevents bugs with change prediction
  • Pattern Detection: Identifies optimization opportunities

Combined Systems: 15-30% total reduction in real-world usage

๐Ÿ› ๏ธ Advanced Development Tools

  • Cross-Platform Global Commands (Windows/WSL/Linux/macOS) ๐ŸŒ
  • Real-Time Monitor Dashboard with live WebSocket updates ๐Ÿ“Š
  • Tech Stack Validator with compatibility checking โœ…
  • MCP Integration (25 verified servers) - Figma, GitHub, Playwright, etc. ๐Ÿ”Œ
  • Smart Model Routing (Claude, Ollama, LM Studio, OpenRouter) ๐ŸŽฏ
  • Performance Analytics with comprehensive metrics ๐Ÿ“ˆ

๐Ÿš€ New Enhanced Features

  • Requirements Planning System - AI-powered project specifications
  • Visual Spec Generator - Beautiful HTML project documentation
  • Database Integration - Automatic Supabase/Neon/PlanetScale setup
  • GitHub Integration - Repository creation and CI/CD automation
  • Automated Protection - Continuous backup, security, and code review
  • Unified Project Wizard - Complete project setup in one command

๐ŸŽฎ Claude Code Integration

  • Native Commands - /create, /task, /monitor, /projects
  • Global Command Installation - agentwise-monitor available anywhere
  • Seamless Agent Invocation with intelligent selection
  • Project Registry Sync with automatic management
  • Security Hardened with path validation & input sanitization ๐Ÿ”’
  • Built-in Help System with comprehensive documentation

๐Ÿ’Ž What Makes Agentwise Special

Agentwise addresses Claude Code limitations and extends its capabilities:

๐ŸŽฏ Problems We Solve

Claude Code LimitationAgentwise Solution
Can't upload filesโœ… Full document, image, and design file support
Can't process PDFsโœ… PDF โ†’ Project specs conversion
Can't read Figma filesโœ… Figma โ†’ Code generation
Limited image contextโœ… Full visual understanding
Single agent executionโœ… Multiple parallel agents
No task organizationโœ… Structured project and task management
No local model supportโœ… Ollama, LM Studio integration

๐ŸŽฏ Key Achievements

  • File upload support for Claude Code workflows
  • Figma design file integration and processing
  • Project context management and intelligent task distribution
  • Comprehensive MCP integration with 25 verified servers
  • Website cloning and customization capabilities
  • Modern documentation with responsive design
  • Context 3.0: Measured 15-30% token reduction with multi-agent orchestration

๐Ÿ“Š Token Optimization Visualization

How Agentwise Optimization Works

Note: Optimization benefits only apply to multi-agent scenarios. Single agents see no benefit or may use slightly more tokens due to overhead.

graph TB
    subgraph "โŒ Without Agentwise"
        A1[Single User/Agent<br/>10,000 tokens]
        A1 -->|Full Context| API1[Claude API<br/>๐Ÿ’ฐ $0.15]
        
        B1[5 Agents Traditional<br/>50,000 tokens]
        B1 -->|5x Full Context| API2[Claude API<br/>๐Ÿ’ฐ $0.75]
        
        C1[10 Agents Traditional<br/>100,000 tokens]
        C1 -->|10x Full Context| API3[Claude API<br/>๐Ÿ’ฐ $1.50]
    end
    
    subgraph "โœ… With Agentwise Optimization"
        D1[Single User<br/>10,000 tokens]
        D1 -->|No benefit| API4[Claude API<br/>๐Ÿ’ฐ $0.15]
        
        E1[5 Agents Optimized<br/>42,500 tokens]
        E1 -->|Shared Context| SC1[Context<br/>Server]
        SC1 -->|15% less| API5[Claude API<br/>๐Ÿ’ฐ $0.64]
        
        F1[10 Agents Optimized<br/>77,000 tokens]
        F1 -->|Shared Context| SC2[Context<br/>Server]
        SC2 -->|23% less| API6[Claude API<br/>๐Ÿ’ฐ $1.16]
    end
    
    style A1 fill:#ff6b6b,color:#fff
    style B1 fill:#ff6b6b,color:#fff
    style C1 fill:#ff6b6b,color:#fff
    style D1 fill:#ffd93d,color:#000
    style E1 fill:#6bcf7f,color:#fff
    style F1 fill:#6bcf7f,color:#fff
    style SC1 fill:#4dabf7,color:#fff
    style SC2 fill:#4dabf7,color:#fff

๐Ÿ† Realistic Performance Metrics

SystemToken ReductionStatusEmpirical Results
Context Sharing10-20%โœ… MeasuredReduces duplicate context
Smart Caching5-10%โœ… MeasuredAvoids redundant processing
Combined Systems15-30%โœ… MeasuredVaries by project complexity
Agent Accuracy+10-15%โœ… ObservedImproved with context
Bug Prevention20-30%โœ… ObservedBetter coordination
Dev Speed+15-25%โœ… ObservedParallel processing

Token Usage Comparison (Empirical Data)

ScenarioAgentsTraditionalOptimizedActual ReductionNotes
Simple Task110,00011,500-15%Overhead exceeds benefit
Small Project550,00042,50015%Modest savings
Full Project10100,00077,00023%Good for complex tasks
Enterprise20200,000150,00025%Best for large projects

All results verified through comprehensive testing - see test files for details

How Token Optimization Works

sequenceDiagram
    participant PM as Project Manager
    participant CS as Context Server<br/>(Port 3003)
    participant A1 as Frontend Agent
    participant A2 as Backend Agent
    participant A3 as Database Agent
    participant API as Claude API
    
    Note over PM,API: ๐Ÿš€ Initial Setup (One-time)
    PM->>CS: Upload full project context (1,344 bytes)
    CS->>CS: Store and version context
    CS-->>PM: Context ID: project-123
    
    Note over PM,API: ๐Ÿ‘ฅ Agent Execution (Optimized)
    A1->>CS: Get context reference
    CS-->>A1: Context hash + ref (50 bytes)
    A1->>API: Task + context ref (250 bytes total)
    
    A2->>CS: Get context reference
    CS-->>A2: Context hash + ref (50 bytes)
    A2->>API: Task + context ref (250 bytes total)
    
    A3->>CS: Get context reference
    CS-->>A3: Context hash + ref (50 bytes)
    A3->>API: Task + context ref (250 bytes total)
    
    Note over PM,API: ๐Ÿ”„ Updates (Differential Only)
    A1->>CS: Send changes only (50 bytes)
    CS->>A2: Broadcast diff
    CS->>A3: Broadcast diff
    
    Note over PM,API: โœ… Total: 5,460 bytes vs 8,400 bytes
    Note over PM,API: ๐Ÿ’ฐ Saved: 2,940 tokens (35% reduction)

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18.0 or higher
  • Claude Code CLI installed
  • Git for version control
  • macOS/Linux or Windows with WSL

โœ… Note: Agentwise now works without requiring the --dangerously-skip-permissions flag through automatic permission handling and sandboxed execution.

Installation

NPM Installation (Recommended)

Secure installation without shell scripts:

# Interactive installer - works on all platforms
npm create agentwise@latest

# Alternative package managers
yarn create agentwise
pnpm create agentwise

What you get:

  • Secure, transparent installation process
  • Choice of installation location
  • Automatic existing installation detection
  • Cross-platform compatibility
  • No shell scripts or security concerns

๐Ÿ”ง Manual Installation

For advanced users who prefer manual setup:

# 1. Clone the repository
git clone https://github.com/VibeCodingWithPhil/agentwise.git
cd ~/agentwise

# 2. Install dependencies
npm install

# 3. Build the project
npm run build

# 4. Create workspace directory
mkdir -p workspace

# 5. Install global monitor command
npm run monitor:install

# 6. Start Agentwise
node dist/index.js

# 7. In a new terminal, test without any flags!
claude /create "your first project"

๐ŸŽฏ Configure Sandboxed Execution (Optional)

Remove the need for --dangerously-skip-permissions:

# Run the configuration wizard
claude /configure-agentwise

# Or create config file directly at ~/.agentwise-config.json
{
  "permissions": {
    "bypassEnabled": true,
    "safetyMode": "moderate",
    "autoResponse": true
  },
  "workspace": {
    "enableSandbox": true,
    "restrictPaths": true,
    "allowedPaths": ["~/agentwise/workspace"]
  }
}

Benefits of Manual Installation:

  • Full control over configuration
  • Customize installation location
  • Modify source code directly
  • Integrate with existing workflows

๐Ÿ“ฆ Complete Command Reference (45 Commands)

Agentwise provides 45 powerful commands organized by category:

๐Ÿ“ฆ Project Creation & Management (11 commands)

/create <idea>                   # Create project with smart agent selection
/create-plan <idea>              # Collaborative planning mode
/create-project <idea>           # Complete setup wizard with all features
/projects                        # List and select active projects
/project-status                  # View current project status
/task <feature>                  # Add features to active project
/task-dynamic <feature>          # Dynamic task distribution
/task-plan <feature>             # Plan tasks before execution
/task-import <source>            # Import tasks from external sources
/init-import                     # Import external project
/clone-website <url>             # Clone and customize websites

๐Ÿ“‹ Requirements & Planning (4 commands)

/requirements <idea>             # Generate project requirements
/requirements-enhance            # Enhance existing requirements
/requirements-visualize          # Create visual HTML specifications
/requirements-to-tasks           # Convert requirements to tasks

๐Ÿ—„๏ธ Database Integration (3 commands)

/database-wizard                 # Interactive database setup wizard
/database-setup                  # Quick database configuration
/database-connect                # Connect to existing database

๐Ÿ” Security & Protection (5 commands)

/enable-protection               # Enable automated backup and security
/protection-status               # View real-time protection status
/security-review                 # Comprehensive security analysis
/security-report                 # Generate detailed security report
/rollback                        # Rollback to previous safe state

๐ŸŽจ Figma Integration (8 commands)

/figma                          # Main Figma integration menu
/figma-auth                     # Authenticate with Figma
/figma-list                     # List available Figma files
/figma-select                   # Select Figma file
/figma-inspect                  # Inspect Figma components
/figma-generate                 # Generate code from designs
/figma-sync                     # Sync changes with Figma
/figma-create                   # Create new Figma components

๐Ÿค– Model & Agent Management (6 commands)

/generate-agent <spec>          # Create custom specialized agents
/setup-ollama                   # Install and configure Ollama
/setup-lmstudio                 # Configure LM Studio
/local-models                   # List available local models
/configure-routing              # Configure smart model routing
/setup-mcps                     # Configure 25 MCP servers

๐Ÿ“Š Monitoring & Analysis (3 commands)

/monitor                        # Launch real-time dashboard
/visual-test                    # Run visual regression tests
/docs                          # Open documentation hub

๐Ÿ› ๏ธ Configuration & Tools (3 commands)

/configure-agentwise           # Configure settings
/upload <file>                 # Upload documents (PDF, Word, Figma)
/image                         # Visual context file browser

๐Ÿš€ Deployment & Updates (2 commands)

/deploy                        # Deploy project to production
/update-agentwise              # Update to latest version

๐Ÿ“š View Complete Commands Documentation for detailed usage and examples

First Project

# Create a new project directly
/create "an e-commerce platform with Next.js and Stripe"

# Monitor progress in real-time
/monitor

# Add features to active project
/task "add user authentication with OAuth"

๐Ÿ“š Documentation

๐Ÿ“Š Real-Time Monitoring Dashboard with Observable Visualizations

Agentwise includes a comprehensive web-based monitoring dashboard that provides real-time visibility into your agent orchestration:

Features

  • Live Agent Status: Real-time progress tracking for all active agents
  • Task Feed: Live stream of task completions and updates
  • Interactive Controls: Pause, resume, or manage individual agents
  • Progress Visualization: Progress bars, completion percentages, and timelines
  • System Health: CPU, memory, and network monitoring
  • Multi-Project Support: Automatic project detection and switching
  • Observable Plot Charts: Professional data visualizations with D3.js
  • Knowledge Graph Visualization: Interactive codebase structure exploration
  • Token Optimization Metrics: Real-time charts showing 15-30% reduction

Starting the Monitor

/monitor                    # Opens dashboard (auto-installs global command)
/monitor install            # Manually install global command
/monitor global             # Alternative install command  
/monitor status             # Check installation status
/monitor help               # Show monitor command help

Note: Running /monitor without subcommands now automatically installs the global command if not present

Files in the repo

Repository payloadโ€ข27 top-level entries
  • .agentwise
  • .claude
  • .github
  • config
  • docs
  • docs-site
  • examples
  • installers
  • src
  • .agentwise-config.json
  • .gitignore
  • CHANGELOG.md
  • CLAUDE_CODE_SETUP_PROMPT.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • index.html
  • jest.config.js
  • LICENSE
  • LICENSING_FAQ.md
  • NOTICE
  • package-lock.json
  • package.json
  • QUICKSTART.md
  • README.md
  • ROADMAP.md
  • token_benchmark_20250831_223946.json
  • tsconfig.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k
ruvnet/rufloHarnesses

๐ŸŒŠ The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k