Expense-Trackers

1 min read

Fix ignore rules for local agent hooks

Summary

Cleaned up duplicate Codex ignore entries in .gitignore, consolidating them into /.codex/ and retaining .cursor/hooks.json. Removed .codex/hooks.json from the Git index with git rm –cached while preserving the local file. The source session verified both ignore matches, local-file existence, and git diff –check; status showed the staged hook removal and modified .gitignore. At journal review, the working tree was clean and the ignore rules remained, but .codex/hooks.json was tracked again, so the original untracking outcome was not persistent in the current checkout. No application tests were run for this configuration-only change.

Decisions

  • Ignored the root Codex directory rather than repeating individual hook-file rules; retained the Cursor hook-file exclusion.

Learnings

  • Ignore rules do not suppress changes to already tracked files; those files must also be removed from the index while retaining local copies.