Aperture's checks now work outside the editor: any agent, and every PR

Since launch, your bots and agents can check a change before they apply it.

Aperture is now an MCP server. Grok Bot, Claude Code, Cursor or any MCP client can call check_change before it applies a change. It checks that the files parse, the imports resolve, and the TypeScript compiler finds no new errors, including in files the agent never opened. It also flags a change that skips or cuts short the tests. Nothing the agent sends is run or kept. Setup takes three steps at

Aperture Agent Check runs the same checks on every pull request, as a CLI or a GitHub Action. Red lines get annotations right on the diff. If a failure was already there in the base branch, it shows as amber, not blamed on the PR. Your code never leaves the runner. Aperture's own PRs go through it.

Honest numbers: in the benchmark, the editor catches 27 of 33 bad edits, with 1 false alarm in 15 good ones. check_change stops 20 of the 33 without running anything. The other 7 only show up when tests run, so keep running them. Every miss is listed at

Changelog:

Code:

If you wire it into your agent, tell me what it misses.

318 views

Add a comment

Replies

Best

This could help catch mistakes before they make it into a pull request.

  Thanks, Amanda. That's the hope.

Does it work just as well with Cursor and Claude Code?

  Yes. Same MCP server. Claude Code, Cursor, Grok Bot, or any MCP client call check_change the same way. Steps for each are at

Yeah I think the amber split is the useful bit. I've had agents report old errors as new ones, then the real failure gets ignored. Do you keep the baseline per branch or recompute it each run?

Thanks Matheus, that's exactly the failure I wanted to avoid. In the editor it's recomputed each run: errors and failing tests are compared against your current files, so anything that was already broken shows amber instead of being blamed on the change. I don't keep a stored baseline per branch yet. Would that be more useful for you, or does recomputing each time feel right?

How do you match existing TypeScript errors when a PR moves the code to different lines?

An unchanged error should stay amber but a new error with the same diagnostic code should still block the change

  Matching is by file, diagnostic code, and message, not by line. If the same TS error moves with the code, it stays amber. A new error with the same code elsewhere still blocks. If a move also changes the message, it can look new. That's a known rough edge.

Here's Agent Check on a real PR, #67 on the Aperture repo. The PR changed one function in preview-check.ts. Agent Check went red on tools.ts, a file the PR never touched, with TS2554, "Expected 2 arguments, but got 1." A one-line fix turned every check green.

A correction too: the numbers in my launch comment are out of date. The benchmark is now 48 cases. It catches 27 of 33 bad edits, with 1 false alarm in 15 good ones.