A self-service bot where developers submit bug reports via a simple web form → webhook triggers Kilo Cloud Agent → agent analyzes repo, fixes bug, and creates pull request.
Challenge: Build coolest automation with Kilo Cloud Agents + Webhooks Prize: $500 of Kilo Credits (Challenge 1) + $50k grand prize at year end Entry URL: https://kilo.codes/league1
┌─────────────┐ ┌──────────────────┐ ┌─────────────┐
│ Frontend │ POST │ Kilo Webhook │ Triggers│ Cloud Agent │
│ Form │────────▶│ Endpoint │─────────▶│ (Repo + │
└─────────────┘ └──────────────────┘ │ Analysis) │
└──────┬────┘
│
▼
┌─────────────┐
│ GitHub │
│ PR │
└─────────────┘
URL: Will be deployed to Vercel
Fields:
- Repository URL (required) - format:
github.com/user/repoor full URL - Branch/commit SHA (required) - which version has the bug
- Bug description (required, multiline) - error message, expected behavior, reproduction steps
- Priority (optional, select) - Critical, High, Medium, Low
- Language hint (optional, select) - TypeScript, Python, JavaScript, Go, etc.
Features:
- Validation for GitHub repo format
- Loading states during submission
- Success message with PR link (when agent completes)
- Copyable webhook URL for advanced users
- Dark theme, polished UI (invoke frontend-design skill)
Webhook Configuration:
- Trigger type: HTTP POST
- Prompt template with variables:
Analyze the following bug report and fix it: Repository: {{bodyJson.repoUrl}} Branch/SHA: {{bodyJson.branchSha}} Bug Description: {{bodyJson.description}} Priority: {{bodyJson.priority}} Tasks: 1. Clone the repository 2. Read relevant code files 3. Analyze the bug and identify root cause 4. Generate a fix 5. Run tests if available 6. Create a pull request with: - Clear title starting with "[Fix]" - Detailed description of the bug and fix - Before/after comparison if applicable - Any testing notes Be thorough but efficient. If tests fail, describe why and suggest next steps.
Agent Environment Profile:
- Name:
fix-it-bot - Secrets:
GITHUB_TOKEN(for creating PRs) - Startup command:
gh auth status || gh auth setup-git(ensure authenticated)
User Experience:
- Developer finds a bug in their repo
- Opens Fix It Bot form
- Fills in:
- Repo:
facebook/react - Branch:
main - Bug: "Button component not rendering on iOS Safari"
- Priority: High
- Repo:
- Clicks "Fix My Bug"
- Form sends POST to Kilo webhook
- Kilo Cloud Agent wakes up:
- Clones
facebook/react - Finds button component
- Analyzes iOS Safari issue
- Generates fix
- Creates PR: "[Fix] Button not rendering on iOS Safari"
- Clones
- Form shows success: "Bug fixed! View PR: #12345"
- Framework: Next.js 15, App Router
- Styling: Tailwind CSS + shadcn/ui (invoke frontend-design skill)
- Deployment: Vercel (serverless)
interface BugReport {
repoUrl: string;
branchSha: string;
description: string;
priority?: 'critical' | 'high' | 'medium' | 'low';
language?: string;
}
// Validate GitHub repo format
function isValidGitHubRepo(url: string): boolean {
return /^(https?:\/\/)?(www\.)?github\.com\/[\w-]+\/[\w-]+/.test(url) ||
/^[\w-]+\/[\w-]+$/.test(url);
}{
"repoUrl": "github.com/user/repo",
"branchSha": "main",
"description": "Bug description here...",
"priority": "high",
"timestamp": "2026-02-05T02:45:00Z"
}User configures webhook at: https://app.kilo.ai/cloud/webhooks
Webhook URL: Need to deploy frontend first, get webhook URL from Kilo
- Self-Service: No human intervention after setup
- Multi-Language: Works with any public GitHub repo
- Template Variables: Uses
{{bodyJson}}for structured data - Profile-Based: Separate env profiles for different languages
- Queue System: Handles up to 20 concurrent fix requests
- Auto-PR: Agent commits and creates PR directly to user's repo
- Repo Access: Works with public repos only (for safety)
- Prompt Injection: Bug description is user input, but only used in agent prompt
- Rate Limiting: Kilo's webhook limits (20 concurrent, 100 retained)
- Branch Isolation: Each webhook session gets its own branch
- Frontend form deployed to Vercel
- Kilo webhook configured and tested
- Agent successfully clones a test repo
- Agent analyzes and fixes a simple bug
- Agent creates PR with fix
- Entry submitted to kilo.codes/league1
- History of bug fixes (show recent "Fixes" on homepage)
- Language-specific agent profiles (Python profile, JS profile, etc.)
- Progress indicator (form polls agent for status)
- Email notification when PR is ready
- Support for GitLab (in addition to GitHub)
Submit via: https://kilo.codes/league1
Required in submission:
- Live demo URL (Vercel deployment)
- GitHub repo with source code
- Video or screenshots showing it in action
- Brief description of how it works
Marketing Copy for Entry:
"Fix It Bot: A self-service bug fixing automation. Submit bug reports via web form → Kilo Cloud Agent analyzes repo, fixes bug, and creates PR automatically. Uses webhook triggers with template variables ({{bodyJson}}) and agent environment profiles. Works with any public GitHub repo!"
fix-it-bot/
├── app/
│ ├── page.tsx (main form)
│ ├── layout.tsx
│ └── globals.css
├── components/
│ ├── ui/ (shadcn)
│ ├── BugReportForm.tsx
│ ├── RepoInput.tsx
│ ├── DescriptionTextarea.tsx
│ └── SuccessState.tsx
├── lib/
│ ├── webhook-client.ts (POST to Kilo webhook)
│ └── validation.ts
├── SPEC.md
└── README.md
Instruction for AI/Developers: Invoke frontend-design skill for the form UI. This needs distinctive, polished design that avoids generic AI aesthetics. Think "developer-focused, clean, modern" with subtle animations and clear CTAs.