Build a Claude Code status line without writing a script

The line under your Claude Code prompt can show the model, cost, context and limits. You can build it by picking parts and get the script ready to run, instead of writing it yourself.

Short answer: you do not have to write the status line script by hand. Pick the parts you want (model, cost, context, rate limits, Git branch), order them, choose colours, and take a script that is ready to run. One line in settings.json then points Claude Code at it.

Claude Code's status line is powerful, but the official way to get one is to write a small program: read the session's JSON from standard input, pick out the fields, add colours, print one line. That is fine for a developer with an afternoon, and a wall for everyone else.

Nothing loads from YouTube until you press play. Then Google receives your IP address and may set its own storage. Narrated with an AI-generated voice. Privacy

What can the status line show?

Claude Code sends the script details about the session each time it updates the line, and the script decides what to print. Common parts:

PartWhy it helps
ModelYou see at once whether you are on the model you meant.
Context usedYou know when to /compact before Claude starts forgetting.
Session costYou notice an expensive session while it happens.
5-hour and weekly limitsYou see how close you are before you hit one.
Git branchYou do not commit to the wrong branch.

Each has its own post: context use, rate limits and the Git branch.

How do you build one without code?

  1. Pick the parts in the order you want them.
  2. Style each one: colour, icon, separator.
  3. Check it against a preview with real session numbers.
  4. Take the script in the language your computer already has.

How do you install it?

Save the script, then point Claude Code at it in ~/.claude/settings.json:

{ "statusLine": { "type": "command", "command": "bash ~/.claude/statusline.sh" } }

Start a new session and the line appears under your prompt. If it stays empty, the setup post covers the usual reason.

Where can you check this?

Where do you build it?

Statusline Studio is the picker from the video: 75 segments plus 15 for subagent rows, 25 ready-made templates and 12 colour palettes, with a live preview. It gives you the script in Bash, Python or Node.js and the one command that installs it.

The tool

Do it in your browser.

Claude Code

Statusline Studio

Pick from 75 segments (and 15 more for subagent rows), style each one and watch the status line render live, then copy a ready-to-run script in Bash, Python or Node.js.

Keep reading

More from the blog.

Every post