Hi team,
I’m trying to build an agent workflow in Cursor where the agent runs in steps and pauses to request human input at certain checkpoints before continuing execution.
What I’m trying to achieve:
-
Agent executes a task
-
At certain decision points, it pauses and asks for user input/approval
-
User provides input (or approves changes)
-
Agent resumes execution using that input
Example use case:
I’m working on an agent that automatically fixes Snyk vulnerabilities when I provide a Jira ticket number (for example: XYZ-123).
Flow I want:
-
I provide a ticket number like
XYZ-123 -
Agent fetches vulnerability details from Snyk/Jira
-
Agent analyzes the fix (dependency update, patch, etc.)
-
Checkpoint: Agent pauses and asks:
- “I plan to update
axiosfrom 0.x → 1.x to fix CVE-XXXX. Proceed?”
- “I plan to update
-
I approve or modify the suggestion
-
Agent continues and applies the fix in code + commits changes
Note:
I tired out `AskQuetion` tool, but no luck. May be any good example to refer?
Questions:
-
Is there a recommended way to implement a human-in-the-loop (HITL) flow in Cursor Agent mode?
-
Can agent checkpoints / pauses be explicitly controlled or triggered?
-
Does Cursor support resuming an agent with new user input mid-execution?
-
Any best practices or examples for building this kind of workflow?
Any guidance would be really helpful.
Thanks!