summaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-09 08:24:03 -0500
committerBen Sima <ben@bsima.me>2025-11-09 08:24:03 -0500
commit5f29e393a6696c6f1e5ef2394bddd58aab7f8eda (patch)
tree27e8444456b0b098c917cbbbfd17b5768d421037 /AGENTS.md
parentdd20248176086e0e918e8d982a1e38599ed45a87 (diff)
Fix task auto-commit with pre-commit hook
Implemented proper pre-commit hook that: - Calls 'task export --flush' to consolidate tasks - Auto-stages .tasks/tasks.jsonl if modified - Runs before every commit Added reminder message after 'task update' to inform users that task changes will be committed on next git commit. Updated AGENTS.md to document the auto-commit behavior. This fixes the bug where task status updates (e.g., marking tasks as Done) were not being committed to git.
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 3cd9aa7..c07d8ed 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -88,6 +88,8 @@ task update t-20241108120000 in-progress
task update t-20241108120000 done
```
+**Note**: Task updates modify `.tasks/tasks.jsonl` but don't auto-commit. The pre-commit hook will automatically export and stage task changes on your next `git commit`.
+
### View Dependencies
```bash
task deps <id>