feat: add Cursor Agent CLI as first-class native agent - #1743
Open
jdistler wants to merge 2 commits into
Open
Conversation
jdistler
commented
Sep 1, 2026
| export function getCursorModelModes(): ModelMode[] { | ||
| return [ | ||
| { key: 'default[]', name: 'Auto', description: 'Cursor Router (Default)' }, | ||
| { key: 'grok-4.6[effort=high,fast=true]', name: 'Grok 4.6', description: 'xAI' }, |
Author
There was a problem hiding this comment.
📝 Curated these to appear right away in model selector, but the true large list loads quickly as they are dynamically discovered (see video demo in PR description)
jdistler
marked this pull request as ready for review
September 1, 2026 03:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Cursor Agent CLI as a first-class native agent in Happy, backed by the Agent Client Protocol (ACP) over stdio.
Closes #248
Local testing showing cursor cli model selection (cursor pro gives you access to the default Grok model, then all the other frontier lab models as well) -
Screencast-trimmed.mp4
Background & Architecture
Cursor CLI (
agent/cursor) includes headless ACP support viaagent acp(stdio JSON-RPC 2.0). This integration maps Cursor into Happy's multi-agent architecture alongside Claude Code, Codex, Antigravity (agy), and Gemini.Key Details
happy cursorspawnsagent acpunderAcpBackend.happy cursor --happy-starting-mode remote --started-by daemon.agentandcursorinPATH.protocolVersion: 1.agent login(no extra auth required).session/newresponse (~130 models, including Grok 4.6, Claude Opus 5, GPT-5.6 Sol, Gemini 3.7 Flash, Composer 2.5).harnessCatalog.ts(HARNESS_NAMES,HARNESS_ORDER).agentpermission mode (Full tool access),default[](Auto / Cursor Router).modelModeOptions.tswith fallback handling.icon-cursor.png,@2x,@3x) and avatar badge geometry.Test Coverage
happy-cli: All 87 test files (820 tests) pass.happy-app: All 106 test files (1,119 tests) pass.pnpm run buildsucceeds with clean TypeScript types across the monorepo.agent acpinitialize &session/newhandshake against official Cursor CLI v2026.08.25.