1
Claude Code Status Line
README.md:

Installation
Add these scripts to ~/.claude and add the statusline.sh script to your ~/.claude/settings.json, e.g:
{
"model": "opus",
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}
To add the scripts to ~/.claude (assuming you don't have a git repo there already):
cd ~/.claude
git init
git remote add origin git@github.com:defuse/claude-statusline.git
git fetch
git checkout -t origin/main
Dependencies
jq- JSON parsingpython3withptymodule (stdlib) - used byautocompact-buffer.shto probe Claude Code's/contextcommand in a fake TTY/tmpmust be a trusted workspace in Claude Code (runclaudeonce in/tmpand accept the trust prompt). The probe runs there to avoid polluting session history in your actual projects.git- branch display (optional, degrades gracefully)~/.claude/.credentials.jsonmust contain your API credentials (it should by default)


