Listed from the MCP registry; nobody on Odel publishes it.
Plan review for coding agents: request review, wait for a version-bound approval, revise.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y lake-gate
MCP client config
{
"mcpServers": {
"lake-gate": {
"command": "npx",
"args": [
"-y",
"lake-gate"
]
}
}
}Your agent writes the plan. A teammate approves that exact version. Then the agent builds.
lake-gate is a small, free, open-source plan gate for teams using Claude Code and Cursor (other agents work through the CLI). It runs in your repo and on GitHub. There is no Lake server, no account and no telemetry.
.lake/plans/<id>.md with a complexity rating, a recommended model per step and a cost range./lake approve <id>@<version>. Edit one word of the plan and the approval no longer applies.PreToolUse hook denies file edits and non-read-only shell commands until the active plan's current version is approved. Reading and exploring stay free.lake/plan-approval status. Make it required and unapproved plans can't merge.npx lake-gate ui, or use the hosted static app (it talks to the GitHub API straight from your browser). Live demo with a made-up team.Model: Opus 5.5, or (model: haiku) on a step). Reviewers suggest a cheaper model, a dropped step or a cap, and the author accepts it in one click, which saves a new plan version.budget.approverAbove dollars, one of budget.approvers (GitHub logins) must also approve that exact version. It shows in the app, the PR check and the MCP tools..lake/ directly. Set autoApprove.mode to shadow or off to be stricter.cd your-repo
npx lake-gate init # writes .lake/, the Claude Code hook, the GitHub workflow, and MCP config for Claude Code + Cursor
npm i -D lake-gate # optional for JS repos: faster hook than npx
git add .lake .claude .github .mcp.json .cursor && git commit -m "Add lake-gate" && git push
npx lake-gate ui # the review app on localhost
Trying it alone first? npx lake-gate init --try sets up a local-only trial where you can approve your own plans with npx lake-gate approve. Nothing is posted anywhere.
Then in GitHub: Settings → Branches → branch protection → Require status checks → lake/plan-approval (the check appears after the first PR runs).
Requirements: Node 18.17+, git, a GitHub repo. macOS/Linux shells for the hook (Windows: use WSL for now).
Upgrading. Run npx lake-gate@latest init again and commit. It updates the workflow in place (0.2.3+ adds a push trigger so policy changes re-check open PRs) and keeps everything else. It never touches .lake/config.json, not even with --force.
PRs opened by an agent or bot with the workflow's GITHUB_TOKEN don't trigger other workflows, and GitHub may hold the Lake run as "Approval required" until a maintainer approves it, so lake/plan-approval doesn't appear. Open agent PRs with a personal token or a GitHub App token, or push one commit as a human.
.lake/plans/add-webhook-retries.md and tells you its version and estimate. In Cursor, ask the agent to call lake_request_review. Any other agent: save the plan as markdown and run npx lake-gate plan plan.md./lake approve add-webhook-retries@86eab4d0. The PR author and bots can't approve. Read-only users can't approve.npx lake-gate sync pulls approvals into your local checkout (uses GITHUB_TOKEN or gh auth token). The agent can now edit. The code lands in the same PR and the check is green.Commands on the PR, one per line:
| Comment | Effect |
|---|---|
/lake approve <id>@<version> | Approve this exact version |
/lake reject <id>@<version> | Request changes. Blocks until the same person approves |
/lake revoke <id> | Withdraw your approval |
Everything is stored on the PR as normal comments and reviews. There's no database and nothing new to host. The review app, the Action, lake-gate sync and the MCP server all read the same comments.
Review app. npx lake-gate ui opens http://127.0.0.1:4848. It uses your gh login (or GITHUB_TOKEN) through a small local proxy: the token never reaches the page, the proxy only talks to this repo, and it only writes PR comments. It also shows plans you haven't pushed yet, as drafts, with their local history. The hosted copy at getlake.dev/lake-gate/app/ is the same static app. It asks for a fine-grained token (Pull requests: read & write, Contents: read) and keeps it in your browser. Without a token it can still show public repos read-only: a PR link reads just that PR, the plan list shows the 10 most recent open PRs, and responses are cached in your browser, since GitHub allows 60 unauthenticated calls an hour. If that limit is hit, the app says when it resets and asks for a token.
c). Threads reply and resolve.a approve, r request changes, j/k next/previous thread, ? for all shortcuts.GitHub. Two ways, both counted by the same policy:
nativeReviews: false). Line comments on the plan file show up as threads in the app.reviewUrl, default: the hosted app).The typed /lake approve <id>@<version> line still works everywhere.
Your agent (MCP). init registers npx -y lake-gate@0 mcp in .mcp.json (Claude Code) and .cursor/mcp.json (Cursor). Tools:
| Tool | What it does |
|---|---|
lake_request_review | Save the plan (with model and cost), optionally commit and push only the plan file, and return the review link |
lake_review_status | Status, verdicts, open threads with line numbers, reviewer suggestions, budget approval, and the model/cost view with Lake's suggestions. Works before a PR exists. wait_seconds (up to 240) waits for new feedback |
lake_submit_revision | Save a revised plan and resolve the threads it addresses (in Lake; GitHub's own review threads stay open until someone resolves them there). Or apply a suggestion in one step: thread_id, suggestion_id or model |
lake_review | For reviewers: approve, request_changes, comment (on lines), reply, or suggest a cheaper model or a cap. Approvals need the exact version and say "via Claude Code (MCP)" |
The PR author can't approve their own plan from any surface. An approval from an agent chat is posted under the human's GitHub account, so only use it when that person asked for it.
How it's stored. Comments from the app and the MCP server are PR comments with a small hidden marker, for example <!-- lake:c {"p":"plan-id","v":"86eab4d0","t":"t1","a":{"s":12,"e":14,"q":"quoted text"}} -->. Verdicts are the usual /lake approve|reject lines, so older versions of lake-gate and humans read them the same way.
Planned model Opus 5.5: $2.53–$9.69 · Lake mix (cheapest model that fits each step): $2.31–$8.93
| # | Step | Complexity | Planned | Recommended | Est. cost |
| 1 | Bounded retry queue with backoff | medium | Opus 5.5 | Sonnet 5.5 | $0.38–$1.28 |
| 2 | Database migration: retry_count column | high | Opus 5.5 | Opus 5.5 | $2.10–$8.22 |
| 3 | Fix typo in README | low | Opus 5.5 | Haiku 5.5 | $0.046–$0.18|
It's a rough heuristic, the same one lake-meter uses: complexity from keywords, token bands per level, public API list prices. It isn't a quote. On a subscription plan you spend quota, not these dollars. Override prices with catalog in .lake/config.json.
lake-gate init [--try] [--force] set up or upgrade the repo (--try: local-only trial; --force rewrites the workflow from the template; your .lake/config.json is always kept)
lake-gate approve [id] approve your own plan (trial mode only)
lake-gate uninstall remove the hook, MCP entries and workflow (keeps .lake/)
lake-gate plan <file.md|-> [--id name] save a plan with an estimate and make it active
lake-gate estimate <file.md|-> print the estimate only
lake-gate status plans, versions, approval state
lake-gate sync [--pr N] pull approvals from the PR
lake-gate check [--plan id] exit 0 only if the active plan's current version is approved
lake-gate use <id> switch the active plan (the hook blocks agents from doing this)
lake-gate ui [--port 4848] [--no-open] the review app on localhost
lake-gate mcp MCP server (stdio) for Claude Code / Cursor
lake-gate hook claude the Claude Code PreToolUse hook (stdin JSON)
check is the pre-run gate for anything that isn't Claude Code, e.g. npx lake-gate check && codex exec "implement .lake/plans/x.md".
.lake/config.json| Key | Default | Meaning |
|---|---|---|
requiredApprovals | 1 | Distinct non-author approvals needed |
allowedAssociations | OWNER, MEMBER, COLLABORATOR | Who may approve |
ignoreLogins | [] | Logins that never count (e.g. a shared agent account) |
requirePlan | "warn" | PR changes code without a plan: off, warn, fail |
localGate | "block" | Hook behaviour: block (deny), ask (Claude Code prompts you), off |
readOnlyBash | git status/log/diff, ls, cat, rg... | Bash commands allowed before approval (regexes; chained commands are not) |
autoApprove | {mode:"on", maxUsd:1.5, maxSteps:3, maxComplexity:"low", maxCodeLines:150} | Tiny plans with a small diff pass without a human. off, shadow (only report), or on |
budget | {approverAbove:null, approvers:[]} | Above this many dollars (upper estimate of the planned model), one of approvers must also approve. Use GitHub logins, e.g. ["alice","bob"]. @org/team needs a token with read:org, which the default Action token doesn't have. When a team can't be read, the summary says so and repo admins can approve instead |
gateWithoutPlan | false | true blocks edits even when there's no plan |
provider, catalog | anthropic, lake-meter prices | Same shape as lake-meter's price catalog |
nativeReviews | true | GitHub's own Approve / Request changes count for the plan version at the reviewed commit |
reviewUrl | hosted review app | Where the summary comment's buttons point. "" hides them |
The PR check reads the config from the current head of the base branch, so a PR can't loosen its own policy, and tightening the policy on main re-checks open PRs right away (the workflow also runs on pushes that change .lake/config.json). The file may use // comments and trailing commas. If it still can't be read, lake-gate names the file, line and column and never falls back to a looser policy: it keeps the last valid version from the branch history (the PR summary and the hook say so). With no valid version at all, nothing auto-approves and the PR check fails with "Policy file unreadable" until the file is fixed.
LAKE_GATE=off, editing settings). The real enforcement point is the required GitHub status.pull_request run. Protect .github/ and .lake/config.json with CODEOWNERS if that matters to you. Comment events always run the workflow from the default branch.lake-gate check as a pre-run step.The CLI has no telemetry and no analytics. The only network calls are to the GitHub API: sync, ui and mcp read and write your PR, and the Action runs inside your GitHub. Plans stay in your repo. The hosted review app and landing page count anonymous page views with GoatCounter. Your token and plan content go only to GitHub. The local lake-gate ui has no analytics at all.
npm test # unit + end-to-end tests (temp git repos, simulated hook payloads, mocked GitHub API)
npm run build:ui # copies ui/ + the browser-safe core into landing/app (the Pages workflow does this)
node scripts/shots.cjs # screenshots of a running `lake-gate ui` into ui-shots/ (needs playwright + Chrome)
node scripts/ui-e2e.cjs # browser test: local server + fake GitHub, approve in the UI, check the posted comment
./scripts/demo.sh # packs the npm tarball, installs it in a throwaway repo, runs the whole flow
MIT © Lake