claude-code - 💡(How to fix) Fix [DOCS] Status line docs missing `effort.level` and `thinking.enabled` stdin fields [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52616Fetched 2026-04-24 06:02:22
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2

Code Example

> {
>   "cwd": "/current/working/directory",
>   "session_id": "abc123...",
>   "model": {
>     "id": "claude-opus-4-6",
>     "display_name": "Opus"
>   },
>   ...,
>   "agent": {
>     "name": "security-reviewer"
>   }
> }
>
RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://code.claude.com/docs/en/statusline

Section/Topic

"Available data" and "Full JSON schema" in the status line documentation

Current Documentation

The docs currently say:

Claude Code sends the following JSON fields to your script via stdin:

| model.id, model.display_name | Current model identifier and display name | | cwd, workspace.current_dir | Current working directory. Both fields contain the same value; workspace.current_dir is preferred for consistency with workspace.project_dir. | | workspace.project_dir | Directory where Claude Code was launched, which may differ from cwd if the working directory changes during a session | ... | agent.name | Agent name when running with the --agent flag or agent settings configured |

It also says:

Your status line command receives this JSON structure via stdin:

{
  "cwd": "/current/working/directory",
  "session_id": "abc123...",
  "model": {
    "id": "claude-opus-4-6",
    "display_name": "Opus"
  },
  ...,
  "agent": {
    "name": "security-reviewer"
  }
}

The page does not document the newly added effort.level or thinking.enabled fields anywhere in the available-data table or JSON schema.

What's Wrong or Missing?

Changelog v2.1.119 says: "Status line: stdin JSON now includes effort.level and thinking.enabled".

The status line page presents the stdin payload as an explicit field list plus a full JSON schema, but both are missing these new fields. That makes the page outdated for users who want to show the current effort level or thinking state in a custom status line.

Suggested Improvement

Update https://code.claude.com/docs/en/statusline to document both new fields in the two places that describe the stdin payload:

  1. Add rows to the "Available data" table for:
  • effort.level — current effort level for the session/turn
  • thinking.enabled — whether thinking is currently enabled
  1. Add both fields to the "Full JSON schema" example.
  2. If either field can be absent or null in some situations, document that in the "Fields that may be absent" or "Fields that may be null" notes.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/statuslinePrimary status line stdin field reference and JSON schema

Total scope: 1 page affected

Source: Changelog v2.1.119

Exact changelog entry: Status line: stdin JSON now includes effort.level and thinking.enabled

extent analysis

TL;DR

Update the status line documentation to include the new effort.level and thinking.enabled fields in the "Available data" table and "Full JSON schema" example.

Guidance

  • Review the changelog entry for v2.1.119 to understand the changes made to the status line stdin JSON payload.
  • Update the "Available data" table to include rows for effort.level and thinking.enabled, describing their purpose and possible values.
  • Add the effort.level and thinking.enabled fields to the "Full JSON schema" example to reflect the updated payload structure.
  • Consider documenting any potential absence or null values for these fields in the relevant notes section.

Example

No code snippet is necessary for this documentation update, but the revised "Full JSON schema" example might look like:

{
  "cwd": "/current/working/directory",
  "session_id": "abc123...",
  "model": {
    "id": "claude-opus-4-6",
    "display_name": "Opus"
  },
  ...
  "agent": {
    "name": "security-reviewer"
  },
  "effort": {
    "level": "high"
  },
  "thinking": {
    "enabled": true
  }
}

Notes

The update should be made to the https://code.claude.com/docs/en/statusline page, which is the primary reference for status line stdin fields and JSON schema.

Recommendation

Apply the suggested improvement to update the documentation, as it will provide accurate information to users and resolve the medium-impact issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Status line docs missing `effort.level` and `thinking.enabled` stdin fields [2 comments, 2 participants]