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

@adiontaegerron/claude-sub-agent-manager

v3.1.3

Published

A CLI tool for managing Claude Code sub-agents in your projects

Readme

Claude Sub-Agent Manager

A powerful CLI tool for managing Claude Code sub-agents in your projects. This tool provides an intuitive web interface to create, manage, and monitor multiple AI sub-agents that work together on your codebase.

Claude Sub-Agent Manager Interface

🌟 Features

  • 🤖 AI-Powered Agent Generation - Use Claude to automatically generate sub-agent configurations
  • 📦 Bulk Import - Create multiple agents from project documentation or requirements
  • 📊 Enhanced Dashboard - Comprehensive project overview with metrics and progress tracking
  • 🎯 Task Management - Assign specific tasks to agents and track their completion
  • 🔄 All Tasks View - Drag-and-drop reordering of tasks across agents with sequential execution
  • 📈 SQLite Task Tracking - Reliable, persistent task progress tracking with SQLite database
  • 🔄 Auto-Refresh - Automatically updates status for active agents every 10 seconds
  • 🔄 Workflow Templates - Create reusable task templates that automatically generate tasks for multiple agents
  • 🎯 Batch Operations - Start multiple agents with a single command
  • 🗑️ Easy Management - Edit, delete, and organize your sub-agents
  • 📱 Modern UI - Clean, responsive interface with collapsible sections and toast notifications
  • 🖥️ Terminal Integration - Web-based terminal for direct command execution
  • 📁 Config Discovery - Automatically finds config files by walking up the directory tree
  • 🚀 Standalone CLI - Install globally or locally and run from anywhere in your project

🚀 Installation

Global Installation (Recommended)

npm install -g @adiontaegerron/claude-sub-agent-manager
# or
yarn global add @adiontaegerron/claude-sub-agent-manager

Local Installation

npm install --save-dev @adiontaegerron/claude-sub-agent-manager
# or
yarn add -D @adiontaegerron/claude-sub-agent-manager

Using npx (No Installation)

npx @adiontaegerron/claude-sub-agent-manager

From Source

git clone https://github.com/adiontae-tp/claude-sub-agent-manager.git
cd claude-sub-agent-manager
npm install
npm run build
npm link  # Makes 'claude-agents' command available globally

🎯 Quick Start

1. Initialize your project

# In your project root directory
claude-agents init

This creates a .claude-agents.json config file in your project root.

2. Configure your API key

Choose one of these methods:

Method 1: Environment Variable (Recommended for security)

export ANTHROPIC_API_KEY="your-api-key-here"
claude-agents

Method 2: Config File Add to your .claude-agents.json:

{
  "projectName": "My Project",
  "apiKey": "your-api-key-here"
}

Method 3: .env File Create a .env file in your project root:

echo 'ANTHROPIC_API_KEY=your-api-key-here' > .env

Method 4: Pass it when running

ANTHROPIC_API_KEY="your-api-key-here" claude-agents

3. Start the agent manager

# From anywhere in your project
claude-agents

The tool will automatically find your config file and start the web interface.

📁 Project Structure

After installation, your project will look like this:

your-project/
├── .claude-agents.json       # Configuration file
├── .claude/                  # Agent data directory (created automatically)
│   ├── agents/              # Agent markdown files
│   ├── agents-status/       # Agent status tracking
│   └── tech-stack.json      # Tech stack data
├── src/                     # Your project files
├── package.json
└── ...

🆓 Offline Mode (No API Credits Required!)

The tool now supports Offline Mode - use it without any Anthropic API credits:

Features Available in Offline Mode:

  • ✅ Manual agent creation
  • ✅ Task management and tracking
  • ✅ Terminal integration
  • ✅ Agent templates (Frontend, Backend, QA, DevOps, UI/UX)
  • ✅ Copy prompts to clipboard
  • ✅ All organizational features

Features Requiring API Credits:

  • ❌ AI-powered agent generation
  • ❌ Automatic prompt enhancement
  • ❌ Bulk import from requirements

To Enable Offline Mode:

Simply don't set an API key, or add to your .claude-agents.json:

{
  "projectName": "My Project",
  "offlineMode": true
}

💰 Cost Optimization

To reduce API costs, the tool now uses Claude 3 Haiku by default, which is much cheaper than Sonnet. You can configure this in your .claude-agents.json:

{
  "projectName": "My Project",
  "model": "claude-3-haiku-20240307",  // Default: Haiku (cheapest)
  "maxTokensPerRequest": 1000,         // Default: 1000 (reduced from 2000)
  "apiKey": "your-api-key"
}

Available Models (from cheapest to most expensive):

  • claude-3-haiku-20240307 - Fastest and cheapest (default)
  • claude-3-5-sonnet-20241022 - More capable but more expensive
  • claude-3-opus-20240229 - Most capable but most expensive

Tips to Reduce Costs:

  1. Use Haiku model for most tasks (10x cheaper than Sonnet)
  2. Reduce maxTokensPerRequest to limit response length
  3. Be concise with agent prompts
  4. Monitor your usage at https://console.anthropic.com/account/usage

⚙️ Configuration

Config File Format

The .claude-agents.json file supports the following options:

{
  "$schema": "https://raw.githubusercontent.com/adiontae-tp/claude-sub-agent-manager/main/.claude-agents.schema.json",
  "projectName": "My Awesome Project",
  "agentsDirectory": ".claude/agents",
  "techStackFile": ".claude/tech-stack.json",
  "templatesDirectory": ".claude/templates",
  "apiKey": "sk-...",  // Optional, can use env var instead
  "server": {
    "port": 3001,
    "autoOpen": true
  }
}

Config Discovery

The CLI searches for config files in this order:

  1. Path specified with --config flag
  2. Current directory
  3. Parent directories (up to project root)
  4. Stops at first .git or package.json found

Supported config file names:

  • .claude-agents.json
  • .claude-agents.yaml
  • .claude-agents.yml

🖥️ CLI Commands

Main Command

claude-agents [options]

Options:

  • -c, --config <path> - Path to config file
  • -r, --root <path> - Project root directory
  • -p, --port <number> - Port to run server on (default: 3001)
  • --no-browser - Don't open browser automatically
  • -h, --help - Display help
  • -V, --version - Display version

Initialize Command

claude-agents init

Creates a new .claude-agents.json config file in the current directory.

Examples

# Start with default config
claude-agents

# Use specific config file
claude-agents --config ./config/agents.json

# Run on different port
claude-agents --port 8080

# Don't open browser
claude-agents --no-browser

# Specify project root
claude-agents --root /path/to/project

📋 Usage from Any Directory

Once installed and configured, you can run claude-agents from any subdirectory:

cd your-project/src/components
claude-agents  # Still finds config in project root

cd ../utils
claude-agents  # Works here too!

🔧 Advanced Features

Tech Stack Integration

Create a .claude/tech-stack.json file to provide context about your project:

{
  "frontend": ["React", "TypeScript", "Tailwind CSS"],
  "backend": ["Node.js", "Express", "PostgreSQL"],
  "tools": ["Webpack", "ESLint", "Jest"]
}

Custom Agent Templates

Place custom templates in your templates directory:

---
name: frontend-specialist
specialization: React and TypeScript development
---

You are a frontend development specialist focusing on React and TypeScript...

Task Management

Agents support SQLite-based task tracking with:

  • Progress tracking
  • Subtask management
  • Status updates
  • Batch operations

Workflow Templates

Create reusable task templates to streamline your development process:

  1. Create a Workflow

    • Navigate to the Workflows tab
    • Click "Create Workflow"
    • Define tasks with descriptions and agent assignments
    • Save the workflow for future use
  2. Use Workflows in Task Creation

    • When creating tasks, select a workflow template
    • Tasks from the workflow are automatically added
    • Customize the tasks before creating them
  3. Example Workflows

    • Design Review: Designer review → QA review → Documentation update
    • Feature Release: Development → Testing → Code review → Deployment
    • Bug Fix: Reproduce → Fix → Test → Document

Workflows help maintain consistency across your team and ensure no steps are missed in your development process.

🤝 Contributing

Contributions are welcome! Please read our contributing guidelines and submit PRs.

📄 License

MIT License - see LICENSE file for details.

🐛 Troubleshooting

Common Issues

  1. Config file not found

    • Ensure .claude-agents.json exists in your project root
    • Check file permissions
  2. API key errors

    • Verify your Anthropic API key is set correctly
    • Check environment variables with echo $ANTHROPIC_API_KEY
  3. Port already in use

    • Use --port flag to specify a different port
    • Check for other running instances

Debug Mode

Run with debug output:

DEBUG=claude-agents claude-agents

📚 Resources