summaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-09 08:30:55 -0500
committerBen Sima <ben@bsima.me>2025-11-09 08:30:55 -0500
commit2479a9812ddd4d5f24dc15f1e9f54bf61be73076 (patch)
tree57fabdb0a0c84898641b4e4732c48fd4c1b860d4 /AGENTS.md
parent4391cb3211298c562ba361ef0a615c745c81f038 (diff)
Document git hooks location in AGENTS.md
Added documentation explaining that git hooks are in Omni/Ide/hooks/ and version-controlled, not in .git/hooks/. This prevents confusion about where to add/modify hooks and ensures all team members use the same hooks.
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index c07d8ed..5d4497a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -259,10 +259,17 @@ States:
.tasks/
├── tasks.jsonl # Git-tracked, production database
├── tasks-test.jsonl # Test database (not tracked, auto-created)
+
+Omni/Ide/hooks/
+├── pre-commit # Exports tasks before commit (auto-stages tasks.jsonl)
+├── post-checkout # Imports tasks after branch switch
+└── ... # Other git hooks
```
Each line in `tasks.jsonl` is a JSON object representing a task.
+**Git Hooks**: This repository uses hooks from `Omni/Ide/hooks/` (configured via `core.hooksPath`). Do NOT add hooks to `.git/hooks/` - they won't be version controlled and may cause confusion.
+
## Testing and Development
**IMPORTANT**: When writing or testing code that modifies tasks, use the test database: