<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/README.md, branch bump/azure-sql-developer</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 pull request #6589 from anthropics/mhegazy/sg-review-cost-log</title>
<updated>2026-10-15T22:41:17+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-15T22:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=4db747859e151db177af7ed7cd8b5a20c5995ca2'/>
<id>4db747859e151db177af7ed7cd8b5a20c5995ca2</id>
<content type='text'>
security-guidance: log each review's token use and estimated cost</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: log each review's token use and estimated cost</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: log each review's token use and estimated cost</title>
<updated>2026-10-15T22:40:35+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-13T20:52:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=48805c9f91eb029cb49286cad82dde3381ef7e3c'/>
<id>48805c9f91eb029cb49286cad82dde3381ef7e3c</id>
<content type='text'>
The plugin computed a review's usage but kept it only in its metrics.
Each review now writes one line to the plugin's debug log with the kind
of review, the Claude Code session, model, tokens and estimated cost.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The plugin computed a review's usage but kept it only in its metrics.
Each review now writes one line to the plugin's debug log with the kind
of review, the Claude Code session, model, tokens and estimated cost.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6616 from anthropics/mhegazy/sg-user-config-dir</title>
<updated>2026-10-15T22:27:56+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-15T22:27:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=eef82ceabb1758658b2f38249129328bf96f62ef'/>
<id>eef82ceabb1758658b2f38249129328bf96f62ef</id>
<content type='text'>
security-guidance: find user-level policy files under CLAUDE_CONFIG_DIR</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: find user-level policy files under CLAUDE_CONFIG_DIR</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: print one JSON document from the SessionStart hook on other hosts</title>
<updated>2026-10-15T16:31:46+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-15T16:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=ced6733eee6aa246e2af55ce0c71e38c01a50141'/>
<id>ced6733eee6aa246e2af55ce0c71e38c01a50141</id>
<content type='text'>
On a host other than Claude Code the SessionStart hook printed an async
declaration line and then a metrics line. A host that reads hook output as
one JSON document with a closed schema rejects that.

In portable mode the hook now skips the async line and prints one object
with only the standard fields. The portable-mode helpers move to _base.py so
both hook scripts share them, and the mode is decided once at start-up.
Output under Claude Code is unchanged.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On a host other than Claude Code the SessionStart hook printed an async
declaration line and then a metrics line. A host that reads hook output as
one JSON document with a closed schema rejects that.

In portable mode the hook now skips the async line and prints one object
with only the standard fields. The portable-mode helpers move to _base.py so
both hook scripts share them, and the mode is decided once at start-up.
Output under Claude Code is unchanged.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: find user-level policy files under CLAUDE_CONFIG_DIR</title>
<updated>2026-10-15T16:24:59+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-15T16:24:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=e7b34dd08a55872f3ae45af477993bda1fda764d'/>
<id>e7b34dd08a55872f3ae45af477993bda1fda764d</id>
<content type='text'>
claude-security-guidance.md and security-patterns files were only looked
for in ~/.claude, so they were never loaded on installs that keep their
config elsewhere. The directory CLAUDE_CONFIG_DIR names is now read as
well; ~/.claude is still read, so files already placed there keep working.

Fixes #4826
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
claude-security-guidance.md and security-patterns files were only looked
for in ~/.claude, so they were never loaded on installs that keep their
config elsewhere. The directory CLAUDE_CONFIG_DIR names is now read as
well; ~/.claude is still read, so files already placed there keep working.

Fixes #4826
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/main' into mhegazy/sg-portable-hook-output</title>
<updated>2026-10-14T12:18:32+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-14T12:18:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=d876712c3801b10bb1258da9b8f71fa7b41320e4'/>
<id>d876712c3801b10bb1258da9b8f71fa7b41320e4</id>
<content type='text'>
# Conflicts:
#	plugins/security-guidance/hooks/security_reminder_hook.py
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
# Conflicts:
#	plugins/security-guidance/hooks/security_reminder_hook.py
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: leave Claude Code only fields out of hook output on other hosts</title>
<updated>2026-10-14T12:12:19+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-12T18:49:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=26eea79bd04d30a6b38f3a4c89f4596c44a91128'/>
<id>26eea79bd04d30a6b38f3a4c89f4596c44a91128</id>
<content type='text'>
The hooks print metrics and rewakeSummary in their JSON output. A host that validates hook output against a closed schema rejects the whole line, so every Stop and PostToolUse shows a hook error there.

When the host passes PLUGIN_ROOT and does not identify itself as Claude Code, print only the standard fields. Blocking findings and guidance are kept. SECURITY_GUIDANCE_PORTABLE_OUTPUT=1/0 forces it either way. Output under Claude Code is unchanged.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The hooks print metrics and rewakeSummary in their JSON output. A host that validates hook output against a closed schema rejects the whole line, so every Stop and PostToolUse shows a hook error there.

When the host passes PLUGIN_ROOT and does not identify itself as Claude Code, print only the standard fields. Blocking findings and guidance are kept. SECURITY_GUIDANCE_PORTABLE_OUTPUT=1/0 forces it either way. Output under Claude Code is unchanged.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: deliver commit and push findings on stderr (#6379)</title>
<updated>2026-10-13T20:46:31+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-13T20:46:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=8d392c8169665866be1d95f2bfeda5aaae7149dd'/>
<id>8d392c8169665866be1d95f2bfeda5aaae7149dd</id>
<content type='text'>
Commit and push findings went only into
hookSpecificOutput.additionalContext, which Claude Code's asyncRewake path
never reads: it shows Claude stderr, or stdout when stderr is empty. When
the agentic reviewer's inner CLI printed a warning to stderr, Claude got
that warning instead of the findings (anthropics/claude-code#99839, also
anthropics/claude-code#92987).

Findings now go to stderr for every event, as the Stop path already did.
The inner CLI's stderr and the Agent SDK's own log lines go to the
plugin's debug log.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit and push findings went only into
hookSpecificOutput.additionalContext, which Claude Code's asyncRewake path
never reads: it shows Claude stderr, or stdout when stderr is empty. When
the agentic reviewer's inner CLI printed a warning to stderr, Claude got
that warning instead of the findings (anthropics/claude-code#99839, also
anthropics/claude-code#92987).

Findings now go to stderr for every event, as the Stop path already did.
The inner CLI's stderr and the Agent SDK's own log lines go to the
plugin's debug log.</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6378 from anthropics/mhegazy/sg-gateway-headers</title>
<updated>2026-10-13T20:44:50+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-13T20:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=99951e9e4678548f90531dfc80be2e95e4618ff0'/>
<id>99951e9e4678548f90531dfc80be2e95e4618ff0</id>
<content type='text'>
security-guidance: send ANTHROPIC_CUSTOM_HEADERS on the plugin's own API calls</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: send ANTHROPIC_CUSTOM_HEADERS on the plugin's own API calls</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: never report a failed review as clean</title>
<updated>2026-10-09T16:04:18+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-08T01:00:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=3057edc902d79b2ddedd4043c566b0b6dceb4ca3'/>
<id>3057edc902d79b2ddedd4043c566b0b6dceb4ca3</id>
<content type='text'>
When a commit review got no verdict (an API error, an unexpected error in
the call, or a reply that could not be read) it was logged as "no security
issues found" and the commit was marked reviewed, so the push review
skipped it (anthropics/claude-code#99840, also anthropics/claude-code#81057).

- A commit whose review got no verdict is not marked reviewed, so a later
  push review from Claude Code still checks it, unless the same command
  pushed it. A failed push review does not mark its range either.
- Claude is told once per session for each kind of review and failure.
  Later failures of the same kind are only logged.
- In the agentic race, a single-shot fallback with no verdict no longer
  wins while the agentic review can still answer, the fallback no longer
  starts after the agentic review has answered, and it never runs twice.
- The Stop and SubagentStop reviews use the same signal, so an unreadable
  reply no longer records a subagent's diff as reviewed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a commit review got no verdict (an API error, an unexpected error in
the call, or a reply that could not be read) it was logged as "no security
issues found" and the commit was marked reviewed, so the push review
skipped it (anthropics/claude-code#99840, also anthropics/claude-code#81057).

- A commit whose review got no verdict is not marked reviewed, so a later
  push review from Claude Code still checks it, unless the same command
  pushed it. A failed push review does not mark its range either.
- Claude is told once per session for each kind of review and failure.
  Later failures of the same kind are only logged.
- In the agentic race, a single-shot fallback with no verdict no longer
  wins while the agentic review can still answer, the fallback no longer
  starts after the agentic review has answered, and it never runs twice.
- The Stop and SubagentStop reviews use the same signal, so an unreadable
  reply no longer records a subagent's diff as reviewed.
</pre>
</div>
</content>
</entry>
</feed>
