lake-gate
v0.2.5Plan review for coding agents: request review, wait for a version-bound approval, revise.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lake_request_review
Save a plan (markdown) as a versioned lake-gate plan and ask teammates to review it on the PR. Returns the plan id, version, model and cost estimate, and the review link. Use after planning, before implementing. Tip: add a "Model: <name>" line to declare which model runs it.
| Parameter | Type | Description |
|---|---|---|
note | string | Short note to reviewers |
plan_id | string | Plan id (defaults to the active plan, or derived from the title) |
plan_markdown | string | Full plan in markdown. Omit to request review of an existing plan. |
push | boolean | Commit only the plan file and push the current branch (so the PR shows this version) |
reviewers | array | GitHub logins to request review from |
lake_review_status
Review state of a plan: status, verdicts with notes, open comment threads anchored to plan lines, reviewer suggestions, budget approval, and the model/cost view with Lake's cost-cutting suggestion ids. Works locally before a PR exists. Set wait_seconds to wait for a decision or new feedback. Also syncs approvals so the lake-gate hook opens once approved.
| Parameter | Type | Description |
|---|---|---|
plan_id | string | Plan id (defaults to the active plan) |
wait_seconds | number | Wait up to this long for a change (polls every 20s) |
lake_submit_revision
As the author, save a new plan version (earlier approvals no longer apply) and tell reviewers. Either pass the full revised plan_markdown, or apply a suggestion in one step: thread_id (a reviewer suggestion), suggestion_id (from lake_review_status) or model (run the whole plan on that model). Can also reply to threads and mark them resolved.
| Parameter | Type | Description |
|---|---|---|
addressed_threads | array | Thread ids this revision addresses (marked resolved) |
model | string | Run the whole plan on this model, e.g. sonnet |
note | string | What changed, for reviewers |
plan_id | string | Plan id (defaults to the active plan) |
plan_markdown | string | Full revised plan in markdown |
push | boolean | Commit only the plan file and push (default on when applying a suggestion) |
suggestion_id | string | Apply this Lake suggestion, e.g. models-2-4, cap-12, drop-5 |
thread_id | string | Accept this reviewer suggestion thread |
lake_review
As a reviewer, act on a plan PR: approve, request_changes, comment (optionally on lines), reply (in a thread) or suggest (a structured change the author accepts in one click: suggestion_id or model). approve and request_changes post as the human GitHub account on this machine: ONLY use them when the user explicitly said so in this conversation, and pass the exact version they saw.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
end_line | number | |
line | number | First plan line to anchor a comment |
model | string | Propose running the plan on this model |
plan_id | string | Plan id |
suggestion_id | string | Lake suggestion id to propose |
text | string | Comment, reply, or verdict note (required for request_changes) |
thread_id | string | Thread to reply in |
version | string | 8-character version (approve / request_changes) |