NEW Findings fixed in CI, then re-reviewed

AI code review that closes the loop.

CodeCanary reviews every push to your pull request, can fix what it finds right in CI, then reviews the fix. When you come back, the threads are already resolved.

$ curl -fsSL https://codecanary.sh/install | sh
See the loop
MIT licensed Linux & macOS, amd64 & arm64 Review with Anthropic · OpenAI · OpenRouter · Grok · Claude CLI Fix with Claude or Codex
0model calls to re-check threads nobody touched
1commit per fix cycle, reviewed like any other push
2 / 5fix commits per push / per PR before it stops
5 + 2review providers + fix agents, mixed as you like
The loop

Push once. Review, fix and re-review run without you.

Turn on fix.enabled and every review that leaves findings open is followed by a fix job in the same workflow. Scroll to follow one pull request.

  1. 01

    You push

    The CodeCanary GitHub Action runs on every push to a pull request and skips drafts. Want one review per PR instead? Set review_on: ready.

  2. 02

    Your model reviews the diff

    It reads the diff, the files around it, your CLAUDE.md and the .claude/rules that match the changed paths. Findings land inline on the exact diff lines, each with a severity.

  3. 03

    An agent fixes it in CI

    A coding agent, Claude or Codex, works through each finding on the PR branch. It applies a minimal fix, or refutes the finding with a reply on its thread when it doesn't hold for your repo. It runs sandboxed: it can only write inside the repository, with no network access.

  4. 04

    One commit, pushed

    The fixes land as one commit under the PR author's name, co-authored by the agent. It's pushed with the CodeCanary app's token, so your CI and the next review run on it like on any other push.

  5. 05

    Triage, then re-review

    Before any model runs, a Go classifier sorts the open threads. Threads nobody touched are skipped for free. The rest are re-checked in parallel by the cheaper triage model, and only the new diff gets a full review.

  6. 06

    Threads resolve. Merge.

    Fixed threads resolve themselves. Once nothing at warning or above is open, the CodeCanary / review check turns green. Make it a required check and nothing merges until it does.

It won't loop forever. It makes at most 2 fix commits per push and 5 per PR, then stops and comments with what's still open. Change either limit with fix.max_per_push and fix.max_per_pr.

#42 fix: load sessions from the store queued
internal/auth/session.go fix 1/2 this push1/5 this PR

Loop limits

Limits are counted from commit trailers, so there's no state to lose or reset by hand. Your own push resets the per-push count.

Never races you

If you push again first, it stands down and your new commit gets its own review. It skips drafts and never runs on fork PRs, where your secrets would meet untrusted code.

Can't touch your pipeline

The agent writes only inside the repository. Edits to .github/, .codecanary/ or .claude/ are reverted before the commit, so it can't rewrite its own workflow or config.

Never red

If the fix can't run, say on a rate limit, it posts one comment and leaves CI green. Finish locally with /codecanary-fix.

Pick the fixer with fix.provider: claude or codex, independent of the review provider. Needs review_on: push and workflow template v3, which codecanary setup github installs.

Local

Same engine, before you push.

Run codecanary review to check your branch, uncommitted changes included, against the default branch. Findings print in your terminal, and nothing touches GitHub until you ask.

  • Picks up where it left off. The second run re-checks what the first one found instead of starting over.
  • Post when ready. Add --post to publish the findings on the PR.
  • Gate merges without a workflow. After a clean local review, codecanary signoff posts the CodeCanary / review status.
  • Scriptable. --output json for tooling, --dry-run to see the prompt without calling a model.
~/app · fix/session
$
Loaded 1 project doc(s) for review context
Re-evaluating 2 unresolved thread(s) (base b4723757)...
[evaluate] internal/auth/session.go:42 — bug — unchecked-error
[skip] internal/handler.go:87 — nitpick — no code changes, no replies
Triage result: 1 skipped, 0 auto-resolved, 1 need evaluation
[resolved] internal/auth/session.go:42 — fixed by code change
Reviewing incremental changes (1 known issue excluded)...
No new findings
Model Input Output Cost
──────────────────────────────────────────────
claude-haiku-4-5 842 156 $0.0003
claude-sonnet-5-5 6,120 310 $0.0230
Duration: 9.4s · PR size: +24/-8 lines, 3 files
$
Claude Code

Say “handle codecanary”. Walk away.

The codecanary-fix skill for Claude Code runs review, triage and fix until the PR is clean. It weighs each finding against your project's conventions, applies the ones that hold up and refutes the rest, without stopping to ask you about each one.

pr-loop

PR with the workflow. Fixes, commits and pushes each cycle. When CI fixes are on, it waits for the bot and takes over if the bot stops.

local-loop-git

PR without a workflow. Local reviews, a commit per cycle, and an offer to push at the end.

local-loop-nogit

No PR. Local reviews, fixes applied in place, no git.

  • Skips are explained. In pr-loop, every skipped finding gets a reply on its review thread with the reason.
  • Understands review_on: ready. Each cycle moves the PR to draft, pushes one commit, waits for required checks, and marks it ready again.
Read the skill contract
claude · ~/app
$
✓ installed ~/.claude/skills/codecanary-fix
>
● codecanary mode --output json
pr-loop · review_on: push · fix_on_ci: true
● codecanary findings --watch
fix_stop: limit — stopped after 2 fixes since your last push
● Taking over locally. Triage:
ref severity location action
F4 warning api/handler.go:31 apply
F5 nitpick api/handler.go:58 skip → reply posted
● git commit && git push
● codecanary findings --watch
✓ Review clean. Done.
Under the hood

A reviewer that remembers what it already said.

Incremental triage

On every push, a Go classifier sorts the open threads before any model call. Untouched threads cost nothing, changed ones go to the cheaper triage model, and the review only covers new code. Each push pays for what changed, not for the whole PR again.

Conversational

Reply to a finding and CodeCanary re-reads the thread. It can tell a fix from a dismissal, an acknowledgment or a rebuttal.

Merge gate

Every review posts a CodeCanary / review commit status. Warnings and above fail it. Suggestions and nitpicks never block a merge.

Anti-hallucination

Every finding is checked against a file allowlist and the lines in the diff. One that points outside the changed code is dropped.

Review once, at ready

review_on: ready reviews when a PR opens or turns ready and skips pushes after that. Iterate in draft for free.

Your conventions, scoped

Project CLAUDE.md files and .claude/rules/*.md feed the review. A rule with paths frontmatter is included only when a changed file matches it, so the review only sees the rules for the code you touched.

CLAUDE.md.claude/rules/*.mdreview.ymlreview.local.yml

Costs you can see

A cheap model for triage, a full model for review, and a usage table with the cost of every call. Set max_budget_usd to cap any single review.

triage_modelreview_modelmax_budget_usd
Configuration as code

Checked into your repo. Reviewed like code.

.codecanary/config.ymlyaml
version: 1
provider: grok
review_model: grok-4.20-0309-non-reasoning
triage_model: grok-4-1-fast-non-reasoning
review_on: push        # or: ready

fix:
  enabled: true          # default false
  provider: codex        # or claude
  max_per_push: 2
  max_per_pr: 5

context: |
  Go REST API using chi router. Tests use testify.

rules:
  - id: error-handling
    description: "Errors must be wrapped with context"
    severity: warning
    paths: ["**/*.go"]

ignore:
  - "vendor/**"
  - "*.lock"
.claude/rules/api.mdmarkdown
---
description: API endpoints use the auth middleware
paths:
  - "apps/api/**"
---

New endpoints under apps/api register the
shared auth middleware before any handler
logic. Missing token → 401.
Five severities: critical, bug, warning, suggestion, nitpick. Rules take paths and exclude_paths globs. Keep personal additions in a gitignored review.local.yml.
Full configuration reference
Bring your own LLM

Mix and match. Your keys, your bill.

Your key stays in the system keychain. Setup suggests the models below, and you can change them any time in config.yml. Any of them can review. The CI fix runs on Claude or Codex, set with fix.provider, so you can review with Grok and fix with Codex.

ProviderReview modelTriage model
AnthropicAPI key
reviewclaude-sonnet-5-5
triageclaude-haiku-4-5
OpenAIor any compatible endpoint via api_base
reviewgpt-5.4
triagegpt-5.4-mini
OpenRouterany model on OpenRouter
reviewanthropic/claude-sonnet-4-6
triageanthropic/claude-haiku-4-5-20251001
Grok (xAI)API key
reviewgrok-4.20-0309-non-reasoning
triagegrok-4-1-fast-non-reasoning
Claude CLICI FIXyour logged-in claude, no API key
reviewsonnet
triagehaiku
Codex CLICI FIXfix only, set as fix.provider
reviewfix only
fix modelCodex CLI default
Add a provider
Get started

Install. Set up. Ship clean.

The setup wizard picks a provider, stores your key in the keychain and writes the config. codecanary setup github also installs the GitHub App and opens a PR with the workflow.

1curl -fsSL https://codecanary.sh/install | sh
2codecanary setup # local or github
3codecanary review