<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks/ensure_agent_sdk.py, branch bump/cloud-sql-postgresql</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 #6985 from anthropics/mhegazy/sg-sdk-install-timeout</title>
<updated>2026-11-06T19:41:07+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-11-06T19:41:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=83b5049e23ad084de27a63ddec2b9af3a52cdc60'/>
<id>83b5049e23ad084de27a63ddec2b9af3a52cdc60</id>
<content type='text'>
security-guidance: a timed-out SDK install leaves no download behind and pauses before retrying</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: a timed-out SDK install leaves no download behind and pauses before retrying</pre>
</div>
</content>
</entry>
<entry>
<title>Merge main into mhegazy/sg-sdk-install-timeout</title>
<updated>2026-11-05T22:33:12+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-11-05T22:33:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=e105e67a9fc3aeef1a0c439c55ee8a83f9159038'/>
<id>e105e67a9fc3aeef1a0c439c55ee8a83f9159038</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>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: pause for an hour after an SDK install times out</title>
<updated>2026-11-03T18:01:45+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-03T18:01:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=90309f3f8bf304013e544508b2245a12ff5af97c'/>
<id>90309f3f8bf304013e544508b2245a12ff5af97c</id>
<content type='text'>
A pip install that runs out of time (a connection too slow to fetch the
SDK wheel inside the 120s limit) was retried at every SessionStart and
every 5 minutes from the tool hooks, downloading most of the wheel each
time. A pip timeout now starts a one-hour cooldown, in the venv build and
in the --target fallback. A timeout while creating the venv does not.

The skipped runs report the existing SKIP_COOLDOWN outcome, with
sdk_timeout_cooldown set so they can be told from signal-kill cooldowns.

Refs #6979
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A pip install that runs out of time (a connection too slow to fetch the
SDK wheel inside the 120s limit) was retried at every SessionStart and
every 5 minutes from the tool hooks, downloading most of the wheel each
time. A pip timeout now starts a one-hour cooldown, in the venv build and
in the --target fallback. A timeout while creating the venv does not.

The skipped runs report the existing SKIP_COOLDOWN outcome, with
sdk_timeout_cooldown set so they can be told from signal-kill cooldowns.

Refs #6979
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: keep pip's downloads out of the system temp dir</title>
<updated>2026-11-03T17:54:56+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-03T17:21:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=1b445c78f3a95d12be56b9386e668aef863f5c24'/>
<id>1b445c78f3a95d12be56b9386e668aef863f5c24</id>
<content type='text'>
pip keeps each wheel it downloads in a pip-unpack-* folder under the temp
dir and removes it only on a normal exit. The SDK bootstrap kills pip at
its 120s timeout, so on a slow connection every attempt left its download
in the system temp dir, and attempts repeat while the SDK is missing.

Both pip installs (venv and --target fallback) now run with a temp folder
of their own under the plugin's state dir. It is removed when the attempt
ends, however it ends. A folder left by a bootstrap that was itself killed
is removed by a later bootstrap run.

Refs #6979
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pip keeps each wheel it downloads in a pip-unpack-* folder under the temp
dir and removes it only on a normal exit. The SDK bootstrap kills pip at
its 120s timeout, so on a slow connection every attempt left its download
in the system temp dir, and attempts repeat while the SDK is missing.

Both pip installs (venv and --target fallback) now run with a temp folder
of their own under the plugin's state dir. It is removed when the attempt
ends, however it ends. A folder left by a bootstrap that was itself killed
is removed by a later bootstrap run.

Refs #6979
</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>
<entry>
<title>Merge branch 'main' into mhegazy/sg-launcher-probe-timing</title>
<updated>2026-10-20T22:36:29+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-20T22:36:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=6d4e17c8c4d45de2eba6dce119e56fff18ae43b1'/>
<id>6d4e17c8c4d45de2eba6dce119e56fff18ae43b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
