diff --git a/AGENTS.md b/AGENTS.md index f8f2e96174..a183434eb1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -71,6 +71,10 @@ rm -rf .built-assets/ # Clear asset cache if needed - Always use Bearer token authentication for API - Delegate business logic to commands, keep controllers thin +## Git Usage + +- **Do not use `git -C `**. Instead, `cd` to the correct directory before running git commands. This avoids issues with worktrees and ensures hooks run in the right context. + ## Critical Warnings **Never cancel long-running operations:**