feat(agents): add cursor adapter#126
Conversation
Greptile SummaryAdds the
Confidence Score: 5/5Safe to merge; the cursor adapter is a well-contained addition that follows the established codex/opencode pattern with no changes to shared infrastructure. All new code is isolated to the cursor package and its two registration call-sites. The hook management, binary resolution, and argv construction are well-tested and structurally identical to the already-shipped codex adapter. No shared logic was modified. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant AO as AO Daemon
participant P as cursor.Plugin
participant FS as .cursor/hooks.json
participant CA as cursor-agent
AO->>P: GetAgentHooks(cfg)
P->>FS: readCursorHooks (preserve existing)
P->>FS: atomicWriteFile (merge AO hook commands)
AO->>P: GetLaunchCommand(LaunchConfig)
P->>P: cursorBinary() [resolve + cache]
P-->>AO: ["cursor-agent", "-p", "--output-format", "stream-json", "--trust", "--", prompt]
AO->>CA: exec argv
CA-->>FS: fires sessionStart hook
CA-->>AO: activity: Active
CA-->>FS: fires beforeShellExecution hook
CA-->>AO: activity: WaitingInput
CA-->>FS: fires stop hook
CA-->>AO: activity: Idle
AO->>P: GetRestoreCommand(RestoreConfig)
P-->>AO: ["cursor-agent", "-p", ..., "--resume", agentSessionID]
AO->>P: UninstallHooks(workspacePath)
P->>FS: readCursorHooks
P->>FS: atomicWriteFile (remove AO commands, keep user hooks)
Reviews (2): Last reviewed commit: "feat(agents): add cursor adapter" | Re-trigger Greptile |
Registers the cursor harness, stacked on the agent platform. Includes its own activity deriver. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Registers the qwen harness, stacked on the agent platform. Includes its own activity deriver. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
yyovil has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Adds the cursor harness, stacked on #119 (agent platform). Adapter package +
Constructors()registration + resolver test. Includes its own activity deriver.🤖 Generated with Claude Code
Stack