Adds Cursor as a supported AI agent for the "Send to Agent" feature so the extension works in Cursor IDE without "GitHub Copilot not found" when Copilot is not installed#1
Open
ozalexo wants to merge 5 commits into
Conversation
- Add Cursor provider in providers.ts (appNameMatch, native chat commands) - Fix default agent in Cursor: do not use saved Copilot when unavailable (boardViewProvider, boardEditorPanel) - CodeLens Send to Agent: use AgentRegistry instead of hardcoded switch so Cursor works from brainfile.md
When Claude Code is selected in the brainfile.md CodeLens menu, send the prompt to the terminal via 'claude "..."' again instead of using the registry's UI paste path.
- Add optional icon (Codicon name) to AgentProvider and set for copilot, claude-code, cursor, copy - Add icon to DetectedAgent and pass through in registry.detectAgents() - CodeLens and sidebar task Quick Pick now show agent-specific icons (comment-discussion, hubot, terminal, clippy)
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.
1. Cursor provider (
src/board/agents/providers.ts)id: "cursor",label: "Cursor",priority: 3.appNameMatch: "cursor"(no extension ID; usesvscode.env.appName).workbench.action.chat.open,workbench.action.chat.newChat.icon(Codicon name) onAgentProvider; set for all providers so Quick Pick can show distinct icons (e.g. comment-discussion, terminal, hubot, clippy).2. Default / last-used agent in Cursor (
boardViewProvider.ts,boardEditorPanel.ts)3. CodeLens "Send to Agent" (
extension.ts)AgentRegistry: Quick Pick is built fromgetAvailableAgents(), thenregistry.sendToAgent(agentId, prompt)(so Cursor works from the lens inbrainfile.md).claude-code: send prompt to the terminal viaclaude "..."instead of the registry’s UI path.4. Per-agent icons (optional UX)
DetectedAgentand registry pass through optionaliconfrom providers.debug-start).Testing
brainfile.md; use "Send to Agent" from the sidebar and from CodeLens. Cursor appears as an option and opens chat with the task prompt; no Copilot error when Copilot is not installed.