Agent Approve for Windsurf

Centralized approvals, guardrails, and activity monitoring for Windsurf Cascade from your phone

Windsurf logo
GUIHook integration

Agent Approve gives you centralized control over Windsurf Cascade from your phone. Approve or deny shell commands, file reads, file writes, and MCP tool calls from your iPhone or Apple Watch, with push notifications so you know the moment Cascade needs input.

You get one shared set of allow and deny rules, one activity history, and one approval workflow that works the same way across Windsurf, Cursor, Claude Code, Gemini CLI, Codex, Pi, OpenCode, OpenClaw, and Copilot.

Download Windsurf

Quick start

1

Download Agent Approve from the App Store and complete onboarding.

2

Run npx agentapprove on your development machine and select Windsurf.

3

Scan the QR code with your phone to pair.

4

Start using Windsurf — approval requests arrive on your phone.

Install command

npx agentapprove

Agent Approve config: ~/.agentapprove/

Windsurf hook config: ~/.codeium/windsurf/hooks.json


Recommended configuration

  • Enable Cascade Turbo Mode (allow-all auto-execute) in Windsurf settings to let hooks handle approval.
  • Windsurf hook configuration lives in ~/.codeium/windsurf/hooks.json. The installer writes the configuration for you.

Capabilities

Approval requests
Follow-up commands
Voice input
Activity monitoring
Push notifications
MCP tool tracking

Good to know

1

Cascade hook coverage – Windsurf pre-hooks (read code, write code, run command, MCP tool use) all flow through the same mobile approval workflow and shared policy. Post-hooks emit activity events for your history.

2

No prompt blocking – Agent Approve does not block pre_user_prompt. Agent Approve is self-governance for indie developers, not corporate prompt surveillance.

3

No follow-up commands today – Windsurf does not currently expose a blocking turn-end hook, so you cannot send a follow-up instruction from your phone when Cascade finishes a turn. We will revisit when Windsurf adds one.

4

MCP tracking – Windsurf MCP tool calls are grouped under their server names so you can use the same allow and deny lists you use for Cursor and other agents.

5

Bulk command parsing – Policy evaluation parses shell commands chained with && into individual sub-commands evaluated independently. A dangerous command like rm -rf hidden as the third step in a chain is caught even when the batch starts with safe commands.

6

Stay up to date – Run npx agentapprove again at any time to update hooks to the latest version.


Use cases

Step away from your laptop and approve shell or MCP actions from your iPhone or Apple Watch instead of leaving Windsurf in Cascade Turbo Mode.

Block dangerous commands like rm -rf even when they are buried in a multi-command chain — one deny rule applies across Windsurf and all your other agents.

Get notified when Windsurf needs input on a sensitive action.

Track Windsurf MCP activity and command approvals in the same history as the rest of your agent stack.


Questions about Windsurf

A few common questions about how Agent Approve fits alongside Windsurf.