Repository navigation
chore(git-hooks): run the guardrails git hooks from the claude-code-plugins lefthook remote - #865
Conversation
…lugins lefthook remote Replace the vendored .githooks/guardrails copies and their three lefthook jobs with one remotes entry tracking claude-code-plugins main, drop the lint and CI exclusions the copies needed, and have the commit-convention test fetch the plugin's hook scripts from main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed No findings on PR #865 at b2c0a47. I read the three non-deletion diffs (
|
|
claude-security-review reviewed Security review: PR #865 at b2c0a47critical-findings: 0 No security findings. I reviewed all 19 changed files by reading the diff with What the PR changes. It deletes the 16 vendored Instruction-surface deletions. The deleted scripts are git-hook guards: secret patterns, machine paths, commit-message convention, reference verification and the abort boundary. I checked each against what still enforces it.
Considered and not reported.
No plugin manifests ( |
No related issue: rolls out the guardrails lefthook remote (melodic-software/claude-code-plugins#9504)
Summary
The guardrails git hooks now run from one lefthook
remotes:entry trackingmelodic-software/claude-code-pluginsmain(refetched daily) instead of copies vendored under.githooks/guardrails/by #852. Every clone gets the same hooks from committed config, with nothing per machine and no copies to drift.Fix
lefthook.yml: add theremotes:entry; drop the threeguardrails-<entry>jobs and the.githooks/guardrails/**pre-commit exclude..githooks/guardrails/(16 files).pr-require-checks.yml: drop the.githooks/guardrailsShellCheck and machine-path excludes.components/commit-convention/commit-convention.test.sh: fetch the guardrails plugin from claude-code-pluginsmain(sparse, depth 1) for the resolver and commit-msg hook, the same ref consumers run. The suite already needed network for the check-contract action.Verification
install.mjs verify:okfor commit-msg-convention, pre-commit-content, reference-verify;plan --scope remotereturns no decisions.guardrails-remote-pre-commit-contentandguardrails-remote-commit-msg-conventionfrom the fetched remote; both passed.bash harness/shell/run-tests.sh components/commit-convention/commit-convention.test.sh: 1 passed.Related
ref: main)🤖 Generated with Claude Code