<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks, branch mhegazy/sg-powershell-commit-count</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: count commits and pushes made through the PowerShell tool</title>
<updated>2026-11-05T18:38:27+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-05T18:38:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=d9d6630d3de0491fb042d0fcea2d3a8c04b5fcd8'/>
<id>d9d6630d3de0491fb042d0fcea2d3a8c04b5fcd8</id>
<content type='text'>
Measurement only. Commit and push reviews run for the Bash tool; a commit
or push made through the PowerShell tool starts no hook. Two background
hook entries now report that one happened. Nothing is reviewed and nothing
of the command or its output is kept.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Measurement only. Commit and push reviews run for the Bash tool; a commit
or push made through the PowerShell tool starts no hook. Two background
hook entries now report that one happened. Nothing is reviewed and nothing
of the command or its output is kept.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: count Bash hook starts that match no commit or push</title>
<updated>2026-11-04T19:22:04+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-11-04T19:22:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=18b39784432502087fefa2afe459ed23b56e9dd9'/>
<id>18b39784432502087fefa2afe459ed23b56e9dd9</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6875 from anthropics/mhegazy/sg-inflight-windows-lock</title>
<updated>2026-10-27T00:22:48+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-27T00:22:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=bb06f2e9bcd41a4ba0c1f96daa63f1b5a335bc46'/>
<id>bb06f2e9bcd41a4ba0c1f96daa63f1b5a335bc46</id>
<content type='text'>
security-guidance: hold in-flight review markers on native Windows too</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: hold in-flight review markers on native Windows too</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/main' into HEAD</title>
<updated>2026-10-26T23:13:53+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-26T23:13:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=a3c2f20c0f46e3b0a76ef6e69fcc13c6faca763a'/>
<id>a3c2f20c0f46e3b0a76ef6e69fcc13c6faca763a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/main' into HEAD</title>
<updated>2026-10-26T23:07:49+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-26T23:07:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=f4174b901f6c4579186587b63e7658946f18b644'/>
<id>f4174b901f6c4579186587b63e7658946f18b644</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6861 from anthropics/mhegazy/sg-add-fail-metric</title>
<updated>2026-10-26T23:07:36+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-26T23:07:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=1da406f428c285c701a1033a3aef368a9ab865dc'/>
<id>1da406f428c285c701a1033a3aef368a9ab865dc</id>
<content type='text'>
security-guidance: count failed git add -N calls in the Stop review</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: count failed git add -N calls in the Stop review</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6839 from anthropics/mhegazy/sg-network-failure-class</title>
<updated>2026-10-26T23:03:33+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-26T23:03:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=e180b805636c45c0ed70d31716c56706e669b295'/>
<id>e180b805636c45c0ed70d31716c56706e669b295</id>
<content type='text'>
security-guidance: report why a review call got no HTTP response</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: report why a review call got no HTTP response</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6836 from anthropics/mhegazy/sg-diff-seen-count</title>
<updated>2026-10-26T23:02:51+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-26T23:02:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=ced0aa953bf0689e48308de3405bf276421dce63'/>
<id>ced0aa953bf0689e48308de3405bf276421dce63</id>
<content type='text'>
security-guidance: count reviews of a diff that was already reviewed</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: count reviews of a diff that was already reviewed</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: report how many turns and how much model time a commit review took</title>
<updated>2026-10-26T20:18:49+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-26T20:18:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=23be88c2900bfbfc845e31d7cd58a5e8af57035e'/>
<id>23be88c2900bfbfc845e31d7cd58a5e8af57035e</id>
<content type='text'>
review_ms says how long an agentic commit review took but not why. Add one
count-only key, rv_effort, on rows where the agentic reviewer ran: the turns
it took and the time it spent waiting on the model, summed over all stages
and packed as turns * 10,000,000 + model ms. It is emitted after every other
key, so it never displaces one at the metric key cap.

No behaviour change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
review_ms says how long an agentic commit review took but not why. Add one
count-only key, rv_effort, on rows where the agentic reviewer ran: the turns
it took and the time it spent waiting on the model, summed over all stages
and packed as turns * 10,000,000 + model ms. It is emitted after every other
key, so it never displaces one at the metric key cap.

No behaviour change.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: hold in-flight review markers on native Windows too</title>
<updated>2026-10-23T11:31:29+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-23T11:31:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=51b34378d6c2efb5897120c322438e17763854fc'/>
<id>51b34378d6c2efb5897120c322438e17763854fc</id>
<content type='text'>
A commit or push review marks the commits it is reviewing by holding a
lock on .git/sg-inflight-&lt;sha&gt;, so a push made meanwhile waits for that
review instead of reviewing the same commit again. The lock was flock
only. Native Windows Python has no fcntl, so there were no markers there
and a push right after a commit still ran a second full review.

On Windows the same shared/exclusive, never-waiting lock is now taken
with LockFileEx, on a byte far past the end of the empty marker so that
reading or copying the file is never refused. Windows will not delete an
open file, so a marker is closed before it is deleted there, with a short
retry while another review has it open; what cannot be deleted is left
unlocked and swept once old, as before.

Also: one marker that cannot be opened, or whose last holder deletes it
between this review's open and lock, no longer costs the review its
claim on the remaining commits.

The in-flight tests no longer require fcntl, so they run on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A commit or push review marks the commits it is reviewing by holding a
lock on .git/sg-inflight-&lt;sha&gt;, so a push made meanwhile waits for that
review instead of reviewing the same commit again. The lock was flock
only. Native Windows Python has no fcntl, so there were no markers there
and a push right after a commit still ran a second full review.

On Windows the same shared/exclusive, never-waiting lock is now taken
with LockFileEx, on a byte far past the end of the empty marker so that
reading or copying the file is never refused. Windows will not delete an
open file, so a marker is closed before it is deleted there, with a short
retry while another review has it open; what cannot be deleted is left
unlocked and swept once old, as before.

Also: one marker that cannot be opened, or whose last holder deletes it
between this review's open and lock, no longer costs the review its
claim on the remaining commits.

The in-flight tests no longer require fcntl, so they run on Windows.
</pre>
</div>
</content>
</entry>
</feed>
