summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)Author
2026-11-07security-guidance: count commits that no commit hook sawmhegazy/sg-unseen-commit-countMohamed Hegazy
A commit review starts from a hook on the Bash tool, so a commit made any other way starts none. The Stop row now carries turn_commits: how many commits the turn made, how many have no review, and how many of those no commit hook saw. Count only; what is reviewed does not change, and no hook entry is added. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-07security-guidance: count how custom rules are writtenMohamed Hegazy
Measure only: path globs a wider reading would change, refused and counted repeats in regexes, and the slowest custom regex, on the Stop row. Which rules apply does not change. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-07security-guidance: keep project rules after the session changes foldermhegazy/sg-project-rules-after-cdMohamed Hegazy
Project rules and guidance were read from the session's current folder, so one cd dropped them silently. Read the project's own folder too while the session is elsewhere in the project; in a linked worktree, the same folder of that worktree. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-06Merge branch 'main' into mhegazy/sg-reviewer-oauth-tokenMohamed Hegazy
2026-11-06Merge pull request #7014 from anthropics/mhegazy/sg-bump-2018Mohamed Hegazy
security-guidance: bump version to 2.0.18
2026-11-06Merge pull request #6997 from anthropics/mhegazy/sg-net-err-on-verdictMohamed Hegazy
security-guidance: clear net_err when a review gets through
2026-11-06Merge pull request #7000 from anthropics/mhegazy/sg-index-copy-all-gitlinksMohamed Hegazy
security-guidance: drop every gitlink from the index copy
2026-11-06Merge pull request #6985 from anthropics/mhegazy/sg-sdk-install-timeoutMohamed Hegazy
security-guidance: a timed-out SDK install leaves no download behind and pauses before retrying
2026-11-06Merge pull request #6920 from anthropics/mhegazy/sg-interp-reparse-telemetryMohamed Hegazy
security-guidance: count Windows sessions whose Python is behind a link (measurement only)
2026-11-05Add plugin.json to the 14 plugins that have none (#7013)Jake Marsh
The twelve language-server plugins, receipts and session-report had no .claude-plugin/plugin.json, so their folders didn't load or validate on their own. Each manifest only carries fields copied unchanged from the plugin's marketplace entry; marketplace.json is not touched. kotlin-lsp and php-lsp READMEs gain a sentence describing what the plugin does, and kotlin-lsp gets the title its siblings have.
2026-11-06security-guidance: fail the snapshot in the no-edit-record test the way main ↵Mohamed Hegazy
takes it The turn baseline no longer uses git stash create, so the git stand-in fails write-tree instead.
2026-11-06Merge remote-tracking branch 'origin/main' into ↵Claude
mhegazy/sg-stop-finding-names-unwritten # Conflicts: # plugins/security-guidance/hooks/security_reminder_hook.py
2026-11-05Add champion-kit plugin (#7017)Kevin Martin
Squash merge of 1 commit
2026-11-05security-guidance: bump version to 2.0.18mhegazy/sg-bump-2018Claude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-05Merge main into mhegazy/sg-sdk-install-timeoutmhegazy/sg-sdk-install-timeoutClaude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-05Merge main into mhegazy/sg-index-copy-all-gitlinksmhegazy/sg-index-copy-all-gitlinksClaude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-05Merge main into mhegazy/sg-net-err-on-verdictmhegazy/sg-net-err-on-verdictClaude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-05Merge main into mhegazy/sg-interp-reparse-telemetrymhegazy/sg-interp-reparse-telemetryClaude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-05Merge main into mhegazy/sg-interp-reparse-telemetrymhegazy
Both sides add a metric after the launcher probe timings on the SessionStart row; keep launcher_direct, then interp_reparse as the last key.
2026-11-05Merge pull request #6835 from anthropics/mhegazy/sg-secret-rename-pairingMohamed Hegazy
security-guidance: keep a renamed file paired with its old name in the Stop review
2026-11-05Merge pull request #6965 from anthropics/mhegazy/sg-agentic-stop-on-authMohamed Hegazy
security-guidance: stop the commit reviewer on refused credentials, end hung reviews in time
2026-11-05Merge pull request #6627 from anthropics/mhegazy/sg-review-sessions-not-savedMohamed Hegazy
security-guidance: do not save review runs as session transcripts
2026-11-05Merge pull request #6998 from anthropics/mhegazy/sg-count-unmatched-bash-startsMohamed Hegazy
security-guidance: count Bash hook starts that match no commit or push
2026-11-05Merge pull request #6922 from anthropics/mhegazy/sg-prompt-snapshotMohamed Hegazy
security-guidance: take the turn baseline without git stash create
2026-11-05Merge pull request #6919 from anthropics/mhegazy/sg-add-failure-fixMohamed Hegazy
security-guidance: keep new files in the Stop review when git add -N fails
2026-11-05Merge pull request #6930 from anthropics/fix/sg-blank-base-urlMohamed Hegazy
security-guidance: treat a blank ANTHROPIC_BASE_URL as unset
2026-11-05Merge pull request #6918 from anthropics/mhegazy/sg-launcher-alias-real-pathMohamed Hegazy
security-guidance: stop starting the packaged Python alias on every hook
2026-11-05Merge pull request #6999 from anthropics/mhegazy/sg-windows-cli-pathMohamed Hegazy
security-guidance: on Windows, name the CLI for the Agent SDK by its full path
2026-11-05Merge pull request #7001 from anthropics/mhegazy/sg-state-dir-owner-onlyMohamed Hegazy
security-guidance: keep the state folder to its user
2026-11-05Merge pull request #7002 from anthropics/mhegazy/sg-git-log-signature-offMohamed Hegazy
security-guidance: read git log output without signature checks
2026-11-05Merge pull request #7003 from anthropics/mhegazy/sg-project-config-filesMohamed Hegazy
security-guidance: read project config files only as real files
2026-11-05security-guidance: keep the native install in sessions started above the ↵mhegazy/sg-windows-cli-pathMohamed Hegazy
home folder Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-04security-guidance: make the git stand-in in the add failure tests work on ↵mhegazy/sg-add-failure-fixMohamed Hegazy
Windows Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-04security-guidance: name new files the Stop review could not seeMohamed Hegazy
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>
2026-11-04security-guidance: run the empty-name test as off Windows on every systemMohamed Hegazy
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-04security-guidance: end a commit or push review's single-shot review at the ↵mhegazy/sg-agentic-stop-on-authMohamed Hegazy
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>
2026-11-04security-guidance: drop every gitlink from the index copyMohamed Hegazy
Whether git starts something in a gitlink's directory is decided when git runs, so the check for a .git there beforehand can go stale. Remove all of them from the copy. On git older than 2.34 the baseline for a submodule that is not checked out falls back to HEAD. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-04security-guidance: start git by its full path on Windowsmhegazy/sg-git-program-from-pathMohamed Hegazy
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>
2026-11-04security-guidance: keep the state folder to its usermhegazy/sg-state-dir-owner-onlyMohamed Hegazy
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>
2026-11-04security-guidance: read project config files only as real filesmhegazy/sg-project-config-filesMohamed Hegazy
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>
2026-11-04security-guidance: run the shell pattern test with a working bashmhegazy/sg-count-unmatched-bash-startsClaude
On Windows the bash on PATH can be the WSL launcher. Use the bash shipped with git there, and skip when no bash answers.
2026-11-04security-guidance: test the reparse metric's folder walk with an absolute ↵mhegazy
path on Windows Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-04security-guidance: on Windows, name the CLI for the Agent SDK by its full pathMohamed Hegazy
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>
2026-11-04security-guidance: read git log output without signature checksmhegazy/sg-git-log-signature-offMohamed Hegazy
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>
2026-11-04security-guidance: count Bash hook starts that match no commit or pushClaude
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.
2026-11-04security-guidance: clear net_err when a review gets throughMohamed Hegazy
A failed first probe, a lost race fallback or a failed dual leg left its class (and api_error) on the row of a review that got a verdict.
2026-11-04security-guidance: count a push review's wait against the hook's time limitMohamed Hegazy
2026-11-03security-guidance: pause for an hour after an SDK install times outMohamed Hegazy
A pip install that runs out of time (a connection too slow to fetch the SDK wheel inside the 120s limit) was retried at every SessionStart and every 5 minutes from the tool hooks, downloading most of the wheel each time. A pip timeout now starts a one-hour cooldown, in the venv build and in the --target fallback. A timeout while creating the venv does not. The skipped runs report the existing SKIP_COOLDOWN outcome, with sdk_timeout_cooldown set so they can be told from signal-kill cooldowns. Refs #6979
2026-11-03security-guidance: keep pip's downloads out of the system temp dirMohamed Hegazy
pip keeps each wheel it downloads in a pip-unpack-* folder under the temp dir and removes it only on a normal exit. The SDK bootstrap kills pip at its 120s timeout, so on a slow connection every attempt left its download in the system temp dir, and attempts repeat while the SDK is missing. Both pip installs (venv and --target fallback) now run with a temp folder of their own under the plugin's state dir. It is removed when the attempt ends, however it ends. A folder left by a bootstrap that was itself killed is removed by a later bootstrap run. Refs #6979
2026-10-31security-guidance: stop the commit reviewer on refused credentials, end hung ↵Mohamed Hegazy
reviews in time