<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks/llm.py, branch bump/snowflake-cortex-code</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: 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>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>
<entry>
<title>Merge pull request #6593 from anthropics/mhegazy/sg-reviewer-context-telemetry</title>
<updated>2026-10-15T22:33:06+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-15T22:33:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=01a70b506ec923118744bccf0b78a30de716a7ad'/>
<id>01a70b506ec923118744bccf0b78a30de716a7ad</id>
<content type='text'>
security-guidance: report commit reviewer context in review telemetry</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: report commit reviewer context in review telemetry</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: report commit reviewer context in review telemetry</title>
<updated>2026-10-15T21:57:22+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-13T21:39:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=b0dcb447d8989a6eaefc79df9b83f5b2811cff75'/>
<id>b0dcb447d8989a6eaefc79df9b83f5b2811cff75</id>
<content type='text'>
Count-only keys on agentic review rows: Read/Grep/Glob calls made, how
many came back as errors, and whether the reviewer's directory was
missing before or during the review. Appended last in the row so they
never displace an existing key.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Count-only keys on agentic review rows: Read/Grep/Glob calls made, how
many came back as errors, and whether the reviewer's directory was
missing before or during the review. Appended last in the row so they
never displace an existing key.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: give the commit reviewer only read tools</title>
<updated>2026-10-15T21:31:03+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-15T21:31:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=6788ec2df38bbbe81a86f8fca51b0ebb7bf0e558'/>
<id>6788ec2df38bbbe81a86f8fca51b0ebb7bf0e558</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: report gateway routing and inner CLI stderr in review telemetry</title>
<updated>2026-10-14T12:12:30+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-14T12:12:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=c45209fd0c089108e0468ed282bd4dc0dae361a4'/>
<id>c45209fd0c089108e0468ed282bd4dc0dae361a4</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
