o
odinpkg.dev
packages / tool / saft

saft

v0.1.95tool

A cli tool which uses Apple's on-device LLM to write commit messages for you.

No license · updated 1 month ago

saft

A Git commit-message generator powered by Apple's on-device language model. No API keys. No cloud. No data leaves your Mac.

saft_demo.mp4

Install

curl -fsSL https://raw.githubusercontent.com/Mechse/saft/master/install.sh | bash

To audit the script before running:

curl -fsSL https://raw.githubusercontent.com/Mechse/saft/master/install.sh

To uninstall:

sudo rm /usr/local/bin/saft /usr/local/libexec/saft-helper

Roadmap

  • Tier 1: small diffs sent as-is
  • Tier 2: compressed diff (--stat + --unified=0) for medium diffs
  • Tier 3: per-file map-reduce for very large diffs
  • --candidates N to generate multiple messages and let you pick
  • --message-only flag for use in prepare-commit-msg git hooks