Review a code diff locally against project conventions
At a glance
Apfel's linked walkthrough combines a Git diff and a conventions file in an on-device model request. This workflow is listed under Code Review, Local AI, Developer Tools.
- Agents / tools
- Apfel, Apple Intelligence, Git, Homebrew
SourceBuilding a tool for these workflows? See weekly rates.
What they did
1) Use an Apple Silicon Mac running macOS 26 or later with Apple Intelligence enabled, plus Homebrew and a Git repository containing CONVENTIONS.md. Install the CLI with brew install apfel. 2) Enter the repository and run apfel --model-info to inspect the available local model and context capacity. 3) Review the latest commit with the documented pipeline: git diff HEAD~1 | apfel -f CONVENTIONS.md "Review this diff against our conventions". This sends the diff through standard input and attaches the conventions file. 4) Read the findings alongside the changed lines and conventions before deciding which edits to make. Keep requests small enough to fit the model's input-and-output context window.
Worth knowing
The current README documents 4,096 input-and-output tokens on macOS 26 and M1/M2 hardware, with larger capacity on certain macOS 27 systems. Check the runtime value before preparing a large review.