Update AGENTS.md with improved commit message handling guidelines

- Specify that COMMIT_EDITMSG should be created or updated.
- Encourage editing the existing file to maintain context across multiple steps.

Signed-off: junie@lucy.xalior.com
This commit is contained in:
2026-02-17 13:14:56 +00:00
parent f445aabcb4
commit 728b36e45e

View File

@@ -147,9 +147,9 @@ Comment what the code does, not what the agent has done. The documentation's pur
- git branching: - git branching:
- Do not create new branches - Do not create new branches
- git commits: - git commits:
- Create COMMIT_EDITMSG file, await any user edits, then commit using that - Create or update COMMIT_EDITMSG file, await any user edits, then commit
commit note, and then delete the COMMIT_EDITMSG file. Remember to keep using that commit note, and then delete the COMMIT_EDITMSG file.
the first line as the subject <50char Remember to keep the first line as the subject <50char
- git commit messages: - git commit messages:
- Use imperative mood (e.g., "Add feature X", "Fix bug Y"). - Use imperative mood (e.g., "Add feature X", "Fix bug Y").
- Include relevant issue numbers if applicable. - Include relevant issue numbers if applicable.
@@ -165,8 +165,9 @@ Comment what the code does, not what the agent has done. The documentation's pur
- deploy workflow: - deploy workflow:
- `bin/deploy.sh` refuses to run with uncommitted or untracked files at the repo root. - `bin/deploy.sh` refuses to run with uncommitted or untracked files at the repo root.
- testing: - testing:
- Do not restart the dev-server, use the already running one. - **DO NOT** not restart the dev-server, use the already running one.
- use tsc -noEmit to check for type errors, build breaks the dev-server. - Use tsc -noEmit to check for type errors
- **DO NOT** 'build' the application, Next.js build breaks the dev-server.
### References ### References