A user encountered an issue with Claude Code where tool-use hooks stopped functioning after the first denial. The user attempted to reduce token usage by redirecting file reads to a local LLM summarization tool via a PreToolUse hook. However, after the hook denied the 'Read' tool, subsequent calls to the local summary tool, though appearing to be made by the model, were not logged by the hook. This behavior was observed on Claude Code 2.1.227 running on Windows 11 Home. The user also noted that local summaries can be unreliable, leading the model to either re-verify information or produce inaccurate results. AI
IMPACT This bug in Claude Code's hook system could hinder developers from customizing tool usage and potentially reduce efficiency by preventing the use of local models for summarization.
RANK_REASON User reports a bug in a specific tool's hook functionality.
- Claude Code
- Claude Code 2.1.227
- Grep Command
- MCP
- mcp__ollama__summarize_file
- Ollama
- PreToolUse
- Read
- Windows 11 Home
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →