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
> /plugin marketplace add sagarmk/beacon-plugin > /plugin install beacon@claude-code-beacon-plugin
Ships with beacon. Installing the plugin gets these hooks.
What fires, and when
PreToolUse
- Matches
Grep|Bashnode ${CLAUDE_PLUGIN_ROOT}/scripts/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.
node ${CLAUDE_PLUGIN_ROOT}/scripts/ensure-deps.jsnode ${CLAUDE_PLUGIN_ROOT}/scripts/sync.jsnode ${CLAUDE_PLUGIN_ROOT}/scripts/session-context.js
PostToolUse
- Matches
Write|Edit|MultiEditnode ${CLAUDE_PLUGIN_ROOT}/scripts/embed-file.js "$TOOL_INPUT_file_path" - Matches
Bashnode ${CLAUDE_PLUGIN_ROOT}/scripts/gc.js
PreCompact
node ${CLAUDE_PLUGIN_ROOT}/scripts/status.js --compact-warning
Ships withbeacon
Semantic code search plugin for Claude Code using hybrid vector search + BM25. 98% accuracy, 5x faster than grep.
Get the whole plugin
Stats
44
Stars
5
Forks
Active
Maintenance
JavaScript
Language
MIT
License
9d ago
Last commit
7mo ago
Created
Repo: sagarmk/beacon-plugin

