Harnesses

Cursor

The editor's CLI agent, cursor-agent. Skills at .cursor/skills plus Claude's and Codex's directories, MDC rules, no session location known.
IDcursor04 / 137 paths · env + project
Harness

Cursor

  • cursor

cursor-agent is the CLI. Scans Claude and Codex skills directories on its own.

Invoke
2 of 6 · community
Models
no listing
MCP
json · standard
Agents file
none stable
Inferred 0 / 7

Access

GetgetHarness("cursor")
CLIharnesses paths cursor --json
Trycursor in the explorer

Cursor's CLI is a separate binary from the editor, cursor-agent, and the invocation entry says so with level: "community" because it was checked against the CLI's help rather than documentation. Sessions have no known location on disk, so the group is empty and the sessions capability of the tools does not apply to it.

It scans .claude/skills/ and .codex/skills/ natively, which is the reason a shared skill can live in Claude's directory and still be picked up here. Instructions are .cursorrules or MDC rule files under .cursor/rules/. There is no single user scope instructions file, so agentsFile is null and the agents sync leaves Cursor alone.

Capabilities and invocation

  • mcp: yes
  • vision: yes
  • audio: no
  • video: no
  • tools: yes
  • streaming: yes

Binary cursor-agent, evidence community. Cursor CLI agent binary, separate from the editor binary.No model selection: a model option is rejected.

Callinvoke(prompt, options)2 of 6 modes
  • advisor{}rejected
  • advisor · json{ structured: true }rejected
  • read-only{ readOnly: true }rejected
  • read-only · json{ readOnly: true, structured: true }rejected
  • agent{ tools: true }-p {prompt}
  • agent · json{ tools: true, structured: true }-p --output-format json {prompt}

Paths

Templates as the registry stores them. ~, ${HOME}, ${TMPDIR} and %VAR% expand in resolve(); entries tagged with a platform are dropped on the others. Open in the explorer to see them expanded for a home directory of your choice.

PathsgetHarness("cursor")7 templates · 3 groups

config

  • ~/.cursor/settings.jsonuserofficialall

instructions

  • .cursor/rules/skilld-activation.mdcprojectofficialall

    MDC format rule for skill activation.

  • .cursorrulesprojectofficialall

    Legacy project-level instructions.

skills

  • .cursor/skills/projectofficialall
  • ~/.cursor/skills/userofficialall

    Global user-level skills.

  • .claude/skills/projectofficialall

    Cursor natively scans Claude skills directory.

  • .codex/skills/projectofficialall

    Cursor natively scans Codex skills directory.

Empty

sessionscommandspromptTemplateshookstempThat is not the same as the feature being missing.

MCP servers

FilemcpConfigs2 files
  • ~/.cursor/mcp.jsonuser · json · standard · mcpServers
  • .cursor/mcp.jsonproject · json · standard · mcpServers

Detection

CalldetectHarness()env, then project

envVars

  • CURSOR_SESSION
  • CURSOR_TRACE_ID

projectMarkers

  • .cursor
  • .cursorrules

Persistence

  • JSON - Settings and rules files. (official)

No stable user-scope instructions file, so syncAgentsFiles skips this harness.