mantish/ help / docs
Join the waitlist

AI triage

Let your own coding agent sort a pull request's files into what to read closely, what to skim and what to skip.

Last updated

A large pull request rarely needs the same attention in every file. AI triage asks your own coding agent — Claude Code, Codex, or any agent that can run a command — to sort the files for you:

  • Review — read it closely.
  • Skim — a quick look is enough.
  • Skip — nothing to judge: regenerated output, lockfiles, formatting.

Each verdict comes with one sentence why. Inside a file the agent can also point at line ranges: changes you can skip, and the changes to focus on.

The agent works outside Mantish and reads the pull request through the mantish command. What it writes stays private to you: it cannot comment, vote, change the pull request, or mark anything as reviewed.

AI triage is part of the Pro plan, for pull requests on GitHub, Azure DevOps, GitLab and Bitbucket. Your agent needs the mantish command on its PATH, on the machine where Mantish runs — it reaches the same engine as the app, and starts an installed one that is not running.

Ask for a triage

  1. Open the pull request and switch the file list to AI (beside Files and Tags).

  2. Optionally write a Focus — what the agent should keep in mind, for example "I review the backend only."

  3. Click Copy prompt and paste it into your agent's chat:

    text
    Run `mantish pr triage start 42 -r shop` and follow its instructions.
    

That one line is all the agent needs: the command prints its instructions, the pull request's files and how to report back. The AI tab shows a dot while a triage is waiting or running.

The brief also says what the change may break, as Mantish computes it from the semantic diff: a method deleted while its usages remain, a signature changed with callers the pull request did not update, a body changed and the callers that reach it — up to 20 entries, each with the command that lists its places. A file holding a breaking entry is one the agent is asked to read closely. The agent weighs these as facts, never as instructions; a brief whose answer takes longer than 30 seconds goes without them.

While the agent works

The view follows the agent live: Agent triaging · 23 of 55 files, with the groups filling in.

You want toDo
Withdraw a request the agent never ranCancel
Copy the prompt againCopy again
End a triageStop — the agent is told to stop at its next command

If the agent goes quiet for ten minutes the view says so; it may have stopped without finishing.

Read the result

The files are grouped:

GroupWhat is in it
Needs reviewFiles the agent says to read closely
SkimA quick look is enough
SkipNothing to judge — folded, since it is usually the longest
Not triagedNo verdict yet, or the file changed since the triage
Withheld from the agentFiles your rules kept from the agent and it could not judge (see below)

Under each file: the agent's reason, then its ranges — ◎ 31–38 for a focus, ⊘ 25 for a skip, each with its own reason. Click a range to open the file there. The header holds the agent's summary: what the pull request does and where its risk is.

Mark all on a group marks its files reviewed — on Skip, that is accepting the agent's skips in one click. The reviewed marks stay yours: the agent never sets one.

In the diff

With a triage in place, the open file shows the agent's verdict above its code:

Agent: skim — Mostly regenerated. · 4 changes muted by the agent · Mark them reviewed

Changes inside a skip range are muted. Changes inside a focus range keep their colours and get an AI mark beside the number of their first line — hover it for the agent's reason. The agent marks only what your own mute and spotlight rules left plain: it never un-mutes what you muted, nor mutes what you spotlighted, and its focus never looks like your spotlight. Mark them reviewed marks the changes the agent muted as reviewed.

Turn the agent's marks off with Settings › Agents › Show agent marks in the diff, or the command palette's Hide Agent Marks in the Diff.

After new pushes

A verdict belongs to the version of the file it was written for. When the pull request moves on, files that did not change keep their verdicts; changed ones drop to Not triaged, and the view offers Triage them — a new triage that asks the agent about those files only.

New triage… starts over with a new focus; Clear triage removes every triage of the pull request (your reviewed marks stay).

Add your own instructions

Settings › Agents › Additional instructions for AI triage holds text that Copy prompt appends to the prompt after a blank line — for example "Answer in Polish. Be strict about tests." The same page has a field for the prompt of a local review round. Below each field you see exactly what will be copied. In the terminal, all three are under :settings › Agents, where e opens the one under the cursor in your editor.

What the agent may see

Your ignore files decide it, in the engine — see Ignored files › What coding agents may see. A file under [agents] does not exist for the agent; a file under [agent-content], an environment file (.env, .env.production, …) or a file Mantish recognises as secrets is shown by its path and counts, never its content. The Withheld from the agent group lists what was kept back.

Command palette

CommandWhat it does
File list: Show AI TriageSwitches the file list to AI
Copy AI Triage PromptCopies the prompt and asks for a triage
Show / Hide Agent Marks in the DiffTurns the agent's marks in the diff on or off
Mark the Agent's Skipped Changes as ReviewedMarks the open file's changes the agent muted reviewed

The commands your agent runs

You never have to type them, but they are ordinary commands — see the CLI reference:

CommandWhat it does
mantish pr triage start ID -r REPOStarts the triage you asked for and prints the agent's brief
mantish pr diff ID -r REPO --file PATHReads the changes, filtered and without what you withheld
mantish pr triage set ID -r REPO --run NRecords verdicts; each line is checked and answered at once
mantish pr usages, flow, impactList the places of what the brief says the change may break
mantish pr triage finish ID -r REPOEnds the triage with its summary

Where to find it

AppWhere
Desktop app (and browser)Open a pull request; AI beside Files and Tags in the file list
VS CodeThe same, in the Mantish view
Any terminalThe mantish pr commands above — what your agent runs
Was this page helpful?