Claude Code Agent Manager
A powerful, YAML-driven system for managing Claude Code agents from multiple sources with intelligent conflict resolution, transformations, and tracking.
Overview
This repository provides Agent Manager, a Go-based command-line tool that revolutionizes how you install and manage Claude Code agents. It offers:
- YAML-driven configuration for complete control
- Multiple source types (GitHub, Git, Local)
- Intelligent conflict resolution with backup strategies
- File transformations for consistent organization
- Complete installation tracking for easy management
- Atomic operations with rollback capabilities
[!Note]
The default configuration includes VoltAgent's Awesome Claude Code Subagents
Quick Start
1. Clone and Build
gh repo clone pacphi/claude-code-agent-manager
cd claude-code-agent-manager
# Build the agent manager
make build
# or use the convenience script
./scripts/build.sh
2. Install Agents
# Install from all configured sources
./bin/agent-manager install
# Or install specific source
./bin/agent-manager install --source awesome-claude-code-subagents
3. Manage Your Installation
# List installed agents
./bin/agent-manager list
# Update agents
./bin/agent-manager update
# Validate configuration
./bin/agent-manager validate
Key Features
π§ YAML Configuration
All agent sources and behaviors are defined in agents-config.yaml:
sources:
- name: awesome-claude-code-subagents
type: github
repository: VoltAgent/awesome-claude-code-subagents
transformations:
- type: remove_numeric_prefix
- type: extract_docs
π Multiple Source Types
- GitHub: Direct GitHub repository access with CLI integration
- Git: Any Git repository with authentication support
- Local: Local file system sources for development
β‘ Conflict Resolution
Intelligent handling of existing files:
- Backup: Create timestamped backups (default)
- Overwrite: Replace existing files
- Skip: Keep existing, ignore new
- Merge: Attempt content merging
π Installation Tracking
Complete tracking of what was installed from where:
- File-level tracking with hashes and timestamps
- Easy uninstallation of specific sources
- Update detection and management
Built-in transformations for common patterns:
- Remove numeric prefixes from directories
- Extract documentation to separate directory
- Custom script support for specialized needs
Architecture
Agent Manager is built with a modular Go architecture:
cmd/agent-manager/ # CLI interface
internal/
βββ config/ # YAML parsing and validation
βββ installer/ # Core installation logic
βββ transformer/ # File transformation engine
βββ tracker/ # Installation state management
βββ conflict/ # Conflict resolution strategies
Documentation
Configuration Examples
Basic GitHub Source
sources:
- name: my-agents
type: github
repository: owner/repo-name
paths:
source: agents
target: .claude/agents
Authenticated Git Repository
sources:
- name: private-agents
type: git
url: https://gitlab.company.com/agents.git
auth:
method: token
token_env: GITLAB_TOKEN
Local Development
sources:
- name: local-dev
type: local
paths:
source: ~/my-local-agents
target: .claude/agents/local
watch: true
Requirements
Quick Start: Go 1.24.6+, Git, and optionally Chrome/Chromium/Brave for marketplace features.
π Complete Prerequisites Guide - Detailed installation instructions and verification scripts
Core Requirements
- Go 1.24.6+: For building Agent Manager
- Git: For cloning repositories
Optional Components
- Chrome/Chromium/Brave browser: For marketplace functionality (subagents.sh integration)
- Make: Convenient build commands
- GitHub CLI (gh): Enhanced GitHub integration
Advanced Usage
transformations:
- type: custom_script
script: ./my-transform.sh
args: ["--format", "claude"]
Environment Variables
sources:
- name: ${env.COMPANY}-agents
repository: ${env.GITHUB_ORG}/claude-agents
auth:
token_env: ${env.TOKEN_VAR}
Filtering
filters:
include:
extensions: [".md"]
regex: ["^(core|data).*\\.md$"]
exclude:
patterns: ["test-*", "*.tmp"]
Contributing
We welcome contributions! Agent Manager is designed to be extensible:
- Add new source handlers in
internal/installer/
- Create custom transformations in
internal/transformer/
- Implement new conflict resolution strategies
- Extend the configuration schema
License
This project is licensed under the MIT License. See LICENSE file for details.
Support
- Prerequisites: See Prerequisites Guide for setup requirements
- Installation Help: Check the Build Guide for installation help
- Command Help: Run
agent-manager --help for command-line help
- Configuration: Use
agent-manager validate to check your configuration
- Examples: See the Usage Guide for detailed examples