A GitHub repository that drives itself using AI agents powered by Gemini CLI and GitHub Actions. This project implements a system of autonomous agents that can triage issues, review code, update documentation, diagnose CI failures, and even implement features from issue descriptions.
- Issue Triage - Automatically classifies and prioritizes new issues
- Code Review - Reviews pull requests with AI-powered analysis
- CI Doctor - Diagnoses CI/CD failures and suggests fixes
- Documentation Sync - Keeps README and docs updated with code changes
- Self-Coding Agent - Implements features from issue descriptions
- Continuous Improvement - Weekly analysis for code simplification opportunities
Get your Gemini API key from Google AI Studio:
- Go to Google AI Studio
- Click "Create API Key"
- Copy the key
- Go to your repository Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
GEMINI_API_KEY - Value: Paste your API key
- Click Add secret
The workflows are already configured. Just push to your repository and they will activate.
Comment on any issue or PR to trigger agents:
| Command | Description | Example |
|---|---|---|
/implement |
Implement a feature from issue | @gemini-cli /implement Add dark mode support |
/fix |
Fix a bug from issue | @gemini-cli /fix Users can't log in with Safari |
/review |
Review a pull request | @gemini-cli /review |
/triage |
Classify an issue | @gemini-cli /triage |
/doc |
Generate documentation | @gemini-cli /doc Update API docs |
/debug |
Diagnose CI failure | @gemini-cli /debug Build is failing |
/explain |
Explain code | @gemini-cli /explain this function |
/help |
Show available commands | @gemini-cli /help |
You create an issue
│
▼
┌───────────────────┐
│ GitHub Actions │
│ triggers │
└───────────────────┘
│
▼
┌───────────────────┐
│ Gemini CLI │
│ processes request│
└───────────────────┘
│
▼
┌───────────────────┐
│ Creates PR/ │
│ Comments/Issues │
└───────────────────┘
- Requests: 10/minute, 250/day
- Tokens: 250,000/minute
- Context: 1 million tokens
- Minutes: 2,000/month
- Concurrency: 20 jobs
- Storage: 500 MB
Central routing for all agent commands. Runs on issue/PR comments.
Daily analysis of open issues. Runs at 8 AM UTC.
Automatic code review on PR creation.
Diagnoses failed CI runs. Also runs nightly health checks.
Updates docs when code changes. Runs on PR merge.
Implements features from issues. Triggered by /implement command.
Weekly code analysis. Runs every Monday at 3 AM UTC.
Edit this file to customize agent behavior for your codebase.
In GitHub Actions, you can set these variables:
GEMINI_DEBUG- Enable debug logging (set totrue)
Edit gemini-dispatch.yml to add new commands:
# In the dispatch job
if echo "$COMMENT" | grep -q "/your-command"; then
echo "command=your-command" >> $GITHUB_OUTPUT
fiCreate new workflow files following the existing patterns.
- API keys stored as GitHub secrets
- Agents run with minimal permissions
- All operations logged
- No external service access without configuration
- Check the Actions tab for errors
- Verify
GEMINI_API_KEYis set - Check for rate limit messages
- Reduce workflow frequency
- Use simpler prompts
- Consider batching operations
- Be more specific in descriptions
- Add examples to issues
- Update
GEMINI.mdwith better context
Contributions welcome! Areas for improvement:
- Better prompts
- New agent capabilities
- Bug fixes
- Documentation improvements
MIT