Skip to main content
Glama

After a change, your agent asks plimsoll and gets back the areas the change made worse, the files outside it that use what it altered, and a few findings, each measured, each with its limit and a way to check it. Here is a real answer for the last 30 commits of Obtainium:

plimsoll 0.11.0 status: base `HEAD~30` e9087ce099, head 35c3e7fea4
Areas: 3 worse (dependencies 1, wiring 1, functions 2); not analysed: settings
Blast radius: 50 files outside the change use or import what it altered or removed (25 product, 25 test)
3 new, 1 grown, 0 resolved; 14 more in `report` only

1. [new, exact] `pubspec.yaml` names 1 runtime dependency that was not there at the base: `cronet_http` (47 now, 46 at the base).
2. [new, candidate] `lib/pages/add_app.dart` `runSearch` crossed the limit of 25 in this change: cognitive complexity 22 → 46 (+24).
   verify: read lines 388–627 (172 of them added by this change): it nests 7 levels deep at line 576; …
3. [grown, candidate] The ring of `lib/app_sources/apk4free.dart` has 77 files, 74 at the base.
   verify: grown through `lib/components/app_list_tile.dart` line 9 importing `lib/app_sources/github.dart` and 20 more, added by this change; …
…

Let your agent set it up

Paste this into your coding agent (Claude Code, Codex, OpenCode, Cursor or any other with a shell). It installs plimsoll, connects it, reads your repository and proposes a .plimsoll.toml, writing nothing without your yes:

Fetch https://raw.githubusercontent.com/julianzh0/plimsoll/main/docs/agent-setup.md with `curl -fsSL` and follow it.

In Windows PowerShell the command is curl.exe -fsSL; an agent without a shell needs the setup page pasted in. Then ask it, for example: "Use plimsoll to check what this branch did to the repository since main." To install and connect by hand instead, see Install.

Related MCP server: CodeAudit MCP

What it catches

  • Which areas got worse: one line per answer counts the areas the change made worse or better (size, dependencies, wiring, functions, process), each backed by the marks it names. No score is invented.

  • Blast radius: how many files outside the change use or import what it altered or removed, product files first.

  • New dependencies a change slipped in, and whether a lockfile holds them.

  • Functions the change made hard to read: deep nesting or pasted blocks, in 12 languages.

  • Size: code files past their line limit, test code growing past twice the product code, and the test lines of each kind of test your repository declares.

  • Wiring: an import ring the change closed or grew, folders depending on each other in a circle, product code importing test code, and imports that break the rules your repository declares.

  • Hidden coupling: files that keep changing together in the same commits.

  • Process leftovers: a plan or review file committed, a setting defined twice or never read, and added code that nothing uses.

Your own rules

An optional .plimsoll.toml at the repository's root, committed and reviewed like any other file, sets your own limits, tells plimsoll how your repository is laid out, and declares your architecture. Every key is optional:

[limits]
file_lines = 1500                           # a code file's line limit (default 1,000)
test_ratio = 3.0                            # test lines per product line (default 2.0)
shared_commits = 8                          # commits two files share before they are a pair (default 5)
hotspot_files = 5                           # files the report lists as hotspots (default 3)

[layout]
test_folders = ["checks", "tools/harness"]  # folders whose code is test code
test_files = ["*_spec.rb", "*IT.java"]      # names of test files
planning_folders = ["backlog"]              # folders of planning or review notes
planning_files = ["*.plan.md"]              # names of planning or review notes

[ignore]
folders = ["src/test/resources/fixtures"]   # folders whose files plimsoll leaves out
files = ["SPEC.md", "*.generated.go"]       # names of files plimsoll leaves out

[defaults]
base = "main"                               # the base of a question that names none

[imports]
never = ["src/domain -> src/adapters"]      # code under the first folder imports none under the second
only = ["src/domain -> src/shared"]         # code under the first folder imports only there and in itself

[acknowledged]                              # standing items reviewed and kept on purpose, each with a reason
"process.planning-file:SPEC.md" = "a lasting specification, not a plan"

[tests]                                     # your kinds of tests, by your own names; the first that matches wins
integration = ["**/*_integration_test.go", "tests/integration/**"]
e2e = ["e2e/**"]
unit = ["**/*_test.go", "tests/**"]

Key

What it declares

file_lines, test_ratio, shared_commits

The limits of the file-size, test-ratio and co-change rules

hotspot_files

How many files the report lists as hotspots

test_folders

Folders, as paths from the root, whose code files count as test code, beside the defaults

test_files

File names of code files that count as test code wherever they lie: * is any run of characters, ? one

planning_folders

Folders, as paths from the root, whose files are planning or review records, beside the default paths

planning_files

File names, with the same patterns as test_files but without regard to case, of planning or review records wherever they lie

folders under [ignore]

Folders, as paths from the root, whose files plimsoll leaves out: no code, no planning record, no documentation it reads

files under [ignore]

File names, with the same patterns as test_files, of files plimsoll leaves out wherever they lie

an entry of [acknowledged]

A mark identifier exactly as an answer printed it, and a reason: a standing item with that identifier is listed under "Acknowledged" in report instead of "Standing", and status counts such items in one line. The item is still measured and counted; when it grows, or a new item gets its identifier, it shows as usual. Function marks never stand, so they are not acknowledged. The reason is required and never printed

never, only under [imports]

Import rules, each "<folder> -> <folder>" (below)

an entry of [tests]

A kind of test code by the repository's own name (letters, digits, _, -) and its path patterns from the root: * and ? within one folder level, ** for any depth (e2e/**, **/*IT.java). A test-code file belongs to the first kind listed that matches it; report counts each kind's test lines and the rest. A kind never makes a file test code: declare that in [layout]

base

The branch, remote branch or tag a question without a base compares with. A remote branch is named with its remote (origin/main): main alone finds no remote branch. A branch of the name comes before a remote branch, and a remote branch before a tag

A declaration adds to the defaults and takes none away. The file switches no rule off: an acknowledged item is still measured and counted, only listed apart, and [ignore] is the one way to leave files out. Every mark names its limit's source, for example "1,500 lines, set by .plimsoll.toml", and a limit or declaration changed since the base is itself a mark, so raising a limit to silence a finding shows in the answer.

Import rules turn your architecture into marks. Each is one text "<folder> -> <folder>", two folders from the root:

  • never = ["a -> b"]: product code under a imports no code under b.

  • only = ["a -> b", "a -> c"]: product code under a imports code only under a itself and the folders named; a folder created later is outside until an entry names it.

A change that writes an import breaking a rule gets a mark naming up to two such imports by file and line; a break already at the base is standing. A broken rule is information, never a gate or an exit code. What a rule cannot see in each language, and how invalid values are handled: rules.

Why you can trust it

Every finding is measured, names its limit and where that limit comes from, and says how to check it yourself. plimsoll only reads: no network, no telemetry, nothing written into your repository, nothing stored. Each mark was read blind on real agent pull requests before it was allowed into the short answer, and marks that failed that test show only in the full report. MIT licensed. It works next to your linters and CI, not instead of them. Guarantees and their tests.

What plimsoll does not read

plimsoll reads tracked files and runs nothing but git. What only running or configuring your build can tell, it does not know:

  • CMake. Include folders named through variables, a target's own sources, *.cmake modules, project functions and other build systems; a sub-project built on its own.

  • Gradle. What build scripts and convention plugins add, a catalogue declared in a settings script, and test code shared between modules by script.

  • Maven. Profiles, a parent outside the repository, and properties set outside the pom.

  • MSBuild. Package references that come through Choose or an imported file.

  • Package.swift. Anything beyond literal names, paths and dependency lists, and which packages only test targets use.

  • vcpkg. Dependencies of features that are not default.

  • Macros. What a C or C++ macro stands for, and a module or name a Rust macro creates.

  • Rust. A module file named only under cfg_attr, which the build configuration chooses.

  • Preprocessor. Which branch of an #if a build takes.

  • tsconfig. A base configuration that comes from an installed package.

  • trigger.dev. Task folders that dirs in trigger.config names; plimsoll takes the trigger folders.

Speed

The first question on a repository takes a few seconds; every later one, also after an edit, is much faster (about a quarter of a second on a few thousand files), because plimsoll keeps what it has read in memory while it runs. Measured with plimsoll 0.11.0 on an Apple M6 (12 cores, 32 GB) against the last 30 commits, medians of three runs, while other work was running (load average 1.5 to 3.2):

Repository

Files

First question

Later questions

Peak memory

Obtainium

320

2.3 s

0.18 s

0.2 GB

LocalSend

1,037

2.5 s

0.21 s

0.4 GB

nlohmann/json

1,674

10 s

0.26 s

0.7 GB

swc

83,143

42 s

6.7 s

2.5 GB

Install

macOS and Linux, amd64 and arm64:

curl -fsSL https://raw.githubusercontent.com/julianzh0/plimsoll/main/install.sh | sh

The script downloads the binary of the latest release, checks its SHA-256 checksum and puts it in ~/.local/bin (PLIMSOLL_INSTALL_DIR changes the folder, PLIMSOLL_VERSION picks a release). You can also download a binary and checksums.txt from the release page yourself, or build from source with Go (see Development).

Windows, amd64 and arm64, in PowerShell:

irm https://raw.githubusercontent.com/julianzh0/plimsoll/main/install.ps1 | iex

The script does the same and puts plimsoll.exe in %LOCALAPPDATA%\plimsoll, which it adds to your user PATH ($env:PLIMSOLL_INSTALL_DIR and $env:PLIMSOLL_VERSION work as above). Every change runs the unit and integration tests on Windows too.

plimsoll is listed in the official MCP registry as io.github.julianzh0/plimsoll: clients that install from there get an MCP bundle with the binaries above.

Connect your agent

plimsoll is a local MCP server on standard input and output. It reads no setting; plimsoll --version and plimsoll --help only print and exit.

Claude Code

claude mcp add plimsoll -- plimsoll

Codex (the CLI, the IDE extension and the ChatGPT desktop app share this setting)

codex mcp add plimsoll -- plimsoll

or in ~/.codex/config.toml:

[mcp_servers.plimsoll]
command = "plimsoll"

OpenCode

opencode mcp add --global plimsoll -- plimsoll

Any other MCP client (Claude Desktop, Cursor, Antigravity and others), in its server configuration:

{
  "mcpServers": {
    "plimsoll": { "command": "plimsoll" }
  }
}

Or let your agent do all of this: see Let your agent set it up.

Tools

Tool

Returns

status(repository, base?)

the areas the change made worse, better or could not analyse and its blast radius, at most five new or grown marks, one line that counts the marks shown in report only, one that counts what the change touched but did not create, one that counts added code without a use, the standing line, one that counts the standing items the repository acknowledges, the footprint and what was not analysed

report(repository, base?, files?)

the same areas and blast radius, then everything measured, in a fixed layout, the touched items included. Standing items of one kind past five are counted by folder in the text, and structuredContent holds them all. With files, also the files that import each named file

explain(repository, base?, mark)

the evidence of one mark, computed again and capped

Without base, a question compares with the default base the repository declares in .plimsoll.toml, and the answer's first line says so. Every result carries the text in content and the same answer as structuredContent. An answer may shorten, never hide: what it leaves out it counts ("3 more: report lists them"), and report holds every mark.

Learn more

License

MIT

Available Tools

3 tools
explainA
Read-onlyIdempotent

The evidence behind one mark, computed again from the repository: the files, lines and patterns it rests on, the counts, and what was left out. mark is the identifier exactly as status or report printed it, with the same base. Use this to check one mark; use status or report to find the marks.

Inputs: mark (required), repository (required), base. Returns: base, head, more, marks, +18 more

reportA
Read-onlyIdempotent

The full answer about what a change did to a git repository since base: the same areas and blast radius, every mark, every measured number with its value at base, the standing marks one by one, those the repository acknowledges in its .plimsoll.toml (acknowledging is done in that file, not through a tool), the footprint of the change, and what was not analysed. Use this when the five marks of status are not enough or you need the numbers; use explain for the evidence behind one mark. For each repository file named in files, the answer also lists the files that import it.

Inputs: repository (required), base, files. Returns: base, head, more, marks, +18 more

statusA
Read-onlyIdempotent

The short answer about what a change did to a git repository since base: the areas it made worse, better or could not analyse and the files outside the change that use what it altered (its blast radius), at most five new or grown marks, each with its limit and a way to check it, then one line each counting the marks shown only in report, the items the change touched but did not create, added code without a use, and the standing marks. A mark is one measured finding; a standing mark was already over its limit at base. Use this for the short answer; use report for every mark and number, and explain for the evidence behind one mark.

Inputs: repository (required), base. Returns: base, head, more, marks, +18 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools form an explicit escalation hierarchy: status is the short answer, report is the full answer with every mark and number, and explain drills into the evidence for one mark. Each description names the others and states precisely when to prefer one over another, so an agent can pick correctly without guessing.

    Naming Consistency4/5

    All three names are single lowercase words with no separators, which is a clean and predictable style. There is a minor grammatical mix (explain and report read as verbs/actions while status reads as a noun), but the vocabulary is uniform and readable.

    Tool Count4/5

    Three tools is at the thin end, but each occupies a distinct granularity layer (summary, full report, per-mark evidence) and none is redundant. The surface is well-scoped for a read-only change-analysis server, though it leaves little room for alternate entry points.

    Completeness4/5

    The read-only analysis lifecycle is covered end to end: short overview, exhaustive detail, and evidence for any single mark. Gaps are minor and workable—there is no dedicated way to list or search marks directly (you must pull the full report), and acknowledgement is deliberately delegated to .plimsoll.toml rather than a tool.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers