Merge pull request 'fix: Hook scripts don't follow #!/usr/bin/env bash convention from AGENTS.md (#330)' (#593) from fix/issue-330 into main

This commit is contained in:
johba 2026-03-23 10:08:28 +01:00
commit a490ac7183
7 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-compact-reinject.sh — SessionStart (compact) hook for dark-factory agent sessions.
#
# Called by Claude Code after context compaction. Reads a context file and

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-idle-stop.sh — Stop hook for dark-factory agent sessions.
#
# Called by Claude Code when it finishes a response. Writes a timestamp

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-phase-change.sh — PostToolUse hook for phase file write detection.
#
# Called by Claude Code after every Bash|Write tool execution.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-pretooluse-guard.sh — PreToolUse hook: guard destructive operations.
#
# Called by Claude Code before executing a Bash command in agent sessions.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-session-end.sh — SessionEnd hook for dark-factory agent sessions.
#
# Called by Claude Code when a session terminates (clean exit, logout,

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-stop-failure.sh — StopFailure hook for immediate phase file update on API error.
#
# Called by Claude Code when a turn ends due to an API error (rate limit,

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# on-stop-matrix.sh — Stop hook: post Claude response to Matrix thread.
#
# Called by Claude Code after each assistant turn. Reads the response from