Personal development bot for my repositories
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
chris-kreidl ccedab8d23
Merge pull request #11 from chris-kreidl/evidence-not-claims
Evidence for every can't; PR replies follow the work steps; reviews trace untested edges
2026-11-21 00:23:10 -05:00
examples React 👀 as soon as the bot takes a run, then swap it for the outcome 2026-11-20 15:42:34 -05:00
gate React 👀 as soon as the bot takes a run, then swap it for the outcome 2026-11-20 15:42:34 -05:00
action.yml Update anthropics/claude-code-action action to v1.0.286 2026-11-21 03:43:05 +00:00
fetch-images.sh Download the thread's images so the bot can see screenshots 2026-11-20 09:45:41 -05:00
prompt.md Evidence for every can't, PR-reply runs follow the work steps, reviews trace untested edges 2026-11-21 00:20:56 -05:00
README.md React 👀 as soon as the bot takes a run, then swap it for the outcome 2026-11-20 15:42:34 -05:00
review.md Evidence for every can't, PR-reply runs follow the work steps, reviews trace untested edges 2026-11-21 00:20:56 -05:00

bot

A personal development bot for my repositories. Label an issue ready and it picks it up. If it needs answers, it asks in the issue and waits. Reply, and it carries on. When it's done it opens a pull request, and it responds to review comments on that pull request. It never merges.

It runs in each project's GitHub Actions as my own GitHub App, using claude-code-action in prompt mode with a Claude subscription token.

How a thread moves

Label Meaning Set by
ready Handed to the bot. Adding it starts a run. me
bot:working A run is on it. bot
bot:waiting The bot asked something. My next comment resumes it. bot
bot:pr The bot opened a pull request. Further work happens there. bot
bot:blocked The bot can't do it here (secrets, a browser, too big) and said why and what would unblock it. A reply resumes it. bot
bot:failed A run crashed, timed out, or ended without a word. Commenting retries it. bot

Every run ends with something in the thread. If Claude doesn't post, the action does.

The bot acknowledges within seconds: the gate reacts 👀 to my comment (or to the issue or pull request, for a label or a review). When the run ends, that becomes 👍 if it reported or 😕 if it failed. The result itself is a new comment, so it still notifies.

What starts a run (everything else is ignored by gate):

  • I add ready to an issue.
  • I comment on an issue labelled bot:waiting, bot:blocked or bot:working.
  • I comment on, or review, a pull request labelled bot:pr.
  • I comment /review on a pull request labelled bot:pr. That run reviews the pull request against the project's own checklist (review-prompt, for example its review prompt file) and posts numbered findings. It changes nothing: my reply saying which findings to fix is an ordinary comment, and the next run does the fixing. Reviews only run when I ask, so a pull request that's still in progress doesn't use up a review.

Runs are one at a time per issue or pull request. The thread is the bot's only memory: each run rereads it. How the bot behaves is in prompt.md. Each project's own CLAUDE.md decides how it builds, tests and writes pull requests.

Files

  • gate/action.yml: decides from the event whether to run, and on which branch. Runs before any project setup, so ignored comments cost seconds.
  • action.yml: mints the app token, sets labels, checks out the branch, and runs Claude with the prompt.
  • fetch-images.sh: downloads the thread's screenshots before Claude starts, since a private repo's attachments need auth. Up to 20 images, 10 MB each.
  • prompt.md: the bot's instructions.
  • review.md: the instructions for a /review run, placed before the project's checklist.
  • examples/bot.yml: the workflow a project copies.

Setup (once)

  1. Create the GitHub App (Settings → Developer settings → GitHub Apps → New). Give it a name and avatar. Turn the webhook off. Set repository permissions: Contents, Issues and Pull requests read & write; Metadata read. Leave Workflows off, so it can't edit .github/workflows. "Only on this account."
  2. Generate a private key, and note the app's client ID.
  3. Install the app on each project repository (not this one).
  4. Let other repositories use this one's actions: Settings → Actions → General → Access → "Accessible from repositories owned by the user".
  5. Run claude setup-token locally for the subscription token.

Adding a project

  1. Repo secrets: BOT_CLIENT_ID, BOT_PRIVATE_KEY, CLAUDE_CODE_OAUTH_TOKEN.
  2. Copy examples/bot.yml to .github/workflows/bot.yml. Add the project's setup steps (the same ones as CI), and allow its check commands in allowed-tools. To enable /review, set review-prompt to the project's review checklist.
  3. Labels are created on the first run.

Limits

  • It can't push to forks, and it has no production secrets.
  • Runs use Actions minutes and the subscription's usage. The job's timeout-minutes is the cap.