@rubengrick2/git-autocommit
v2.0.0
Published
Auto-stages and commits repo changes before every OpenClaw agent turn
Downloads
232
Maintainers
Readme
git-autocommit
An OpenClaw plugin that auto-stages and commits repo changes before every agent turn. Keeps your workspace snapshotted so you can track what the agent changed, when.
Install
{
"plugins": {
"git-autocommit": "npm:@rubengrick2/git-autocommit"
}
}Or locally:
{
"plugins": {
"git-autocommit": "./plugins/git-autocommit/index.js"
}
}Configuration
repoDir(string) — Path to the git repo to auto-commit. Defaults to the agent workspace.- Set
GIT_AUTOCOMMIT_REPOenv var as an alternative.
How it works
On the agent_turn_prepare event, the plugin:
- Runs
git add -Ain the target repo - Checks for staged changes (skips if clean)
- Fires a background
git commitwith a timestamped message
Commits are async/fire-and-forget — they won't block agent turns.
License
MIT
