AGENTS.md: Commit before marking task done
Ensures work is committed before state transitions, so the
VCS history and task state stay in sync.
Assisted-by: Claude Opus 4.6 via pi
diff --git a/AGENTS.md b/AGENTS.md
index cb0451f..85bf3fa 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -47,9 +47,10 @@ While working, add comments to track progress and decisions:
ranger comment add <key> "Decided to use X because Y"
```
-When done:
+When done, commit first, then mark the task:
```bash
+jj commit -m "description of the change"
ranger task edit <key> --state done
ranger comment add <key> "Completed — summary of what was done"
```