The update command allows you to update installed Claude agents to their latest versions from the source repository. This is useful when new features, bug fixes, or improvements are released.
# Interactive update (select agents to update)
claude-agents update
# Update a specific agent
claude-agents update code-reviewer
# Update all installed agents
claude-agents update --all
# Force update without confirmation
claude-agents update --all --force-a, --all- Update all installed agents at once-p, --project- Update agents in project scope (default: user scope)-f, --force- Skip confirmation prompt and update immediately--preserve-custom- Skip agents that have custom modifications
# Update the code-reviewer agent
claude-agents update code-reviewer# Update all installed agents with confirmation
claude-agents update --all
# Update all agents without confirmation
claude-agents update --all --force# Update agents installed in the current project
claude-agents update --all --project# Update all agents but skip those with custom modifications
claude-agents update --all --preserve-customWhen you run the update command:
- Agent Definition (
agent.md) - Updated to latest version - Metadata (
metadata.json) - Version and timestamp updated - Hooks (
hooks.json) - Updated if present in source - Slash Commands - Corresponding commands updated in
.claude/commands/
- Source Check - Verifies agent exists in source repository
- Version Comparison - Checks if update is available
- Custom Check - Optionally preserves custom modifications
- File Update - Copies latest files from source
- Config Update - Updates version info in configuration
If you've customized an agent and want to preserve your changes:
- Use
--preserve-customflag to skip modified agents - Or manually backup your customizations before updating
- Custom modifications are detected by a special marker in the agent file
Error: Source not found for [agent-name]
The agent doesn't exist in the source repository. Check available agents with claude-agents list.
Error: Failed to update [agent-name]: [error message]
Common causes:
- Permission issues - Check file permissions
- Corrupted source files - Re-clone the repository
- Network issues - Check your internet connection
All agents are already at the latest version.
- Regular Updates - Check for updates weekly or monthly
- Test After Update - Verify agents work correctly after updating
- Backup Customizations - Save custom modifications before updating
- Use Version Control - Commit changes to track agent versions
If you're using the Makefile:
# Update all agents
make update-agents
# Update with custom options
make update-agents ARGS="--force --preserve-custom"claude-agents list- See installed agents and versionsclaude-agents info <agent>- Check specific agent detailsclaude-agents install- Install new agentsclaude-agents version- Check for CLI updates