Skip to content
wrm3 edited this page May 30, 2026 · 1 revision

gald3r Hooks

Hooks are PowerShell scripts that fire on lifecycle events (session start, agent complete, pre-commit, pre-shell). They inject .gald3r/ context and enforce gates. Source files live in .gald3r_sys/hooks/.

Total hooks: 27

Hook Purpose Source
g-hk-agent-complete.ps1 hk-agent-complete.ps1 - Cursor hook for agent/stop lifecycle src
g-hk-component-tag-check.ps1 hk-component-tag-check.ps1 - Git pre-commit hook: enforce subsystem tagging on .gald3r_sys components src
g-hk-encoding-normalize.ps1 gald3r Encoding Normalizer -- T1428 src
g-hk-ggo-stop-detect.ps1 g-go-go stop-detection re-invoke hook (T1444, BUG-107 Fix Direction #2). src
g-hk-graph-update.ps1 Post-commit hook: refresh the gald3r_muninn codebase graph index after src
g-hk-nightly-learn.ps1 Nightly hook: trigger session summary extraction into learned-facts.md (T928, T1233). src
g-hk-pcac-inbox-check.ps1 hk-pcac-inbox-check.ps1 (T168 rewrite) src
g-hk-post-session-trace.ps1 Example post_session lifecycle hook (T1055): closes the session trace record src
g-hk-post-skill-timing.ps1 Example post_skill lifecycle hook (T1055): closes the skill-invocation src
g-hk-pre-commit.ps1 !/usr/bin/env pwsh src
g-hk-pre-push.ps1 !/usr/bin/env pwsh src
g-hk-pre-session-trace.ps1 Example pre_session lifecycle hook (T1055): records a session-start trace src
g-hk-pre-skill-timing.ps1 Example pre_skill lifecycle hook (T1055): records a skill-invocation start src
g-hk-pre-tool-call-gald3r-guard.ps1 hk-pre-tool-call-gald3r-guard.ps1 src
g-hk-pre-tool-call-member-gald3r-guard.ps1 hk-pre-tool-call-member-gald3r-guard.ps1 src
g-hk-pre-tool-call-prd-freeze.ps1 hk-pre-tool-call-prd-freeze.ps1 src
g-hk-pre-tool-call.ps1 Pre-tool-call shell output compression hook (T1106). src
g-hk-session-end.ps1 Session-end hook (T1057): records structured session-end metadata and src
g-hk-session-start.ps1 hk-session-start.ps1 - Cursor hook for session initialization src
g-hk-setup-user.ps1 gald3r-setup-user.ps1 src
g-hk-validate-shell.ps1 hk-validate-shell.ps1 - Cursor hook for shell command validation src
g-hk-vault-migrate.ps1 Idempotency guard src
g-hk-vault-reindex.ps1 Idempotency guard src
g-hk-vault-resolve.ps1 hk-vault-resolve.ps1 src
g-hk-vault-verify.ps1 hk-vault-verify.ps1 src
g-hk-wrkspc-manifest-check.ps1 hk-wrkspc-manifest-check.ps1 src
raw-inbox-watcher.ps1 inbox-watcher.ps1 - Vault Raw Inbox processor (Phase 2, manual trigger only) src

Last updated: 2026-05-30 (gald3r v1.7.0)

Clone this wiki locally