Skip to content

ci: add a bot referee and a capped weekly Claude helper - #279

Merged
connabyss merged 1 commit into
mainfrom
claude/project-thread-nosptg
Nov 29, 2026
Merged

connabyss merged 1 commit into
mainfrom
claude/project-thread-nosptg

Conversation

@connabyss

@connabyss connabyss commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Requested by CH · project thread

What was wrong, what you changed, how you checked:

Two hands-off helpers, each in its own lane next to what already runs (CodeRabbit reviews, Bite checks test guards, CodeQL checks security, @claude answers when asked):

  • Bot referee (.github/workflows/bot-referee.yml + .github/scripts/referee_gather.py). When two or more review bots have spoken on a PR and at least one asked for a change, Claude reads all of it plus the diff and posts one verdict comment: agree, or disagree and which call to make and why. Later rounds edit that same comment. A free Python gate decides first, so with one bot, no asks, or nothing new since the last verdict, Claude never starts. It waits 5 minutes for the bots to finish, runs the default branch's scripts (never the PR's), and Claude can only read files and write the verdict (no shell). Cap: Sonnet, 6 turns, $0.40.
  • Weekly helper (.github/workflows/weekly-helper.yml). Mondays, Claude opens at most one small PR (label weekly-helper, assigned to connabyss). It skips the week while last week's PR is still open, stays away from every file an open PR touches, follows AGENTS.md, and opens nothing if it finds nothing worth it. Cap: Sonnet, 40 turns, $1.50, 30 minutes.

Both use the existing ANTHROPIC_API_KEY secret and turn themselves off if it's missing. tests/test_helper_workflows.py pins the caps and the anti-spam gates. actionlint is clean.

  • The title says what changed, in the Conventional Commit style.
  • n/a It links the issue it fixes.
  • n/a For a bug fix: a test that fails without the change (workflows only; the new test checks the caps).
  • python -m pytest passes (474 passed, 1 skipped locally).

Plain 3-line lesson:

  1. A cheap plain-script check in front of an expensive AI step ("is there anything to do?") keeps the cost near zero on quiet days.
  2. concurrency with cancel-in-progress turns a burst of bot comments into one run instead of five.
  3. Workflows that hold a secret should check out the default branch, not the PR's code, so a PR can't rewrite the script that sees the key.

Assisted-by: Claude Code


Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Eligible pull requests can receive a concise verdict that brings together participating bot feedback.
    • A weekly automated workflow can propose a narrowly scoped repository improvement as a pull request; runs are skipped when a prior helper pull request remains open.
  • Bug Fixes
    • Verdict comments are updated in place when possible, avoiding multiple separate comments for the same review cycle.

The referee posts one verdict comment when two or more review bots spoke and one asked for a change.
The weekly helper opens at most one small pull request a week, skipping files open pull requests touch.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175Q8iC87zJKTWdHHkXtqsk
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Adds a workflow that gathers bot reviews and comments, invokes Claude under configured limits when its run criteria are met, and publishes a verdict comment. Adds a scheduled and manually triggered workflow that can ask Claude to make a scoped repository improvement and open a pull request. Adds static tests for both workflows.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@connabyss connabyss self-assigned this Nov 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Bite ➖ Bite: nothing here to check

Bite skipped every commit here. Each one says why.

  • ➖ Skipped: a tidy-up, so there's nothing new to check.
    Commit 184cdf42: “ci: add a bot referee and a capped weekly Claude helper”
How Bite checks

Bite asks one question about each change: if it disappeared, would any test notice? It takes the change out, runs your tests, and puts it back. What is Bite?

@connabyss
connabyss merged commit 944cc5d into main Nov 29, 2026
20 of 21 checks passed
@connabyss
connabyss deleted the claude/project-thread-nosptg branch November 29, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant