Skip to content

Support tools for prompts #6264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Support tools for prompts #6264

wants to merge 9 commits into from

Conversation

RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Jun 23, 2025

Description

The problem: Slash commands are built with generators that output strings. Thus, they don't support tool calls.

This PR restructures slash commands to add tool support for prompts.

TL;DR: non-legacy slash commands (prompt blocks, mcp, etc.) are now rendered on the GUI side and included in messages as normal conversations

Details

  • Adds a SlashCommandWithSource type (similar idea to RuleWithSource that adds source traceability and an isLegacy flag to slash commands, without breaking e.g. config.ts SlashCommand type
  • Removes the run functions from non-legacy slash commands
  • Updates editor content resolution on the GUI to render and inject slash command prompts on the spot. This includes
    • adding an mcp/getPrompt message that hits core and retrieves/stringifies an mcp prompt
    • moving prompt rendering logic to the GUI
  • Moves all legacy slash commands e.g. /share, /commit, etc. to a new more isolated directory

Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 5a89c34
🔍 Latest deploy log https://app.netlify.com/projects/continuedev/deploys/685b1509a8a4c900084fe0b6

Copy link

recurseml bot commented Jun 23, 2025

⚠️ Only 5 files will be analyzed due to processing limits.

Copy link

recurseml bot commented Jun 23, 2025

😱 Found 1 issue. Time to roll up your sleeves! 😱

@RomneyDa RomneyDa marked this pull request as ready for review June 24, 2025 21:13
@RomneyDa RomneyDa requested a review from a team as a code owner June 24, 2025 21:13
@RomneyDa RomneyDa requested review from Patrick-Erichsen and removed request for a team June 24, 2025 21:13
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant