suss
suss reads your code and checks what it does at every boundary, such as a route or a table, against the clients, specs and infrastructure on the other side. It works on TypeScript, Python and Ruby.
Code is written faster than anyone can read it. Large pull requests land all day, and no reviewer can keep one of them in their head. A diff shows you which lines of text changed, and you still have to work out what the service does now. Tests written alongside the change only check what their author meant. suss reads the code and writes down what it does on every path, from the request or message that comes in to the table or queue it touches, so you can read that instead. There is no model in it, so the same code gives you the same description every time.
To see a whole project first, run npx @suss/cli map. It writes one page of the routes, GraphQL fields, tables and env vars, and what each route reaches, which you open from disk. See an example.
Read one service
npx @suss/cli inspect
inspect reads the project you run it in. It works out which packs the project needs from its dependencies, the same way suss init does, and prints the ones it picked. suss init also saves that choice to suss.json, so every later command uses the same packs.
src/api.ts
├─ GET /users/{id} (hono handler | line 5)
│ if !findUser()
│ -> 404 { error }
│ elif findUser().deletedAt
│ -> 410 { error }
│ else
│ -> 200 { id, name, email }
│
└─ POST /users (hono handler | line 19)
if !c.req.json().name
-> 400 "name is required"
else
-> 201 { id, name }
Each handler is listed with every path it can take, and each path shows the status and the body fields it produces. When suss cannot follow a call, it lists that call under the handler, so a path it could not read still shows up.
The same summaries are available to a coding agent over MCP, so it can ask what a route reaches or what writes a table before it edits either:
{
"mcpServers": {
"suss": { "command": "npx", "args": ["-y", "@suss/mcp", "/path/to/project"] }
}
}
suss init writes the suss.json the server reads. You can ask the same questions from the shell with suss ask 'what writes postgresql:Article'.
Read what a change did
inspect --diff compares two summary files. Run it on the base and the head of a pull request and it reports what the change did to each unit, whichever lines the diff touched:
1 boundary changed: 3 outcomes.
~ serves GET /users/{id} src/routes/users.ts::get (3 outcomes)
outcomes
+ responds 200 { id, status } when findUser() && findUser().deletedAt
- responds 410 { error } when findUser() && findUser().deletedAt
~ responds 200 { id, name, -email } otherwise
Changes by file
src/routes/users.ts
~ get
A deleted account used to get a 410 and now gets a 200 with status: "deleted", and email is no longer in the response. Both versions compile and the types still line up. Every caller that treats a 200 as a usable account is now wrong. On a large pull request, read this output first.
What you use it for
- A service you did not write, or one an agent changed an hour ago.
inspect prints what each handler, consumer and query does on every path, in a page, without reading the source.
- A pull request too large to read.
inspect --diff on the base and the head tells you which units changed behavior and how.
- An agent about to edit something. Over MCP it asks what a route reaches, what writes a table, or what calls a function, and gets file and line for each.
- A spec that drifted.
suss contract reads an OpenAPI document, a Prisma schema or a CloudFormation template into the same form, and check reports where the code and the document disagree.
- A field you want to remove.
check pairs every handler with the clients that call it and tells you which client reads the field, or never handles a status the handler produces.
Here is what a finding looks like, taken from the runnable example in this repo:
[WARNING] unhandledProviderCase
Provider produces status 404 but no consumer branch handles it
provider: openapi:openapi.json::getPetById (openapi:openapi.json:0)
consumer: src/petstore-client.ts::describePet (src/petstore-client.ts:66)
boundary: openapi (http) GET /api/v3/pet/{petId}
Adopting it
Each step takes a little more work than the one before, and needs a little more from the codebase. You can stop at any step that already gives you enough. The adoption guide gives the command for each step, what it reports, and what a false positive looks like at that step.