<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks/_base.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 pull request #6997 from anthropics/mhegazy/sg-net-err-on-verdict</title>
<updated>2026-11-06T19:42:19+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-06T19:42:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=b4720bd2ea255d57666fbf3aa6fbe5a40435089e'/>
<id>b4720bd2ea255d57666fbf3aa6fbe5a40435089e</id>
<content type='text'>
security-guidance: clear net_err when a review gets through</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: clear net_err when a review gets through</pre>
</div>
</content>
</entry>
<entry>
<title>Merge main into mhegazy/sg-net-err-on-verdict</title>
<updated>2026-11-05T22:32:57+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-11-05T22:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=a7ae8adaac24a60a6ec0c030f3333d288811db45'/>
<id>a7ae8adaac24a60a6ec0c030f3333d288811db45</id>
<content type='text'>
Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge main into mhegazy/sg-interp-reparse-telemetry</title>
<updated>2026-11-05T22:30:42+00:00</updated>
<author>
<name>mhegazy</name>
<email>mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-05T22:30:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=6ba0afbdce92bdafd4b3c7323ba57328455257f4'/>
<id>6ba0afbdce92bdafd4b3c7323ba57328455257f4</id>
<content type='text'>
Both sides add a metric after the launcher probe timings on the
SessionStart row; keep launcher_direct, then interp_reparse as the last key.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both sides add a metric after the launcher probe timings on the
SessionStart row; keep launcher_direct, then interp_reparse as the last key.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6918 from anthropics/mhegazy/sg-launcher-alias-real-path</title>
<updated>2026-11-05T22:23:40+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-05T22:23:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=81a14a7f0ab55316795a8eab350393e852d47384'/>
<id>81a14a7f0ab55316795a8eab350393e852d47384</id>
<content type='text'>
security-guidance: stop starting the packaged Python alias on every hook</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: stop starting the packaged Python alias on every hook</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6999 from anthropics/mhegazy/sg-windows-cli-path</title>
<updated>2026-11-05T22:22:52+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-05T22:22:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=1135a220c92c959f3d5e55e4b14abd9d2463daa5'/>
<id>1135a220c92c959f3d5e55e4b14abd9d2463daa5</id>
<content type='text'>
security-guidance: on Windows, name the CLI for the Agent SDK by its full path</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: on Windows, name the CLI for the Agent SDK by its full path</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: keep the state folder to its user</title>
<updated>2026-11-04T20:06:22+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T19:36:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=6fe57dc38d8744937b0e01ee2bb79add5f523903'/>
<id>6fe57dc38d8744937b0e01ee2bb79add5f523903</id>
<content type='text'>
Create ~/.claude/security with mode 0700 from every place that makes it, and
narrow the default folder on the next run, so a umask such as 002 does not
leave the reviewer's venv group-writable. The in-place state write replaces a
link instead of following it, and creates a 0600 file.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create ~/.claude/security with mode 0700 from every place that makes it, and
narrow the default folder on the next run, so a umask such as 002 does not
leave the reviewer's venv group-writable. The in-place state write replaces a
link instead of following it, and creates a 0600 file.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: on Windows, name the CLI for the Agent SDK by its full path</title>
<updated>2026-11-04T19:48:01+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T19:48:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=d39821e607bb403b432242425b959ce1ea53ad06'/>
<id>d39821e607bb403b432242425b959ce1ea53ad06</id>
<content type='text'>
On Windows the plugin named no CLI for the Agent SDK unless
SG_AGENTIC_CLI_PATH was set, so the SDK chose one. With none named, the
plugin now chooses there itself and passes a full path: the CLI bundled
with the SDK, else the claude.exe in the native installer's folder, else
a claude.exe on PATH. When there is none, it passes the bundled path
and the start fails. Folders that are not given as full paths are
skipped, and so are the working directory, the project root and folders
inside them.

The macOS and Linux install paths are no longer probed on Windows. The
hooks also set NoDefaultCurrentDirectoryInExePath on Windows when it is
absent.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Windows the plugin named no CLI for the Agent SDK unless
SG_AGENTIC_CLI_PATH was set, so the SDK chose one. With none named, the
plugin now chooses there itself and passes a full path: the CLI bundled
with the SDK, else the claude.exe in the native installer's folder, else
a claude.exe on PATH. When there is none, it passes the bundled path
and the start fails. Folders that are not given as full paths are
skipped, and so are the working directory, the project root and folders
inside them.

The macOS and Linux install paths are no longer probed on Windows. The
hooks also set NoDefaultCurrentDirectoryInExePath on Windows when it is
absent.

Co-authored-by: mhegazy &lt;mhegazy@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: clear net_err when a review gets through</title>
<updated>2026-11-04T17:32:32+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-04T17:32:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=bde3b016a04e73b5bb0817f68c174d0d3c47f7d4'/>
<id>bde3b016a04e73b5bb0817f68c174d0d3c47f7d4</id>
<content type='text'>
A failed first probe, a lost race fallback or a failed dual leg left its
class (and api_error) on the row of a review that got a verdict.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A failed first probe, a lost race fallback or a failed dual leg left its
class (and api_error) on the row of a review that got a verdict.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: count Windows sessions whose Python is behind a link</title>
<updated>2026-10-27T20:31:41+00:00</updated>
<author>
<name>mhegazy</name>
<email>mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-27T20:31:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=041575c85ebe9ddc2384e1f5b5e67c2669cb136a'/>
<id>041575c85ebe9ddc2384e1f5b5e67c2669cb136a</id>
<content type='text'>
Measurement only. On Windows the SessionStart row gains one key,
interp_reparse, saying whether the interpreter that runs the hooks is
reached through a symbolic link or junction: 1 executable path, 2
standard library path, 4 that path is under AppData, 8 could not be
checked; 0 when neither is.

Inside the packaged Claude Desktop app Windows leaks kernel memory on
every file opened through such a link under AppData (a uv-managed
Python is one), and every hook starts an interpreter. This sizes how
many users that is. See anthropics/claude-code#96870.

No process is started, no hook behaves differently, and no other row
changes. The key is the last one of its row, so it never displaces
another.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Measurement only. On Windows the SessionStart row gains one key,
interp_reparse, saying whether the interpreter that runs the hooks is
reached through a symbolic link or junction: 1 executable path, 2
standard library path, 4 that path is under AppData, 8 could not be
checked; 0 when neither is.

Inside the packaged Claude Desktop app Windows leaks kernel memory on
every file opened through such a link under AppData (a uv-managed
Python is one), and every hook starts an interpreter. This sizes how
many users that is. See anthropics/claude-code#96870.

No process is started, no hook behaves differently, and no other row
changes. The key is the last one of its row, so it never displaces
another.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: stop starting the packaged Python alias on every hook</title>
<updated>2026-10-27T20:11:58+00:00</updated>
<author>
<name>mhegazy</name>
<email>mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-27T20:11:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=70ef2c2ed7001343cc954bb6ea8060d9475639bb'/>
<id>70ef2c2ed7001343cc954bb6ea8060d9475639bb</id>
<content type='text'>
On Windows with the Python Install Manager, python, python3 and py are
packaged aliases under ...\Microsoft\WindowsApps, and each start of one
makes Windows run an App Installer update check for the package. The
launcher started the chosen alias twice per hook (probe, then the hook),
on every Edit, prompt and Stop. See anthropics/claude-code#98929.

When the name that answers is such an alias and its interpreter is a
regular python*.exe elsewhere, the launcher now checks that interpreter
once (same version, reads the hook script when started by itself), runs
the hook with it, and keeps its path in the state folder for a day.
Later hooks start it directly: one process, none through the alias.

The remembered path is used only while PATH and the hook folder are
unchanged and the file is still there. A hook that fails on it empties
the entry so the next hook searches again. Not used while VIRTUAL_ENV is
set. Other systems, regular installs and Microsoft Store Python are
unchanged.

Hooks report launcher_direct (1 remembered, 2 just checked) as the last
metric key on rows they already send.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Windows with the Python Install Manager, python, python3 and py are
packaged aliases under ...\Microsoft\WindowsApps, and each start of one
makes Windows run an App Installer update check for the package. The
launcher started the chosen alias twice per hook (probe, then the hook),
on every Edit, prompt and Stop. See anthropics/claude-code#98929.

When the name that answers is such an alias and its interpreter is a
regular python*.exe elsewhere, the launcher now checks that interpreter
once (same version, reads the hook script when started by itself), runs
the hook with it, and keeps its path in the state folder for a day.
Later hooks start it directly: one process, none through the alias.

The remembered path is used only while PATH and the hook folder are
unchanged and the file is still there. A hook that fails on it empties
the entry so the next hook searches again. Not used while VIRTUAL_ENV is
set. Other systems, regular installs and Microsoft Store Python are
unchanged.

Hooks report launcher_direct (1 remembered, 2 just checked) as the last
metric key on rows they already send.
</pre>
</div>
</content>
</entry>
</feed>
