Answer: Claude Code sends a JSON object via stdin containing fields such as model, cwd, workspace, cost, context_window, session_id, transcript_path, version, output_style, vim, agent, pr, worktree, rate_limits, prompt_cache, fast_mode, effort, thinking, and exceeds_200k_tokens. Status: Confirmed Entry: tool/claude-code/features/status-line-data-fields Revision: 4 Digest: sha256:4bc4178fb8e96410 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:56Z Last changed: 2026-11-17T12:31:45Z (rate_limits fields: — → rate_limits.five_hour.used_percentage`, `rate_limits.seven_day.used_percentage) Last verified: 2026-11-20T12:25:43Z Next check: 2026-11-21T12:25:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of model fields | model.id`, `model.display_name | [1] | 2026-11-20 cwd / workspace.current_dir | cwd`, `workspace.current_dir | [1] | 2026-11-20 cost fields | cost.total_cost_usd | [1] | 2026-11-20 context_window fields | context_window.total_input_tokens`, `context_window.total_output_tokens | [1] | 2026-11-20 session_id | session_id | [1] | 2026-11-20 transcript_path | transcript_path | [1] | 2026-11-20 version | version | [1] | 2026-11-20 rate_limits fields | rate_limits.five_hour.used_percentage`, `rate_limits.seven_day.used_percentage | [1] | 2026-11-20 Sources: [1] Anthropic. "Customize your status line". https://code.claude.com/docs/en/statusline.md Role: primary. Accessed: 2026-11-20T12:25:43Z Quote: "| `model.id`, `model.display_name` | Current model identifier and display name |" (Supports: model fields) Quote: "| `cwd`, `workspace.current_dir` | Current working directory." (Supports: cwd / workspace.current_dir) Quote: "| `cost.total_cost_usd` | Estimated session cost in USD" (Supports: cost fields) Quote: "| `context_window.total_input_tokens`, `context_window.total_output_tokens` | Token counts currently in the context window" (Supports: context_window fields) Quote: "| `session_id` | Unique session identifier |" (Supports: session_id) Quote: "| `transcript_path` | Path to conversation transcript file |" (Supports: transcript_path) Quote: "| `version` | Claude Code version |" (Supports: version) Quote: "| `rate_limits.five_hour.used_percentage`, `rate_limits.seven_day.used_percentage` | Percentage of the 5-hour or 7-day rate limit consumed, from 0 to 100 |" (Supports: rate_limits fields) Published: 2026-11-20T02:53:34Z Snapshot SHA-256: 6ed6ebdc024cf470219ffb455831185b524fd76d01e9d4cafba4a069c3a33cb4 (captured 2026-11-17T12:31:44Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:31:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:25:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:43Z Last attempt: 2026-11-20T12:25:43Z Notes and limitations: Extracted automatically from a single official source (section "Available data"). Related: https://latestn.com/tool/claude-code/features/thirty-day-playbook What is a thirty-day plan for rolling out Claude Code on my team? https://latestn.com/tool/claude-code/features/track-running-ultrareview How do I track the progress of a running Claude Code ultrareview? https://latestn.com/tool/claude-code/features/unavailable-features-google-cloud-anthropic-managed Which Claude Code features are not available when using Claude Models on Google Cloud (Anthropic managed)? https://latestn.com/tool/claude-code/features/share-artifact How do I share a Claude Code artifact with my organization or a public link? https://latestn.com/tool/claude-code/features/sparse-worktrees-checkout-directories How do I set up sparse worktrees in Claude Code to check out only needed directories? https://latestn.com/tool/claude-code/features/start-session-in-worktree How do I start a Claude Code session in a git worktree using the --worktree flag? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:31:45Z | changed | rate_limits fields: — → rate_limits.five_hour.used_percentage`, `rate_limits.seven_day.used_percentage | [1] 2026-11-17T12:31:45Z | changed | transcript_path: — → transcript_path | [1] 2026-11-17T12:31:45Z | changed | session_id: — → session_id | [1] 2026-11-17T12:31:45Z | changed | context_window fields: — → context_window.total_input_tokens`, `context_window.total_output_tokens | [1] 2026-11-17T12:31:45Z | changed | cwd / workspace.current_dir: — → cwd`, `workspace.current_dir | [1] 2026-11-17T12:31:45Z | changed | output style: output_style.name → — | [1] 2026-11-17T12:31:45Z | changed | transcript path: transcript_path → — | [1] 2026-11-17T12:31:45Z | changed | session fields: session_id → — | [1] 2026-11-17T12:31:45Z | changed | context window fields: context_window.total_input_tokens → — | [1] 2026-11-17T12:31:45Z | changed | workspace fields: workspace.current_dir → — | [1] 2026-11-17T12:31:45Z | changed | model fields: model.id → model.id`, `model.display_name | [1] 2026-11-15T12:26:00Z | changed | output style: — → output_style.name | [1] 2026-11-15T12:26:00Z | changed | version: — → version | [1] 2026-11-15T12:26:00Z | changed | transcript path: — → transcript_path | [1] 2026-11-15T12:26:00Z | changed | worktree fields: worktree.name → — | [1] 2026-11-15T12:26:00Z | changed | pr fields: pr.number → — | [1] 2026-11-15T12:26:00Z | changed | version field: version → — | [1] 2026-11-13T12:14:47Z | changed | worktree fields: — → worktree.name | [1] 2026-11-13T12:14:47Z | changed | pr fields: — → pr.number | [1] 2026-11-13T12:14:47Z | changed | version field: `version` → version | [1] 2026-11-13T12:14:47Z | changed | session fields: `session_id` → session_id | [1] 2026-11-13T12:14:47Z | changed | context window fields: `context_window.used_percentage` → context_window.total_input_tokens | [1] 2026-11-13T12:14:47Z | changed | cost fields: `cost.total_cost_usd` → cost.total_cost_usd | [1] 2026-11-13T12:14:47Z | changed | workspace fields: `cwd`, `workspace.current_dir` → workspace.current_dir | [1] 2026-11-13T12:14:47Z | changed | model fields: `model.id`, `model.display_name` → model.id | [1] 2026-11-13T03:05:56Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/status-line-data-fields/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/status-line-data-fields POST: https://latestn.com/dispute/tool/claude-code/features/status-line-data-fields with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/status-line-data-fields?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What data fields are available to a Claude Code status line script? Revision 4, last verified 2026-11-20T12:25:43Z. https://latestn.com/tool/claude-code/features/status-line-data-fields (accessed 2026-11-21T09:53:14Z). @misc{LatestN_tool_claude_code_features_status_line_data_fields_r4, title = {What data fields are available to a Claude Code status line script?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/status-line-data-fields}}, note = {Revision 4; digest sha256:4bc4178fb8e96410; last verified 2026-11-20T12:25:43Z; accessed 2026-11-21T09:53:14Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/status-line-data-fields