Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
#
# Project rules reach the reviewer through CLAUDE.md, which CodeRabbit detects
# on its own. Only guidance CLAUDE.md cannot express belongs here.
reviews:
path_instructions:
- path: "**/*.feature"
instructions: >-
Feature files are this project's specification. If this pull request also
changes the production code a scenario exercises, treat every changed or
removed expectation as suspect: name the expectation that changed, and ask
whether the spec was wrong or the scenario was bent to let the code pass.
- path: "**/*_test.go"
instructions: >-
If this pull request also changes the production code this test covers,
treat every changed or removed assertion as suspect: name the expectation
that changed, and ask whether the old expectation was wrong or the test was
bent to let the code pass.
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ As soon as a change is a complete, self-contained unit worth a PR (whether or no
- **Every change ships through a pull request.** No direct commits to the default branch, not even for docs; the PR workflow's safety checks must never be bypassed.
- **Title: Conventional Commits.** `type(scope): summary` — imperative, lowercase, no trailing period. Types in use: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`; scope optional and names the area touched.
- **Every PR gets a body — no exceptions.** Even a rename, a move, or a "no behavior change" refactor. Shape it as "this is what was changed" and (briefly) "why it was important to do". Your goal is to achieve succinctness, not 100% explanation of the problem space nor its variations. Avoid using three sentences to convey what can be said in one or two. Avoid including side notes demarcated via emdashes (prefer parentheses or commas). Do not restate the diff, list touched files, paste test output, or scaffold with `## Summary`/`## Testing`-style headings.
- **Ask CodeRabbit to review before merging.** Comment `@coderabbitai review` on the PR, then weigh its findings like any reviewer's; it advises, it never gates.
- **Footer: `Closes #N`** for each issue resolved (one per line), plus a line for `Co-Authored-By:`.
- **PR body => changelog.** When the PR is for an outward-facing change, use it as the basis for the corresponding CHANGELOG entry. Ideally, the "what" from the PR should become the bullet in the CHANGELOG, along with a list of closed issues inside of parentheses. Refer to existing CHANGELOG entries for examples.
26 changes: 26 additions & 0 deletions docs/decisions/2026-11-18-use-coderabbit-as-advisory-reviewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use CodeRabbit as an advisory reviewer

Status: Accepted

## Decision

Review every pull request with CodeRabbit before merging, as advice only. Do not make its review a required check, and do not let it, or any agent, merge.

## Why

Every pull request was authored and merged by one person, with no second reader. An AI reviewer from a different vendor than the one writing most of the code adds an independent view without sharing its blind spots. CodeRabbit is free for public repositories and reads CLAUDE.md as its rulebook on its own, so the rules stay in one place. Its project-specific guidance covers what CLAUDE.md cannot: scrutinizing tests and specs that change in the same pull request as the code they check.

The accepted cost: while the repository has fewer than 10 stars, CodeRabbit reviews only when asked, so each pull request needs a `@coderabbitai review` comment. Keeping it out of required checks means its rate limit can never block a merge.

## Alternatives rejected

- **GitHub Copilot code review.** It needs a paid Copilot plan and is billed per review.
- **Gemini Code Assist.** It takes its rules from its own style guide file, which would be a second copy of CLAUDE.md.
- **A Claude review in GitHub Actions.** The same model family would be reviewing its own work, and it needs an API key held as a repository secret.
- **Local review only, before pushing.** Nothing is left on the pull request, and it is easy to skip.

## Revisit if

- The repository reaches 10 stars, so reviews run automatically and the manual trigger can be dropped.
- CodeRabbit's open-source tier stops being free, or stops reading CLAUDE.md.
- Its reviews prove to be mostly noise, judged over a run of pull requests.
Loading