Feature request: allow slash commands in agent view

Status Open
Maintainer reply None cached
Activity 3 comments · opened Jun 30, 2026

When typing slash commands in the agent view, Claude Code blocks them with messages like:

/mcp isn't available in agent view — attach to a session to run it /usage isn't available in agent view — attach to a session to run it

Use case: I want to check MCP server status or usage before describing a task for a new session. Having to first attach to a session just to run informational commands breaks the workflow.

Request: Make informational slash commands (e.g. /mcp, /usage) available directly in the agent view.

Environment: Claude Code desktop app, macOS

View original on GitHub ↗

3 Comments

tonyrusignuolo · 2 months ago

+1. Think about the case of resuming a conversation / session.

Simply running /resume in the agent viewer and having it spawn a new session with the interactive conversation picker is a much better experience than:

  1. killing the CC process with agent viewer, starting a fresh CC session, and running the slash command, then backgrounding the resumed session
  2. starting a new session with a dummy prompt to get it in the agent viewer, then running the slash command - this wastes tokens

This is similar for all other interactive slash commands like /agents and /mcp. I'm going to run them, do the manual interaction, then background them anyway - might as well make it simple for me.

If there's a better alternative lmk

builder-main · 1 month ago

Yes add this in agent view out of any conversation context. Much needed.

marcindulak · 6 days ago

This happens also in the CLI 2.1.241 (Claude Code) , it's not desktop only.

<img width="813" height="575" alt="Image" src="https://github.com/user-attachments/assets/64a8a537-4f57-4eb1-a9a7-5a1bbbb596c5" />