Cursor
Cursor Agent CLI — IDE-like editing from the terminal, with PATH-wrapper PR tracking.
Slot:
agent · Name: cursor · Binary: agentThe Cursor Agent CLI brings Cursor's editing model to a terminal. AO spawns it per session, wraps gh/git, and tracks activity via the AO activity log.
macOSSupported
LinuxSupported
WindowsSupported
Install
curl https://cursor.com/install -fsS | bashVerify:
agent --helpYou should see "Cursor Agent" in the output. If you don't, the agent binary in your PATH is something else (e.g. an unrelated tool) — reorder your PATH so the Cursor one wins.
Use
agent: cursorNo plugin-level config.
How it works
- Launch: AO runs
agentinside the worktree. - Activity tracking: AO writes a JSONL to
{workspace}/.ao/activity.jsonleach poll cycle based on terminal output classification. The dashboard reads from there. - PR + git tracking: PATH wrappers at
~/.ao/bin/gh/~/.ao/bin/gitintercept calls to record PR metadata. - Session resume: Not supported — every spawn is a fresh Cursor session.
Detection
The plugin's detect() checks agent --help output for the strings Cursor Agent and --approve-mcps to avoid false positives with other binaries named agent.
Environment variables
| Variable | Set by AO | Purpose |
|---|---|---|
AO_SESSION_ID | ✓ | AO session id |
AO_ISSUE_ID | ✓ | Issue identifier |
PATH | ✓ | Prepends ~/.ao/bin |
GH_PATH | ✓ | Absolute path to real gh |