<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks/llm.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>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>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>Merge branch 'main' into mhegazy/sg-network-failure-class</title>
<updated>2026-10-22T00:04:40+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-22T00:04:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=9b4f7dc7daf42b258e32227e8e5a1cacf5dd109c'/>
<id>9b4f7dc7daf42b258e32227e8e5a1cacf5dd109c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: reviews run when the Windows certificate store has an unreadable entry</title>
<updated>2026-10-21T16:49:26+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-21T16:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=34d31be12a184ffe44e97e6c52ad4442bdaa7007'/>
<id>34d31be12a184ffe44e97e6c52ad4442bdaa7007</id>
<content type='text'>
Older Python releases load each Windows certificate store in one call, so
one certificate OpenSSL cannot parse makes the default TLS context fail to
build and every review call fails before a request is sent.

When that happens the plugin's API calls now use a default context built
from the store entries that do parse. Verification of the chain and the
host name is unchanged. Review rows carry tls_store_skipped (a count) when
this route is in use.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Older Python releases load each Windows certificate store in one call, so
one certificate OpenSSL cannot parse makes the default TLS context fail to
build and every review call fails before a request is sent.

When that happens the plugin's API calls now use a default context built
from the store entries that do parse. Verification of the chain and the
host name is unchanged. Review rows carry tls_store_skipped (a count) when
this route is in use.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: report why a review call got no HTTP response</title>
<updated>2026-10-20T23:15:10+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-20T23:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=073448767f5ef6ea935cded3d6f712e843f5d268'/>
<id>073448767f5ef6ea935cded3d6f712e843f5d268</id>
<content type='text'>
A review call that never gets an HTTP response is reported as api_error -1
whatever the cause, so a certificate failure, a refused connection and a
timeout look the same. Rows whose last call failed that way now carry a
count-only net_err key: the failure class, the TLS verify code, and whether
CA files, a proxy or TLS variables are in play. No behaviour change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A review call that never gets an HTTP response is reported as api_error -1
whatever the cause, so a certificate failure, a refused connection and a
timeout look the same. Rows whose last call failed that way now carry a
count-only net_err key: the failure class, the TLS verify code, and whether
CA files, a proxy or TLS variables are in play. No behaviour change.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'mhegazy/sg-gateway-login' into mhegazy/sg-sdk-bootstrap-switches</title>
<updated>2026-10-20T20:35:31+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-20T20:35:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=03bab72cbdce7039f452b15417de84989858b9e0'/>
<id>03bab72cbdce7039f452b15417de84989858b9e0</id>
<content type='text'>
Resolves the overlap with the bootstrap working-directory change and the gateway sign-in route: the import probe keeps the state-dir working directory, and llm.py keeps both imports.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves the overlap with the bootstrap working-directory change and the gateway sign-in route: the import probe keeps the state-dir working directory, and llm.py keeps both imports.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: keep a turn's review when the gateway sign-in check gives no answer</title>
<updated>2026-10-19T17:05:01+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-19T17:05:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=5ffcb09d596798a7531fc8651336dff478852061'/>
<id>5ffcb09d596798a7531fc8651336dff478852061</id>
<content type='text'>
When `claude auth status` gives no usable answer, the Stop hook skipped
the review and dropped the turn's changes, so they were never reviewed
even once the check answered. They are now kept for the next Stop
review, as for other transient skips.

A gateway review that runs out of time is no longer tried again on
Sonnet: what makes it do so (a rejected sign-in, an unreachable gateway)
does not depend on the model, and the second attempt doubled the wait.
The timeout's log line now says which API statuses the CLI retried, and
includes the CLI's stderr.

The new tests no longer share one state file across sessions when run
inside a remote session.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When `claude auth status` gives no usable answer, the Stop hook skipped
the review and dropped the turn's changes, so they were never reviewed
even once the check answered. They are now kept for the next Stop
review, as for other transient skips.

A gateway review that runs out of time is no longer tried again on
Sonnet: what makes it do so (a rejected sign-in, an unreachable gateway)
does not depend on the model, and the second attempt doubled the wait.
The timeout's log line now says which API statuses the CLI retried, and
includes the CLI's stderr.

The new tests no longer share one state file across sessions when run
inside a remote session.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: review through Claude Code in a Claude apps gateway sign-in</title>
<updated>2026-10-19T17:05:01+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-19T15:37:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=e0d9e154cc7c8d545f5d78c2f51fb9c0dc655b08'/>
<id>e0d9e154cc7c8d545f5d78c2f51fb9c0dc655b08</id>
<content type='text'>
In a Claude Code session signed in to a Claude apps gateway with /login,
Claude Code gives plugin hooks no credential, so the Stop, commit, push
and agentic commit reviews were all skipped.

When the plugin has no credential of its own, it now asks the user's
installed claude (`claude auth status --json`) whether the session is
signed in to a gateway. A yes or no is kept for the session; when the CLI
gives no usable answer, the next hook asks again. If apiProvider is
"gateway" and loggedIn is true, the reviews run through that same CLI,
which restores the stored sign-in by itself, so no credential enters the
plugin. A review the CLI cannot complete counts as a failed review, never
a clean one. The reviews run even with
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC set, as they do on Bedrock and
Vertex: the gateway docs suggest setting it, and the review goes through
the gateway like the session's own requests.

The CLI is found the way the agentic reviewer already finds it:
SG_AGENTIC_CLI_PATH, CLAUDE_CODE_EXECPATH, then fixed install paths, with
no PATH search, and it must be a full path. The reviews use Claude Code's
opus and sonnet aliases, which resolve to the ids Claude Code itself uses
on a gateway, and get the 120 s a direct review gets. Review rows set bit
4 of gateway_cfg, so this route's failure rate can be read apart from
first-party reviews.

Every Claude Code the plugin starts for a review, on any provider, now
runs with SECURITY_GUIDANCE_DISABLE=1. If policy settings enable the
plugin inside that CLI, its hooks there don't start reviews of their own.

The weekly notice that the reviews are not running is no longer shown in
a session signed in to a gateway, since the reviews do run there. The
edit that would show it asks claude first, and the notice marker is
written either way, so that edit waits for claude at most once a week.
Sessions the gateway route cannot review still get the notice, unless,
in the past week, an edit's check found a session signed in to a
gateway. Their skipped reviews still report no_creds.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In a Claude Code session signed in to a Claude apps gateway with /login,
Claude Code gives plugin hooks no credential, so the Stop, commit, push
and agentic commit reviews were all skipped.

When the plugin has no credential of its own, it now asks the user's
installed claude (`claude auth status --json`) whether the session is
signed in to a gateway. A yes or no is kept for the session; when the CLI
gives no usable answer, the next hook asks again. If apiProvider is
"gateway" and loggedIn is true, the reviews run through that same CLI,
which restores the stored sign-in by itself, so no credential enters the
plugin. A review the CLI cannot complete counts as a failed review, never
a clean one. The reviews run even with
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC set, as they do on Bedrock and
Vertex: the gateway docs suggest setting it, and the review goes through
the gateway like the session's own requests.

The CLI is found the way the agentic reviewer already finds it:
SG_AGENTIC_CLI_PATH, CLAUDE_CODE_EXECPATH, then fixed install paths, with
no PATH search, and it must be a full path. The reviews use Claude Code's
opus and sonnet aliases, which resolve to the ids Claude Code itself uses
on a gateway, and get the 120 s a direct review gets. Review rows set bit
4 of gateway_cfg, so this route's failure rate can be read apart from
first-party reviews.

Every Claude Code the plugin starts for a review, on any provider, now
runs with SECURITY_GUIDANCE_DISABLE=1. If policy settings enable the
plugin inside that CLI, its hooks there don't start reviews of their own.

The weekly notice that the reviews are not running is no longer shown in
a session signed in to a gateway, since the reviews do run there. The
edit that would show it asks claude first, and the notice marker is
written either way, so that edit waits for claude at most once a week.
Sessions the gateway route cannot review still get the notice, unless,
in the past week, an edit's check found a session signed in to a
gateway. Their skipped reviews still report no_creds.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: run reviews on machines with a managed MCP config</title>
<updated>2026-10-19T16:39:54+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-19T16:39:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=0b0a62192591f8c01097c51f591bab11ec8627f0'/>
<id>0b0a62192591f8c01097c51f591bab11ec8627f0</id>
<content type='text'>
Since 2.0.14 the plugin starts the reviewing Claude Code with
--strict-mcp-config. Claude Code exits at startup with that flag on a
machine whose administrator delivers the MCP servers (managed-mcp.json),
so the agentic commit review always fell back to the single-shot review,
and reviews that only run through Claude Code (Bedrock, Vertex) failed.

When the inner CLI refuses the flag, the plugin now starts it once more
without it, and leaves it out for the rest of the hook process. Those
starts deny every MCP tool (--disallowedTools "mcp__*") instead, so the
reviewer still gets only its read tools. Review rows from such a process
carry strict_mcp_off: 1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since 2.0.14 the plugin starts the reviewing Claude Code with
--strict-mcp-config. Claude Code exits at startup with that flag on a
machine whose administrator delivers the MCP servers (managed-mcp.json),
so the agentic commit review always fell back to the single-shot review,
and reviews that only run through Claude Code (Bedrock, Vertex) failed.

When the inner CLI refuses the flag, the plugin now starts it once more
without it, and leaves it out for the rest of the hook process. Those
starts deny every MCP tool (--disallowedTools "mcp__*") instead, so the
reviewer still gets only its read tools. Review rows from such a process
carry strict_mcp_off: 1.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: do not install the agent SDK for reviews that are off</title>
<updated>2026-10-19T16:29:44+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-14T16:56:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=49484affa8f5730ec9bcfd6e25c393bc021cdd34'/>
<id>49484affa8f5730ec9bcfd6e25c393bc021cdd34</id>
<content type='text'>
The SessionStart bootstrap and its PostToolUse rescue built a venv of a few
hundred MB for the agent SDK whatever the environment said, including under
SECURITY_GUIDANCE_DISABLE=1, and the rescue started the bootstrap again
every five minutes on machines whose SDK lives in that venv (#5331).

- Nothing is installed when the environment turns off every review that
  loads the SDK: the kill switch, ENABLE_CODE_SECURITY_REVIEW=0, or
  ENABLE_STOP_REVIEW=0 with ENABLE_COMMIT_REVIEW=0. Reported as
  sdk_bootstrap 10. A disabled plugin also no longer shows the
  "reviewer unavailable" notice on a Python below 3.10.
- The rescue leaves a finished install under the state dir alone instead
  of starting the bootstrap for it every five minutes.
- New counts on the bootstrap's metrics row, set only when true and only
  when the install exists: sdk_no_creds and sdk_no_git (the session cannot
  run the reviews the install serves), sdk_venv_py (the venv was built by
  another Python version than the one running the hooks, #5706). They
  size follow-up changes; no behaviour depends on them.

With the reviews on, what is built and when is unchanged.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The SessionStart bootstrap and its PostToolUse rescue built a venv of a few
hundred MB for the agent SDK whatever the environment said, including under
SECURITY_GUIDANCE_DISABLE=1, and the rescue started the bootstrap again
every five minutes on machines whose SDK lives in that venv (#5331).

- Nothing is installed when the environment turns off every review that
  loads the SDK: the kill switch, ENABLE_CODE_SECURITY_REVIEW=0, or
  ENABLE_STOP_REVIEW=0 with ENABLE_COMMIT_REVIEW=0. Reported as
  sdk_bootstrap 10. A disabled plugin also no longer shows the
  "reviewer unavailable" notice on a Python below 3.10.
- The rescue leaves a finished install under the state dir alone instead
  of starting the bootstrap for it every five minutes.
- New counts on the bootstrap's metrics row, set only when true and only
  when the install exists: sdk_no_creds and sdk_no_git (the session cannot
  run the reviews the install serves), sdk_venv_py (the venv was built by
  another Python version than the one running the hooks, #5706). They
  size follow-up changes; no behaviour depends on them.

With the reviews on, what is built and when is unchanged.
</pre>
</div>
</content>
</entry>
</feed>
