diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-09 08:30:55 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-09 08:30:55 -0500 |
| commit | 2479a9812ddd4d5f24dc15f1e9f54bf61be73076 (patch) | |
| tree | 57fabdb0a0c84898641b4e4732c48fd4c1b860d4 | |
| parent | 4391cb3211298c562ba361ef0a615c745c81f038 (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.
| -rw-r--r-- | AGENTS.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: |
