[BUG] Hooks not saving
Resolved 💬 7 comments Opened Jul 13, 2025 by RickCogley Closed Jul 14, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ x] Other: local macos
- Claude CLI version: v1.0.51
- Operating System: macOS 15.5
- Terminal: ghostty
Bug Description
Having an inordinate amount of trouble trying to get hooks to work. When I add, I see the hook in my config, but then if I confirm via /hooks, the matcher etc is now gone.
Steps to Reproduce
- Add a hook via /hooks that results in:
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "deno run --allow-read --allow-write /Users/rcogley/.claude/aichaku/hooks/aichaku-hooks.ts sensitive-file-guard"
}
]
}
]
}
- Esc, esc to REPL and it says it saved the hook.
- Was told by chat support that I need to confirm the hook in /hooks so I do that, but starting from the matcher, /hooks says I don't have any configured....
Expected Behavior
I can save and also confirm a hook via /hooks
Actual Behavior
When I save, then go and look at the config, then go back to /hooks, even after a restart of claude code, there is nothing to be seen at all. HOwever, the hook is still in the config.
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗