| name | commit |
| description | Smart commit with Ollama-generated messages. Conventional commits, auto-push option. Triggers on: commit this, commit changes, smart commit, /commit. |
| user-invocable | true |
Smart Commit
Generate conventional commit messages using local Ollama (free, no API tokens).
Usage
/commit # Generate message from staged changes
/commit --push # Commit and push
/commit --all # Stage all changes first
/commit --style simple # Simple style (not conventional)
Workflow
-
Check staged changes:
git diff --cached --stat
-
Generate message:
Use aria_commit_message (ARIA MCP) or fallback to ollama_commit_message.
-
Present and confirm:
Show generated message, ask for edits.
-
Commit:
git commit -m "<message>
Co-Authored-By: Ollama <local@ollama.ai>"
-
Push (if --push):
git push origin HEAD
Message Format
Conventional Commits (default)
<type>(<scope>): <description>
<body>
Co-Authored-By: Ollama <local@ollama.ai>
Types: feat, fix, docs, style, refactor, test, chore, perf
Simple Style
<description>
<body>
Examples
/commit
/commit --push
/commit --all
Tool Priority
mcp__aria__aria_commit_message (ARIA MCP - preferred)
mcp__ollama__ollama_commit_message (Ollama MCP - fallback)
- Manual generation (if both unavailable)
Integration with lazygit
AC CLI's qcommit command uses the same logic:
ac qcommit
ac qcommit --push
Lazygit keybinding A also triggers this.
Notes
- First line always under 72 characters
- Large diffs (>4000 chars) are summarized
- Uses local Ollama = zero API cost
- Co-Authored-By identifies AI-generated messages