Cursor Agent
Cursor's headless agent CLI — distinct from the in-editor agent.
What is Cursor Agent?
Cursor Agent CLI is the headless command-line companion to the Cursor editor. It runs autonomously via `cursor-agent --workspace ... --print` and reuses auth and config from `~/.cursor/`. It is distinct from the interactive agent inside the Cursor editor.
Cursor Agent + Watchfire
Watchfire gives each Cursor Agent session its own home under `~/.watchfire/cursor-home/<project_id>/<session_id>/` and symlinks the real `~/.cursor/` auth and config files into it. The composed Watchfire system prompt is installed as `AGENTS.md` in the session home, and sessions launch headless with the yolo / trust flag behind the Watchfire sandbox.
- Symlinks `~/.cursor/` auth/config files into the per-session home
- Launches headless with `cursor-agent --workspace <worktree> --print`
- Runs with the yolo / trust flag — Watchfire sandbox is the boundary
Setup
Install Watchfire and initialise a project that defaults to Cursor Agent. Make sure the agent CLI itself is installed and signed in first.
watchfire init --agent cursorGet started with Watchfire
Install in seconds. Define tasks. Let agents ship code for you.
Download for macOSAvailable for macOS, Linux, and Windows
# Install via Homebrew (macOS)brew tap watchfire-io/tapbrew install --cask watchfire-io/tap/watchfire# Set up your project and gowatchfire initwatchfire task add "Build the login page"watchfire start --allIncludes GUI, CLI, and daemon. Also available via Homebrew.