Ignored files
Keep lockfiles, generated code and snapshots from skewing counts and groups.
Some files change in every pull request and are never worth reading line by line — lockfiles, generated code, test snapshots. Ignoring them keeps them from inflating the numbers you rely on, without taking them out of the review.
An ignored file stays in the file tree, marked Ignored. You can still open it. It is simply left out of:
| Category | What it means |
|---|---|
| Count | The file and change counters |
| Group | The grouping on the Identical changes tab |
| Mute | The mute and spotlight counters |
Two ignore files
| File | Where it lives | Who it is for |
|---|---|---|
| Global ignore file | On your computer, in Mantish's data folder | You — it applies to every repository |
| Repository ignore file | .mantish/ignore in the repository | Your team — commit it like any other file |
The global file is created on first run with rules for the common lockfiles (npm, pnpm, Yarn, NuGet, Cargo, Go, Gradle and more), and keeps environment files' content from coding agents (see below). When a Mantish release adds defaults, they are appended to the end of your file; nothing you wrote is changed. Rules from the repository file are added on top of it.
Writing rules
Both files use glob patterns, one per line, like .gitignore. ** crosses folders, * and ? do not, and # starts a comment. A pattern on its own is ignored in all three categories; a section header narrows the patterns after it:
# Generated clients — never worth reading
**/Generated/**
# Migrations: still counted, but kept out of grouping and mute counters
[group,mute]
**/Migrations/*.cs
What coding agents may see
The same two files decide what a coding agent gets from Mantish — AI triage, mantish pr diff and mantish diff's output. Two more sections say it, and they leave the three categories above alone:
| Section | What an agent gets of a matching file |
|---|---|
[agent-content] | Its path, how it changed and its change counts — never its content |
[agents] | Nothing: it is not listed, not counted, and a verdict that names it is refused |
# Never given to an agent, not even by name
[agents]
internal/acquisitions/**
# The path and the counts only
[agent-content]
config/appsettings.Production.json
- A pattern with no section header never reaches agents, so your lockfile rules keep their meaning.
- The global file comes with
**/.envand**/.env.*under[agent-content]: environment files hold secrets often enough. Delete the lines if your agents should read them — deleted defaults never come back. - Files Mantish recognises as secrets —
.env.keys,*.pem,*.key,*.tfstate, SSH keys, kubeconfigs and the like — never give their content to an agent, rule or no rule. - For a pull request, the repository file is read at both ends — the target branch and the pull request's head — and both apply: a pull request can add a rule, but cannot drop one to show an agent what the target branch keeps back.
- If a file that may hold such rules cannot be read, the command fails instead of going on without them.
You see what was kept back: the AI view's Withheld from the agent group, and Rules in effect marks each rule Agents or Agent content.
A policy, not a sandbox
These rules decide what Mantish hands an agent. They do not stop an agent that runs shell commands from opening a file in your clone, or from calling Mantish's local API itself. To keep a file away from Claude Code too, deny it in the project's .claude/settings.json (a pattern without a slash matches at any depth, like **/ in an ignore file):
{
"permissions": {
"deny": ["Read(.env)", "Read(.env.*)", "Read(./internal/acquisitions/**)"]
}
}
Claude Code applies such rules to its own file tools and to the shell commands it recognises; a script that opens files itself is only stopped by Claude Code's sandbox, which you turn on separately.
Where to edit
| App | Where |
|---|---|
| Desktop app | Settings › Ignored files › Edit global file. Rules in effect lists every rule and its file |
| JetBrains | In development |
| Terminal | :settings › Ignored files — e opens the global file in your editor |
The repository file is read from the repository under review; edit it in your editor and commit it. You can also edit the global file in any text editor — Mantish picks up the change.