A Cursor hook for "Build" (from plan)

Feature request for product/service

Cursor IDE

Describe the request

My workflow is typically to start each session in Plan mode, and have a conversation which ends up with a plan that I think is OK, then I hit build.

What I’d like is a “Build Hook” that would kick off a specific blocking call that needed happen and trigger use confirmation before the agent(s) then proceeded.

Let me explain my initial use case:

I typically plan → build - > push → CI → create PR

The “Create PR” stage kicks off an arms length agent (not within Cursor) that reviews the changes, and tries to reverse engineer what the intent of the PR is.

I’ve found, managing a team of junior programmers, that the “intent” it comes up with can be radically different to what the ticket the programmer is working on was asking for.

So I, or one of my seniors, reviews that before they look at a single line of code.

What I’d like to be able to do is have that “intent review” triggered BEFORE the agentic build, not later on during a PR review.

And it struck me that having an agent review the Plan would be a good way to do that.

So I typically do that by copy/pasting the plan into and asking it to explain what the change is.

This works OK, but obviously, I want to automate it.

And a Cursor Hook off the “Build” that could make an LLM call, would be, for me, the missing piece of infrastructure.

Hey, thanks for the detailed feature request. The intent review flow from Plan to Build is clear and well described.

Right now there’s no separate trigger for the Plan → Build transition, so that exact Build Hook isn’t possible yet. But you can cover part of the goal today: the beforeSubmitPrompt hook can block the flow (continue: false) and require confirmation, and prompt-based hooks (type: "prompt") can make a native LLM call. So you can build a blocking LLM review before the turn starts. The limitation is that beforeSubmitPrompt fires on any submit, not specifically on Build, and it doesn’t get the plan contents as structured input, so it’s not an exact match for your request.

Docs for hooks and the list of available events: Hooks | Cursor Docs

I’ve logged your request for a dedicated Plan → Build hook event with a blocking review and I’ll share it with the team. I can’t give an ETA, but hooks are an area we’re actively expanding. If there’s an update, I’ll reply in the thread.