Scan your whole stack
From OX Research Newsroom
Are you using claude-git-hooks?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v4.15.0
claude-git-hooks was last scanned on 1 Dec 2026 at version 4.15.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 4.15.0 LATEST | 1 Dec 2026 | No rules fired |
| 4.14.0 | 23 Nov 2026 | No rules fired |
| 4.13.2 | 20 Nov 2026 | No rules fired |
| 2.65.0 | 20 Nov 2026 | Not shown |
| 4.13.1 | 19 Nov 2026 | Not shown |
Findings for v4.15.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 4.15.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
AI-powered git hooks for automatic commit messages, code analysis, and PR creation.
On an older Node.js, every command stops with one line naming the required and the running
version. The pre-commit hook then lets the commit through without analysis, and
prepare-commit-msg refuses a commit that asks for a generated message (auto). update
never installs a release whose engines.node the running Node.js does not satisfy.
install chooses the newest installed Node.js that meets the requirement and writes its absolute
path into the git hooks, so a commit started from VS Code or GitHub Desktop runs the hooks on that
Node.js too, whatever its PATH. It prints the Node.js that runs claude-hooks and the one the
hooks will run. Started on an older Node.js, install runs again on a supported one when one is
installed. When none is, and nvm is installed, it asks before running nvm install for the newest
LTS: no administrator rights, no nvm use. Otherwise it says where to get Node.js (Company Portal
on team machines, or nodejs.org) and installs nothing.
npm install -g claude-git-hooks
cd your-project
claude-hooks install
Install verifies npm, Git and the Claude CLI, and chooses the hooks' Node.js. --headless makes the install
non-interactive (CI/containers) but still runs those checks — it changes interaction,
never scope. To skip them deliberately:
claude-hooks install --headless # non-interactive, checks run
claude-hooks install --headless --skip-dependency-checks # opt out, prints a warning
git commit -m "auto"
# Claude generates message from branch name + changes
# Format: [TASK-ID] type: description
# Example: branch feature/IX-123-auth → [IX-123] feat: add authentication
claude-hooks create-pr develop
# Automatically pushes branch if unpublished (with confirmation)
# Analyzes diff, generates title/description, creates PR on GitHub
Auto-push feature (v2.11.0):
Merge strategy awareness (v2.25.0):
feature/*/release-fix/* → squash, release-candidate/*/hotfix/*/→ main → merge commitmerge-strategy:squash or merge-strategy:merge-commit labelAutomatic label resolution (v2.31.0):
git-hooks-config repository, labels.json) with local fallbackauto, or the pinned onesize:S (\<10), size:M (10-49), size:L (50-99), size:XL (100+), remote key sizeLabels.thresholds. Changed lines (added + deleted): size:S (\<300), size:M (300-999), size:L (1,000-2,999), size:XL (3,000+), remote key sizeLabels.lineThresholds. Only source files count: files under .library/ (the Library maintenance commit) are left out of bothbreaking-change, security, performance from analysis resultLabel rules, PR categories, and role-based permissions are managed centrally in a git-hooks-config repository belonging to your organisation. Changes there take effect immediately across all governed repositories — no tool update or deploy required. The repository is resolved from your configuration; see claude-hooks setup-github.
A Code Knowledge Library is per-file Markdown "books" extracted from a repository's source.
claude-git-hooks does not maintain it itself, and loads no Library engine: since 4.0.0 the
maintenance runs as a trigger (see Extensions) that calls an engine's
library CLI at create-pr → before-pr: it regenerates stale books and books new sources, in
one local commit (chore(library): sync books for <branch>) that create-pr then pushes with the
branch. A pre-commit trigger running library check --staged can warn earlier, but it only
warns about what this one fixes, so it is not needed.
{
"version": "2.8.0",
"overrides": {
"extensions": {
"triggers": [
{ "id": "library-create-pr", "on": "create-pr", "when": "before-pr", "mode": "sync",
"timeoutMs": 600000, "run": ["library", "create-pr-pipeline", "--repo", "."],
"requiresPath": [".library/resolver.yaml"] }
]
}
}
}
That is the local form, in .claude/config.json. A team usually declares the same trigger once,
in its remote config (settings.json → extensions.triggers), so every repository gets it; a
developer can still replace or disable it locally by id.
requiresPath skips the trigger in a repository without
.library/resolver.yaml, with nothing printed — which is most repositories.library is not on PATH, the trigger says so
and the command carries on.dependencies: claude-git-hooks is a public package and names no engine.The trust boundary of remote triggers — write access to the config repository is code execution on every developer machine — is documented in docs/EXTENSIONS.md §8.
claude-hooks setup-github # Configure GitHub token for PR creation
claude-hooks setup-team # Select your team (metrics and PR reviewers)
claude-hooks setup-linear # Configure Linear token for ticket enrichment
Option 1 - Settings file (recommended):
// .claude/settings.local.json (gitignored)
{ "githubToken": "ghp_..." }
Option 2 - Environment variable:
export GITHUB_TOKEN="ghp_..."
Create token at https://github.com/settings/tokens with scopes: repo, read:org
Runs formatters and linters on staged files automatically during pre-commit, or on demand:
# Lint staged files (default)
claude-hooks lint
# Lint all files in a directory
claude-hooks lint src/
# Lint specific files
claude-hooks lint file1.js file2.java
# Mix of directories and files
claude-hooks lint src/ lib/utils/ file.js
Tools per preset (configured via your organisation's remote config repository; these are the package defaults, used when the remote config is unavailable):
| Preset | Tools |
|---|---|
frontend |
ESLint |
backend |
none |
fullstack |
ESLint |
database |
sqlfluff |
ai |
ESLint |
infra |
none yet |
default |
ESLint |
Formatters (Prettier, Spotless) do not run in the gate by default; only linters do. A team
re-enables one by listing it in its formatters.json presetTools, e.g.
"frontend": ["prettier", "eslint"].
Behavior:
linting.autoFixTools ships
spotless → true and prettier → false, and every other tool (ESLint, SQLFluff) follows
linting.autoFix, default false. A tool named in autoFixTools keeps that value even when
autoFix is true. Opt a tool in or out by name, e.g.
"autoFixTools": { "prettier": true, "eslint": true }. Per run, CLAUDE_HOOKS_LINT_FIX=1 (on)
or =0 (off) forces every toolclaude-hooks lint exits 1 in the same caseclaude-hooks lint prints the same warning ending "lint incomplete" and exits 1.cmd shim); the findings are the same as one run.prettierignore does not exclude. An unformatted file is a warning: it
reaches the judge as a minor finding and does not block the commit by itself. A file Prettier
cannot parse is a tool failure and blocksRun interactive code analysis before committing:
# Analyze staged changes (default)
claude-hooks analyze
# Analyze unstaged changes
claude-hooks analyze --unstaged
# Analyze all tracked files (deprecated: removed in 5.0.0, no replacement)
claude-hooks analyze --all
# Up to 3 fix-then-verify cycles (default: analysis.cycles, 2)
claude-hooks analyze --cycles 3
# Until nothing blocks, a clean result confirmed through cycle 4
claude-hooks analyze --until-clean
# Continue the last run in a new process, after fixing and staging (no terminal needed)
claude-hooks analyze --verify
What it does:
git commit -m "auto" --no-verify on confirmationanalysis.blockingSeverityThreshold, default major). Only a pass writes the hooks-verified
marker, so only a commit the hook would have let through carries Hooks-Verified: true.
Choosing Continue past a failing gate is your decision; that commit gets no trailerUse case: Complete analysis-to-commit workflow in one command.
Deprecated:
analyze-diffis removed in 5.0.0. Useclaude-hooks create-pr, which runs the same step.
claude-hooks analyze-diff develop
# Generates PR metadata without creating
claude-hooks analyze-pr https://github.com/owner/repo/pull/123
# Fetches PR, applies preset guidelines, posts review comments
claude-hooks analyze-pr https://github.com/owner/repo/pull/123 --dry-run
# Analyze without posting comments
claude-hooks analyze-pr https://github.com/owner/repo/pull/123 --preset backend
# Override preset
[AUT-1234] found in PR titleconversation field says how much was read and how many items were left out. If the conversation cannot be read, the command warns and reviews the diff alonealreadyRaised) instead of posting them again. Besides the model's own list, an inline finding in the same category, within 3 lines of one of the analyzer's earlier threads on the same file and citing at least 2 of the same code spans, is not reposted while that thread is open, or resolved with its code unchanged; it is posted again once the thread is outdated. A repeated critical finding still fails the run while its thread is open, and stops failing it once the thread is resolved<!-- claude-hooks:analyze-pr --> marker, so a later run tells them apart from human reviews posted with the same GitHub account. A review counts as the analyzer's only when it carries the marker (or the ## PR Analysis ( heading) AND was posted by the account the GitHub token belongs to, so a pasted marker is ignored. So running the analyzer with another account's token, or with a GitHub App installation token (which cannot say whose it is, and gets a warning), leaves the earlier reviews unrecognised: their findings can be posted again<!-- gotcha: auto · … --> marker whose text the PR adds) against the code at the PR head: one tool-less gotchaCheck spawn per gotcha reads the book's source_files at the head commit and answers confirmed, false (with a correction) or unverifiable (with a reason); a cited line it was not shown downgrades the answer to unverifiable. At most 10 gotchas per run (only their books are read), 32,000 source characters per gotcha (larger files are excerpted around the identifiers the gotcha cites), and a hard $1.00 per run: a check starts only if it and every check in flight could bill their per-spawn budget ($0.25) and the run would still stay within $1.00. The result is the JSON output's gotchaCheck field (status ok / none / error, counts, results, truncated, costUsd); a PR adding no gotcha starts no spawn. A failed check warns and never stops the review--model <model> (override the model) is deprecated: removed in 5.0.0, no replacementAutomatic version management with CHANGELOG generation and Git tagging:
# Bump patch version (1.0.0 → 1.0.1)
claude-hooks bump-version patch
# Bump with suffix
claude-hooks bump-version minor --suffix SNAPSHOT # → 1.1.0-SNAPSHOT
# Bump and generate CHANGELOG
claude-hooks bump-version major --update-changelog
# Preview without applying
claude-hooks bump-version patch --dry-run
# Push tag immediately (otherwise pushed by create-pr).
# Deprecated: --push is removed in 5.0.0, no replacement
claude-hooks bump-version patch --push
# Manual workflow (skip automatic commit)
claude-hooks bump-version patch --no-commit
What it does:
package.json and/or pom.xmlv prefix (e.g., v2.7.0)create-pr push them; --push still pushes immediately until 5.0.0)--interactive, --push, --remove-suffix and --set-suffix are deprecated: removed in 5.0.0, no replacementFind threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.