CRITICAL:
- Do NOT run
git status,git diff,git log, or any other read commands beforegit-agent commit. - Execute
git-agent commitdirectly.git-agent(v0.7.0+) automatically detects active model attribution from session environment variables (PI_MODEL, etc.).
Execution
- Derive a concise one-sentence intent from the conversation or
$ARGUMENTS. - Pass
--co-author "<co-author>"if explicitly specified in$ARGUMENTSor user instructions. - Run primary commit command:
git-agent commit --intent "<intent>" - If specific files are already staged, pass
--no-stage:git-agent commit --no-stage --intent "<intent>" - On auth error (401), retry with
--free:git-agent commit --free --intent "<intent>" - Fallback (if
git-agentbinary is not found): report the error and ask the user to install git-agent or run git commands manually.
CLI Reference: ../../references/cli.md
Deterministic messages: When an exact commit message is required (e.g. version bump
chore: bump version to 0.11.0), pass the full conventional message as the--intentvalue. The intent is used as the commit subject verbatim.