[Feature Request] Agent view: Add directory display and directory-based grouping for sessions
Bug Description
Feedback on the agent view (background sessions overview, opened with ← / claude agents):
As a user who mostly runs ONE foreground session per tmux tab, this screen is very hard to use. Two concrete problems:
1. No directory/path shown per session.
Rows only show an auto-generated summary. I cannot tell which project/directory
each session belongs to. The working directory is the most reliable way to
identify a session — please show each session's cwd/path in the list (or at least
an option to show it), not just in the /resume picker after Ctrl+A.
2. Grouping ONLY by state is unusable for memory.
Sessions are grouped by Needs input / Working / Completed. State changes constantly,
so a session jumps between groups and moves up/down. I can never remember "which one
is where." Please add at least a second view: sort/group by DIRECTORY (stable),
in addition to the state-based view.
Also: the auto-generated summary is often wrong/stale, because a long session drifts
across many unrelated topics — a one-line summary latched onto the opening question
no longer matches what the session is about. This makes rows even harder to tell apart.
Net effect: a newbie who accidentally presses ← lands here totally confused, with
near-identical rows (I currently have two rows both literally titled "Identify WeChat
account user") and no way to distinguish them. The only workaround I found is to enter
each session and /rename it myself — which should probably be surfaced as the first
suggested step.
Suggestions:
- Show per-session working directory/path in the list.
- Offer a directory-based sort/group, not only state-based.
- Nudge users to name sessions (/rename) since auto-summaries are unreliable.
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.222
- Feedback ID: 7b07a438-39b9-44cb-9e67-2b464e9ecf99
Errors
[]
3 Comments
+1. To complicate this further I have many sessions waiting on me to tell it what's next that show under completed and not waiting for input.
Good news: agent view already has a directory-based view. Press
Ctrl+Sinclaude agentsto switch from grouping by state to grouping by working directory. Sessions stay under their directory header regardless of state changes, and the choice persists across runs. You can also scope the list to one project withclaude agents --cwd <path>.For the summaries,
/rename <name>inside a session replaces the auto-generated title everywhere.Docs: https://code.claude.com/docs/en/agent-view#organize-the-list
Closing as covered; reopen if the directory view doesn't do what you need.
🤖 Generated with Claude Code
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.