You can use Ruby to set the status line in Claude Code
Claude Code writes the session JSON to your script's stdin and displays what it prints back. Thirty lines of Ruby give you the folder, the git branch, and the context window percentage.

Claude Code writes the session JSON to your script's stdin and displays what it prints back. Thirty lines of Ruby give you the folder, the git branch, and the context window percentage.

Claude Code writes the session JSON to your script's stdin and displays what it prints back.
Thirty lines of Ruby give you the folder, the git branch, and the context window percentage.
The page is ready to read now. The fuller skim-friendly version will appear here automatically.
Claude Code writes the session JSON to your script's stdin and displays what it prints back. Thirty lines of Ruby give you the folder, the git branch, and the context window percentage.
Open the app view to save this story, compare related coverage, and continue from the same source.