summaryrefslogtreecommitdiff
path: root/plugins/security-guidance/hooks/reporesolve.py
AgeCommit message (Collapse)Author
2026-11-19security-guidance: skip other repositories whose settings change what git runsmhegazy/sg-other-repo-settingsClaude
The hooks run git in the session's repository and in those the session moves to. A repository other than the session's own is now skipped when its own config has settings that change what git runs. An index copy made in another repository holds only the entries for files. Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-10Read more PowerShell command shapesClaude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-11-10Review commits and pushes made through the PowerShell toolClaude
Co-authored-by: mhegazy <mhegazy@anthropic.com>
2026-09-09Adjust SubagentStop handling and repository precedenceOctavian Guzu
- SubagentStop reviews without consuming or advancing the session's Stop state; an identical diff is not reviewed twice. - SubagentStop from a different working tree than the project is skipped. - An explicit `git -C <dir>` / `cd <dir>` naming another repository takes precedence over the hook cwd. - Narrows the `git -C … commit` matcher; keeps Windows path separators when tokenizing; adds `--no-textconv` to diff/show invocations. - Adds tests. :house: Remote-Dev: homespace
2026-09-09security-guidance: resolve repository from command and edited paths (2.0.7 ↵Octavian Guzu
→ 2.0.8) - Adds repository resolution from `git -C <dir>` / `cd <dir>` in the hook command, from the commit SHA, and from edited file paths when the hook cwd is not a git repository. - Adds PostToolUse matchers for `git -C … commit|push`. - Registers SubagentStop. - Adds `repo_resolution` / `cwd_is_repo` metric fields. - Adds tests. :house: Remote-Dev: homespace