What's New
Unified PreToolUse Hook
Single pretooluse.sh replaces separate hook scripts. Now intercepts both Bash data-fetching commands and subagent prompts.
Bash Data-Fetching Interception
The hook automatically blocks curl, wget, and inline fetch() calls via Bash, redirecting the model to use context-mode execute instead. This prevents large HTTP responses from flooding the context window.
Large JSON API — Try It prompt
New demo prompt: create a 7.5 MB JSON endpoint, fetch it through context-mode, and extract a hidden record. 7.25 MB raw → 412 bytes context.
Install:
claude mcp add context-mode -- npx -y context-mode