Add autopilot-aware pre-commit warnings + post-commit driver reminder
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
- Pre-commit hook: warns when autopilot is enabled and non-terminal tasks exist - Post-commit hook: after commit, prints non-terminal task summary if autopilot on - Post-commit exits 0 always (informational only, never blocks) - Both hooks read .agent.md to detect Autopilot: Enabled
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Implementation: Upgrade Pre-Commit Hook
|
||||
|
||||
## Changes
|
||||
- Modified `scripts/git-hooks/pre-commit`
|
||||
- Added autopilot detection: reads `.agent.md` for `Autopilot: Enabled`
|
||||
- Added non-terminal task scanner: runs `status.py --list` and checks for non-complete tasks
|
||||
- Added hollow task warning: if autopilot is on and non-terminal tasks exist, prints warning
|
||||
- Does NOT block commit — only warns
|
||||
|
||||
## Files Changed
|
||||
- `scripts/git-hooks/pre-commit`: ~25 lines added after the existing edit-phase check
|
||||
Reference in New Issue
Block a user