Autocommit

Autocommit#

Autocommit hook tool that automatically provides hints for committing changes after message processing.

When GPTME_AUTOCOMMIT=true is set, after each message is processed:

  1. Checks if there are file modifications

  2. If modifications exist, returns a message asking the LLM to review and commit

The tool hooks into TURN_POST (turn.post) and runs with low priority (after pre-commit checks and other validation).

To enable autocommit: `bash export GPTME_AUTOCOMMIT=true `