Slash commands reference

Look up the purpose, prerequisites, and effect of each slash command in the chat UI of Cloudera Agent Studio, and the keys that you use in the command menu.

Commands

Every command needs an active chat and a selected agent. In addition, each command has the prerequisites that the following table lists.

Table 1. Slash commands
Command Purpose Prerequisites Changes the conversation
/help Lists every command that is available in this build of the chat UI. None, apart from an active chat and a selected agent. No. Shows a command card.
/context Shows how full the context window is and the state of automatic compaction. An existing conversation. No. Refreshes the context meter.
/usage Shows the input and output token totals that Agent Studio recorded for the conversation. An existing conversation. No.
/compact Summarizes older conversation history to free context. An existing conversation with history that Agent Studio can compact, and no active or paused run. Yes. Creates a durable compaction.
/restore Undoes the most recent active compaction and pauses automatic compaction. An existing conversation that has a compaction, and no active or paused run. Yes. Creates a durable revert marker.
/tools Lists the built-in tools and the custom tools of the selected agent. Agent Studio can read the details of the agent. No. Does not run or enable any tool.
/agents Lists the available agents and highlights the current agent. Agent Studio can read the agent catalog. No. Does not switch agents.
/model Shows the model configuration of the agent and its published run settings. Agent Studio can read the configuration of the agent. No. Does not change the model.
/clear Opens a new chat. An available agent. Yes. Opens another conversation and does not delete the current one.
/new Alias of /clear. The menu and /help do not list this alias. Same as /clear. Same as /clear.

Keys and mouse actions in the command menu

Table 2. Command menu interactions
Action Result
Up or Down while the menu is open Moves the highlight. The selection wraps from the last command to the first, and from the first to the last.
Enter while the menu is open Runs the highlighted command immediately.
Tab while the menu is open Completes the highlighted command and adds a space. Does not run the command.
Escape while the menu is open Closes the menu and keeps your draft.
Click a command Runs the selected command immediately.
Enter after the menu closes Submits the text that you typed.
Shift+Enter Does not run the command. Use it to enter more than one line.

Result cards

Table 3. Content of the command cards
Command Card content
/context The context percentage, the number of context tokens, the size of the context window, the number of messages, the model, and the auto-compaction threshold when one is available. When a restore has paused automatic compaction, the threshold tile shows paused.
/usage The input and output token totals, the number of messages, the model, and the cost.
/compact The number of messages that Agent Studio compacted, and the summary when one is supplied. If no history can be compacted, the card shows Nothing to compact yet.
/restore The result of the restore. If no compaction exists, the card shows Nothing to restore - no compaction to undo.
/tools The names of the tools as chips, grouped as built-in tools and custom tools. If the agent has no tools, the card reports that none are available.
/agents The names of the available agents, with the active agent marked.
/model The Model, Max steps, Max tokens, Temperature, and Auto-compact fields. A value that is unknown or not published shows an em dash.

An em dash means that the value is not available. It does not mean zero.