claude-code - 💡(How to fix) Fix [FEATURE] Allow switching agent configurations mid-session via the /agent menu

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Current workaround:

The only current workaround is to open claude and use the /agent command to identify the agent I want to use, then exist and restart with the --agent <name> flag.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Right now, the only way to use a specific agent config is to pass --agent <name> at startup. The problem is you have to already know the agent name before you start. That's not always practical — sometimes I want to start a session and then figure out which agent fits what I'm working on.

Proposed Solution

What I'd like:

Augment the existing /agent menu (currently used for spawning subagents) to also support browsing and switching to an agent configuration. I'd want to be able to search through my available agent configs and select one to switch to.

When switching, Claude should prompt me to either preserve the current conversation context or start fresh with the new agent.

This should work for both custom agent specs (.claude/agents/*.md) and built-in agent types.

The --agent flag at startup should stay — this isn't a replacement, just an augmentation to the TUI so the workflow doesn't require knowing the agent name upfront.

Current workaround:

Exit and restart with --agent <name>, which means losing context and needing to remember the exact agent name ahead of time.

Alternative Solutions

The only current workaround is to open claude and use the /agent command to identify the agent I want to use, then exist and restart with the --agent <name> flag.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

  1. Open a Claude Code session without specifying an agent upfront.
  2. Start working and realize mid-session that a specialized agent would be a better fit.
  3. Open the /agent menu and search/browse available agent configurations.
  4. Select the desired agent.
  5. Choose to either preserve the current conversation context or start fresh.
  6. Continue working without needing to exit and restart.

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING