This article details how to configure hook matchers in Claude Code's settings.json file, explaining the nuances of exact matching versus regular expressions based on the characters used in the matcher value. It clarifies that the comparison target varies depending on the specific event, and provides a list of events that do not support matchers at all. The guide also covers how to target MCP tools and use the 'if' field for more granular filtering of tool arguments. AI
IMPACT Provides developers with detailed configuration guidance for a specific AI coding assistant feature.
RANK_REASON This is a technical guide for a specific feature of a software product, not a new model release or significant industry event.
Read on dev.to — Claude Code tag →
- Bash
- Claude Code
- Claude Code v2.1.191
- Claude Code v2.1.195
- CLAUDE.md
- CwdChanged
- Edit
- MessageDisplay
- NotebookEdit
- PostToolBatch
- RegExp.prototype.test()
- settings.json
- TaskCompleted
- TaskCreated
- TeammateIdle
- UserPromptSubmit
- WorktreeCreate
- WorktreeRemove
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →