Skip to content

fix: add setup_hooks.py and hindsight:setup skill for hook registration#689

Closed
benfrank241 wants to merge 7 commits intomainfrom
fix/hindsight-memory-hook-registration
Closed

fix: add setup_hooks.py and hindsight:setup skill for hook registration#689
benfrank241 wants to merge 7 commits intomainfrom
fix/hindsight-memory-hook-registration

Conversation

@benfrank241
Copy link
Contributor

Problem

Claude Code's plugin installer does not merge hooks.json into ~/.claude/settings.json automatically. After running /plugin install hindsight-memory, the plugin is marked as installed but none of its lifecycle hooks fire:

  • UserPromptSubmitrecall.py
  • Stopretain.py
  • SessionStartsession_start.py
  • SessionEndsession_end.py

Users following the blog tutorial see no [Hindsight] output, no memories retained, and no banks appearing in the UI — with no error or indication of what's wrong.

Fix

  • Adds scripts/setup_hooks.py — a standalone script that reads the installed plugin path and writes the hooks + CLAUDE_PLUGIN_ROOT env var into ~/.claude/settings.json
  • Adds skills/setup.md — a /hindsight:setup skill so users can trigger the setup from inside a Claude Code session
  • Bumps plugin version to 0.1.1

Usage

After /plugin install hindsight-memory, users run:

/hindsight:setup

Or directly:

python3 ~/.claude/plugins/cache/hindsight/hindsight-memory/0.1.1/scripts/setup_hooks.py

Then restart Claude Code.

Environment

  • Claude Code: 2.1.83
  • OS: macOS (darwin 25.3.0)

benfrank241 and others added 7 commits March 25, 2026 09:41
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant