Fetch open issues from the repository at regular intervals
API: GET /repos/{owner}/{repo}/issues
Filter: state=open, labels={label}
Filter issues by label, assignee, and milestone
Filters: label=bug, assignee=@me
Excludes: already-processed issues
Analyze issue for fixability before attempting
LOW
Score < 7: Skip with reason logged
HIGH
Score ≥ 7: Proceed to implementation
Create a feature branch for the fix
Branch: fix/issue-{number}
From: {base_branch} (usually main)
Analyze code, locate bug, implement solution
• Search codebase for relevant files
• Read and understand context
• Make minimal, focused changes
• Follow existing code style
Execute test suite to verify fix doesn't break anything
FAIL
Retry fix (max 2 attempts)
PASS
Proceed to commit
Stage changes, commit, and push to fork
git add .
git commit -m "fix: {short description}"
git push -u fork fix/issue-{N}
Open a PR from fork to source repository
API: POST /repos/{owner}/{repo}/pulls
Head: {fork}:fix/issue-{N}
Base: {base_branch}
Send notification with PR details
Channel: Discord/Telegram
Message: PR URL, files changed, summary