$ statusline --compose
preview · rendered from the sample JSON, as a terminal would show it

Fields, in order

Separator

Presets

Field names and sample values follow the status line JSON as Claude Code documented it when this was built. Tool versions add and rename fields: edit the sample JSON and the jq path in the script if yours differs. Nothing here talks to any tool; you paste the output into your own config.

Sample session JSON (editable)

~/.claude/statusline.sh

settings.json block

Needs jq and bash. Save the script, run chmod +x on it, and merge the block into ~/.claude/settings.json. The script is generated here and not run here: test it in your terminal first.