| Age | Commit message (Collapse) | Author |
|
|
|
(#7015)
Squash merge of 2 commits
|
|
security-guidance: keep a renamed file paired with its old name in the Stop review
|
|
security-guidance: stop the commit reviewer on refused credentials, end hung reviews in time
|
|
security-guidance: do not save review runs as session transcripts
|
|
security-guidance: count Bash hook starts that match no commit or push
|
|
security-guidance: take the turn baseline without git stash create
|
|
security-guidance: keep new files in the Stop review when git add -N fails
|
|
security-guidance: treat a blank ANTHROPIC_BASE_URL as unset
|
|
security-guidance: stop starting the packaged Python alias on every hook
|
|
security-guidance: on Windows, name the CLI for the Agent SDK by its full path
|
|
security-guidance: keep the state folder to its user
|
|
security-guidance: read git log output without signature checks
|
|
security-guidance: read project config files only as real files
|
|
security-guidance: start git by its full path on Windows
|
|
(#7012)
Co-authored-by: Claude <noreply@anthropic.com>
|
|
Co-authored-by: Claude <noreply@anthropic.com>
|
|
home folder
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Windows
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
When git add -N fails on both tries or times out, wake Claude once per
set of files with their names, so the review no longer ends as "no
changes". A timed-out add now keeps the tracked files' diff, so a
timeout on every turn cannot stop their reviews. Private object
directory cleanup no longer chmods through a link.
Fixes #6996
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
hook's time limit
A single-shot review that follows a fast agentic failure, or runs with the
agentic review off, had no deadline: with no answer it ran 739 s, past Claude
Code's 600 s kill, so the session heard nothing. It now ends at 570 s into the
hook with the usual notice. The limit counts from hook start, so a push
review's wait and the work before the review count. Failed push rows keep
inflight_wait_s, and CLAUDE_CODE_REMOTE is read the same way in both places.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
A bare program name on Windows is looked up in the working directory before
PATH, and the hooks run in the project. Name the first git.exe on PATH, leaving
out relative entries, the working directory and folders inside the project, as
the claude lookup already avoids that search.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Create ~/.claude/security with mode 0700 from every place that makes it, and
narrow the default folder on the next run, so a umask such as 002 does not
leave the reviewer's venv group-writable. The in-place state write replaces a
link instead of following it, and creates a 0600 file.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
A project guidance or pattern file that is a link, or sits under a .claude that
is one, is skipped, and so is anything that is not a regular file. Guidance
that cannot be decoded no longer drops the other guidance files, and a closing
tag in guidance text no longer ends the block that holds it.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
On Windows the bash on PATH can be the WSL launcher. Use the bash shipped
with git there, and skip when no bash answers.
|
|
On Windows the plugin named no CLI for the Agent SDK unless
SG_AGENTIC_CLI_PATH was set, so the SDK chose one. With none named, the
plugin now chooses there itself and passes a full path: the CLI bundled
with the SDK, else the claude.exe in the native installer's folder, else
a claude.exe on PATH. When there is none, it passes the bundled path
and the start fails. Folders that are not given as full paths are
skipped, and so are the working directory, the project root and folders
inside them.
The macOS and Linux install paths are no longer probed on Windows. The
hooks also set NoDefaultCurrentDirectoryInExePath on Windows when it is
absent.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
With log.showSignature set, git log and git show verify every signed commit,
which adds lines to the output the hooks parse and starts gpg.program. Set it
off for the hooks' git and for the commit reviewer's environment.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Measurement only. One Bash call in ten that starts the hook without a
commit or push reports bash_no_match, and precheck_skip when a plain text
check on the hook input could have told so before Python started.
precheck_miss marks a reviewed command that such a check would have
dropped. Nothing is skipped and no review changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reviews in time
|
|
|
|
Runway moved the plugin into the claude/ folder of runwayml/skills, so the
entry now uses a git-subdir source pinned to fe79eab0. The display name and
description now match the 4.0.0 manifest.
|
|
A set but empty value left the request URL as /v1/messages, so urllib raised and
every Stop, push and single-shot commit review failed. The SDK and Claude Code read a
blank value as the default endpoint; the plugin now does too.
|
|
stash create checks the work tree on one thread. add -u into the throwaway
index copy, write-tree and commit-tree produce the same commit and use git's
index preload instead, which matters where each file status is slow. See #6854.
|
|
|