<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks/_base.py, branch add-plugin/xcode</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 #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: 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-network-failure-class</title>
<updated>2026-10-22T00:04:40+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-22T00:04:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=9b4f7dc7daf42b258e32227e8e5a1cacf5dd109c'/>
<id>9b4f7dc7daf42b258e32227e8e5a1cacf5dd109c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: report why a review call got no HTTP response</title>
<updated>2026-10-20T23:15:10+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-20T23:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=073448767f5ef6ea935cded3d6f712e843f5d268'/>
<id>073448767f5ef6ea935cded3d6f712e843f5d268</id>
<content type='text'>
A review call that never gets an HTTP response is reported as api_error -1
whatever the cause, so a certificate failure, a refused connection and a
timeout look the same. Rows whose last call failed that way now carry a
count-only net_err key: the failure class, the TLS verify code, and whether
CA files, a proxy or TLS variables are in play. No behaviour change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A review call that never gets an HTTP response is reported as api_error -1
whatever the cause, so a certificate failure, a refused connection and a
timeout look the same. Rows whose last call failed that way now carry a
count-only net_err key: the failure class, the TLS verify code, and whether
CA files, a proxy or TLS variables are in play. No behaviour change.
</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>
<entry>
<title>Merge branch 'mhegazy/sg-gateway-login' into mhegazy/sg-sdk-bootstrap-switches</title>
<updated>2026-10-20T20:35:31+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-20T20:35:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=03bab72cbdce7039f452b15417de84989858b9e0'/>
<id>03bab72cbdce7039f452b15417de84989858b9e0</id>
<content type='text'>
Resolves the overlap with the bootstrap working-directory change and the gateway sign-in route: the import probe keeps the state-dir working directory, and llm.py keeps both imports.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves the overlap with the bootstrap working-directory change and the gateway sign-in route: the import probe keeps the state-dir working directory, and llm.py keeps both imports.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: run SDK bootstrap subprocesses from the state dir</title>
<updated>2026-10-19T17:11:22+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-19T17:11:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=1eee6df1f032b8719fecdd987273d908d168f467'/>
<id>1eee6df1f032b8719fecdd987273d908d168f467</id>
<content type='text'>
`python -c` and `python -m` put the working directory first on the import
path, and hooks run in the user's repository. A repository file named
claude_agent_sdk.py, venv.py or pip.py was imported in place of the real
module by the SessionStart check and the venv build. Run those
subprocesses from the plugin's state dir, and make state_dir() return an
absolute path as its docstring says, so a relative override isn't
resolved twice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`python -c` and `python -m` put the working directory first on the import
path, and hooks run in the user's repository. A repository file named
claude_agent_sdk.py, venv.py or pip.py was imported in place of the real
module by the SessionStart check and the venv build. Run those
subprocesses from the plugin's state dir, and make state_dir() return an
absolute path as its docstring says, so a relative override isn't
resolved twice.
</pre>
</div>
</content>
</entry>
</feed>
