Skip to content

v2.7.0 — Cursor Agent Engine Integration

Choose a tag to compare

@Enderfga Enderfga released this 04 Apr 08:31
· 557 commits to main since this release
7e87aee

What's New

Cursor Agent Engine 🖱️

  • New engine: 'cursor' option wraps the Cursor Agent CLI (agent) with headless print mode and stream-json parsing
  • PersistentCursorSession class implementing the full ISession interface, 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_KEY sanitization in stderr output
  • All 242 tests passing

New Files

  • src/persistent-cursor-session.ts — Cursor Agent CLI wrapper
  • src/__tests__/cursor-session.test.ts — Unit tests

Full Changelog: v2.6.1...v2.7.0


Contributed by @Unikzm2 (#33)