Skip to content
BENIBIX Learn

Status Line

AI⌨️ Claude CodeClaude Code Concepts

Also known as Claude Code status line, /statusline, statusLine

A bar under the prompt, filled by a script you choose.

Think of it like

It is like the dash in a car. It shows your speed and fuel as you drive.

Example

Jack keeps losing track of how full the context is. He adds a status line with a small bar that fills up as the session grows.

Why it matters

Key facts stay in view, so you do not have to ask for them.

Definition

The status line is a bar at the bottom of Claude Code that you can set up to show anything. It runs a shell script you choose. Claude Code sends the script details about the session as JSON, such as the model, the folder and how full the context is. Whatever the script prints is shown in the bar. Run /statusline and describe what you want, and Claude Code writes the script for you.

Example code

console
/statusline show the model and the git branch
Ask Claude Code to build a status line for you.
Model, folder, branch and context, at a glance.

Common mistake

Writing a slow script. It runs often, so a slow one makes the whole screen feel slow.

Key takeaways

  1. 1
    A bar at the bottom. Always in view.
  2. 2
    Your script. Prints what shows.
  3. 3
    Gets session data. As JSON.

Learn it properly