Official documentation
Tested on Mac
1. Install jq command line tool
JQ makes json parsing easier
JQ installation
2. Enable statusline in Claude Code settings
Modify your settings.json file found in top level .claude folder ~/.claude/settings.json.
If the file doesn't exist, create it.
Enable statusline
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 2
}
}
3. Create statusline file and make it executable
Create statusline.sh file in the same folder
You can name it anything but make sure file path is the same in "command" in the settings.
touch ~/.claude/statusline.sh
Make it executable
chmod +x ~/.claude/statusline.sh
Write the statusline script to statusline.sh
This Super Simple Statusline file shows Model Name, input token count, output token count and context % progress bar.
#!/bin/bash
# Read JSON data that Claude Code sends to stdin
# Rem
Discussion
Begin the discussion
Begin something meaningful by sharing your ideas.