This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Commit 084fbc4
feat: port all hook scripts to Rust, delete shell originals
Added 4 hook subcommands to flowctl hook:
- commit-gate: blocks git commit without guard pass
- pre-compact: injects .flow/ state into compaction context
- subagent-context: injects active tasks for worker agents
- task-completed: syncs Claude task completion with .flow/ unlock
Deleted 7 shell scripts from scripts/hooks/:
commit-gate.sh, pre-compact.sh, subagent-context.sh,
task-completed.sh, ralph-guard.sh, ralph-receipt-guard.sh,
ralph-verbose-log.sh
hooks.json: all entries now call bin/flowctl hook <subcommand>.
Zero shell or Python scripts in hooks. Pure Rust.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7aa1567 commit 084fbc4
9 files changed
Lines changed: 498 additions & 499 deletions
File tree
- flowctl/crates/flowctl-cli/src/commands
- hooks
- scripts/hooks
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments