You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Add a CWD column to the agent list table showing each agent's working directory
5
+
---
6
+
7
+
# Display CWD in Agent List Command
8
+
9
+
## Problem Statement
10
+
11
+
When running `ai-devkit agent list`, users see a table with Agent, Type, Status, Working On, and Active columns. However, there is no way to tell **which directory** each agent is working in. This makes it difficult to distinguish between multiple agents of the same type running in different projects.
12
+
13
+
The `projectPath` field already exists in the `AgentInfo` data model and is populated by adapters, but it is not surfaced in the table output.
14
+
15
+
## Goals & Objectives
16
+
17
+
**Primary goals:**
18
+
- Display each agent's current working directory (cwd) in the `agent list` table output
19
+
20
+
**Non-goals:**
21
+
- Changing the `--json` output format (it already includes `projectPath`)
22
+
- Adding filtering/sorting by cwd
23
+
- Modifying how `projectPath` is collected by adapters
24
+
25
+
## User Stories & Use Cases
26
+
27
+
- As a developer running multiple agents across projects, I want to see each agent's working directory so I can quickly identify which agent belongs to which project.
28
+
- As a developer with agents in nested directories, I want the path displayed in a compact, readable format (shortened with `~` for home directory).
29
+
30
+
## Success Criteria
31
+
32
+
-[ ]`agent list` table includes a "CWD" column showing the agent's `projectPath`
33
+
-[ ] Long paths are shortened (home directory replaced with `~`)
34
+
-[ ] Column is positioned after "Agent" name for quick visual association
35
+
-[ ] Existing tests updated to cover the new column
36
+
-[ ] No regressions in existing agent list functionality
37
+
38
+
## Constraints & Assumptions
39
+
40
+
- The `projectPath` field is already available in `AgentInfo` — no adapter changes needed
41
+
- Path shortening uses `os.homedir()` for `~` substitution
42
+
- Column styling uses `chalk.dim` to keep focus on agent name and status
43
+
44
+
## Questions & Open Items
45
+
46
+
- None — straightforward display addition using existing data.
0 commit comments