Repository navigation
v2.7.0 — Cursor Agent Engine Integration
What's New
Cursor Agent Engine 🖱️
- New
engine: 'cursor'option wraps the Cursor Agent CLI (agent) with headless print mode and stream-json parsing PersistentCursorSessionclass implementing the fullISessioninterface, following the same pattern as Codex/Gemini engines- Cursor agents work in council collaborations with
engine: 'cursor'persona config - 13 unit tests covering spawn flags, parsing, lifecycle, and stderr sanitization
Details
- Stream-json event parsing adapted for Cursor's camelCase format (
inputTokens,outputTokens,cacheReadTokens) CURSOR_API_KEYsanitization in stderr output- All 242 tests passing
New Files
src/persistent-cursor-session.ts— Cursor Agent CLI wrappersrc/__tests__/cursor-session.test.ts— Unit tests
Full Changelog: v2.6.1...v2.7.0