Blog · 30 November 2026
Approve agent plans in the pull request
A "yes" in a chat window is not a review. If the plan lives only in one person's session, a teammate cannot comment on it, you cannot see which version was approved, and a later edit quietly drops the agreement. The pull request is already where your team reviews work. The plan should live there too.
Why the PR, not the chat
Claude Code plan mode is a good local habit. The agent writes a plan, you approve it, then it starts editing. That approval has three limits for a team:
- Only the person in that session sees it.
- The approved text is not a versioned file in the repo, so you cannot diff it later.
- If the agent changes the plan mid-run, or a second session starts from a looser reading of the ticket, nothing automatically invalidates the old "yes."
Pull requests already solve this for human work: a specific diff, line comments, a required check, and a record of who approved what. Agent plans need the same treatment, before the code exists.
What a plan-approval check should do
A useful setup, the one Lake Gate implements, looks like this:
- The plan is a file in the pull request. It has steps, a recommended model and a cost range for each one, and a cap for the run.
- Review happens in rounds. A teammate or a manager comments on exact lines, requests changes, and the agent (or the author) updates the plan.
- Approval is bound to that exact version. Hash the file. Edit one word and the approval no longer applies. The agent cannot quietly widen the scope and keep the old sign-off.
- A required check blocks the merge until the current plan is approved. The review of the eventual diff still happens. It is no longer the first time a human sees the approach.
To block merges, make lake/plan-approval a required check. That needs a public repo, or GitHub Pro or Team for a private one; otherwise the check is advisory. PRs opened by a bot get the check once a person comments, reviews or pushes.
Install it in the repo
npm i -D lake-gate && npx lake-gate init --cap 5
Run that in your repo, then commit. Working solo? Add --try. Gate is free for up to 3 users and 20 plan reviews per calendar month per repo. Meter, which prices steps and caps the run, is free forever in the same install. Team is $15 per user per month and includes a 14-day trial at install. Paid checkout is not open yet, so nothing is charged until you choose to subscribe.
Do not run npx lake. That installs an unrelated package on npm. The setup guide is in the Lake repository.
See a plan go through review
The live demo walks through a sample plan, line comments, and an approval bound to that version. No install required to look.
If you want numbers on what ran with no approved plan, use the free waste calculator with a ccusage export. That figure is 100% by construction until a plan gate exists; the calculator will tell you so.