Separate editable source from loaded code
Use when
A
coding
session
loads
a
local
plugin
with
--plugin-dir,
especially
from
inside
its
otherwise
writable
checkout.
Hooks,
MCP
servers,
and
plugin
code
can
execute
outside
the
shell
sandbox.
Action
Require
the
2.1.299
repair
or
a
reviewed
equivalent
before
relying
on
this
boundary.
In
the
existing
launcher,
point
--plugin-dir
at
a
reviewed
active
copy,
not
the
tree
the
agent
is
editing.
Keep
that
copy
and
its
executable
dependencies
outside
agent-writable
surfaces;
promote
changes
only
through
existing
review
and
authorization.
Inspect
/sandbox’s
Config
tab,
including
“Denied
within
allowed,”
and
verify
actual
write
denial.
Do
not
disable
filesystem
isolation
or
approve
an
unsandboxed
retry
to
make
live
plugin
edits
work.
Acceptance check
In separately authorized disposable work, load an inert plugin under a writable fixture checkout through the actual launcher. First establish a known benign hook or module event. Then have an actual sandboxed command attempt dummy overwrite, sibling-file replacement, and applicable alias writes to loaded source.
Require
denial,
unchanged
source
bytes,
and
unchanged
benign
behavior
when
the
event
runs
again.
An
ordinary
project-file
write
must
still
succeed.
Retain
version,
launch
paths,
resolved
policy,
tool
receipts,
before/after
bytes,
and
event
output.
A
manually
typed
!
command
usually
runs
unsandboxed
and
does
not
exercise
this
gate.
Evidence
The
dated
release
explicitly
repairs
sandboxed
writes
into
--plugin-dir
code
that
Claude
Code
reloads
and
runs
outside
the
sandbox.
Official
documentation
explains
the
protected-code
rationale
and
separately
identifies
unsandboxed
plugin
components.
These
are
inspectable
vendor
contracts,
not
independent
runtime
verification.
Caveat
No
public
implementation,
regression
suite,
or
independent
reproduction
was
inspected
for
this
exact
repair.
The
documentation’s
protected-path
list
does
not
explicitly
enumerate
--plugin-dir.
Our
staging
procedure
and
fixtures
remain
untested.
Built-in file tools, MCP servers, and other same-user processes need separate write controls; a shell-only pass cannot certify them. Native Windows does not use this sandbox. Protecting source integrity does not make an unsafe plugin safe. Nothing was installed or enabled.