Claude Code's plugin installer does not merge hooks.json into settings.json automatically. This adds a setup script and skill that users can run once after installing the plugin to register the hooks manually.
24 lines
698 B
Markdown
24 lines
698 B
Markdown
---
|
|
name: hindsight:setup
|
|
description: Register hindsight-memory hooks into Claude Code settings. Run this once after installing the plugin.
|
|
---
|
|
|
|
Register the hindsight-memory hooks into `~/.claude/settings.json` by running the setup script:
|
|
|
|
```bash
|
|
python3 "$CLAUDE_PLUGIN_ROOT/scripts/setup_hooks.py"
|
|
```
|
|
|
|
If `CLAUDE_PLUGIN_ROOT` is not set, find the path manually:
|
|
|
|
```bash
|
|
ls ~/.claude/plugins/cache/hindsight/hindsight-memory/
|
|
```
|
|
|
|
Then run:
|
|
|
|
```bash
|
|
python3 ~/.claude/plugins/cache/hindsight/hindsight-memory/<version>/scripts/setup_hooks.py
|
|
```
|
|
|
|
After the script completes, restart Claude Code for the hooks to take effect. You should see `[Hindsight]` log lines on the next session start.
|