<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_reviewer_tools.py, branch bump/coderabbit</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: leave the output rule out when ANTHROPIC_DEFAULT_OPUS_MODEL is set</title>
<updated>2026-11-13T22:35:41+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-13T22:35:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=c2a542a213456f0b4162029a9cfcf83d0cd99fb1'/>
<id>c2a542a213456f0b4162029a9cfcf83d0cd99fb1</id>
<content type='text'>
The reviewer then runs on the model that variable names, as it does with
SG_AGENTIC_MODEL, so the rule is left out there too.

The tests clear the variables the rule depends on in their shared fixture,
check that the stages ran, and no longer look models up.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reviewer then runs on the model that variable names, as it does with
SG_AGENTIC_MODEL, so the rule is left out there too.

The tests clear the variables the rule depends on in their shared fixture,
check that the stages ran, and no longer look models up.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: tell the commit reviewer its text is not read</title>
<updated>2026-11-12T23:54:15+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-12T23:54:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=bf3dec204d794c54dcc1723c1cc37cdf3b6e4e61'/>
<id>bf3dec204d794c54dcc1723c1cc37cdf3b6e4e61</id>
<content type='text'>
The reviewer returns its findings through a tool call, and nothing reads
what it writes beside it. With only the file-reading tools it spends much
of the review writing prose before that call.

The investigate stages now get a rule that says so, kept out of the shared
prompt in review_api and left out when thinking is off or the user names
the model, where the text is the reasoning.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reviewer returns its findings through a tool call, and nothing reads
what it writes beside it. With only the file-reading tools it spends much
of the review writing prose before that call.

The investigate stages now get a rule that says so, kept out of the shared
prompt in review_api and left out when thinking is off or the user names
the model, where the text is the reasoning.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<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>
