[Feature Request] Add persistent cwd filtering to in-session Agents view

Status Open
Reported on v2.1.231
Maintainer reply None cached
Activity 0 comments · opened Aug 27, 2026

Description
Missing: --cwd flag for plain claude command

Running claude agents --cwd . filters the Agents dashboard to sessions attached to the current directory — useful when working across many projects. But this only works when claude agents is launched as its own top-level command.

When starting a normal interactive claude session and switching to the Agents view from inside it, there's no way to get the same directory-scoped filtering. The in-session filter box only supports a:<name>, s:<state>, #<pr>, or a URL — no path/cwd filter, and no settings.json key or env var to set a default.

Requested: either add --cwd support to plain claude so it opens a normal session but remembers a cwd scope for later Agents-view switches, or let the in-session filter box accept a path/cwd token, or add a settings.json option for a default cwd filter in agent view.

Current workaround: Ctrl+S inside Agents view groups sessions by directory, then manually collapsing every other directory's group — functional but manual every time.

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.231
  • Feedback ID: f3764ae5-8916-487c-b24c-50777bfd99da

View original on GitHub ↗