Skip to content

[FEATURE]: Support chaining multiple slash commands in a single prompt #16915

@ghaif

Description

@ghaif
  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently only one slash command can be used per prompt — typing /command1 args /command2 args does not work. Each prompt is limited to a single command context.

The enhancement: allow multiple slash commands to be chained in a single prompt (e.g. /compact /summarize or /file path /command args). Each command resolves its template independently, and all resulting parts are merged into a single LLM turn.

This is a natural extension of how slash commands work — there's no inherent reason only one should exist per turn — and reduces the need for multiple back-and-forth prompt submissions when the user wants to combine contexts from different commands.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions