Skip to content

feat(copilot): add the platform subagent - #6395

Open
j15z wants to merge 2 commits into
feat/docs-vfs-search-docsfrom
feat/platform-agent
Open

feat(copilot): add the platform subagent#6395
j15z wants to merge 2 commits into
feat/docs-vfs-search-docsfrom
feat/platform-agent

Conversation

@j15z

@j15z j15z commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

What

Registers the new platform subagent client-side — the sim half of a paired change (mothership: simstudioai/mothership#417, to be merged together). The platform agent is a context-isolated Sim-product specialist that takes over the docs beat (search_docs + the docs/ corpus) from the search agent.

  • Generated mirrors: tool catalog + tool schemas regenerated from the mothership branch definitions, picking up the platform trigger tool and the slimmed search-agent surface.
  • Client display: platform-agent tool chip naming in tool-display.ts and the home message-content types, so a platform delegation renders with a proper label instead of a raw tool ID.

Stacked PR

Stacked on #6389 (base = feat/docs-vfs-search-docs) — this diff shows only the platform-agent delta. The base auto-retargets to staging when #6389 merges; merge in order.

Deploy note

Same pairing rule as #6389: merge this and simstudioai/mothership#417 together and deploy normally.

Testing

Type-check clean; 669 copilot tool tests pass. Validated end-to-end at this stack level: Sim product questions route to the platform agent, which answers in ~1 search_docs round with named markdown-link citations (verified via traces).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Aug 8, 2026 12:22am

Request Review

@cursor

cursor Bot commented Aug 8, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Client-side tool catalog regeneration and display labels only; no runtime routing or auth changes in this diff. Deploy should stay paired with the mothership platform-agent change.

Overview
Registers the new platform copilot subagent on the Sim app so the orchestrator can delegate Sim-product questions to a context-isolated specialist (paired with the mothership half of this change).

Generated contracts add platform to the tool catalog and schemas: an internal async subagent trigger with a required self-contained task string (the platform agent does not see the parent chat). UI maps delegations to Platform Agent labels and a Library icon in home message content and copilot tool display, instead of a raw tool id.

Reviewed by Cursor Bugbot for commit cc239a9. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps

greptile-apps Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Registers the client-side half of the new context-isolated Platform subagent, intended to be deployed with its paired Mothership implementation.

  • Adds platform to the generated tool catalog, runtime schema, and subagent ID types.
  • Adds Platform Agent labels and icon metadata to workspace message rendering and tool-display utilities.
  • Moves Sim product-documentation delegation onto a dedicated subagent contract with a required self-contained task.

Confidence Score: 5/5

The 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.

Important Files Changed

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]
Loading

Reviews (1): Last reviewed commit: "feat(copilot): describe platform agent d..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant