3 ms·
Nice tool. To add a workflow to the 'lots of these', I usually use an aichat[^1] role. The prompt is stored in `~/.config/aichat/roles/gitcommit.md` and then I
by kenmacd 2y ago
Nice tool. To add a workflow to the 'lots of these', I usually use an aichat[^1] role. The prompt is stored in `~/.config/aichat/roles/gitcommit.md` and then I do this:
```
git diff --cached | aichat -m deepseek:deepseek-chat -r gitcommit | git commit --edit --file -
```
I like that your tool includes some previous commit messages... I'm not sure if that can be done with `aichat` but it seems like a great idea.
I'd be tempted to wrap individual commit messages in pseudo-xml <commit> tags, as Claude really likes those[^2] and the `%B` format doesn't really show the breaks between commit messages.
1: https://github.com/sigoden/aichat https://github.com/sigoden/aichat
2: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags https://docs.anthropic.com/en/docs/build-with-claude/prompt-...