fleet-memory/hindsight-integrations/claude-code/skills/setup.md
Ben 22ca6a8d73
fix: add setup_hooks.py and hindsight:setup skill for hook registration (#690)
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.
2026-03-25 16:59:25 +01:00

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.