@adiontaegerron/claude-sub-agent-manager
v3.1.3
Published
A CLI tool for managing Claude Code sub-agents in your projects
Maintainers
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.

🌟 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-managerLocal Installation
npm install --save-dev @adiontaegerron/claude-sub-agent-manager
# or
yarn add -D @adiontaegerron/claude-sub-agent-managerUsing npx (No Installation)
npx @adiontaegerron/claude-sub-agent-managerFrom 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 initThis 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-agentsMethod 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' > .envMethod 4: Pass it when running
ANTHROPIC_API_KEY="your-api-key-here" claude-agents3. Start the agent manager
# From anywhere in your project
claude-agentsThe 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 expensiveclaude-3-opus-20240229- Most capable but most expensive
Tips to Reduce Costs:
- Use Haiku model for most tasks (10x cheaper than Sonnet)
- Reduce
maxTokensPerRequestto limit response length - Be concise with agent prompts
- 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:
- Path specified with
--configflag - Current directory
- Parent directories (up to project root)
- Stops at first
.gitorpackage.jsonfound
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 initCreates 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:
Create a Workflow
- Navigate to the Workflows tab
- Click "Create Workflow"
- Define tasks with descriptions and agent assignments
- Save the workflow for future use
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
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
Config file not found
- Ensure
.claude-agents.jsonexists in your project root - Check file permissions
- Ensure
API key errors
- Verify your Anthropic API key is set correctly
- Check environment variables with
echo $ANTHROPIC_API_KEY
Port already in use
- Use
--portflag to specify a different port - Check for other running instances
- Use
Debug Mode
Run with debug output:
DEBUG=claude-agents claude-agents