A collection of specialized autonomous agents designed to improve codebase quality through focused, incremental improvements. Each agent has a specific domain expertise and follows strict boundaries to ensure safe, effective autonomous operation.
Note: The Sentinel, Palette, and Bolt agents are originally based on prompts created by the team behind Google Jules. All credit to them.
This repository contains AI agents that perform specific maintenance tasks on codebases. Each agent is designed to:
- Make one small, focused improvement per run
- Follow strict boundaries and safety protocols
- Maintain existing functionality while improving quality
- Learn from their experiences through journaling
- Operate autonomously within well-defined constraints
🔪 Surgeon
Logic Decoupling Agent - Extracts complex business logic from UI components into pure, testable functions and custom hooks.
⚡ Bolt
Performance Optimization Agent - Identifies and implements performance improvements that make applications measurably faster.
🏰 Bulwark
System Resilience Agent - Adds error boundaries, retry logic, and fallback mechanisms to make distributed systems fault-tolerant.
📐 Designer
Semantic Styling Agent - Replaces hardcoded CSS and inconsistent styling with unified design tokens for better consistency.
🌳 Dryad
Code Quality Agent - Performs scheduled reviews to eliminate code duplication and DRY violations through systematic refactoring.
🧹 Janitor
Codebase Cleaning Agent - Removes dead code, technical debt, and unused dependencies to keep applications lean and maintainable.
Documentation Agent - Maps out complex systems, updates stale documentation, and maintains a comprehensive catalogue of codebase knowledge.
🎨 Palette
UX Enhancement Agent - Adds micro-UX improvements, accessibility features, and delightful interactions to enhance user experience.
🛡️ Sentinel
Security Agent - Identifies and fixes security vulnerabilities, adds security enhancements, and protects the codebase from threats.
All agents follow these core principles:
- Incremental Improvement - One small change per run
- Safety First - Strict boundaries and verification protocols
- No Breaking Changes - Preserve existing functionality
- Continuous Learning - Journal critical learnings for future reference
- Autonomous Operation - Work independently within defined constraints
Each agent follows a consistent structure:
- Identity & Mission - Clear purpose and domain focus
- Boundaries - What they always do, ask first, and never do
- Philosophy - Core principles and approach
- Journal - System for learning from experience
- Daily Process - Step-by-step workflow
- Favorite Tasks - Common improvements they make
- Avoidances - What's outside their scope
Agents are designed to be run periodically (daily, weekly, etc) or on-demand to maintain codebase quality. Each agent:
- Scans the codebase for opportunities in their domain
- Selects the best candidate that fits their criteria
- Implements the improvement following established patterns
- Verifies the change through testing and linting
- Presents the change as a pull request
All agents include built-in safety measures:
- Change size limits (typically < 50 lines)
- Mandatory testing and linting
- Preservation of existing behavior
- Clear boundaries on what not to change
- Verification requirements before completion
To create a new autonomous agent, follow these guidelines:
Start with template-agent.md which provides a comprehensive structure based on established conventions.
Every agent must have:
- Specific Domain - A focused area of expertise (performance, security, UX, etc.)
- Clear Mission - One type of improvement per run
- Strict Boundaries - Always do, ask first, never do sections
- Safety Protocols - Change limits, testing requirements, verification steps
- Identity - "[Name]" [Emoji] - [domain] agent who [mission]
- Philosophy - 4 core principles guiding their approach
- Journal - Learning system for critical insights only
- Process - 5-phase workflow (scan, select, implement, verify, present)
- Favorites - Common improvements they make
- Avoidances - What's outside their scope
- Size Limits - Typically < 50 lines per change
- Testing - Mandatory test suite runs
- Verification - Linting, formatting, build verification
- PR Format - Consistent title and description structure
- Safety First - Preserve existing functionality
- Choose a memorable, domain-relevant name
- Include an appropriate emoji that represents their function
- Ensure the name reflects their specific expertise
Before adding a new agent:
- Test the agent thoroughly on sample codebases
- Verify they respect boundaries and safety protocols
- Ensure they can identify appropriate improvements in their domain
- Confirm they stop gracefully when no suitable work exists
- Add the agent to this README with a brief description
- Link to the agent's full documentation file
- Update the agent count and overview sections
Consider these areas for new agents:
- Testing - Add missing tests or improve test coverage
- Accessibility - Enhance screen reader support and keyboard navigation
- Internationalization - Add i18n support or fix locale issues
- Monitoring - Add logging, metrics, or observability features
- Documentation - Improve inline code documentation
- Configuration - Standardize config files and environment variables
When adding new agents or modifying existing ones:
- Follow the established agent structure and conventions
- Ensure agents have clear, focused missions
- Include comprehensive boundaries and safety protocols
- Test agents thoroughly before deployment
- Update this README with new agent information