Repository navigation
Releases
v1.7.1
What's Changed
- fix(hooks): close three ways past the Rust push gate (follow-up to #84) by @AlexisBalayre in #87
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
- fix(ci): skip labels on a 403 only for a fork or Dependabot PR (follow-up to #77) by @AlexisBalayre in #85
- feat(hooks): port gate-lock, check-agent-config and verify to claude-hooks by @AlexisBalayre in #86
Full Changelog: v1.6.0...v1.7.0
v1.6.0
What's Changed
- feat(hooks): port the push gate to claude-hooks by @AlexisBalayre in #84
Full Changelog: v1.5.0...v1.6.0
v1.5.0
What's Changed
- chore(ci): bump claude-code-action to v1.0.290 by @AlexisBalayre in #82
- feat(hooks): port the Stop and compaction hooks to claude-hooks by @AlexisBalayre in #83
Full Changelog: v1.4.0...v1.5.0
v1.4.0
What's Changed
- feat(hooks): port the git hooks and worktree scripts to claude-hooks by @AlexisBalayre in #81
Full Changelog: v1.3.1...v1.4.0
v1.3.1
What's Changed
- fix(review): exit early when a PR changes the review workflow and smoke-test the sandbox by @AlexisBalayre in #80
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's Changed
- feat(hooks): add the claude-hooks Rust binary with the five guard hooks by @AlexisBalayre in #79
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- chore(ci): bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #51
- chore(ci): bump anthropics/claude-code-action from 1.0.251 to 1.0.255 by @dependabot[bot] in #54
- chore(ci): bump pnpm/action-setup from 6.1.0 to 6.1.1 by @dependabot[bot] in #62
- chore(ci): bump anthropics/claude-code-action from 1.0.255 to 1.0.289 by @dependabot[bot] in #71
- feat(tooling): add verify gate, pre-push stamp check and guard hooks with test harnesses by @AlexisBalayre in #72
- fix(ci): pin the review job to ubuntu-24.04 so the Bash sandbox starts by @AlexisBalayre in #75
- refactor(tests): move shell harnesses to tests/ and remove the CodeGraph server by @AlexisBalayre in #73
- refactor(skills): keep the 7 template-bound skills and source the rest from the plugin by @AlexisBalayre in #74
- feat(review): port the seven-area review panel and CI-only pr-ci-review by @AlexisBalayre in #76
- feat(ci): label each open PR with its review and conflict state by @AlexisBalayre in #77
- feat(ci): release automatically from Conventional Commit subjects by @AlexisBalayre in #78
Full Changelog: v1.1.0...v1.2.0
v1.1.0
Mostly a hardening release for the CI review pipeline. It also adds a spec reviewer, a safe worktree cleanup script, and a compaction hook that now actually keeps state. 29 PRs since v1.0.0.
Upgrading from v1.0.0
Three files are gone. If you copied them, delete them and take their replacements:
| Removed | Replaced by |
|---|---|
scripts/worktree-clean.sh |
scripts/worktree-remove.sh --merged. It takes only worktrees whose tip a merged PR shipped. The old script force-removed every worktree whose remote branch was gone, uncommitted files included. |
.claude/hooks/pre-compact-preserve.sh |
.claude/hooks/post-compact-state.sh on SessionStart(compact). PreCompact output never reaches the compaction summary, so the old hook preserved nothing. |
.claude/skills/resolving-merge-conflicts/ |
Nothing. It was retired upstream in mattpocock/skills. |
Re-copy .claude/settings.json too, for the new hook registration. If you run the CI review, re-copy .github/ and tools/review/: most of this release's security fixes live there. The metrics record's SCHEMA_VERSION went from 2 to 6.
CI review: security
If you let the review run on fork PRs, take these fixes.
- Tooling from the base, not the PR head. The review scripts run from a copy of
tools/reviewtaken before the PR-head checkout, with that copy as their working directory. This means a PR's ownpackage.jsoncan no longer swap tsx's preload for its own code (#21, #28). - Locked permissions. Managed settings allow only read-only
gitandghverbs, andgh apiis dropped. Bash runs in a sandbox that writes only to the checkout and reaches only api.github.com. Credentials are scrubbed from the shell (#21). - PR head kept away from the tooling and its credentials.
AGENTS.mdis restored from the object store. The tooling copy is made read-only. The checkout usespersist-credentials: false. The poster'sgit diffis pinned against config the head could plant: fsmonitor, hooks, external diff, textconv and protocols (#43, #48). - Owner-only re-runs. A re-run keeps the original actor, so
github.triggering_actormust now be the owner too. A collaborator can no longer bill your token by re-running your review (#14).
CI review: features
@claude reviewtakes words:full, a depth (quick,standard,deep) and reviewer areas, in any order (#18, #19).review-specreviewer. It checks a PR against the issue it closes, found from closing keywords in the body or commits, or from--spec. It reports requirements that are missing, partial or built wrong, and scope creep (#30).- Opus 5.5 orchestrator. A round whose reviewers never reported now fails instead of posting as a clean review (#15).
- Metrics. The record splits cost by model and keeps every denied tool call (#17, #20).
- Recall eval.
tools/review/evalreplays merged PRs with one regression planted in each, under CI's exact permission lock. The pilot found 4 of 4 plants with no false positive (#27, #30). - Dependabot bumps the pinned actions daily. The
claude-code-actionSHA also fixes which Claude Code version the review runs, so the review stays current. It is now at v1.0.251 (#35–#40). - Fix: a relocated finding's suggestion stays inert and can no longer render as a committable suggestion on the wrong line (#46).
Worktrees
scripts/worktree-remove.sh <name>...is the reverse ofworktree-create.sh(#34, #41, #47).- A worktree with uncommitted or untracked files is kept.
- A branch is deleted only when nothing is lost: either a PR merged into the trunk shipped its tip, or the remote branch holds every commit.
- Origin's branch is deleted under a lease, so a branch that moved after its merge survives.
- Anything kept is listed by name.
--mergedsweeps every<prefix>/worktree that a merged PR shipped (#41).- Names are validated in both create and remove, so
../<sibling>cannot reach outside.worktrees/(#41).
Hooks, skills, rules
post-compact-state.shre-injects live state after compaction: the session's directory, the checkout's branch, the other worktrees, and the open PRs with their review status (#42, #44, #45, #49). It runs nogit status, because a worktree's config can name fsmonitor or clean-filter commands that status would run outside the sandbox.- Skills refreshed from mattpocock/skills (49dd158). This adds
retroandimplement-specand retiresresolving-merge-conflicts, for 35 skills in total (#29). - Rule catalog.
.claude/rules/README.mdnow loads only when you edit rules, not in every session (#16).
Full changelog: v1.0.0...v1.1.0
v1.0.0
The first tagged release of the config. Everything here is in use daily in the repo it came from, and the repo reviews its own PRs with the pipeline it ships.
What you get
| Layer | Count | What it does |
|---|---|---|
skills/ |
34 | Auto-discoverable workflows: planning, TDD, debugging, PR description, merge-conflict resolution, research, and the review loop. |
agents/ |
12 | Isolated subagents, including the 6 gated review-* reviewers and the validator that refutes weak findings. |
hooks/ |
7 | Zero-token shell scripts: quality gate, convention spot-check, git safety, generated-file protection, file naming, compaction preservation. |
rules/ |
2+ | Path-scoped loaders that pull docs/conventions/*.md into context only when you touch a matching file. |
Start here
git clone https://github.com/AlexisBalayre/claude-code-config.git
cd claude-code-config
cp -R .claude AGENTS.md CLAUDE.md docs scripts .mcp.json ../your-repo/
cp -R .github tools ../your-repo/ # optional: the CI review pipelineThen run /adapt-to-project in your repo. It surveys the codebase, confirms the stack with you, fills every TODO(adapt) slot, and prunes what your project cannot use. Nothing in the template assumes a language, package manager or layout.
The CI review pipeline
A deterministic preflight resolves the PR head and the full-vs-incremental mode, six relevance-gated reviewers report, a validator refutes findings that do not hold, and a poster script writes the result to the PR. The model has no write channel, which is both the prompt-injection defense and the reason a dead run still posts "not reviewed" instead of looking clean. Setup is three steps, documented under "The CI review pipeline" in the README.
By default the review runs only for the repository owner, so a PR from anyone else spends nothing.