<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_reviewer_tools.py, branch bump/cloud-sql-sqlserver</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 branch 'main' into mhegazy/sg-review-sessions-not-saved</title>
<updated>2026-10-20T22:50:00+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-20T22:50:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=5f02b91798e60899a798dd55517b01860b9d47c3'/>
<id>5f02b91798e60899a798dd55517b01860b9d47c3</id>
<content type='text'>
The inner CLI retry on main (a start refused over --strict-mcp-config) now also covers a CLI that does not know --no-session-persistence, so one helper handles either refused flag, or both on the same start.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The inner CLI retry on main (a start refused over --strict-mcp-config) now also covers a CLI that does not know --no-session-persistence, so one helper handles either refused flag, or both on the same start.
</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 save review runs as session transcripts</title>
<updated>2026-10-19T16:29:37+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-15T22:04:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=cb1743691acefa86ca04fb567260f984a6dddf77'/>
<id>cb1743691acefa86ca04fb567260f984a6dddf77</id>
<content type='text'>
The agentic commit reviewer and reviews on 3rd-party providers run an
inner Claude Code through the Agent SDK, which saved each run as a
session transcript holding the review prompt and diff. Start it with
--no-session-persistence; SECURITY_GUIDANCE_PERSIST_SESSIONS=1 keeps the
transcripts. An inner CLI that predates the flag is run again without it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The agentic commit reviewer and reviews on 3rd-party providers run an
inner Claude Code through the Agent SDK, which saved each run as a
session transcript holding the review prompt and diff. Start it with
--no-session-persistence; SECURITY_GUIDANCE_PERSIST_SESSIONS=1 keeps the
transcripts. An inner CLI that predates the flag is run again without it.
</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>
</feed>
