diff --git a/AGENTS.md b/AGENTS.md index 60d086d..b67b38f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -35,6 +35,10 @@ - Prefer small, direct Go code and standard library solutions. - Keep shell scripts strict with `set -euo pipefail`. - Use `gofmt` for Go formatting. +- When a CLI accepts either an inline string or a file input, always prefer the file-based form. +- For shell commands and AI/LLM tooling, prefer passing files as input whenever the CLI allows it. +- Create temporary files as needed to follow the file-first rule. +- Examples: use `git commit -F ` instead of `git commit -m `, and use prompt files instead of inline prompt strings when invoking LLM CLIs. ## Testing Guidance