Commit with user prompts from this conversation. Use when user mentions committing, wants to commit changes, asks to save their work to git, or says "commit this".
Create git commits that include the user prompts that led to the changes.
Extract User Prompts: Collect user messages from this conversation that led to the changes. Include them in chronological order.
Analyze Changes:
git status
git diff --staged
Get Session Info:
uv run {baseDir}/ai-blame.py session-info
Generate Commit Message:
<brief summary of changes>
User prompts:
- "<first user prompt>"
- "<second user prompt>" (context if prompt is ambiguous)
AI-Session-ID: <from session-info>
AI Agent: <from session-info>
Model: <from session-info>
Execute Commit:
git add -A && git commit -m "$(cat <<'EOF'
<your commit message here>
EOF
)"
/commit or meta-discussion)