Catalyst Hook Builder
Automates Claude Code workflows by installing and managing lifecycle hooks that trigger context-aware actions like handoffs and repo orientation.
Hook Builder is the engine that transforms Catalyst from a manual toolset into an ambient system by wiring capabilities directly into the Claude Code lifecycle. It enables automatic state preservation during context compaction, repo orientation upon session starts, and commit backstops when ending work. Designed for developers who want a seamless, high-reliability AI coding environment, it provides robust tools for installing pre-built scripts, scaffolding custom bash-based hooks, and linting scripts to ensure they follow fail-open safety patterns.
主要功能
01Custom Hook Scaffolding: Generates standardized bash templates for custom logic like PostToolUse or PreCompact.
02State Protection: Automatically flags uncommitted work and preserves context before compaction destroys state.
031 GitHub stars
04One-Command Setup: Installs all Tier-1 lifecycle hooks instantly using the install --all command.
05Ambient Lifecycle Integration: Triggers handoffs and orientation automatically during session events.
06Automated Script Linting: Validates hooks for bash syntax, jq dependencies, and fail-open reliability.
使用场景
01Enforcing repo-level orientation by injecting git context into the first prompt of every new session.
02Automating handoff read/write cycles to maintain continuity across long-running multi-session coding tasks.
03Creating custom safety gates or automated verification scripts that run after specific tool invocations.