Skip to content

About

Native git diff viewer with on-demand AI explanations. Go + Wails + React, read-only, works with any OpenAI-compatible LLM

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Magik Diff

version

A native git diff viewer with an on-demand LLM explanation pane, covering a single file, all tracked changes, or any past commit. You stay in the review loop; the model just gets you there faster.

Demo

Why?

Diff tools show what changed. Magik Diff adds a right-hand pane that explains why it matters, and only when you ask for it — never automatically, never per hunk. Review and judgment stay yours; the model shortens the path to them. The tool is strictly read-only: it never stages, commits, or checks anything out.

Split view

Each file's diff renders as unified (+/- inline) or split (old file on the left, new on the right, changes tinted). The Unified/Split toggle sits next to the file name and persists across files.

Shortcuts

Keys Action
Ctrl/Cmd + M Open LLM config
Ctrl/Cmd + B Show/hide the Changes/History pane
Ctrl/Cmd + + / - Zoom in / out
Ctrl/Cmd + 0 Reset zoom
F11 Toggle zen mode
Esc Close open menu

Checks

Built-in checks appear as buttons beside Explain. Each one runs against any diff or commit as an independent LLM call with its own prompt, and shows its results in a scrollable panel.

  • language-consistency — Flags identifiers that are not English, or that mix two languages in one symbol
  • hardcoded-secrets — Flags keys, tokens, passwords and other credentials that the change adds as literal values

CLI

mdiff                          launch the GUI
mdiff --version, -v            show version
mdiff --help, -h               show this help

Build

A native desktop binary built with Wails (Go backend, React frontend). It must be compiled on the target OS.

Windows

./build-win.ps1

Builds build/bin/mdiff.exe.

Linux

./build-linux.sh

Builds build/bin/mdiff (amd64, webkit2_41).

macOS

No build script yet; use Wails directly:

wails build

Requirements

  • Go >= 1.25
  • Wails CLI
  • Node.js (for the frontend build, invoked automatically by Wails)
  • An OpenAI-compatible HTTP endpoint for the explain feature (any provider, no SDK lock-in)

License

MIT © koder0x

About

Native git diff viewer with on-demand AI explanations. Go + Wails + React, read-only, works with any OpenAI-compatible LLM

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages