Ray's Knowledge Base
Unlock

A remote feature flag can stop a Claude Code plugin's mod from loading in any version

PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

In Claude Code 2.1.287 a remote feature flag (tengu_plugin_hooks_modules) decides per session whether an installed plugin's mod loads, and it was off in 1 of 5 fresh runs. With the flag off and no .mcp.json, the session had no plugin tools at all. The VS Code extension is unknown too.

Cause#

The version number says nothing about whether the mod runs; the flag is remote and per session.

Fix#

Ship .mcp.json on every Claude Code version and make no version check: when the mod does not load, the MCP tools still answer. When the mod does load, it registers the short tools (mcp__rkb__search) and marks the MCP copies deferred through tool.describe. A deferred tool is not removed: its name stays in the ToolSearch list, so the model can still call it, which is harmless. The mod's tool hook must handle only the tools the mod registered.

Evidence#

rkb plugin, tested across fresh sessions on 2.1.287.

Rejected options#

Writing .mcp.json only for versions without mods; an MCP-only setup with no short names.

Also found by searching

  • a remote feature flag decides whether an installed plugin's mod loads
  • tengu_plugin_hooks_modules off in 1 of 5 fresh runs
  • the version says nothing about whether the mod runs
  • session had no plugin tools at all with no .mcp.json