I wanted something that could autonomously fix GitHub issues using Claude Code. OpenClaw wasn’t really doing it for me, so I built my own.
The result is fixbot. It’s a Discord bot where you type fix 42 in a channel, and it fetches the GitHub issue, spins up an isolated git worktree, runs claude -p with the issue details, and lets Claude implement the fix, run your CI checks, and open a PR. You get progress updates streamed to Discord as it works, and when it’s done you can react with a checkmark to merge or an X to reject. You can also reply to the bot’s messages to give Claude follow-up instructions in the same session, which is pretty handy when it gets close but not quite right.
The thing I’m most happy with is how simple it ended up being. There’s no Docker, no middleware, no fancy orchestration layer. It’s just a Node.js script that shells out to claude -p and gh. The whole thing is like ~1000 lines across a handful of files. Under the hood it spawns Claude in headless mode and streams back NDJSON events, so the bot can parse out progress updates and post them to Discord in real time as Claude works through the problem. It manages git worktrees so each fix runs in complete isolation, only ever pushes to ai/* branches, and your main branch is never touched directly.
You can configure quality gates too, which is probably the most useful part beyond the basic fix loop. You set something like QUALITY_GATES=npm run lint,npm run type-check,npm test in your env, and Claude will run each one after making changes. If something fails, it reads the output and tries to fix it, then re-runs. So by the time you get a PR, it’s already passed your CI locally. You can also run multiple jobs in parallel and set timeouts per job if you want to let it chew on bigger issues.
Sessions persist to disk as JSON, so if the bot crashes or restarts you don’t lose track of in-progress work. There’s a background cleanup task that prunes old sessions and worktrees after 7 days. Nothing fancy, but it means you don’t have to babysit it.
The whole project was built with Claude Code too.
I’ve only been running it for a few days so it’s still early, but it’s been working well enough that I wanted to share it. If you have a Claude Max sub and want to put it to work on your GitHub issues from Discord, check it out.
GitHub:
https://github.com/cj-vana/fixbot
submitted by
/u/Prize-Supermarket-33
Originally posted by u/Prize-Supermarket-33 on r/ClaudeCode
