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

claude-colony

v0.1.1

Published

CLI for launching Claude Colony multi-agent sessions

Downloads

199

Readme

Claude Colony

A tmux-based multi-agent orchestration system where multiple Claude Code instances collaborate on software development tasks.

Overview

Claude Colony enables a team of AI agents to work together on complex tasks. It builds on Claude Code's native agent system (.claude/agents/) — create your agents there, then orchestrate them as a team.

Each agent has a unique persona, role, and area of focus. They communicate via a file-based message broker and are visualized in a tmux session.

┌─────────────────────┬─────────────────────────────┐
│                     │      Specialist Agent 1     │
│                     ├─────────────────────────────┤
│   Manager Agent     │      Specialist Agent 2     │
│      (40%)          ├─────────────────────────────┤
│                     │      Specialist Agent 3     │
│                     ├─────────────────────────────┤
│                     │   Shared Context (10%)      │
└─────────────────────┴─────────────────────────────┘

Installation

# Install globally from npm
npm install -g claude-colony

# Or run directly with npx
npx claude-colony --help

From Source

git clone https://github.com/jamiemurphy/claude-colony.git
cd claude-colony
npm install && npm run build && npm link

Quick Start

# Initialize colony in your project
colony init

# Start a colony with a preset
colony start --preset fullstack

# Check status
colony status

# Stop the colony
colony stop

Tip: For best results, create custom agents in .claude/agents/ tailored to your project, then build a preset that uses them with colony create-team.

CLI Commands

| Command | Description | |---------|-------------| | colony init | Initialize .colony/ directory in current project | | colony start | Start a colony session | | colony stop | Stop the running colony | | colony status | Show colony status | | colony presets | List available presets | | colony presets <name> | Show preset details | | colony agents | List available agents | | colony agents <name> | Show agent details | | colony create <name> | Create a new agent | | colony build | Initialize and configure colony (init + setup) |

Start Command Options

colony start [options]

Options:
  -p, --preset <name>   Use a preset configuration
  -a, --agents <count>  Number of worker panes (default: 4)
  --no-attach           Don't attach to tmux session

Create Command Options

colony create <name> [options]

Options:
  -d, --description <desc>  Agent description
  -m, --model <model>       Model (sonnet, opus, haiku)
  -t, --tools <tools>       Comma-separated tools
  -g, --global              Create in ~/.claude/agents/
  -f, --force               Overwrite existing

Presets

Built-in presets for common team configurations:

| Preset | Description | Agents | |--------|-------------|--------| | fullstack | Full-stack web development | UX, Frontend, Backend, DevOps | | frontend-team | UI-focused development | UX, UI Dev, Logic Dev | | api-team | Backend API development | API Dev, Data Dev, Docs | | mobile-app | Mobile app development | UX, Mobile Dev, API Dev, DevOps | | docs-team | Documentation team | API Docs, Guides, Review |

# List all presets
colony presets

# View preset details
colony presets fullstack

# Start with a preset
colony start --preset fullstack

Agents

Claude Colony uses Claude Code's native agent system. The recommended workflow is:

  1. Create agents in Claude Code using .claude/agents/*.md files
  2. Use those agents in your colony presets

Creating Agents (Recommended)

Create agents directly in your project's .claude/agents/ directory. These are standard Claude Code agents that work both standalone and in colonies:

<!-- .claude/agents/api-designer.md -->
---
name: api-designer
description: REST API design specialist
model: sonnet
---

# API Designer

You are an API design specialist focused on RESTful best practices...

Agent Locations

| Location | Scope | Description | |----------|-------|-------------| | .claude/agents/*.md | Project | Recommended. Committed to git, works with Claude Code | | ~/.claude/agents/*.md | User | Personal agents, available across all projects | | Built-in | Colony | Fallback defaults (frontend-dev, backend-dev, etc.) |

Using Your Agents

# See all available agents (from .claude/agents/ and built-ins)
colony agents

# View agent details
colony agents api-designer

# Create a preset that uses your agents
colony create-team

Quick Agent Creation

If you need a quick agent without writing markdown:

colony create my-agent -d "My custom agent" -m sonnet

This creates a .claude/agents/my-agent.md file you can then customize.

Project Structure

After running colony init:

.colony/
├── config.yaml    # Colony configuration
├── state/         # Session state
├── messages/      # Agent communication
├── agents/        # Agent prompts
├── shared/        # Shared data channels
└── reviews/       # Code reviews

Architecture

Core Components

  • MessageBroker - File-based IPC with @mention routing
  • SessionManager - Session state persistence
  • TmuxManager - Tmux session and pane management
  • CompletionDetector - Monitors worker completion
  • ColonyMonitor - Real-time status monitoring
  • SharedScratchpad - Typed data channels for agent collaboration
  • OwnershipRegistry - File ownership tracking
  • ReviewManager - Code review workflow
  • DependencyGraph - Task dependency tracking
  • FileLock - Concurrent access safety

Communication Protocol

Agents communicate using @mentions:

@frontend: Build the login form with validation
@backend: Create the /auth/login endpoint
@all: Team standup in 5 minutes
@manager: I'm blocked on the API schema

Agent Status

  • 🟢 Ready — awaiting work
  • 🟡 Working — actively processing
  • 🔴 Blocked — needs input/help
  • ✅ Done — declared completion

Viewing the Colony

Attach to the tmux session:

tmux attach -t colony

Navigation:

  • Ctrl+B then Arrow Keys - Switch panes
  • Ctrl+B then D - Detach (colony keeps running)

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run tests once
npm run test:run

# Type check
npm run typecheck

# Lint
npm run lint

# Full check
npm run check

Requirements

  • Node.js 18+
  • tmux
  • Claude Code CLI (claude)

License

MIT