Slash commands in chat
Use slash commands in the chat UI of Cloudera Agent Studio to inspect a conversation or an agent, manage the context of a conversation, or open a new chat without sending a prompt to the model.
A slash command is an in-chat control. When the text that you submit begins with
/, the chat UI runs the command and does not send the text to the model as a
prompt. The chat UI ignores whitespace at the start and end of the text when it checks for the
slash.
Slash commands are not terminal commands, and you cannot use them to invoke arbitrary tools or skills. Availability can differ in older deployed builds.
The commands fall into the following groups:
- Inspect the conversation:
/contextand/usage. See Checking the context and token usage of a conversation. - Manage the context:
/compactand/restore. See Compacting a conversation and Restoring a compacted conversation. - Inspect the agent:
/agents,/tools, and/model. See Inspecting an agent in a chat. - Get help or start over:
/help,/clear, and/new. See Starting a new chat.
For the purpose, prerequisites, and effect of each command, see Slash commands reference.
Command cards
The commands that inspect a conversation or an agent, and the commands that manage the context, show their result in a command card in the current chat. A card shows a loading, success, or error state.
A card is temporary. Agent Studio does not save a card as a message of the conversation, and it removes the card when your next ordinary message starts a run. The compacted history and the restore markers that /compact and /restore create are different. They remain in the conversation.
The /clear and /new commands open a new chat and show no card.
Entering a command
Open a chat with an available agent, and wait until the chat is ready. Every command needs both an active chat and a selected agent, including /help and /tools.
To enter a command, type / at the start of an empty message box. The command menu opens above the message box. As you type, the menu narrows to the commands that match. For example, /con matches /context, and /co shows /context and /compact. Matching is not case-sensitive. It uses command names and menu titles, not descriptions, and it does not use fuzzy matching.
For the keys and mouse actions that work in the menu, see Slash commands reference.
Keep the following rules in mind:
- The menu opens only when the input starts with
/and contains no whitespace. A space after the command name closes the menu. - Command names are not case-sensitive. Agent Studio trims the whitespace around the input, so
/HELPresolves to/helpwhen you submit it, even though that text does not open the menu. - Agent Studio reads the first word after the slash as the command name and ignores any text after the command name. It does not validate the text or pass it to the command as an argument. For example,
/compact keep this detailruns a normal compaction and does not usekeep this detailas an instruction for the summary. - Each submission runs one command. You cannot chain commands.
- If the input is only a slash, or the command name is unknown, the chat shows the help card and does not send the input to the agent. To discuss a path or command that begins with a slash, start the message with ordinary text, for example
Explain /tmp/output. - If you click Send while the chat is opening, the chat UI holds your input until the chat is ready.
