disinto/lib/hooks
openhands f6dd91389f fix: PreToolUse guard — allow formula agents to access FACTORY_ROOT from worktrees (#487)
- Add session name as third arg to guard hook (passed from agent-session.sh)
- Detect formula sessions (supervisor-*, gardener-*, planner-*, predictor-*)
- Guard 6: block filesystem access to factory root from worktrees, exempt formulas
- Guard 7: restrict system commands (kill, docker, tmux) to supervisor only
- Guard 2: allow formula agents rm -rf within factory root

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 18:09:28 +00:00
..
on-compact-reinject.sh fix: feat: SessionStart compact hook re-injects phase protocol after context compaction (#274) 2026-03-20 23:27:32 +00:00
on-idle-stop.sh fix: replace fragile pane grep with Stop hook for idle detection (#272) 2026-03-19 14:57:54 +01:00
on-phase-change.sh fix: distinguish phase file writes from reads in PostToolUse hook 2026-03-19 18:14:49 +00:00
on-pretooluse-guard.sh fix: PreToolUse guard — allow formula agents to access FACTORY_ROOT from worktrees (#487) 2026-03-21 18:09:28 +00:00
on-session-end.sh fix: feat: SessionEnd hook for guaranteed cleanup on session exit (#276) 2026-03-20 01:11:26 +00:00
on-stop-failure.sh fix: PHASE:needs_human missing from crash-path terminal set in monitor_phase_loop (#342) 2026-03-21 03:50:21 +00:00
on-stop-matrix.sh fix: feat: stream action-agent Claude output to Matrix thread (#293) 2026-03-19 23:43:29 +00:00