Statusline setup subagent for Claude Code

Use Claude Code’s status-line setup subagent to customize the information shown below the prompt.

How to use the Statusline setup subagent in Claude Code

  1. Run /statusline inside Claude Code and describe the fields you actually need.
  2. Use the example below as a starting point and replace the sample task with your own.
Claude Code prompt · Try this example
/statusline Show the active project, Git branch when available, and session model in a compact line.

Make the status line legible in a narrow terminal

Ask for repository name instead of the full path and test in both Git and non-Git directories. Look for useful output when a field is missing and verify it stays on one line.

Inspect the generated command

The status-line script receives session data. Review what it displays and keep any sharing or network behavior out of a local status line unless that is part of your intended setup.

Browse Agents