How to use the Statusline setup subagent in Claude Code
- Run /statusline inside Claude Code and describe the fields you actually need.
- Use the example below as a starting point and replace the sample task with your own.
/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.