{"name":"CLAUDE_CODE_PLUGIN_RULES","slug":"claude-code-plugin-rules","family":"env","title":"Environment variables","noun":"environment variable","description":"Setting `CLAUDE_CODE_PLUGIN_RULES` in a remote or container session changes how Claude Code treats the attachment and simple-mode variables","description_source":"entry","described_by":{"version":"2.1.334","anchor":"claude-code-plugin-rules-env-var-and-plugin-rules-attachment"},"presence":{"first_seen":"2.1.334","removed_in":null,"in_current_build":true,"newest_mined":"2.1.336","builds":3,"mined_builds":175,"first_cited":{"version":"2.1.334","released_at":"2026-12-01 18:55:49","spans":1}},"aliases":[],"entries":[{"version":"2.1.334","anchor":"claude-code-plugin-rules-env-var-and-plugin-rules-attachment","heading":"New CLAUDE_CODE_PLUGIN_RULES variable for remote and container sessions","line":"Setting `CLAUDE_CODE_PLUGIN_RULES` in a remote or container session changes how Claude Code treats the attachment and simple-mode variables","released_at":"2026-12-01 18:55:49","reason":"named in this entry, found in this entry's text"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_PLUGIN_ATTRIBUTION","slug":"claude-code-plugin-attribution","description":"You can declare where a plugin came from via a JSON file or an environment variable."},{"name":"CLAUDE_CODE_PLUGIN_BINARY_ASSETS","slug":"claude-code-plugin-binary-assets","description":"Boolean that turns on fetching of plugin binary assets for plugins from Anthropic's official marketplaces (such as `claude-plugins-official`), the same as the `tengu_plugin_binary_assets` flag; either one enables it. Off by default."},{"name":"CLAUDE_CODE_PLUGIN_CACHE_DIR","slug":"claude-code-plugin-cache-dir","description":"A cleanup routine now removes set-aside and unreadable copies of installed_plugins in the plugins folder instead of zip files in the shares folder"},{"name":"CLAUDE_CODE_PLUGIN_DIR_WATCH","slug":"claude-code-plugin-dir-watch","description":"CLAUDE_CODE_PLUGIN_DIR_WATCH now fully overrides whether plugin directory watching is enabled, not just disables it"},{"name":"CLAUDE_CODE_PLUGIN_DIRS","slug":"claude-code-plugin-dirs","description":"New CLAUDE_CODE_PLUGIN_DIRS environment variable lets you register extra plugin directories without --plugin-dir flags"},{"name":"CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS","slug":"claude-code-plugin-git-timeout-ms","description":"CLAUDE_CODE_GLOB_TIMEOUT_SECONDS and CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS are now capped, so very large values are quietly lowered"},{"name":"CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE","slug":"claude-code-plugin-keep-marketplace-on-failure","description":"Marketplace refresh checks for the manifest through a storage handle instead of the raw filesystem."},{"name":"CLAUDE_CODE_PLUGIN_MCPB_DIR","slug":"claude-code-plugin-mcpb-dir","description":"`CLAUDE_CODE_PLUGIN_MCPB_DIR` now appears among Claude Code's plugin environment variables"},{"name":"CLAUDE_CODE_PLUGIN_PREFER_HTTPS","slug":"claude-code-plugin-prefer-https","description":"Boolean. When true, GitHub plugin and marketplace sources are cloned over `https:\/\/github.com\/<repo>.git` instead of the SSH `git@...:<repo>.git` URL. `CLAUDE_CODE_REMOTE` has the same effect."},{"name":"CLAUDE_CODE_PLUGIN_REMOTE_MCP_REACHABLE_HOSTS_HINT","slug":"claude-code-plugin-remote-mcp-reachable-hosts-hint","description":"CLAUDE_CODE_PLUGIN_REMOTE_MCP_REACHABLE_HOSTS_HINT lets you give a comma-separated list of reachable hosts for remote plugin MCP servers"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-plugin-rules","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}