Skip to content
laminarity

Laminarity MCP · v0.2.0

Keep the expensive model for the hard parts.

An MCP server for Claude Code, Codex and OpenCode. It routes self-contained, testable subtasks to a model that costs a fraction as much — and applies a patch only after your own check passes.

Needs a Laminarity API key · Free binary · macOS, Linux, Windows

export LAMINARITY_API_KEY=sk-or-...
cd your-repo
spu-mcp init claude-code
spu-mcp doctor

How it works

Delegation you can trust, because it is checked.

01

Agent delegates

Claude Code calls spu_delegate with a subtask, its files and a check such as go test or pytest.

02

Router decides

Tiny edits stay with the agent. Work worth delegating goes to DeepSeek V4 Flash.

03

Patch is checked

The patch is written in a clean copy and the check runs in a sandbox, without network.

04

Gate approves

A one-token yes/no gate is calibrated on your history; the patch lands at 0.8 belief or higher.

Four small tools

All four descriptions together stay under 700 tokens, so the agent pays almost nothing to know they exist.

spu_delegate

Give a subtask with a check. Answers self, escalate, applied or pending.

spu_check

Run a whitelisted check; get failures with file:line and the belief that the task diff is ready.

spu_undo

Revert an applied change by change_id; refuses if the files were edited afterwards.

spu_task

Mark task boundaries — start with a title, type and size, then stop.

Safe by default

  • Consent first

    Code of a repository is sent only after you allow it for that repository, in a separate question.

  • Secrets stay home

    Files like .env, *.pem or anything that looks like a key are never sent; the subtask is escalated instead.

  • Sandboxed checks

    Linux namespaces and Landlock, or Seatbelt on macOS: no network, writes only inside the work copy.

  • Measured savings

    Every token on both sides is metered; spu-mcp report shows whether delegation paid off.

Download v0.2.0

One static binary, no runtime dependencies besides git and the tools your checks call.

SHA256SUMS

Then follow the setup guide: export LAMINARITY_API_KEY, run spu-mcp init, run spu-mcp doctor.