Skip to content

Support Cursor Agent (cursor-agent) as a harness adapter #1

Description

@Quidge

Goal

Add Cursor's cursor-agent CLI as a verified firstmate harness adapter, so crewmates and scouts can run on it — notably Composer 2.5 for fast, lower-guided work.

This issue is the tracking hub. Discrete problems and integration gaps are filed as separate issues under the harness:cursor-agent label and linked here (GitHub sub-issues). We are collecting issues from real usage before committing to full adapter development; an upstream contribution may follow once it is stable.

Status (2026-07-31)

  • Capability verified end-to-end: cursor-agent -p --trust --model composer-2.5 "..." returns correct output (exit 0).
  • Auth via cursor login (device flow; token lives in Cursor's own store, never in the repo — same pattern as gh auth). cursor-agent status reports login state.
  • Not yet spawnable or supervisable by firstmate (no adapter wired in).

Observed behaviors relevant to adapter work

  • Autonomy / trust: cursor-agent gates on workspace trust; a fresh directory needs --trust / -f / --yolo for non-interactive or autonomous runs.
  • Model selection: --model composer-2.5 (also composer-2.5-fast); cursor-agent models lists all available models.
  • Other flags: --worktree, --resume, --continue, -p/--print, --output-format text|json|stream-json, --trust.
  • Install: curl https://cursor.com/install -fsS | bash installs to ~/.local/bin (symlinks agent, cursor-agent), versioned under ~/.local/share/cursor-agent/versions/, and auto-updates by default.

Integration surfaces (firstmate harness checklist)

  • Launch command + autonomy flag — bin/fm-spawn.sh
  • Detection env marker — bin/fm-harness.sh
  • Busy-pane signature — bin/fm-watch.sh, bin/fm-tmux-lib.sh
  • Empty-composer / ghost handling — bin/fm-composer-lib.sh
  • tmux agent-liveness process classification — bin/backends/tmux.sh
  • Exit / interrupt / resume facts
  • Per-turn turn-end wake hook
  • Docs: harness-adapters skill + verification evidence

Notes

  • Vocabulary: cursor-agent is a harness (an agent CLI, like claude/codex/grok), not a runtime backend (tmux/herdr are backends).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestharness:cursor-agentCursor Agent (cursor-agent) harness adapter support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions