<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_repo_resolution.py, branch bump/stackhawk-api</title>
<subtitle>Official Claude Code plugin directory
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/'/>
<entry>
<title>security-guidance: recognize more git global options before commit and push</title>
<updated>2026-10-15T16:36:32+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-15T16:36:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=4aa979897a448b5f298ec7b183503daadd0c3783'/>
<id>4aa979897a448b5f298ec7b183503daadd0c3783</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: start fewer hook processes per Bash call</title>
<updated>2026-10-13T21:01:00+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-13T21:01:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=49a4d974b935e20dc2b9a49a26ab175d37a01aa7'/>
<id>49a4d974b935e20dc2b9a49a26ab175d37a01aa7</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: stop reviewing on every subagent finish</title>
<updated>2026-10-09T10:25:25+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-08T22:46:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=3752f0e092cb0fec08e68f80aa4d54849423a8b0'/>
<id>3752f0e092cb0fec08e68f80aa4d54849423a8b0</id>
<content type='text'>
Each subagent finish re-reviewed the whole diff since the last prompt, so
a turn with N subagents sent N growing reviews. The end-of-turn review
already covers what subagents changed, so drop the SubagentStop
registration.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each subagent finish re-reviewed the whole diff since the last prompt, so
a turn with N subagents sent N growing reviews. The end-of-turn review
already covers what subagents changed, so drop the SubagentStop
registration.
</pre>
</div>
</content>
</entry>
<entry>
<title>Harden git invocation and repository hint handling</title>
<updated>2026-09-09T17:42:50+00:00</updated>
<author>
<name>Octavian Guzu</name>
<email>oct@anthropic.com</email>
</author>
<published>2026-09-09T17:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=debbe686ab74ec095436a499b1a59864037e46cf'/>
<id>debbe686ab74ec095436a499b1a59864037e46cf</id>
<content type='text'>
:house: Remote-Dev: homespace
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
:house: Remote-Dev: homespace
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust SubagentStop handling and repository precedence</title>
<updated>2026-09-09T16:46:55+00:00</updated>
<author>
<name>Octavian Guzu</name>
<email>oct@anthropic.com</email>
</author>
<published>2026-09-09T16:46:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=f03d41e2c96f30b7b59a05566e998e6236a943e7'/>
<id>f03d41e2c96f30b7b59a05566e998e6236a943e7</id>
<content type='text'>
- 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 &lt;dir&gt;` / `cd &lt;dir&gt;` 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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 &lt;dir&gt;` / `cd &lt;dir&gt;` 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
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: resolve repository from command and edited paths (2.0.7 → 2.0.8)</title>
<updated>2026-09-09T13:41:46+00:00</updated>
<author>
<name>Octavian Guzu</name>
<email>oct@anthropic.com</email>
</author>
<published>2026-09-09T13:41:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=0b2f3e30a9c6f6e5ed7ca72408ffb957103174ca'/>
<id>0b2f3e30a9c6f6e5ed7ca72408ffb957103174ca</id>
<content type='text'>
- Adds repository resolution from `git -C &lt;dir&gt;` / `cd &lt;dir&gt;` 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Adds repository resolution from `git -C &lt;dir&gt;` / `cd &lt;dir&gt;` 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
</pre>
</div>
</content>
</entry>
</feed>
