Skip to main content

Multi-Agent Orchestration System for Claude

Project description

Claude Force

Production-ready multi-agent orchestration system for Claude AI with governance, skills, and marketplace integration.

PyPI version Python Tests Status Version

Overview

Claude Force is a comprehensive orchestration platform that enables building sophisticated AI workflows with specialized agents, automated governance, and cost optimization.

Key Features

  • 19 Specialized Agents - Frontend, Backend, Database, DevOps, QA, Security, AI/ML, and more
  • Marketplace Integration - Full compatibility with wshobson/agents ecosystem
  • Cost Optimization - 40-60% savings via hybrid model orchestration (Haiku/Sonnet/Opus)
  • Performance - 30-50% token reduction through progressive skills loading
  • 6-Layer Governance - Quality gates, validation, and compliance enforcement
  • 11 Skills - DOCX, XLSX, PDF, testing, code review, API design, Docker, Git
  • 10 Workflows - Pre-built workflows for common development scenarios
  • 9 Templates - Production-ready project templates
  • 100% Test Coverage - 331 tests, all passing

๐Ÿ†• Existing Project Support (v1.2.0)

Seamlessly integrate claude-force with your existing projects:

  • ๐Ÿ” Review Command (/review) - Analyze existing projects for claude-force compatibility

    • Technology stack detection (12 languages, 9 frameworks, 5 databases)
    • Agent recommendations based on project analysis
    • Multiple output formats (markdown, JSON)
  • ๐Ÿ”ง Restructure Command (/restructure) - Validate and fix .claude folder structure

    • Comprehensive validation rules
    • Automatic fix generation
    • Interactive and auto-approve modes
  • ๐Ÿ“ฆ Pick-Agent Command (/pick-agent) - Copy agent packs between projects

    • Browse and copy multiple agents
    • Automatic config updates
    • Validates agent definitions and contracts

See EXISTING_PROJECT_SUPPORT.md for full details.

Quick Start

Installation

# Install from PyPI
pip install claude-force

# Set API key
export ANTHROPIC_API_KEY='your-api-key-here'

# Verify
claude-force --help

See INSTALLATION.md for detailed setup.

First Steps

# List available agents
claude-force list agents

# Run an agent
claude-force run agent code-reviewer --task "Review authentication logic"

# Execute a workflow
claude-force run workflow full-stack-feature --task "Build user dashboard"

# Initialize new project
claude-force init my-project --interactive

See QUICK_START.md for the 5-minute getting started guide.

Core Concepts

Agents

Specialized AI agents with defined roles, skills, and contracts:

# List all agents with their capabilities
claude-force list agents

# Get detailed agent info
claude-force info security-specialist

# Run specific agent
claude-force run agent backend-architect --task "Design REST API"

Available Agents:

  • Architecture: frontend-architect, backend-architect, database-architect, devops-architect
  • Development: frontend-developer, python-expert, ui-components-expert
  • Quality: code-reviewer, qc-automation-expert, security-specialist
  • Support: bug-investigator, document-writer-expert, api-documenter
  • Specialized: ai-engineer, data-engineer, prompt-engineer, deployment-integration-expert, google-cloud-expert, claude-code-expert

Workflows

Multi-agent workflows for complex tasks:

# Execute pre-built workflow
claude-force run workflow full-stack-feature --task "User authentication"

Available Workflows:

  • full-stack-feature - Complete feature (8 agents: architecture โ†’ development โ†’ QA โ†’ deployment)
  • frontend-feature - Frontend-only (5 agents)
  • backend-api - Backend API (4 agents)
  • infrastructure-setup - DevOps setup (3 agents)
  • bug-investigation - Debug and fix (3 agents)
  • documentation-suite - Full documentation (3 agents)
  • ai-ml-development - AI/ML pipeline (4 agents)
  • data-pipeline-development - Data engineering (3 agents)
  • llm-integration - LLM integration (4 agents)
  • claude-code-system - Meta workflow (5 agents)

Python API

from claude_force import AgentOrchestrator, HybridOrchestrator

# Standard orchestrator
orchestrator = AgentOrchestrator()
result = orchestrator.run_agent(
    agent_name='code-reviewer',
    task='Review the authentication logic'
)

# Hybrid orchestrator (cost optimization)
hybrid = HybridOrchestrator(auto_select_model=True)
result = hybrid.run_agent(
    agent_name='document-writer-expert',
    task='Generate API documentation'
)  # Auto-selects Haiku for 60-80% cost savings

# Run workflow
results = orchestrator.run_workflow(
    workflow_name='full-stack-feature',
    task='Build user profile page'
)

# Performance tracking
summary = orchestrator.get_performance_summary()
print(f"Total cost: ${summary['total_cost']:.4f}")
print(f"Avg time: {summary['avg_execution_time_ms']:.0f}ms")

See examples/python/ for more examples.

Advanced Features

Hybrid Model Orchestration

Automatically select optimal model (Haiku/Sonnet/Opus) based on task complexity:

# Auto-select best model
claude-force run agent document-writer-expert \
  --task "Generate docs" \
  --auto-select-model
# โ†’ Uses Haiku (60-80% savings)

# Force specific model
claude-force run agent frontend-architect \
  --task "Design architecture" \
  --model sonnet

Model Selection:

  • Haiku - Documentation, simple code review, formatting (60-80% savings)
  • Sonnet - Architecture, complex development, analysis (balanced)
  • Opus - Critical security, complex debugging (highest quality)

Progressive Skills Loading

Load only required skills to reduce token usage:

from claude_force import ProgressiveSkillsLoader

loader = ProgressiveSkillsLoader()
savings = loader.calculate_savings(
    task="Review Python code",
    loaded_skills=["code-review"],
    total_skills=11
)
print(f"Token reduction: {savings['reduction_percentage']}%")
# โ†’ 72.7% reduction

Marketplace Integration

# Search marketplace
claude-force marketplace search "kubernetes"

# Install plugin
claude-force marketplace install wshobson-devops-toolkit

# Recommend agents for task
claude-force recommend --task "Review auth code for SQL injection"
# โ†’ security-specialist: 95.2% confidence
# โ†’ code-reviewer: 78.4% confidence

Performance Analytics

# View performance metrics
claude-force analytics summary

# Export metrics
claude-force analytics export --format json --output metrics.json

# View cost breakdown
claude-force analytics cost-breakdown --agent code-reviewer

Project Structure

Initialized Project

my-project/
โ”œโ”€โ”€ .claude/
โ”‚   โ”œโ”€โ”€ claude.json          # Configuration
โ”‚   โ”œโ”€โ”€ task.md              # Current task
โ”‚   โ”œโ”€โ”€ work.md              # Agent output
โ”‚   โ”œโ”€โ”€ scorecard.md         # Quality metrics
โ”‚   โ”œโ”€โ”€ agents/              # Agent definitions
โ”‚   โ”œโ”€โ”€ contracts/           # Agent contracts
โ”‚   โ”œโ”€โ”€ hooks/               # Governance hooks
โ”‚   โ”œโ”€โ”€ skills/              # Custom skills
โ”‚   โ”œโ”€โ”€ workflows/           # Custom workflows
โ”‚   โ”œโ”€โ”€ tasks/               # Task history
โ”‚   โ””โ”€โ”€ metrics/             # Performance data
โ””โ”€โ”€ ...

Templates

Initialize projects with pre-configured templates:

claude-force init my-project --template llm-app

Smart Integration with Existing Projects:

Claude Force can seamlessly integrate with existing .claude directories (e.g., from Claude Code):

# Integrate with existing Claude Code project
cd my-existing-project  # Has .claude/ directory but no claude.json
claude-force init --description "My existing project"
# โœ“ Preserves existing files (commands/, hooks/, task.md, etc.)
# โœ“ Adds claude-force configuration (claude.json, agents/, contracts/)
# โœ“ Shows what was created vs. preserved

If you already have claude.json, use --force to reinitialize:

claude-force init --force --description "Reinitialize project"

Available Templates:

  • fullstack-web - Full-stack (React, FastAPI, PostgreSQL)
  • llm-app - LLM application (RAG, chatbots)
  • ml-project - Machine learning
  • data-pipeline - ETL pipeline
  • api-service - REST API
  • frontend-spa - SPA (React/Vue)
  • mobile-app - Mobile (React Native/Flutter)
  • infrastructure - DevOps (Docker, K8s)
  • claude-code-system - Multi-agent system

Documentation

Quick Links

Comprehensive Documentation

Use Cases

Code Review

claude-force run agent code-reviewer \
  --task "Review src/auth.py for security issues"

Architecture Design

claude-force run agent backend-architect \
  --task "Design microservices architecture for e-commerce platform"

Bug Investigation

claude-force run workflow bug-investigation \
  --task "Users can't login after password reset"

Documentation

claude-force run agent document-writer-expert \
  --task "Create API documentation" \
  --skill docx

Full Feature Development

claude-force run workflow full-stack-feature \
  --task "Build user profile management with avatar upload"

REST API Server

Run as a service:

# Start server
claude-force serve --port 8000

# Or use uvicorn
cd examples/api-server
uvicorn main:app --reload
from api_client import ClaudeForceClient

client = ClaudeForceClient(base_url="http://localhost:8000")

# Run agent
result = client.run_agent_sync(
    agent_name="code-reviewer",
    task="Review this code"
)

# Async execution
task_id = client.run_agent_async(agent_name="bug-investigator", task="...")
result = client.wait_for_task(task_id, timeout=60.0)

See examples/api-server/ for details.

CI/CD Integration

GitHub Actions

# .github/workflows/code-review.yml
name: Automated Code Review
on: [pull_request]
jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Code Review
        run: |
          pip install claude-force
          claude-force run agent code-reviewer \
            --task "Review changes in this PR" \
            --output review.md
      - name: Comment PR
        uses: actions/github-script@v6
        with:
          script: |
            const fs = require('fs');
            const review = fs.readFileSync('review.md', 'utf8');
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: review
            });

See examples/github-actions/ for more examples.

Performance & Costs

Token Optimization

  • Progressive Skills Loading: 30-50% token reduction
  • Smart Context Management: Only load relevant context
  • Efficient Prompting: Optimized agent prompts

Cost Savings

  • Hybrid Orchestration: 40-60% cost reduction
  • Model Selection: Right model for each task
  • Batch Processing: Efficient multi-task execution

Benchmarks

  • Simple tasks (health endpoint): 1.2s, $0.0024
  • Medium tasks (auth feature): 5.8s, $0.0312
  • Complex tasks (full architecture): 12.4s, $0.0856

See benchmarks/ for detailed metrics.

Statistics

  • Agents: 19 specialized agents
  • Contracts: 19 formal contracts
  • Skills: 11 integrated skills
  • Workflows: 10 pre-built workflows
  • Templates: 9 production templates
  • Tests: 331 (100% passing)
  • CLI Commands: 35+
  • Code: ~30,000 lines (20K production + 8K tests + 2K docs)

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new features
  4. Ensure all tests pass
  5. Submit a pull request

See CONTRIBUTING.md for guidelines.

License

MIT License - See LICENSE file for details.

Support

  • Documentation: See docs/
  • Examples: See examples/
  • Issues: GitHub Issues
  • Tests: pytest test_claude_system.py -v

Version: 1.2.4 Status: Production-Ready โœ… Tests: 331/331 Passing โœ… Marketplace: Integrated โœ…

Built with โค๏ธ for Claude by Anthropic

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_force-1.2.4.tar.gz (10.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_force-1.2.4-py3-none-any.whl (417.1 kB view details)

Uploaded Python 3

File details

Details for the file claude_force-1.2.4.tar.gz.

File metadata

  • Download URL: claude_force-1.2.4.tar.gz
  • Upload date:
  • Size: 10.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for claude_force-1.2.4.tar.gz
Algorithm Hash digest
SHA256 3ae3714369820f0a0850ca8597aaccc103347818d65e636d9e15483d7884c6f8
MD5 af8c820f8135f22507f9ec2388dbb00e
BLAKE2b-256 e6b4d1d1c51adb0bc5ac0d41cb2c4b18b0cc4c8eb3b791530030fb309722c713

See more details on using hashes here.

File details

Details for the file claude_force-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: claude_force-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 417.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for claude_force-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 797760503a61e50a71fbc53b30ba0d64906ccf86f995493e3fffee47946236b3
MD5 e38db64cd08a67f9b906d31498aeeb88
BLAKE2b-256 c202b5bd2fc51ca1a453b2e58080aa28e1a12a220915e6884d980409d3a3b750

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page