CRITICAL:
- Do NOT run
git status,git diff,git log, or any other commands beforegit-agent commit. - Always pass
--co-authortogit-agent commit. If$ARGUMENTSis non-empty, use it verbatim. Otherwise self-derive from your own runtime model identity (the model named in your own system prompt) plus<noreply@anthropic.com>— e.g.,Claude Opus 4.7 <noreply@anthropic.com>. Never run a commit without--co-author.
- Derive a one-sentence intent from the conversation.
- Resolve
<co-author>: if$ARGUMENTSis non-empty use it verbatim; otherwise build<your-running-model> <noreply@anthropic.com>from your own runtime identity. - Run:
git-agent commit --intent "<intent>" --co-author "<co-author>" - On auth error (401), retry the same command with
--freeappended; keep the--co-authorflag. - Fallback (binary unavailable): manual
git commitwith Conventional Commits format via HEREDOC, including aCo-Authored-By: <co-author>trailer in the message body. git push(add-u origin <branch>if upstream not set).
CLI reference: ${CLAUDE_PLUGIN_ROOT}/references/cli.md