Add listRecentCursorAgents chat tool for Cursor Cloud status#1076
Draft
Add listRecentCursorAgents chat tool for Cursor Cloud status#1076
Conversation
Uses Cursor Cloud Agents API v1 (GET /v1/agents + detail + latest run). Same owner/key gating as cursorRyOsRepoAgent; optional limit and status filter. Wire client recovery, telegram status, EN strings; document CURSOR_API_KEY in AGENTS. Co-authored-by: Ryo Lu <me@ryo.lu>
|
The preview deployment for ryos-dev is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-04-30 00:43:54 CET |
| const withScheme = /^https?:\/\//i.test(u) ? u : `https://${u}`; | ||
| const parsed = new URL(withScheme); | ||
| const parts = parsed.pathname.split("/").filter(Boolean); | ||
| if (parts.length >= 2 && parsed.hostname.includes("github.com")) { |
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.
Adds a read-only
listRecentCursorAgentsdeveloper tool alongsidecursorRyOsRepoAgent.Behavior
ryo) +CURSOR_API_KEY.GET /v1/agentswith paging, thenGET /v1/agents/{id}and latest run detail) scoped toCURSOR_CLOUD_REPO_URLor defaulthttps://github.com/ryokun6/ryos.limit(default 10, max 100), optionalstatus(matches agent status or latest run status, case-insensitive).Graceful failures
Other
useAiChatserver-side passthrough +isErrorrecovery list; Telegram status string; EN UI strings.CURSOR_API_KEY.@cursor/sdkruns may not appear in v1 list until Cursor reconciles; tool lists whatever the REST API returns.Tested
bun test tests/test-cursor-repo-agent-tool.test.tsandbun run buildsucceeded.