Skip to content

Add Cursor Agent adapter for headless Phase runs#18

Merged
maxBRT merged 1 commit into
mainfrom
wrap/cursor-agent-adapter
Jul 18, 2026
Merged

Add Cursor Agent adapter for headless Phase runs#18
maxBRT merged 1 commit into
mainfrom
wrap/cursor-agent-adapter

Conversation

@maxBRT

@maxBRT maxBRT commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add an agent-agnostic Port (RunPhase) and Cursor headless adapter that spawns a fresh agent subprocess per Phase
  • Wire the researched CLI contract (-p --trust --force --approve-mcps --workspace, optional --model, stream-json success subtype, context timeout kill, stderr on failure)
  • Cover behavior with a fake executable stub (no live Cursor calls)

Closes #8

Test plan

  • go test ./internal/agent/ -v
  • go test ./...
  • Confirm fake-agent tests cover argv flags, optional model, stderr on non-zero exit, timeout kill, and stream-json success subtype

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@maxBRT
maxBRT merged commit bbc2c6b into main Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor Agent adapter: headless phase runner

1 participant