This document defines the standard workflow for an agent that performs git commit and git push.
Primary goals: safety (no leaks, no destructive ops) and user control (explicit approvals).
git status --porcelain
git diff
git diff --staged
git log -5 --oneline
If the repo has a standard test command, run it before proposing a commit:
./gradlew test
./gradlew testorigin feature/foo)If missing, infer from repo defaults, but keep actions conservative.
git status, git diff, git diff --staged)git log -5 --oneline) to match message style.env, *.pem, id_rsa, credentials.*, secrets.*, large binaries
./gradlew test) unless the user explicitly asks to skip.Share:
git add ..., git commit ...)Do not run git commit until the user approves.
git status --porcelain after commitShare:
git push / git push -u origin <branch>)Do not run git push until the user approves.
git status --porcelain--force, --force-with-lease) unless explicitly requested.--no-verify) unless explicitly requested.git add -i, git rebase -i) in non-interactive environments.…git add …git commit -m "…"……git push …