lake-gate

v0.2.5
io.github.getlake/lake-gate Checked 11 hours ago Published 13 days ago

Plan 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.

ParameterTypeDescription
notestringShort note to reviewers
plan_idstringPlan id (defaults to the active plan, or derived from the title)
plan_markdownstringFull plan in markdown. Omit to request review of an existing plan.
pushbooleanCommit only the plan file and push the current branch (so the PR shows this version)
reviewersarrayGitHub 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.

ParameterTypeDescription
plan_idstringPlan id (defaults to the active plan)
wait_secondsnumberWait 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.

ParameterTypeDescription
addressed_threadsarrayThread ids this revision addresses (marked resolved)
modelstringRun the whole plan on this model, e.g. sonnet
notestringWhat changed, for reviewers
plan_idstringPlan id (defaults to the active plan)
plan_markdownstringFull revised plan in markdown
pushbooleanCommit only the plan file and push (default on when applying a suggestion)
suggestion_idstringApply this Lake suggestion, e.g. models-2-4, cap-12, drop-5
thread_idstringAccept 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.

ParameterTypeDescription
action *string
end_linenumber
linenumberFirst plan line to anchor a comment
modelstringPropose running the plan on this model
plan_idstringPlan id
suggestion_idstringLake suggestion id to propose
textstringComment, reply, or verdict note (required for request_changes)
thread_idstringThread to reply in
versionstring8-character version (approve / request_changes)