This project utilizes multiple AI agents working in harmony to accelerate development, automate issue management, and maintain high code quality.
Role: Main development partner for complex tasks
Responsibilities:
- Architecture design and implementation
- Complex refactoring and debugging
- Writing comprehensive documentation
- Creating and modifying CI/CD pipelines
- Test development and coverage improvement
- Following project-specific guidelines in CLAUDE.md
Access: claude.ai/code
Key Features:
- Deep understanding of entire codebase
- Can execute commands and modify multiple files
- Follows container-first philosophy
- Optimized for single-maintainer workflow
Role: Quality gatekeeper for all code changes
Responsibilities:
- Automatically reviews every pull request
- Focuses on security vulnerabilities
- Checks container configurations
- Validates adherence to project standards
- Provides actionable feedback
Setup: Runs on self-hosted runners via Node.js
Key Features:
- Conversation history automatically cleared via MCP tool before each review
- Receives PROJECT_CONTEXT.md for targeted feedback
- Non-blocking (PR can proceed if review fails)
- Focuses on project-specific concerns
- Reviews containerization, security, and code quality
- Provides actionable feedback within 3-5 minutes
Role: Additional code review perspective
Responsibilities:
- Reviews code changes in pull requests
- Suggests improvements and optimizations
- Identifies potential issues
- Provides alternative implementations
Access: GitHub pull request interface
Key Features:
- Complements Gemini's automated reviews
- Provides inline suggestions
- Focuses on code quality and best practices
Role: Automated issue management and PR creation
Responsibilities:
- Monitors GitHub issues for completeness
- Requests additional information when needed
- Creates pull requests for actionable issues
- Updates issue status with PR links
Location: github_ai_agents package
Key Features:
- Checks for required fields (description, steps to reproduce, etc.)
- Comments with specific information requests
- Uses Claude Code CLI to implement fixes
- Creates feature branches automatically
- Creates draft pull requests for initial implementations
- Runs every hour via GitHub Actions
Role: Automated response to PR review feedback
Responsibilities:
- Monitors PR reviews from Gemini and other bots
- Parses review feedback for actionable items
- Implements requested changes automatically
- Comments when changes are complete
Location: github_ai_agents package
Key Features:
- Detects "changes requested" reviews
- Extracts inline code comments
- Uses Claude Code to address feedback
- Commits and pushes fixes
- Automatically undrafts PRs when ready (all checks passing, no review changes needed)
- Monitors pipeline failures and attempts fixes
- Updates PR with completion status
┌─────────────────────────────────────────────────────────────┐
│ GitHub Repository │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌─────────────┐ │
│ │ Issues │────►│ Issue Monitor│───►│ Create PR │ │
│ └──────────────┘ └──────────────┘ └─────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌─────────────┐ │
│ │ Pull Request │◄────│ PR Review │◄───│ Gemini Bot │ │
│ └──────────────┘ │ Monitor │ └─────────────┘ │
│ │ └──────────────┘ │
│ │ │ │
│ └─────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
-
Issue Creation:
- User creates issue
- Issue Monitor checks completeness
- Requests more info OR creates PR
-
PR Creation:
- Issue Monitor uses Claude Code
- Creates feature branch
- Implements fix
- Opens draft PR for review
-
Review Phase:
- Gemini automatically reviews PR
- Copilot provides additional suggestions
- PR Review Monitor detects feedback
-
Feedback Implementation:
- PR Review Monitor parses feedback
- Uses Claude Code to fix issues
- Commits and pushes changes
- Comments on completion
-
PR Ready for Review:
- When all checks pass and no changes needed
- PR Review Monitor automatically undrafts the PR
- PR is marked as ready for final review
# 1. User creates issue: "Add dark mode support"
# 2. Issue Monitor requests more details
# 3. User provides details
# 4. Issue Monitor creates PR automatically
# 5. Gemini reviews PR:
# - "Security: Check user preferences securely"
# - "Style: Use consistent CSS variables"
# 6. PR Review Monitor addresses feedback
# - Implements secure preference storage
# - Updates CSS to use variables
# - Commits: "Address PR review feedback"
# 7. PR Review Monitor comments:
# "✅ Addressed 2 critical issues
# ✅ Fixed 3 inline code comments
# All tests passing."| Task | Claude Code | Gemini CLI | Copilot | OpenCode | Crush |
|---|---|---|---|---|---|
| Architecture Design | ✅ Primary | ❌ | ❌ | ✅ Secondary | ✅ Secondary |
| Implementation | ✅ Primary | ❌ | ❌ | ✅ Secondary | ✅ Secondary |
| Documentation | ✅ Primary | ❌ | ❌ | ✅ Secondary | ✅ Secondary |
| Code Review | ✅ Secondary | ✅ Primary | ✅ Secondary | ✅ Secondary | ✅ Secondary |
| Issue Triage | ✅ Secondary | ❌ | ❌ | ✅ Secondary | ✅ Secondary |
| Review Response | ✅ Secondary | ❌ | ❌ | ✅ Secondary | ✅ Secondary |
{
"agents": {
"issue_monitor": {
"enabled": true,
"min_description_length": 50,
"required_fields": ["description", "expected behavior", "steps to reproduce"],
"actionable_labels": ["bug", "feature", "enhancement"],
"check_interval_minutes": 60
},
"pr_review_monitor": {
"enabled": true,
"review_bot_names": ["gemini-bot", "github-actions[bot]"],
"auto_fix_threshold": {
"critical_issues": 0,
"total_issues": 5
},
"check_interval_minutes": 60
}
}
}# Install the GitHub AI Agents package
pip install -e ./github_ai_agents
# Run specific agents
python -m github_ai_agents.cli issue-monitor
python -m github_ai_agents.cli pr-monitor
# Or use the installed commands directly
issue-monitor
pr-monitor- issue-monitor.yml: Runs every hour
- pr-review-monitor.yml: Runs every hour and triggered by PR reviews
- Use issue templates
- Apply appropriate labels (bug, feature, etc.)
- Provide detailed descriptions
- Include code examples when relevant
- Provide clear CLAUDE.md guidelines
- Use for complex, multi-file changes
- Leverage for documentation and tests
- Ask to follow container-first approach
- Keep PROJECT_CONTEXT.md updated
- Clear history before reviews
- Focus feedback on security and standards
- Don't block PR on review failures
- Check agent logs regularly
- Monitor for failed runs
- Review agent comments for accuracy
- Manually override when necessary
- Token Management: All tokens via environment variables
- Limited Permissions: Repository-scoped access only
- Human Review Required: PRs still need approval
- Isolated Execution: Agents run in containers
- Audit Trail: All actions logged and commented
- 24/7 Automation: Issues addressed automatically
- Consistent Quality: Multiple review layers
- Fast Turnaround: 15-minute issue response
- Reduced Manual Work: Automatic PR creation
- Learning System: Agents improve over time
- Complete Workflow: Issue to merged PR
- Zero Human Intervention: For routine tasks
-
Agent Not Running:
# Check GitHub Actions logs gh run list --workflow=issue-monitor.yml -
Missing Information Requests:
- Verify agent hasn't already commented
- Check issue has proper labels
- Review config.json settings
-
PR Review Not Addressed:
- Ensure review is from configured bot
- Check for "changes requested" state
- Verify Claude CLI is accessible
- Integration with more AI models
- Custom training on project patterns
- Automated testing improvements
- Performance metrics dashboard
- Multi-repository support
- Slack/Discord notifications
This comprehensive AI agent system enables a single developer to maintain professional-grade code quality with minimal manual intervention, effectively multiplying productivity through intelligent automation.