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

๐Ÿ†• Tร‚CHES Workflow Management (v1.1.0)

Intelligent task orchestration and session continuity:

  • ๐Ÿ“‹ Todo Management (/todos) - AI-optimized task capture with agent recommendations
  • ๐Ÿ”„ Session Handoff (/handoff) - Preserve context across sessions with priority work tracking
  • ๐Ÿง  Meta-Prompting (/meta-prompt) - LLM-powered workflow generation with governance validation

See RELEASE_NOTES_v1.1.0.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

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.1.0 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.1.0.tar.gz (10.3 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.1.0-py3-none-any.whl (368.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claude_force-1.1.0.tar.gz
  • Upload date:
  • Size: 10.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 838cda284a4b3381686459e256414e3915e697ccdc0937d959d65f444216f199
MD5 3b4f222f8f01a43ed3f31031e7e89b25
BLAKE2b-256 c193f16a953a4afa98c87406a88a05ac3cd1922b11d383603f3167cd2aed21e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: claude_force-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 368.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8b5b6249dfab5ddd26930c8c17091b8578b5eda57957cb962e6c0cb04c194d9
MD5 7c605c77d57f44d818ea6a8d8218d670
BLAKE2b-256 dd2eab87ad1b2f5c7df4fc1cc7e2d00a425c0faad6f54a993790de444804b768

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