A demonstration project showcasing Claude Code's subagents and custom commands for automated code cleanup workflows.
agentic-loop-playground/
βββ README.md                 # This documentation
βββ agents/                   # Claude Code subagents
β   βββ cleanup-evaluator.md  # Evaluates cleanup opportunities
β   βββ cleanup-executor.md   # Executes cleanup operations
βββ bin/
β   βββ deploy               # Deployment script for agents and commands
βββ commands/
    βββ cleanup.md            # Custom cleanup command
This project contains:
- Subagents in the agents/directory - specialized AI assistants for Claude Code
- Custom commands in the commands/directory - reusable prompts for common workflows
- Deploy script in bin/deploy- tool to install agents and commands to your Claude Code configuration
Use the deploy script to install the agents and commands to your Claude Code configuration:
# Deploy to default location (~/.claude)
./bin/deploy
# Deploy to specific directory
./bin/deploy /path/to/claude/config
# Force overwrite existing files
./bin/deploy --force
# Dry run (preview what would be deployed)
./bin/deploy --dry-run
# Set destination via environment variable
CLAUDE_CONFIG_DIR=/custom/path ./bin/deployAfter deployment, you can use the agents and commands in Claude Code:
# Use the cleanup command
/cleanup
# Interact with agents directly
/agents cleanup-evaluator
/agents cleanup-executorFor detailed information about Claude Code subagents and custom commands, refer to the official Anthropic documentation:
- Subagents: Learn about creating and using specialized AI assistants in Claude Code
- Custom Commands: Understand how to create reusable slash commands for common workflows
- Claude Code Slash Commands - Complete guide to custom commands
- Claude Code Common Workflows - Best practices and examples
- Claude Code Subagents - Specialized AI assistant documentation
- Fork the repository
- Create a feature branch
- Test your changes
- Submit a pull request
This project is licensed under the MIT License.