npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mivertowski/claude-code-orchestrator

v1.0.0

Published

Automated orchestration system for managing Claude Code instances to complete complex tasks

Readme

Claude Code Orchestrator (CCO)

npm version GitHub stars License CI Status codecov PRs Welcome

An automated orchestration system that manages Claude Code instances to complete complex, multi-session tasks without constant human intervention. CCO acts as an intelligent project manager, ensuring work continuity until all Definition of Done (DoD) criteria are achieved.

🚀 Features

  • Autonomous Task Management: CCO manages a single Claude Code instance per repository, maintaining focus until mission completion
  • Definition of Done Driven: Success is measured by achieving specific, measurable criteria
  • Session Persistence: Automatic state management and recovery across sessions
  • Progress Tracking: Real-time monitoring of DoD completion and task progress
  • Error Recovery: Intelligent error handling with automatic recovery strategies
  • Multi-Model Support: Works with various LLMs through OpenRouter (Claude Opus 4.1, GPT-4o, free models, etc.)
  • Claude Code SDK Integration: Official SDK support for improved automation and reliability
  • GitHub Integration: Convert issues to missions, create PRs, semantic commits, and GitHub Actions support
  • Claude Code Subscription Support: Works with Claude Code subscriptions - no API key required
  • Free Model Options: Start testing with free models from Meta, Google, Mistral, and more
  • .NET Project Support: Built-in templates for ASP.NET Core APIs and console applications

📋 Prerequisites

  • Node.js 18+
  • npm or yarn
  • OpenRouter API key (get free credits to start)
  • Anthropic API key (optional - Claude Code works with subscriptions too)
  • GitHub CLI (optional - for GitHub integration features)

🛠️ Installation

Installation

Option 1: NPM (Recommended)

# Install globally
npm install -g claude-code-orchestrator

# Or use directly with npx (no installation)
npx claude-code-orchestrator init

Option 2: From Source

# Clone the repository
git clone https://github.com/mivertowski/cco.git
cd cco

# Install dependencies
npm install

# Build the project
npm run build

# Install globally (optional)
npm install -g .

Option 3: Direct Execution

# Run directly from npm without installing
npx claude-code-orchestrator init
npx claude-code-orchestrator start --mission mission.yaml

# Or from GitHub directly
npx github:mivertowski/cco init

⚙️ Configuration

Environment Variables

Create a .env file in your project root:

# Required
OPENROUTER_API_KEY=your_openrouter_api_key

# Optional - only if not using Claude Code subscription
ANTHROPIC_API_KEY=your_anthropic_api_key

# Optional - for GitHub integration
GITHUB_TOKEN=your_github_token

# Optional configuration
LOG_LEVEL=INFO
NODE_ENV=development

Initialize CCO

# Initialize CCO in your project directory
cco init

# Initialize with a mission file
cco init --mission mission.yaml

This creates a .cco directory with:

  • config.yaml - Configuration file
  • sessions/ - Session state storage
  • logs/ - Orchestration logs

🐙 GitHub Integration

CCO now includes deep GitHub integration for seamless workflow automation:

Features

  • Issue-to-Mission: Convert GitHub issues directly to executable missions
  • Automated PR Creation: Generate pull requests with full mission context
  • Semantic Commits: Automatic conventional commit messages
  • GitHub Actions: Run missions via workflows and issue comments
  • Progress Tracking: Update issues with mission progress

Quick Start with GitHub

  1. Create a GitHub Issue with CCO format:
Title: [CCO] Implement user authentication

## Definition of Done
- [ ] JWT authentication implemented
- [ ] Password hashing with bcrypt
- [ ] Login/logout endpoints
- [ ] Unit tests with 90% coverage
  1. Trigger via Comment: Add /cco run in an issue comment

  2. GitHub Action (add to .github/workflows/cco.yml):

name: CCO Mission
on:
  issue_comment:
    types: [created]
jobs:
  run-mission:
    if: contains(github.event.comment.body, '/cco run')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
      - run: |
          npm install -g claude-code-orchestrator
          cco init
          cco github-mission --issue ${{ github.event.issue.number }}

See GitHub Integration Guide for detailed setup.

📝 Creating a Mission

Missions define what CCO should accomplish. Create a mission.yaml file:

mission:
  title: "Build REST API for Task Management"
  repository: "./my-project"
  description: |
    Create a complete REST API with CRUD operations for tasks
    
  definition_of_done:
    - criteria: "All CRUD endpoints implemented"
      measurable: true
      priority: "critical"
    
    - criteria: "Unit tests with >80% coverage"
      measurable: true
      priority: "high"
    
    - criteria: "API documentation generated"
      measurable: true
      priority: "medium"
  
  constraints:
    - "Use Express.js framework"
    - "Include input validation"
    - "Follow RESTful conventions"

🎯 Running Orchestration

Basic Usage

# Start orchestration with a mission file
cco start --mission mission.yaml

# Use SDK mode (recommended)
cco start --mission mission.yaml --use-sdk

# Resume a previous session
cco resume --session <session-id>

# Check status
cco status

Advanced Options

# Use specific model
cco start --mission mission.yaml --model "openai/gpt-4o"

# Set custom configuration
cco start --mission mission.yaml --config custom-config.yaml

# Dry run (plan mode)
cco start --mission mission.yaml --plan-only

🤖 Claude Code SDK

CCO supports the official Claude Code SDK for improved automation:

Enable SDK Mode

# .cco/config.yaml
claude_code:
  use_sdk: true  # Enable SDK mode (default)
  api_key: ${ANTHROPIC_API_KEY}  # Optional with subscription

SDK Benefits

  • Native tool integration
  • Better error handling
  • Accurate token tracking
  • Session management
  • Permission controls

See SDK Integration Guide for details.

📊 Monitoring Progress

CCO provides multiple ways to monitor mission progress:

Command Line

# Check current status
cco status

# View session details
cco status --session <session-id>

# List all sessions
cco status --list

Logs

# View real-time logs
tail -f .cco/logs/*.log

# Filter by log level
grep ERROR .cco/logs/*.log

Web Dashboard (Coming Soon)

# Start monitoring dashboard
cco dashboard --port 8080

🧪 Testing

Run Tests

# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Run specific test
npm test -- --grep "orchestrator"

Test with Free Models

# .cco/config.yaml
openrouter:
  model: "meta-llama/llama-3.2-3b-instruct:free"  # Free model
  # Or try:
  # model: "google/gemini-2.0-flash-exp:free"
  # model: "mistralai/mistral-7b-instruct:free"

🚀 Example Missions

CCO includes templates for common scenarios:

Web API Development

cco start --mission templates/web-api.yaml

Refactoring Project

cco start --mission templates/refactor.yaml

Test Suite Creation

cco start --mission templates/testing.yaml

Documentation Generation

cco start --mission templates/documentation.yaml

See templates/ directory for more examples.

🔧 Advanced Configuration

Full Configuration Example

orchestrator:
  mode: "single_instance"
  max_iterations: 1000
  checkpoint_interval: 5
  
repository:
  path: "."
  auto_commit: true
  commit_frequency: "per_session"
  
openrouter:
  api_key: ${OPENROUTER_API_KEY}
  model: "anthropic/claude-3-opus"
  temperature: 0.5
  
claude_code:
  use_sdk: true
  use_subscription: false
  api_key: ${ANTHROPIC_API_KEY}
  workspace: "."
  max_file_size: 100000
  
github:
  enable: true
  auto_pr: true
  semantic_commits: true
  branch_strategy: "git-flow"
  
persistence:
  type: "file"
  path: ".cco/sessions"
  
monitoring:
  log_level: "INFO"
  log_path: ".cco/logs"
  metrics_enabled: true

🐛 Troubleshooting

Common Issues

API Key Issues

# Check environment variables
echo $OPENROUTER_API_KEY
echo $ANTHROPIC_API_KEY

# Or set them directly
export OPENROUTER_API_KEY="your_key"

Rate Limiting

  • Use different models
  • Add delays between requests
  • Purchase OpenRouter credits for higher limits

Module Not Found

# Rebuild the project
npm run clean
npm install
npm run build

See Troubleshooting Guide for more solutions.

📚 Documentation

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines for details.

Development Setup

# Clone repo
git clone https://github.com/mivertowski/cco.git
cd cco

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run tests
npm test

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Anthropic for Claude and the Claude Code SDK
  • OpenRouter for multi-model support
  • All contributors and users of CCO

📮 Support


Note: This project is in active development. Features and APIs may change. Always check the releases page for the latest stable version.