Diffsense
A free git commit message generator powered by Apple Intelligence
Install / Use
/learn @edgeleap/DiffsenseREADME
Why DiffSense
- Private: Your code never leaves your machine - runs entirely on Apple Silicon
- Fast: Generates messages in seconds using AFM 3B model
- Smart: Handles changes from single files to 100+ file refactors
- Free: No subscriptions, API quotas, or cloud dependencies
Requirements
- macOS Tahoe 26 or later
- git 2.50.1 or later
- Apple Silicon (M1/M2/M3/M4/M5)
Install
- In terminal:
curl -fsSL https://edgeleap.github.io/install.sh | bash - Download the Diffsense.shortcut
- Stage your cahnges and call
diffsensein your terminal
Example git commit message:
Add error handling in login flow
Handle missing token case to prevent crash when API response is null.
Customization
Getting help:
diffsense --help- Show all available options and usage information
Message style:
diffsense- Balanced (default)diffsense --verbose- Detailed explanationsdiffsense --minimal- Brief descriptionsdiffsense --verbose --nopopup- Does not show message pop up.(Useful for agents)diffsense --byo=team_rules.md- Custom prompt instruction
AI models:
--afm- On-device AFM 3B (default, private)--pcc- Private Cloud Compute (more capable)--gpt- ChatGPT 4o (best quality, quota limits)
Custom prompt instructions:
--byo=<file>- Use custom commit message rules from a file- Examples: <br>
diffsense --byo=samplerules.md<br>diffsense --byo=samplerules.md --minimal<br>diffsense --byo=samplerules.md --verbose<br>diffsense --byo=samplerules.md --minimal --gpt<br>diffsense --byo=samplerules.md --verbose --nopopup<br> - See cstm_cmt_msg_rules.md for an example template<br>
- Examples: <br>
- Supports absolute and relative paths for file paths.
Workflow:
--nopopup- Skip edit dialog (useful for agents)
Terminal macros
- Add + diffsense + Push:
uploadinstall:echo "alias upload='git add . && diffsense && git push'" >> ~/.zshrc - Add + diffsense:
commitinstall:echo "alias commit='git add . && diffsense'" >> ~/.zshrc
Troubleshooting
"Command not found"
- Restart your terminal or run
source ~/.zshrc
"No git repository found"
- Run
git initor navigate to a git repository
Model not responding
- Ensure macOS Tahoe 26 is installed and Apple Intelligence is enabled in System Settings
Roadmap
- ✅ BYO prompt instruction via flag + macro for easy access (V1)
- Improve diff algo with chunking (V2)
- Add support for BYO API keys for Anthropic, Gemini, OpenAI etc (V2)
License
MIT © EdgeLeap
Related Skills
apple-reminders
354.0kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
354.0kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
healthcheck
354.0kHost security hardening and risk-tolerance configuration for OpenClaw deployments
node-connect
354.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
