feat(copilot): add the platform subagent - #6395
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Those live reads run only in interactive Copilot ( Write vs Admin deploy is clarified in permissions docs (run vs deploy); Reviewed by Cursor Bugbot for commit 51e8300. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryRegisters the client-side half of the new context-isolated Platform subagent, intended to be deployed with its paired Mothership implementation.
Confidence Score: 5/5The client-side changes appear safe to merge as part of the explicitly paired Platform-agent deployment. The generated catalog and schema agree on the new subagent contract, routing is derived from the catalog, and the relevant workspace display paths all recognize the platform identifier.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/copilot/generated/tool-catalog-v1.ts | Adds the Platform subagent’s catalog entry, unions, and registry mapping consistently with existing subagent definitions. |
| apps/sim/lib/copilot/generated/tool-schemas-v1.ts | Adds the matching runtime schema requiring a self-contained string task. |
| apps/sim/lib/copilot/tools/tool-display.ts | Adds the human-readable Platform Agent title to the central tool-title map. |
| apps/sim/app/workspace/[workspaceId]/home/types.ts | Adds the Platform Agent label used by workspace subagent rendering and dispatch recognition. |
| apps/sim/app/workspace/[workspaceId]/home/components/message-content/utils.ts | Assigns the Library icon to Platform agent groups in message content. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Copilot[Copilot orchestrator] -->|platform task| Catalog[Generated tool catalog]
Catalog -->|route: subagent| Mothership[Mothership]
Mothership --> Platform[Platform agent]
Platform -->|subagent events| Workspace[Workspace message UI]
Workspace --> Label[Platform Agent label]
Workspace --> Icon[Library icon]
Reviews (1): Last reviewed commit: "feat(copilot): describe platform agent d..." | Re-trigger Greptile
dac3284 to
e4e2abc
Compare
70ad959 to
3adc397
Compare
Adds the no-argument get_account_billing tool: the handler combines the org-aware billing lookups (usage data, credit balance, usage-limit info) into one snapshot — plan, current-period usage vs limit with remaining, and purchased credit balance — always scoped to the requesting user. Catalog and schema mirrors regenerated from the mothership definitions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2494ee2 to
eb2867f
Compare
3adc397 to
51e8300
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 51e8300. Configure here.
| canRun: true, | ||
| canDeploy: canAdmin && !allDeploymentSurfacesHidden, | ||
| canManageWorkspace: canAdmin, | ||
| }, |
There was a problem hiding this comment.
Read users marked canRun
Medium Severity
get_enterprise_context hardcodes canRun to true for every viewer, including Read. That conflicts with the permissions docs in this PR (Read cannot run; Write can) and with editor gating that treats run as write. The platform agent will tell Read users they can run workflows when they cannot.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 51e8300. Configure here.


Summary
Interactive Copilot sessions can now delegate Sim product and account questions to a platform subagent, paired with simstudioai/mothership#417 and stacked on #6389. The agent receives live billing and enterprise-access context through shared application operations, while public and headless workflows are rejected before protected lookup.
search_docsremains the platform agent's docs tool, and the@Docscompatibility path remains intact.Type of Change
Testing
resource-vfs.tsOrchestrationErrorCode: "invalid"errors inherited frommship-fixes.Checklist
Screenshots/Videos
N/A — this PR changes Copilot routing and protected server context without introducing a visual UI.
Stack
Base:
feat/docs-vfs-search-docs(#6389). Merge after the docs/search pair.Post-Deploy Monitoring & Validation