docs: Claude Code v2.1.273 - Local-directory marketplace plugins load in place, env scrub tightened - #1291
Merged
Conversation
… in place, env scrub tightened Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: Two real behavioral changes land in the plugin and security docs for v2.1.273. Plugin developers using local-directory marketplaces now get live-reload semantics — edits to a relative-path source take effect at the next session start or
/reload-pluginswithout any version bump or cache dance. Separately,CLAUDE_CODE_SUBPROCESS_ENV_SCRUBnow also strips Claude Code's own config-dir pointer variables (CLAUDE_CONFIG_DIRetc.) from child processes, closing a gap where a subprocess could locate a relocated config directory and read secrets out of it.HIGHLIGHTS:
plugins-reference.md,plugin-marketplaces.md,plugins.md,claude-directory.md): A relative-path source in a marketplace added from a local directory now loads in place rather than copying to the cache.${CLAUDE_PLUGIN_ROOT}points at the stable source directory; edits are live on next session start or/reload-plugins; version pinning is bypassed (current files always load regardless of theversionfield). Node.js deps are not auto-installed — must be installed manually in the source dir or into the persistent data directory.CLAUDE_CODE_SUBPROCESS_ENV_SCRUBstrips config-dir pointers on v2.1.251+ (env-vars.md): In addition to credential variables, the scrub now removesCLAUDE_CONFIG_DIRand similar pointer variables so child processes can't locate a relocated configuration directory. Users who need subprocesses to read these variables must leave the scrub unset.${CLAUDE_PLUGIN_ROOT}scope clarified (plugins-reference.md): Explicitly documented that this variable (and${CLAUDE_PLUGIN_ROOT},${CLAUDE_PLUGIN_DATA}) are not injected into Bash tool commands run by Claude in the main session or subagents — only into hook processes and MCP/LSP servers. Plugin authors should use the placeholder in plugin content and let Claude Code substitute it, not rely on the env var being present in Bash tool execution.hooks.mdcross-reference updated:${CLAUDE_PLUGIN_ROOT}now links to the full env-variable behavior section in plugins-reference rather than the old one-liner about it changing on updates.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning