{"version":"2.1.334","anchor":"plugin-rules-attachment-added-to-context","canonical_anchor":"plugin-rules-attachment-added-to-context","heading":"Plugin rules reach Claude as their own context attachment","tier":"notice","area":"Plugins","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/plugin-rules-attachment-added-to-context","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Plugin rules reach Claude as their own context attachment\n\nA new `plugin_rules` attachment gives Claude rules from plugins, and plugin hooks modules can now carry a `textDigest`\n\n**Unclear.** What decides whether plugin rules are added is not known.\n\n**What**\n\nPlugins are add-ons that extend Claude Code. Rules supplied by plugins can now be given to Claude as a separate attachment, a block of context added to the conversation:\n\n- `plugin_rules` is a new attachment placed ahead of the `plan_mode` attachment, added only when a check passes. It is built from plugin rules already present, plus plugin skills and MCP servers (add-ons that give Claude Code extra tools). Claude Code also notes when given rules or loaded skills were not read.\n\n- `plugin_rules: \"names\"` is a new entry in a per-category map, so plugin rules are handled as a named category of context.\n\n- The `plan_mode`, `plan_mode_exit` and `proactivity` entries now go through a different wrapper.\n\nPlugin hooks modules, code a plugin runs at set points, can now also carry a `textDigest` string, which is passed along when the module is registered. A `sandbox_command_ca_file` name was added to another internal list.\n\n**Why**\n\nRules that come from plugins now reach Claude as their own labelled block of context instead of being mixed into other context. The `textDigest` on hooks modules may lay groundwork for checking a module's text, though the members do not show that check.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: no"}