Repository navigation
feat(agents): seed kickstart prompts on COLLECTION_VIRTUAL_MCP_CREATE - #4449
Merged
Merged
Conversation
COLLECTION_VIRTUAL_MCP_CREATE gains an optional `prompts` field. Seeded prompts are persisted to a dedicated org-fs volume (agent-prompts) and served back as native MCP prompts on the agent's gateway, so they surface as icebreakers, on the org home, and via / mentions with no frontend changes. Agent Manager + agent guides now instruct authoring coherent starters derived from the agent's role and the descriptions of the tools it will have.
Prompts were create-only: UPDATE ignored them and DELETE orphaned the org-fs subtree. Add prompts to the update schema (full replace, [] clears), make writeAgentPrompts idempotent (clear-then-write so stale index-named files don't linger), and clean up the subtree on agent delete.
pedrofrxncx
enabled auto-merge (squash)
July 11, 2026 01:15
decocms Bot
pushed a commit
that referenced
this pull request
Jul 11, 2026
PR: #4449 feat(agents): seed kickstart prompts on COLLECTION_VIRTUAL_MCP_CREATE Bump type: minor - decocms (apps/mesh/package.json): 4.5.1 -> 4.6.0 - @decocms/mesh-sdk (packages/mesh-sdk/package.json): 1.18.0 -> 1.19.0 Deploy-Scope: server
tlgimenes
pushed a commit
that referenced
this pull request
Jul 16, 2026
…TS.md (#4475) Mined ~300 merged PRs for the delta between the first PR proposal and the work added before merge. The dominant shape: a first draft ships the happy path, then a hardening pass (often a different engineer who takes over the branch and merges — the vibecoder→engineer handoff) adds the same categories every time. Encoded those 9 categories as an actionable first-pass checklist, each citing a real PR (#4008, #4230, #4365, #4409, #4426, #4445, #4357, #4355, #4449, #4350, #4373, #4416, #4446, #4461, #4134, #4469). Covers: variant/edge-case handling, tenant/permission scoping, concurrency & silent-data-loss, test-per-fix + invert-bug-tests + real-PG, dead-code/knip, lifecycle symmetry + state reset, kill-switch/GC/git-exclude for risky infra, input validation vs over-engineering, compile-time type-safety. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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
COLLECTION_VIRTUAL_MCP_CREATE(the agent-create tool) gains an optionalpromptsfield. Prompts passed at create time seed the new agent with kickstart prompts — clickable conversation starters (icebreakers) that make an empty agent immediately useful.The tool description and the Agent Manager / agent guides now instruct authoring coherent starters derived from the agent's role/instructions and the descriptions of the tools it will have — not generic "How can I help?" greetings.
How it works
agent-prompts, one JSON file per prompt at<agentId>/<slug>.json). They are not stored on the agent row, and the volume is intentionally not in the sandbox mount set, so seeding never pollutes the org's sandbox home. This mirrors the existing skills-catalog pattern.PassthroughClient(the agent gateway) now injects these intolistPrompts()— namespaced under the agent id — and resolves them ingetPrompt(). Because everything downstream already consumes the gateway'sprompts/list/prompts/get, they surface as icebreakers, on the org home next-actions, and via/mentions with zero frontend changes.Files
packages/mesh-sdk/src/types/virtual-mcp.ts—AgentKickstartPromptSchema(title,description?,text) + optionalpromptsonVirtualMCPCreateDataSchema.apps/mesh/src/file-storage/agent-prompts.ts— org-fs read/write helpers (bounded, best-effort, never throw).apps/mesh/src/tools/virtual/create.ts— seed prompts after create; updated description.apps/mesh/src/mcp-clients/virtual-mcp/passthrough-client.ts— inject/resolve seeded prompts on the gateway.apps/mesh/src/tools/virtual/studio-pack/agent-manager.ts,apps/mesh/src/tools/guides/agents.ts— instructions to author coherent kickstart prompts from role + tool descriptions.Testing
bun run check(all workspaces),bun run lint(0 errors),bun run fmtpass.passthrough-client.test.tspasses.Notes / follow-ups
COLLECTION_VIRTUAL_MCP_UPDATEdoes not yet manage seeded prompts.🤖 Generated with Claude Code
Summary by cubic
Adds kickstart prompts to agent creation and now lets you edit or remove them on update/delete. Prompts persist in org-fs and are served as native MCP prompts, so they show as icebreakers and via
/mentions with no UI changes.New Features
COLLECTION_VIRTUAL_MCP_CREATEaccepts optionalprompts(AgentKickstartPromptSchema), seeded after create; best‑effort and non‑blocking.COLLECTION_VIRTUAL_MCP_UPDATEaddspromptsto fully replace the set; pass[]to clear. Writes are idempotent (clear‑then‑write).COLLECTION_VIRTUAL_MCP_DELETEcleans up theagent-prompts/<agentId>/subtree on delete.agent-prompts(JSON, max 20); not on the agent row and not mounted in the sandbox.PassthroughClientinjects prompts inlistPrompts()and resolves them ingetPrompt()with agent‑id namespacing; per‑instance cache; never throws.Bug Fixes
agent-prompts.ts(knip).Written for commit 09db5f4. Summary will update on new commits.