Install the PreToolUse hook
install_hookInstall a Claude/Copilot hook that warns when edits reprocess 25+ lines of an indexed symbol or read files over 12KB, merging idempotently with scope and uninstall options.
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. |