Create a custom status line for Claude Code to display contextual information
/statusline
to ask Claude Code to help you set up a custom status line. By default, it will try to reproduce your terminal’s prompt, but you can provide additional instructions about the behavior you want to Claude Code, such as /statusline show the model name in orange
statusLine
command to your .claude/settings.json
:
jq
for JSON parsing in Bash (see examples above)echo '{"model":{"display_name":"Test"},"workspace":{"current_dir":"/test"}}' | ./statusline.sh
chmod +x
)