Repository navigation
feat(harness): add cursor (cursor-agent) as a verified harness adapter #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
aa37308
95f48b5
f871502
79101bd
53b3217
49b3d12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -324,13 +324,13 @@ crew_dispatch_validate() { | |
| return 0 | ||
| fi | ||
| err=$(jq -r ' | ||
| def verified($h): ["claude","codex","opencode","pi","grok"] | index($h); | ||
| def verified($h): ["claude","codex","opencode","pi","grok","cursor"] | index($h); | ||
| def effort_ok($h; $e): | ||
| if $e == null then true | ||
| elif ($e | type) != "string" then false | ||
| elif $h == "claude" then (["low","medium","high","xhigh","max"] | index($e)) | ||
| elif ($h == "codex" or $h == "grok" or $h == "pi") then (["low","medium","high","xhigh"] | index($e)) | ||
| elif $h == "opencode" then false | ||
| elif ($h == "opencode" or $h == "cursor") then false | ||
| else true | ||
| end; | ||
| def bad_efforts: | ||
|
|
@@ -414,6 +414,20 @@ fi | |
| crew= | ||
| [ -f "$CONFIG/crew-harness" ] && crew=$(tr -d '[:space:]' < "$CONFIG/crew-harness" || true) | ||
| [ -n "$crew" ] && [ "$crew" != "default" ] && echo "CREW_HARNESS_OVERRIDE: $crew" | ||
|
|
||
| # jq is required for cursor harness (to jq-merge the stop hook into the shared | ||
| # ~/.cursor/hooks.json). Already required for X-mode and crew-dispatch (above). | ||
| if [ "$crew" = "cursor" ]; then | ||
| if ! command -v jq >/dev/null 2>&1; then | ||
| echo "MISSING: jq (install: $(install_cmd jq))" | ||
| fi | ||
| fi | ||
| sm= | ||
| [ -f "$CONFIG/secondmate-harness" ] && sm=$(head -1 "$CONFIG/secondmate-harness" 2>/dev/null | tr -d '[:space:]' | cut -d' ' -f1 || true) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Captain, this secondmate jq probe removes all whitespace before taking the first field, so documented Useful? React with 👍 / 👎. |
||
| if [ "$sm" = "cursor" ] && ! command -v jq >/dev/null 2>&1; then | ||
| echo "MISSING: jq (install: $(install_cmd jq))" | ||
| fi | ||
|
|
||
| crew_dispatch_validate | ||
| if ! fm_backlog_backend_manual "$CONFIG"; then | ||
| if fm_tasks_axi_compatible; then | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Captain, this check only examines the literal
config/crew-harnesscontents; if that file is absent or set todefaultwhile firstmate itself is running undercursor-agent,fm-harness.sh crewresolves tocursorbut bootstrap will not emitMISSING: jq. This is a fresh gap beyond the earlier jq fix: cursor is selected implicitly via harness detection, so the first spawn fails infm-spawn.shinstead of the session-start consent/install flow surfacing the prerequisite.Useful? React with 👍 / 👎.