DiffSense

DiffSense

Local AI git commit generator for Apple Silicon

455 followers

DiffSense uses the native AFM 3B model on Apple Silicon to generate git commit messages for free. It runs locally with zero latency, ensuring your code stays private. Features customizable message styles and powerful alias macros.
DiffSense gallery image
DiffSense gallery image
DiffSense gallery image
DiffSense gallery image
DiffSense gallery image
Free
Launch Team / Built With
NMI Payments
NMI Payments
Don’t Integrate Payments Until You Read This Guide
Promoted

What do you think? …

Zac Zuo
Hunter
🧐 Good find
📌

Hi everyone!

André @conduit_design shared this tool with me and I immediately thought it was such a smart use of the hardware we already own.

If you are burning API credits just to get AI commit messages, DiffSense solves this by using the native AFM 3B model directly on your Mac. It runs locally, which means it is completely free and private.

It feels like a native dev tool with zero latency. If you are on an Apple Silicon Mac, this is basically a free upgrade for your git workflow.

Give it a try!😽

André J
It’s a badge of honour to be hunted by @zaczuo , totally out of the blue! super grateful! 🙏
Zac Zuo

@conduit_design Always love on-device AI use cases. Happy coding!

Malek Moumtaz
@conduit_design Using the local AFM model is a clever angle! How do you think about quality vs. generalization over time ? As in handling very large diffs or less common languages.. without falling back to cloud models or losing the zero-cost, zero-latency promise?
Dimitris Kargatzis

Super convenient, especially now that so much code is written with AI assistants!

A killer next feature would be diff grouping with tailored commit messages per group - this would be a huge win for large, messy PRs.

Prastik Gyawali

@dkargatzis Yeah, diff grouping could be helpful for larger changes. Thanks for the feedback! we’ll be rolling it out in the next version :)

Dimitris Kargatzis
@prastik keep me in the loop - I want to try this feature out.
Prastik Gyawali

@dkargatzis Sure, we in fact have an issue tracker for the same. https://github.com/edgeleap/diffsense/issues/49 Please feel free to add any additional requests. Thanks!

Dimitris Kargatzis

@prastik I've noticed that, yes. And, I've already described the path I'd follow to support this feature without hallucinations for huge diffs!

André J
@dkargatzis we worked late last night to get the byo feature you we talked about, Just made it 2h before launch 😅 @prastik well done! And the split feature is top of our list for the next big release.
Alex Cloudstar

Been paying API pennies for commit msgs. Adds up, kinda silly. Local on M1 with instant output sounds right. If it nails conventional commits and doesn't overdo it, I'm in. I'll try it on a small repo tonight.

Prastik Gyawali

@alexcloudstar Totally agree. Code diffs are something local LLMs handle really well.

We’ve also added multiple message styles (minimal, default, verbose) so you can match your project’s tone, and you can also bring your own prompts to enforce rules.


Would love to hear how it feels on your repo, keen on your feedback.

André J
@alexcloudstar this comment will go right on our landing page! If you allow? 🙏 I swear I spent 100$ of dollars on commit messages just because I’m lazy using opus 4.5 on huge diffs etc.
Russell Dou

@alexcloudstar Totally get you — I was also shocked seeing how much those tiny API calls add up! 😅 Running locally on M1 sounds perfect.

Jay Dev

Wow, DiffSense is awesome! Super excited about the zero-latency commit messages with the local model. Does it handle larger, more complex diffs gracefully, or is there a suggested diff size limit for optimal performance?

André J

@jaydev13 Yes. we shipped large diff support 2h before launch 😅. For very complex commits, try the --pcc and --chatgpt flags for greater fidelity. We will also ship a batching feature soon, that will trade some speed for more fidellity even on apples --afm local 3B native llm. And also segmented commits, where one big refactor is segmented into neat structured commits grouped where things naturally belong etc. + Lots more we envision to supercharge the commit history of any project. We think git history will be a treasure throw for AIs soon, to reason about codebases and how to solve problems holistically.

Farhan Nazir ✪

I have been using GPT-4 wrapper for this but the latency is annoying . How does the AFM 3b handle larger diffs ?

Prastik Gyawali

@farhan_nazir55 Exactly, that’s why we designed it this way. We use a dynamic budgeting strategy so larger diffs don’t overload the 3B AFM model while keeping output quality consistent. Each file gets a calculated character budget, and we intelligently prune less meaningful parts so the model still sees all relevant changes across all the files.

If you’re interested, the full algorithm is documented here: https://github.com/edgeleap/diffsense/issues/34

And if you have ideas to improve it, feel free to open an issue on GitHub, we would love the input. Thanks!

Farhan Nazir ✪

@prastik Sure , I will dive into the repo and if i run into any edge cases , i will definitely open an issue. Thanks for the breakdown!

Chilarai M

Really amazing. Please bring it out for Gitlab and Bitbucket :)

Prastik Gyawali

@chilaraiIn fact, Diffsense is VCS-agnostic, so you can run it on any Git-managed repository, including GitLab and others. You can try it out right away, Thanks!

Nika

Someone is going for No1.

André J

@busmark_w_nika My local Apple Silicon outreach agent is heating up the entire house 😏

1234
Next
Last