Overview
Cursor is a VS Code fork with built-in AI agent capabilities. Agent runs within Electron with Chromium sandbox.Binary path:
Config:
Dependencies:
~/.local/bin/agent, ~/.local/bin/cursor-agent, ~/.local/bin/cursorConfig:
~/.cursor/, ~/Library/Application Support/Cursor/Dependencies:
$$require=55-integrations-optional/keychain.sb$$Sandbox Profile
Running in Safehouse
Agent Modes
Local Agent (Interactive)
- Runs in IDE process with filesystem access
- Terminal commands via user approval (or YOLO/auto-run mode)
- LLM tool calling for multi-step tasks
Background Agent (Cloud)
- Ubuntu VM in Cursor’s AWS infrastructure
- Docker container per agent
- Produces PRs asynchronously
- Configurable via
.cursor/environment.json
Known Vulnerabilities
See the Cursor Agent profile in the source repository for implementation details.Configuration
| Path | Purpose |
|---|---|
.cursor/rules/ | Project rules |
.cursor/mcp.json | MCP server config |
.cursor/environment.json | Background agent config |
User/globalStorage/state.vscdb | SQLite state (command allowlists) |