diff --git a/AGENTS.md b/AGENTS.md index b8a89d5..7d754c5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -326,6 +326,8 @@ git push origin main - **Delete unused/obsolete files** when refactors or feature removals make them irrelevant - **Quote git paths with brackets/parentheses** (e.g., `git add "src/app/[candidate]/**"`) to prevent shell glob/subshell expansion - **Use non-interactive git rebase** - set `GIT_EDITOR=: GIT_SEQUENCE_EDITOR=:` or pass `--no-edit` to avoid opening editors +- **NEVER run destructive git operations** (`git reset --hard`, `rm`, `git checkout`/`git restore` to older commits) unless user gives explicit written instruction - treat as catastrophic +- **NEVER amend commits** (`git commit --amend`) without explicit written approval from user - Update documentation when changing behavior - Follow existing code style - Use conventional commit messages