Skip to content

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

Merged
nicoloboschi merged 1 commit intomainfrom
fix/hook-registration-v2
Mar 25, 2026
Merged

fix: add setup_hooks.py and hindsight:setup skill for hook registration#690
nicoloboschi merged 1 commit intomainfrom
fix/hook-registration-v2

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 — registers hooks and CLAUDE_PLUGIN_ROOT into ~/.claude/settings.json
  • Adds skills/setup.md — a /hindsight:setup skill so users can trigger setup from inside Claude Code
  • Bumps plugin version to 0.1.1

Usage

After /plugin install hindsight-memory, run:

/hindsight:setup

Then restart Claude Code.

Environment

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

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.
Copy link
Collaborator

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nicoloboschi nicoloboschi merged commit 22ca6a8 into main Mar 25, 2026
33 checks passed
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.

2 participants