Parent Epic
Part of #291 — Add Cursor as a Harness Provider
Summary
Create a practical example demonstrating how to use Cursor as a harness provider in AgentField. This should mirror the existing examples/go_harness_demo/ pattern but showcase Cursor-specific capabilities.
Depends On
Proposed Structure
examples/cursor_harness_demo/
├── README.md
├── python/
│ ├── requirements.txt
│ ├── basic_usage.py # Simple prompt → result
│ ├── with_schema.py # Structured output via schema
│ └── multi_provider.py # Same task across cursor + claude-code + codex
└── go/
├── go.mod
└── main.go # Go equivalent
What the Example Should Demonstrate
- Basic execution — Send a prompt, get a result
- Structured output — Use schema validation (
.agentfield_output.json pattern)
- Session resume — Execute, get session_id, send follow-up with
--resume
- Provider comparison — Run the same task across Cursor, Claude Code, and Codex to show interchangeability
- Error handling — What happens when Cursor CLI isn't installed, API key missing, timeout
README Should Cover
- Prerequisites (Cursor CLI installation, API key setup)
- How to run each example
- Expected output
- How Cursor fits into the broader AgentField harness ecosystem
Acceptance Criteria
Parent Epic
Part of #291 — Add Cursor as a Harness Provider
Summary
Create a practical example demonstrating how to use Cursor as a harness provider in AgentField. This should mirror the existing
examples/go_harness_demo/pattern but showcase Cursor-specific capabilities.Depends On
Proposed Structure
What the Example Should Demonstrate
.agentfield_output.jsonpattern)--resumeREADME Should Cover
Acceptance Criteria