Skip to content
Herd Security

← All integrations

Coding agents

Herd + Cursor

Check Cursor actions and score its prompts.

What it is

A hook script your device management installs checks Cursor’s shell commands, MCP tool calls, and file reads before they run, and each prompt before it’s sent.

Why it exists

A coding assistant that runs commands and reads files is a different risk from a chat window, and Cursor has no provider audit log to read.

What it means for you

Your rules start by recording and block an action only once an admin switches them to enforcing. Cursor’s own approval prompt stays in charge of everything else.

Access
Inbound (a device hook sends each action to Herd for checking)
Connects with
Hook token (HERD_HOOK_TOKEN)

How to connect Cursor

The short version. The setup guide has every screen and setting.

Before you start

  • Agent oversight turned on for your organization (available on request)
  • Node 18 or later on each device
  • A device management tool that can place files at fixed paths
  1. Download the hook bundle

    In AI Insights → Setup, open the Cursor card and download the bundle. It holds the script and a hooks.json for each operating system.

  2. Place the files with device management

    Put hooks.json where Cursor reads it for each operating system, and the script where that file says it is.

  3. Get the hook token to each device

    Decide how HERD_HOOK_TOKEN reaches the Cursor process on each device.

  4. Start with one person

    Run a shell command in Cursor and check that it shows in Herd. Rules start in Recording and block only once switched to Enforcing.

The full walkthrough is in the Cursor setup guide.

Join the Herd

See Herd working with Cursor.

Bring your stack to a demo. We’ll connect it and show you what Herd does with it.