mantish/ help / docs
Join the waitlist

Quickstart

Install the engine, run your first comparison, and wire Mantish into git.

Last updated

1. Make sure an engine is running

mantish diff does the reading and rendering; the engine does the analysis. It runs locally.

sh
mantish-engine status     # running / unhealthy / stopped / not-installed
mantish-engine install    # first time only
mantish-engine start

You usually do not have to think about this: if nothing is answering, mantish diff starts an engine that is already installed and says so on stderr. Only downloading one needs your consent, so run mantish-engine install once by hand.

If you pin an address with --server or MANTISH_SERVER, Mantish talks to that address and nothing else — it will not start or follow a local engine instead.

2. Run your first comparison

Inside a git repository:

sh
mantish diff

That compares the working tree against HEAD, untracked files included, and opens the review. Two more you will use constantly:

sh
mantish diff Order.cs Order.new.cs   # two files, anywhere on disk
mantish diff main...feature          # what a PR from feature into main would show

Press e to switch split/unified, m to reveal muted changes, q to quit. See The interactive review for the full key table.

3. Get it as text

Anything that is not a terminal gets text instead of a UI — no flag needed:

sh
mantish diff > review.txt
mantish diff | less

Or ask for a format explicitly:

sh
mantish diff --format side-by-side --width 120
mantish diff main...feature --format markdown > review.md
mantish diff --format json | jq '.summary'

See Choosing a format.

4. Cut the noise

sh
mantish diff --hide formatting,whitespace,import --spotlight breaking

--hide drops those changes from the output entirely and counts what it dropped. Nothing you pass here is saved anywhere — it applies to this run only. See Noise control, and Profiles once you are tired of typing it.

5. Make git use it

sh
mantish git-config            # prints the three git config lines
mantish git-config --install  # runs them
git difftool --dir-diff main  # one Mantish, with the file navigator

See Git integration.

Was this page helpful?