Install the PreToolUse hook
install_hookInstall a PreToolUse hook that warns only when an edit resends 25+ lines that an indexed symbol covers or a whole file over 12KB is read, preventing context bloat. Supports Claude/Copilot scopes.
Instructions
Wire slimdex's write discipline into the CLIENT, which registering the MCP server cannot do — the protocol has no mechanism for a server to add a hook, so this is the one call that closes the gap. Writes a PreToolUse hook that speaks up ONLY when an edit re-sends 25+ lines that an indexed symbol actually covers, or a whole file over 12KB is read. Merges rather than clobbers, is idempotent, and prints exactly what changed. scope: claude-global (default, all your repos) | claude-local | claude-project | copilot-global (VS Code, all your repos) | copilot-project (.github/hooks, COMMITTED). Use uninstall:true to remove it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Which config to write. Default claude-global; use copilot-global for a VS Code-only setup. | |
| uninstall | No | Remove the hook instead of adding it. |