A completely free, zero-configuration AI debugger that automatically analyzes and fixes failed GitHub Actions workflows across all your repositories.
Zero Config Per Repo — Install the GitHub App once. Every repo it monitors gets automatic AI-powered fixes via PRs. No YAML files, no per-repo setup.
graph TD
RepoA[Any Repo — Fails] -- "webhook" --> Proxy
Proxy[Cloudflare Proxy<br/>Free Tier]
Proxy -- "verify HMAC" --> Proxy
Proxy -- "workflow_dispatch" --> Central
Central[Management Repo<br/>GitHub Action]
Central -- "Primary" --> Gemini[Gemini CLI Agent]
Central -- "Fallback" --> Agent[Multi-Provider<br/>AI Agent]
Gemini -- "read logs, fix code,<br/>run tests, iterate" --> Gemini
Gemini -- "create PR" --> RepoA
Agent -- "analyze logs,<br/>generate fixes" --> Agent
Agent -- "commit fixes" --> RepoA
| Component | Role | Cost |
|---|---|---|
| Cloudflare Proxy | Receives webhooks, verifies HMAC, dispatches to central repo | Free |
| Gemini CLI (Primary) | Full agentic AI — shell exec, file I/O, test verification, iterative fixes | Free (generous quotas) |
| Multi-Provider Agent (Fallback) | OpenAI-compatible API pipeline — 9+ providers supported | Free tiers |
| Provider | Default Model | Free Tier |
|---|---|---|
| Cerebras | qwen-3-235b-a22b-instruct-2507 |
✅ |
| Groq | llama-3.3-70b-versatile |
✅ |
| Google Gemini | gemini-2.0-flash |
✅ |
| Mistral AI | mistral-large-latest |
✅ |
| NVIDIA NIM | meta/llama-3.1-8b-instruct |
✅ |
| Cohere | command-r-plus |
✅ |
| Hugging Face | Qwen/Qwen2.5-Coder-32B-Instruct |
✅ |
| OpenRouter | meta-llama/llama-3-70b-instruct |
✅ |
| GitHub Models | gpt-4o |
✅ |
- A GitHub App installed on your organization/account
- Permissions:
Actions (Read),Contents (Write),Pull Requests (Write),Metadata (Read) - Events:
Workflow run(Completed)
- Permissions:
- A Google AI Studio API Key (get one free)
- A Cloudflare Account (Free tier)
- GitHub CLI (
gh) and Node.js 22+
git clone \
https://github.com/chirag127/github-actions-ai-auto-debugger
cd github-actions-ai-auto-debugger
pnpm install-
Copy the example env:
cp .env.example .env
-
Fill in your secrets (see instructions inside
.env). -
Sync secrets to GitHub:
./scripts/sync-secrets.ps1
-
Upload secrets to Cloudflare (only
WEBHOOK_SECRETandGITHUB_TOKENare needed by the proxy):echo "YOUR_WEBHOOK_SECRET" | \ pnpm dlx wrangler secret put WEBHOOK_SECRET echo "YOUR_GITHUB_PAT" | \ pnpm dlx wrangler secret put GITHUB_TOKEN
| Secret | Where | Purpose |
|---|---|---|
GH_APP_ID |
GitHub | App authentication |
GH_APP_PRIVATE_KEY |
GitHub | App authentication |
GEMINI_API_KEY |
GitHub | Gemini CLI (primary) |
AI_PROVIDER |
GitHub | Fallback provider name |
CEREBRAS_API_KEY |
GitHub | Fallback AI (default) |
WEBHOOK_SECRET |
Cloudflare + GitHub | HMAC verification |
GITHUB_TOKEN |
Cloudflare | Proxy → dispatch trigger |
This application is entirely stateless. No database, no migrations. All processing happens in-memory within the GitHub Action runner.
Once deployed, the system runs fully automatically:
- A workflow fails in any monitored repo.
- GitHub sends a webhook to the Cloudflare Proxy.
- The Proxy triggers the central AI Debugger workflow.
- Primary: Gemini CLI checks out the failed repo, reads logs, fixes code, runs tests, and creates a PR.
- Fallback: If Gemini CLI fails, the multi-provider agent pipeline analyzes logs and commits fixes.
# Test the proxy locally
pnpm dlx wrangler dev
# Run AI debugger manually (set TARGET_* vars in .env)
node src/index.jspnpm test # Run all tests
pnpm run lint # Biome lint check
pnpm run format # Biome format
pnpm run build # Bundle dist/index.jspnpm run deployThis deploys src/proxy.js to Cloudflare Workers
(Free Tier).
- Set the Webhook URL to your Cloudflare Worker URL
(e.g.,
https://ai-auto-debugger-proxy.your-account.workers.dev/webhook). - Set the Webhook Secret to the same value as
WEBHOOK_SECRET.
Install the GitHub App on your account/organization. Select the repos you want monitored.
| Tool | Command | Purpose |
|---|---|---|
| Wrangler | pnpm dlx wrangler tail |
Monitor live proxy logs |
| GitHub CLI | gh secret list |
Verify synced secrets |
| Biome | pnpm run lint |
Code quality |
MIT © chirag127