feat(harness): add cursor (Cursor CLI) as a verified adapter#491
Open
cybercat-yanik wants to merge 1 commit into
Open
feat(harness): add cursor (Cursor CLI) as a verified adapter#491cybercat-yanik wants to merge 1 commit into
cybercat-yanik wants to merge 1 commit into
Conversation
Owner
|
Thanks for the PR! This branch currently has a merge conflict with the base branch. When you get a chance, please rebase onto (or merge) the latest base branch, resolve the conflict, and push. After that, checks will re-run and the PR will get looked at again. Noted for firstmate#491 at |
Adds cursor (binary cursor-agent) to the verified adapter set, giving firstmate access to the Cursor subscription model catalog (Grok 4.5, Codex/GPT tiers, and more) as dispatch targets. Every adapter fact was verified empirically against cursor-agent 2026.07.09 per CONTRIBUTING: launch autonomy via --force, busy signature (end-anchored "ctrl+c to stop" because it is generic English a transcript could contain mid-line), /exit and /quit with the slash popup, single Ctrl+C interrupt, CURSOR_AGENT=1 env marker, workspace trust dialog, dim (SGR 2) composer ghost text, --continue resume, and a swallowed-Enter composer quirk. Detection matches the full binary name cursor-agent, ordered before claude, so the Cursor IDE's own processes and cursor's claude-code-derived runtime cannot misresolve. No turn-end hook is wired: a Claude-style Stop hook verifiably does not fire, so cursor crewmates ride busy-regex stale-pane supervision. Cursor model ids bake reasoning effort into the name, so cursor has no effort axis; the bootstrap validator rejects effort on cursor profiles like it does for opencode. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
cybercat-yanik
force-pushed
the
feat/cursor-adapter
branch
from
July 13, 2026 13:27
8d5af6f to
76b5df6
Compare
Author
|
Rebased onto latest main (b708731) and resolved the conflicts. Notes from the rebase:
fm-spawn-dispatch-profile, fm-bootstrap, fm-composer-ghost, fm-grok-harness, and fm-secondmate-harness suites all pass on the rebased branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
cursor(the Cursor CLI, binarycursor-agent) as a sixth verified harness adapter. This opens the Cursor subscription model catalog (Grok 4.5, Codex/GPT tiers, Sonnet, Gemini; enumerable viacursor-agent --list-models) as crewmate/secondmate dispatch targets, which is especially useful for captains who reach some of these models only through Cursor.Adapter facts (all verified empirically on cursor-agent 2026.07.09-a3815c0, per CONTRIBUTING)
cursor-agent --force --model <id> "$(cat <brief>)";--forceauto-approves execution and a crewmate ran fully unattended (file edits + shell commands).ctrl+c to stop, shown iff a turn is running. The spinner word varies (Working/Running), so the cancel hint is the signature. It is end-anchored in the busy regexes because unlike the other tokens it is generic English a transcript could contain mid-line; verified live both ways (decoy phrase mid-line reads idle, real turn reads busy)./exitor/quit(slash popup, the usual too-fast-Enter hazard;fm-send's retried Enter lands it); singleCtrl+Ccancels a turn.CURSOR_AGENT=1env marker; ancestry matches the full binary name*cursor-agent*(a bare*cursor*would match the Cursor IDE's own processes from its integrated terminal) and is ordered before*claude*because cursor's runtime is claude-code-derived (AI_AGENT=claude-code_*, but noCLAUDECODE).grok-4.5-xhigh). The bootstrap validator rejects an effort axis on cursor profiles like it does for opencode, andfm-spawnrecords but never passes it. The SKILL documents Cursor's shifted display names (idgrok-4.5-xhighdisplays as plain "Cursor Grok 4.5")..claude/settings.local.jsonStop hook verifiably does not fire despite the claude-code-derived runtime, so cursor crewmates ride busy-regex stale-pane supervision; the launch template is identical for ship/scout/secondmate.FM_COMPOSER_IDLE_REoverride;fm_tmux_composer_stateandfm_pane_is_busywere exercised live against idle and mid-turn panes. One quirk recorded: an Enter in the same keystroke burst as the text can be swallowed;fm-send's settle+retry covers it.--continueverified headlessly to restore the prior chat.Tests
test_cursor_threads_model_and_ignores_effort_axisintests/fm-spawn-dispatch-profile.test.sh.cursor:high) intests/fm-bootstrap.test.sh.fm-spawn-dispatch-profile,fm-bootstrap,fm-composer-ghost,fm-grok-harness,fm-secondmate-harness, andfm-backendsuites all pass on this branch.🤖 Generated with Claude Code