expose a getAvailableSlashCommands rpc endpoint in cline core (#8024)

This commit is contained in:
Max authored and GitHub committed 2025-12-11 16:05:35 -08:00
1 parent 8ce476ccaa
commit 97d635d606
8 files changed
+575 -51

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
export interface SlashCommand {
name: string
description?: string
section?: "default" | "custom"
cliCompatible?: boolean
}
export const BASE_SLASH_COMMANDS: SlashCommand[] = [
{
name: "newtask",
description: "Create a new task with context from the current task",
section: "default",
cliCompatible: true,
},
{
name: "smol",
description: "Condenses your current context window",
section: "default",
cliCompatible: true,
},
{
name: "newrule",
description: "Create a new Cline rule based on your conversation",
section: "default",
cliCompatible: true,
},
{
name: "reportbug",
description: "Create a Github issue with Cline",
section: "default",
cliCompatible: true,
},
{
name: "deep-planning",
description: "Create a comprehensive implementation plan before coding",
section: "default",
cliCompatible: true,
},
{
name: "subagent",
description: "Invoke a Cline CLI subagent for focused research tasks",
section: "default",
cliCompatible: true,
},
]
// VS Code-only slash commands
export const VSCODE_ONLY_COMMANDS: SlashCommand[] = [
{
name: "explain-changes",
description: "Explain code changes between git refs (PRs, commits, branches, etc.)",
section: "default",
},
]