[DOCS] Status line documentation missing `workspace.added_dirs` field in JSON schema
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/statusline
Section/Topic
"Available data" table and "Full JSON schema" under the status line docs
Current Documentation
The status line field table documents:
workspace.current_dirworkspace.project_dir
The full JSON example also contains only:
"workspace": {
"current_dir": "/current/working/directory",
"project_dir": "/original/project/directory"
}
No workspace.added_dirs field is documented.
What's Wrong or Missing?
Claude Code v2.1.47 added added_dirs to status line JSON under workspace, exposing directories added via /add-dir. That field is absent from both the field table and the example schema.
As a result, status line scripts cannot reliably discover or display additional working directories even though runtime now exposes them.
Suggested Improvement
- Add
workspace.added_dirsto the "Available data" table. - Update the full JSON schema example to include it.
- Clarify type and behavior:
- Type: array of absolute directory paths
- Empty array when no extra directories are added
Suggested example snippet:
"workspace": {
"current_dir": "/current/working/directory",
"project_dir": "/original/project/directory",
"added_dirs": ["/repo/shared", "/repo/libs"]
}
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/statusline | 147-167 | Field table lists workspace fields but omits added_dirs |
| https://code.claude.com/docs/en/statusline | 181-184 | Full JSON schema omits added_dirs in workspace |
| https://code.claude.com/docs/en/permissions | 197-199 | /add-dir is documented, but statusline docs don't show how to observe added dirs |
Release note reference (v2.1.47):
- "Added
added_dirsto the statusline JSONworkspacesection, exposing directories added via/add-dirto external scripts"
Dedup check:
- No open docs issue found for
added_dirs+statusline.
4 Comments
Still unresolved as of 2026-03-17.
workspace.added_dirsdoes not appear in the statusline reference page or JSON schema example.Found it thanks to this issue, but Claude told me it wasn't possible.
Issue #26709 Verification
Title: [DOCS] Status line documentation missing
workspace.added_dirsfield in JSON schemaIssue Date: 2026-02-18
Verification Date: 2026-04-27
Status: RESOLVED
Issue Summary
The issue reported that the status line documentation at
code.claude.com/docs/en/statuslinewas missing theworkspace.added_dirsfield from both the "Available data" table and the full JSON schema example. This field was added in Claude Code v2.1.47 to expose directories added via/add-dirto external status line scripts.Verification Results
Claim 1:
workspace.added_dirsmissing from the "Available data" field tablestatusline.md:156now includes:workspace.added_dirs— "Additional directories added via/add-diror--add-dir. Empty array if none have been added"Claim 2:
added_dirsmissing from the full JSON schema examplestatusline.md:201now includes"added_dirs": []within theworkspaceobject, alongsidecurrent_dir,project_dir, andgit_worktree.Claim 3: Changelog reference for the feature addition
changelog.md:1590contains: "Addedadded_dirsto the statusline JSONworkspacesection, exposing directories added via/add-dirto external scripts"Current State
| Location | Expected | Found |
|----------|----------|-------|
| Field table (
statusline.md:156) |workspace.added_dirsrow | Present with description || JSON schema (
statusline.md:201) |"added_dirs": []in workspace object | Present || Changelog (
changelog.md:1590) | Release note entry | Present |Suggested Fix
N/A — documentation has been updated.
References
Conclusion & Recommendation
Primary Concern: The
workspace.added_dirsfield was undocumented in the status line reference.Resolution Status: Fully resolved. All three requested documentation updates (field table, JSON schema example, and changelog) are now present in the docs mirror.
Recommendation: Close as completed.
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.