Manage Claude Code agents in your local projects with ease
ccagents
is a Rust CLI tool that helps you manage Claude Code agents by creating symlinks, handling configuration, and downloading agents from GitHub. It ensures your agents are portable across different environments and team members.
- 🔗 Symlink-based management - Enable/disable agents without copying files
- 📦 Portable configuration - Uses relative paths in
.agents.json
- 🌐 GitHub integration - Download individual agent files directly from GitHub
- 🔍 Smart diagnostics - Detect and fix broken symlinks, missing sources, and orphaned agents
- 🎨 Beautiful CLI - Colored output with clear status indicators
- ⚡ Fast & lightweight - Written in Rust for easy portability
# Clone the repository
git clone https://github.com/yourusername/ccagents.git
cd ccagents
# Build and install
cargo install --path .
cargo install ccagents
Download the latest release for your platform from the releases page.
# Add an agent from a local file
ccagents add ./my-agent.md
# Add an agent from GitHub (single file only)
ccagents add https://github.com/user/repo/blob/main/agents/backend.md
# List all agents
ccagents list
# Enable/disable agents
ccagents enable my-agent.md
ccagents disable my-agent.md
# Sync agents (create/remove symlinks based on config)
ccagents sync
# Clean up orphaned agents
ccagents clean
# Run diagnostics
ccagents doctor
Add agents from local files or GitHub:
# Local file
ccagents add ~/Documents/my-agent.md
# GitHub file (must be a direct file link)
ccagents add https://github.com/user/repo/blob/main/agent.md
Files are copied to .ccagents/
directory and symlinked to .claude/agents/
. You can commit .ccagents
to Git and make it portable between team mates.
# List all agents with their status
ccagents list
# Output:
# Enabled agents:
# ● backend-developer.md - ✓ linked
# ● code-reviewer.md - ⚠ source missing
#
# Disabled agents:
# ○ test-agent.md
# Enable an agent
ccagents enable backend-developer.md
# Disable an agent
ccagents disable code-reviewer.md
Sync creates/removes symlinks based on your .agents.json
:
# Basic sync
ccagents sync
# Sync and remove orphaned entries
ccagents sync --prune
If you've added agents directly to .claude/agents/
, import them:
# Import a specific agent
ccagents import my-agent.md
# Import all unmanaged agents
ccagents import --all
# Check for issues
ccagents doctor
# Fix issues automatically
ccagents doctor --fix
# Remove orphaned agents from config
ccagents clean
# Force cleanup without confirmation
ccagents clean --force
The .agents.json
file stores your agent configuration:
{
"agents": [
{
"name": "backend-developer.md",
"source": {
"type": "Local",
"value": ".ccagents/backend-developer.md"
},
"enabled": true
},
{
"name": "code-reviewer.md",
"source": {
"type": "GitHub",
"value": "https://github.com/user/repo/blob/main/agent.md"
},
"enabled": false
}
]
}
your-project/
├── .agents.json # Agent configuration
├── .ccagents/ # Agent storage (managed)
│ ├── backend.md
│ └── frontend.md
└── .claude/
└── agents/ # Active agents (symlinks)
├── backend.md -> ../../.ccagents/backend.md
└── frontend.md -> ../../.ccagents/frontend.md
✓ linked
- Agent is working correctly⚠ source missing
- Source file has been deleted⚠ not linked
- Symlink is missing⚠ link broken
- Symlink points to non-existent file● enabled
- Agent is enabled○ disabled
- Agent is disabled
- Simple sub-gent registry
- Agents via local socket
- Provide a use case for sockat/remote agents hosted via API
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.
- Claude Code - The AI coding assistant
- Awesome Claude Agents - Community collection of Claude agents