Allow specifying working directory when dispatching sessions from Agent View TUI
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 4 comments · opened May 22, 2026 · closed Jun 23, 2026
Summary
When using Agent View (claude agents) to manage multiple Claude Code instances, there's no way to dispatch a new session into a different working directory from within the TUI. You have to exit, cd to the target directory in a separate terminal, run claude --bg, and switch back.
Motivation
When working across multiple projects or subdirectories in a monorepo, the current workflow requires leaving the Agent View to dispatch a session in a different directory. This breaks the flow of the centralized agent management experience.
Proposed solution
Allow specifying the target working directory when creating a new session from within the Agent View TUI — for example, via a directory picker or a text input when dispatching a new agent.
Related issues
- #49429 — Session-scoped working directory / git branch state
- #61366 — Allow /branch and --resume to target a different working directory
- #50302 — Allow switching project context mid-session
4 Comments
Analysis
This is a feature request for the Agent View TUI to accept a target working directory when dispatching new sessions. Currently, the TUI spawns all sessions in the directory where
claude agentswas launched. To start a session in a different directory, users must open a separate terminal,cdto the target, and runclaude --bg.Implementation approaches
cwd.--cwdflag forclaude agents: Allowclaude agents --cwd <path>to set the default working directory for all sessions dispatched from that TUI session. Combined with multiple TUI instances (one per project), this covers the multi-project workflow without modifying the TUI itself./cwdcommand: A mid-session slash command/cwd <path>that changes the session's working directory (similar to/compactor/clear). This was proposed in #50302.Workaround (current)
No single-terminal workaround exists. Use multiple terminals or tmux panes:
Each Agent View TUI only manages sessions in its own working directory.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
Not having this feature is annoying. Logically the TUI presents agents started from every directory. For dispatching, however, I have to open another terminal, and make a claude session. Unintuitive. I'm assuming having Claude code would help implementing this feature.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.