Skip to content
Development
Hook

Hooks

What beacon runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

Install
$ npx -y skills add sagarmk/beacon-plugin --agent claude-code

Ships with beacon. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs grep-intercept.js.

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Runs ensure-deps.js.

PostToolUse

  • Runs "$TOOL_INPUT_file_path".

PreCompact

  • Runs --compact-warning.
Read hooks/hooks.json
Ships withbeacon

Semantic code search plugin for Claude Code using hybrid vector search + BM25. 98% accuracy, 5x faster than grep.

Get the whole plugin, auto-invoked
Stats
42
Stars
0
Views
4
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
5mo ago
Last commit
5mo ago
Created

Repo: sagarmk/beacon-plugin