summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-10-15security-guidance: give the commit reviewer only read toolsmhegazy/sg-reviewer-read-only-toolsMohamed Hegazy
allowed_tools only pre-approves tools, so the inner Claude Code that runs a review was still offered the shell, file edits, web access and subagents. Pass the exact tool list instead: Read, Grep and Glob for the commit reviewer, none for the single-turn review.
2026-10-15security-guidance: recognize more git global options before commit and pushmhegazy/sg-git-valueless-global-optionsMohamed Hegazy
A commit or push written with a flag that takes no value (git --no-pager commit), a partly quoted option value (git -c user.name="A B" commit) or --namespace / --config-env / --attr-source with a separate value was not recognized by the hook, so it was not reviewed. Commit and push detection now share one global-option pattern that covers these.
2026-10-15security-guidance: print one JSON document from the SessionStart hook on ↵mhegazy/sg-portable-session-startMohamed Hegazy
other hosts On a host other than Claude Code the SessionStart hook printed an async declaration line and then a metrics line. A host that reads hook output as one JSON document with a closed schema rejects that. In portable mode the hook now skips the async line and prints one object with only the standard fields. The portable-mode helpers move to _base.py so both hook scripts share them, and the mode is decided once at start-up. Output under Claude Code is unchanged.
2026-10-15security-guidance: skip the untracked-file listing when the Stop review is offMohamed Hegazy
UserPromptSubmit listed every untracked file in the worktree and stored the result in the session state on each prompt, for a snapshot that only the Stop review reads. With ENABLE_STOP_REVIEW=0 or ENABLE_CODE_SECURITY_REVIEW=0 the Stop hook skips before reading it, so the listing is now skipped too. The stash baseline is still captured for the Write pattern filter. When the review is switched back on, the next prompt takes a fresh snapshot, including after an interrupted turn whose baseline is kept. Refs #6612
2026-10-15security-guidance: find user-level policy files under CLAUDE_CONFIG_DIRMohamed Hegazy
claude-security-guidance.md and security-patterns files were only looked for in ~/.claude, so they were never loaded on installs that keep their config elsewhere. The directory CLAUDE_CONFIG_DIR names is now read as well; ~/.claude is still read, so files already placed there keep working. Fixes #4826
2026-10-15Merge pull request #6433 from anthropics/bump/carta-investorsDen
bump(carta-investors): 6ab81016 → ea7fe1d4
2026-10-15Merge pull request #6432 from anthropics/bump/carta-crmDen
bump(carta-crm): 43e49ed3 → ea7fe1d4
2026-10-15Merge pull request #6431 from anthropics/bump/carta-cap-tableDen
bump(carta-cap-table): 43e49ed3 → ea7fe1d4
2026-10-15Merge pull request #6598 from anthropics/bump/postmanDen
bump(postman): 0128d247 → c6352ef5
2026-10-15Merge pull request #6613 from anthropics/bump/figmajordanecker-ant
bump(figma): f0493295 → f2789420
2026-10-15bump(figma): f0493295 → f2789420github-actions[bot]
2026-10-14bump(incident-io): c8e50a4a → 6af50e2e (#6602)github-actions[bot]
2026-10-14security-guidance: keep the session state when a save is cut shortMohamed Hegazy
The state file was rewritten in place, so a hook killed during a save left a truncated file that the next hook read as an empty state: the turn baseline, the touched paths and the shown warnings were gone. Write a temporary file and rename it over the state file. Windows keeps writing in place for now: hooks have no state lock there, and a rename can be refused or make a concurrent read fail. A state file that cannot be decoded no longer stops the hook. The Stop metrics gain two keys, sent only when nonzero: state_resets (the state file was unreadable and the state started over) and state_overwrites (without a lock, a save replaced one made by another hook since the read). Refs #1944
2026-10-14Merge remote-tracking branch 'origin/main' into mhegazy/sg-portable-hook-outputMohamed Hegazy
# Conflicts: # plugins/security-guidance/hooks/security_reminder_hook.py
2026-10-14Merge pull request #6536 from anthropics/mhegazy/sg-review-telemetryOctavian Guzu
security-guidance: report gateway routing and inner CLI stderr in review telemetry
2026-10-14security-guidance: report gateway routing and inner CLI stderr in review ↵mhegazy/sg-review-telemetryMohamed Hegazy
telemetry Review rows gain two diagnostic keys, appended last so they never displace an existing key: - gateway_cfg: 1 when ANTHROPIC_BASE_URL names a host other than api.anthropic.com, 2 when ANTHROPIC_CUSTOM_HEADERS lines are sent, 3 for both. A number only: no host, header name or value. - child_stderr: lines the inner CLI wrote to stderr during a commit or push review.
2026-10-14security-guidance: leave Claude Code only fields out of hook output on other ↵Mohamed Hegazy
hosts The hooks print metrics and rewakeSummary in their JSON output. A host that validates hook output against a closed schema rejects the whole line, so every Stop and PostToolUse shows a hook error there. When the host passes PLUGIN_ROOT and does not identify itself as Claude Code, print only the standard fields. Blocking findings and guidance are kept. SECURITY_GUIDANCE_PORTABLE_OUTPUT=1/0 forces it either way. Output under Claude Code is unchanged.
2026-10-14security-guidance: say when the LLM reviews can't runMohamed Hegazy
With no credentials in the hook's environment every Stop, commit and push review is skipped, and nothing told the user. That is the state of a signed-in session started with CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, DISABLE_TELEMETRY or DO_NOT_TRACK set, where Claude Code does not pass the sign-in to plugin hooks. Show a notice on an edit in a git repo, at most once a week, naming the setting when one is set. Document where the reviews get credentials, and report no_creds on the skipped reviews.
2026-10-14Merge pull request #6542 from anthropics/mhegazy/sg-diff-parsingMohamed Hegazy
security-guidance: parse diff sections by header line
2026-10-14bump(postman): 0128d247 → c6352ef5github-actions[bot]
2026-10-13Merge pull request #6515 from anthropics/bump/postmanDen
bump(postman): 67cff8f3 → 0128d247
2026-10-13security-guidance: start fewer hook processes per Bash callClaude
Claude Code runs every `if`-filtered hook entry when it cannot parse a Bash command, so the seven commit/push entries started seven processes on those calls. Use three entries (git commit, git push, gt) and let the hook's own regex decide what is a commit or a push.
2026-10-13security-guidance: keep the Stop review working when the changed paths do ↵Mohamed Hegazy
not fit one command The Stop review passed every changed path to `git diff` as arguments. With enough of them (an unignored cache, a repo at $HOME) the OS refused to start git, the diff failed twice, and the turn's real edits were never reviewed. When the OS refuses the argument list, keep only the paths the review can use (reviewable source files) and send them in a few commands under the same time limit. A path list that fits one command is handled exactly as before. Skip review sets of more than 100,000 paths before any diff. Fixes #4824
2026-10-13security-guidance: read diffs the same whatever the user's prefix settingsMohamed Hegazy
With diff.mnemonicPrefix or diff.noprefix set in the user's git config, diff headers no longer read `a/<path> b/<path>`, the parser matched no file, and the review was skipped with nothing shown. mnemonicPrefix switched off the Stop review; noprefix switched off the commit and push reviews as well. Pass the default prefix settings on every git call the hook makes. Fixes #4569
2026-10-13security-guidance: deliver commit and push findings on stderr (#6379)Mohamed Hegazy
Commit and push findings went only into hookSpecificOutput.additionalContext, which Claude Code's asyncRewake path never reads: it shows Claude stderr, or stdout when stderr is empty. When the agentic reviewer's inner CLI printed a warning to stderr, Claude got that warning instead of the findings (anthropics/claude-code#99839, also anthropics/claude-code#92987). Findings now go to stderr for every event, as the Stop path already did. The inner CLI's stderr and the Agent SDK's own log lines go to the plugin's debug log.
2026-10-13Merge pull request #6378 from anthropics/mhegazy/sg-gateway-headersMohamed Hegazy
security-guidance: send ANTHROPIC_CUSTOM_HEADERS on the plugin's own API calls
2026-10-13Merge pull request #6375 from anthropics/mhegazy/sg-review-failuresMohamed Hegazy
security-guidance: never report a failed review as clean
2026-10-13bump(stripe): 97b21648 → deae744bgithub-actions[bot]
2026-10-13bump(shopify-ai-toolkit): 57e293be → 26d0623fgithub-actions[bot]
2026-10-12security-guidance: count diff headers the parser could not readmhegazy/sg-diff-parsingMohamed Hegazy
A file whose header cannot be parsed is left out of the review without a trace. The Stop hook now reports diff_hdr_unparsed (a count, only when nonzero) so a header shape the parser misses shows up in metrics.
2026-10-12security-guidance: parse diff sections by header lineMohamed Hegazy
The diff parser split on the text 'diff --git ' anywhere, so a file whose own content contains it was cut short, and the rest of that file was never reviewed. It also dropped files whose names git quotes (a double quote, backslash or control character in the name). Split only where a line starts with the header, and decode quoted names.
2026-10-12security-guidance: bump version to 2.0.14mhegazy/sg-bump-2.0.12Mohamed Hegazy
2026-10-12bump(postman): 67cff8f3 → 0128d247github-actions[bot]
2026-10-11bump(carta-investors): 6ab81016 → ea7fe1d4github-actions[bot]
2026-10-11bump(carta-crm): 43e49ed3 → ea7fe1d4github-actions[bot]
2026-10-11bump(carta-cap-table): 43e49ed3 → ea7fe1d4github-actions[bot]
2026-10-10Merge pull request #6408 from anthropics/mhegazy/data-agent-kit-renameDen
data-agent-kit: rename, repoint to GoogleCloudPlatform, bump to 1.0.0
2026-10-10Merge pull request #6400 from anthropics/oct/sg-2.0.13Octavian Guzu
security-guidance: bump to 2.0.13
2026-10-10data-agent-kit: rename, repoint to GoogleCloudPlatform, bump to 1.0.0mhegazy/data-agent-kit-renameMohamed Hegazy
Google renamed the plugin's repository and moved it from gemini-cli-extensions/data-agent-kit-starter-pack to GoogleCloudPlatform/data-agent-kit-plugin, and released 1.0.0. Rename the entry to data-agent-kit and add a renames entry so installs under the old name follow it. Point the source at the new repository, pin the 1.0.0 release commit, and use the product page as the homepage.
2026-10-09bump(snowflake-cortex-code): 0c54225e → e2a3cbb4 (#6389)jordanecker-ant
2026-10-09bump(crowdstrike-falcon-foundry, crowdstrike-falcon-fusion): v1.6.0, v1.3.0 ↵jordanecker-ant
(#6388)
2026-10-09bump(posthog): 469d1773 → e0fbf5e7 (#6387)jordanecker-ant
2026-10-09bump(qodo, qodo-standards): 7dd3e7ec → 866d301d (#6386)jordanecker-ant
2026-10-09bump(fullstory): b20614e2 → ca872d97 (#6384)jordanecker-ant
2026-10-09bump(slack): 80443417 → b073ebc2 (#6383)jordanecker-ant
2026-10-09hostinger: update description (#6401)jordanecker-ant
2026-10-09bump(carta-cap-table, carta-crm): 6ab81016 → 43e49ed3 (#6385)jordanecker-ant
Squash merge of 1 commit
2026-10-09security-guidance: never report a failed review as cleanmhegazy/sg-review-failuresMohamed Hegazy
When a commit review got no verdict (an API error, an unexpected error in the call, or a reply that could not be read) it was logged as "no security issues found" and the commit was marked reviewed, so the push review skipped it (anthropics/claude-code#99840, also anthropics/claude-code#81057). - A commit whose review got no verdict is not marked reviewed, so a later push review from Claude Code still checks it, unless the same command pushed it. A failed push review does not mark its range either. - Claude is told once per session for each kind of review and failure. Later failures of the same kind are only logged. - In the agentic race, a single-shot fallback with no verdict no longer wins while the agentic review can still answer, the fallback no longer starts after the agentic review has answered, and it never runs twice. - The Stop and SubagentStop reviews use the same signal, so an unreadable reply no longer records a subagent's diff as reviewed.
2026-10-09security-guidance: send ANTHROPIC_CUSTOM_HEADERS on the plugin's own API callsmhegazy/sg-gateway-headersMohamed Hegazy
The plugin's own API calls (the /v1/models lookup and the review itself) never sent ANTHROPIC_CUSTOM_HEADERS, so a gateway that takes its key in a custom header answered 401 and reviews never ran (anthropics/claude-code#99857). The headers are now parsed the way Claude Code parses them (one `Name: Value` per line, split at the first colon) and sent on every call. A custom line replaces a header of the same name. anthropic-beta lines are not forwarded: the review needs none of the user's betas.
2026-10-09security-guidance: bump to 2.0.13oct/sg-2.0.13Octavian Guzu