{"version":"2.1.277","anchor":"plugin-file-watcher-gains-scopeentry-tracking-and-retarget","canonical_anchor":"plugin-file-watcher-gains-scopeentry-tracking-and-retarget","heading":"Plugin manifest discovery and the plugin watcher now track folder scope and entry module path","tier":"internal","area":"Plugin Install","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/plugin-file-watcher-gains-scopeentry-tracking-and-retarget","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Plugin manifest discovery and the plugin watcher now track folder scope and entry module path\n\nPlugin discovery and its file watcher now track a folder scope and entry module path, and the watcher can retarget on reload\n\n**What**\n\n- Plugin discovery from folders now records a `scope: \"folder\"` marker and resolves an `entry` module path when a manifest declares `modulePath`.\n\n- The plugin directory watcher now tracks a per-plugin `scope` and `entry` alongside manifests, checks an `admit` gate before reloading a plugin, and calls `watcher.retarget()` after both plugin-list updates and after a reload completes.\n\n**Why**\n\nThis lets Claude Code correctly track where a plugin's code actually lives and keep watching the right files and folders as plugins are added, reloaded, or changed, instead of relying only on a static manifest list.\n\n- Area: Plugin Install\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}