I previously found a way to commit after each change to my projects but it only left log time stamp for each commit. This was not as helpful as I would have liked. So I started researching other ways to make the commit happen after each prompt and capture the changes.
For Opencode, adding the following to the
For Opencode, use:
.config/opencode/AGENTS.md
For Copilot, use:
~/.copilot/copilot-instructions.md
For AntiGravity, use:
~/.gemini/AGENTS.md or ~/.gemini/GEMINI.md
The following will create a new commit and describe all the changes made during that prompts commit.
The contents of the previously defined files:
## Git Workflow Rule
- After completing any file modification requested by prompt, you MUST stage all modified files (`git add -A`) and create a concise, descriptive `git commit` summarizing the changes before finishing your turn.
- Never amend previous commits; always create a new commit per prompt.
