From 2479a9812ddd4d5f24dc15f1e9f54bf61be73076 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 9 Nov 2025 08:30:55 -0500 Subject: 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. --- AGENTS.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'AGENTS.md') 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: -- cgit v1.2.3