Files
MyAiConfiguration/shared/hooks
fraujulian e19aa2e27c
CI / PowerShell tests on Ubuntu (push) Failing after 3s
CI / CI configuration security checks (push) Successful in 2s
CI / Capabilities and shell quality (push) Successful in 12s
CI / Python tests and compilation (push) Successful in 22s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 11s
CI / Installed client configuration smoke tests (push) Successful in 59s
CI / Bash integration and installation guards (push) Successful in 1m31s
Updates
2026-11-05 08:31:07 +01:00
..
2026-11-05 08:31:07 +01:00
2026-11-05 08:31:07 +01:00

Hooks

This directory contains registered hooks and optional utilities. They do not bypass client permission prompts or grant access.

When Flashbang is enabled, both clients register Stop (flashbang) for finish notifications. Claude also registers PreCompact (Record-Compact/record-compact.sh) and SessionStart (Show-SessionStatePointer/show-session-state-pointer.sh). PreCompact records its timestamp under the installed configuration root. Both session hooks point to an existing workspace .ai-session/state.json, using event cwd or the process working directory. The main agent owns that state; hooks never write it or print its contents. Missing state is a successful no-op.

Both clients register Stop (Check-CompletionEvidence/check-completion-evidence.sh) and UserPromptSubmit (Show-CorrectionPrompt/show-correction-prompt.sh). Both call agent-guards.py, store nothing, and fail open. The first pushes back once on a completion claim without a named check while non-prose changes exist; the second asks the agent to propose a durable rule after a likely correction.

Validate-CommandSafety/validate-command-safety.sh and Invoke-PostChangeVerification/invoke-post-change-verification.sh are not registered or invoked automatically. The safety utility checks selected command-text patterns; the verification utility runs the repository build only when explicitly invoked. Test-SessionConfig/test-session-config.sh checks repository inputs during a build.

When local QMD search is enabled, both clients also register a SessionStart warm-up hook (Start-QmdWarm.ps1/qmd-warm.sh). It starts the installed Node wrapper in the background from the process working directory, only inside a Git repository. Warm-up errors are recorded in ~/.my-ai-configuration/qmd/warm.log; they do not fail the session. Disabling local search removes the hook registration.