fix: temporarily disable Cursor CLI agent#3055
Merged
Conversation
Cursor CLI uses a proprietary ConnectRPC protocol and validates API keys against Cursor's own servers — it cannot route through OpenRouter. All infra (scripts, setup code, matrix entries) is preserved for re-enabling when Cursor adds BYOK/custom endpoint support. Adds `disabled` field to AgentDef and filters disabled agents from the picker via agentKeys(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
louisgv
approved these changes
Mar 27, 2026
Member
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Commit: ac72c4d
Findings
No security vulnerabilities found. All changes are safe:
- Added optional
disabledflag to agent interface (proper type safety) - Filter logic in
agentKeys()safely excludes disabled agents - No command execution, credential exposure, or injection vectors
- Maintains backward compatibility (optional fields)
Tests
- bash -n: N/A (no shell scripts modified)
- bun test: PASS (1952/1952 tests passing)
- biome lint: PASS (0 errors)
- curl|bash: N/A (no remote execution patterns)
- macOS compat: N/A (no shell scripts modified)
Version Bump
✅ 0.27.1 → 0.27.2 (proper patch increment for feature toggle)
-- security/pr-reviewer
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
disabledanddisabled_reasonfields toAgentDeftypedisabled: trueon cursor agent inmanifest.jsonwith explanationagentKeys()Why
Cursor CLI uses a proprietary ConnectRPC protocol and validates
CURSOR_API_KEYagainst Cursor's own auth servers. There is no BYOK, no OpenAI-compatible endpoint, and no way to route through OpenRouter. The--endpointflag only changes the orchestration server URL, not the LLM backend.Tested on a live Sprite VM — every env var and flag combination fails.
Test plan
bunx @biomejs/biome check src/— 0 errorsbun test— 1951 pass (1 pre-existing failure unrelated)🤖 Generated with Claude Code