Docs
HomeClaude Code PRO
Blog

Getting Started

  • Documentation
  • Claude Code Setup
  • Claude Code Configuration
  • Claude Code Security

Claude Code PRO

  • guideCheatsheet
  • skill/apex
  • skill/brainstorm
  • skill/debug
  • skill/clean-code
  • skill/review-code
  • skill/ci-fixer
  • skill/claude-memory
  • skill/create-prompt
  • skill/create-slash-commands
  • skill/prompt-creator
  • skill/create-skills-workflow
  • skill/skill-creator
  • skill/hook-creator
  • skill/subagent-creator
  • scriptStatusline
  • scriptCommand Validator
  • scriptAuto-Rename Session
  • scriptClaude Code AI
  • agentSnipper
  • agentCode Reviewer
  • agentExplore Codebase
  • agentExplore Docs
  • agentAction
  • agentWeb Search
  • cmd/oneshot
  • cmd/refactor
  • cmd/ultrathink
  • cmd/commit
  • cmd/create-pr
  • cmd/fix-pr-comments
  • cmd/merge
  • cmd/fix-errors
  • cmd/utils/fix-grammar
  • cmd/copywriting

Statusline

Custom statusline with cost, context, git status, and usage limits tracking.

Custom statusline displaying cost, context, git status, and usage limits.

Features

  • Git branch with staged/unstaged indicators
  • Session cost and duration
  • Context tokens and percentage with progress bar
  • 5-hour and weekly usage limits with pacing
  • Daily spend tracking

Configuration

Run the interactive config:

BASH
cd ~/.claude/scripts && bun run statusline:config

Controls:

  • ↑↓ or j/k - Navigate options
  • Space - Toggle selected option
  • R - Reset to defaults
  • Q - Quit

Commands

CommandDescription
statusline:configInteractive configuration
statusline:startRun statusline (needs stdin JSON)
statusline:spend:todayView today's sessions and cost
statusline:spend:monthView monthly spending by date
statusline:spend:projectView spending per project
statusline:statsView usage statistics
statusline:weeklyWeekly usage analysis
statusline:migrateMigrate data to SQLite

Configuration File

Config stored in ~/.claude/scripts/statusline/statusline.config.json.

Key options:

JSON
{
  "oneLine": true,
  "pathDisplayMode": "truncated",
  "separator": "·",
  "session": {
    "cost": { "enabled": true, "format": "decimal1" },
    "duration": { "enabled": false },
    "tokens": { "enabled": true, "showMax": false },
    "percentage": {
      "enabled": true,
      "progressBar": {
        "enabled": true,
        "length": 10,
        "style": "braille",
        "color": "progressive"
      }
    }
  },
  "git": {
    "enabled": true,
    "showBranch": true,
    "showStaged": true,
    "showUnstaged": true
  },
  "limits": {
    "enabled": true,
    "showTimeLeft": true,
    "showPacingDelta": true
  },
  "weeklyUsage": {
    "enabled": "90%"
  }
}

Setup

Add to ~/.claude/settings.json:

JSON
{
  "statusLine": {
    "type": "command",
    "command": "bun ~/.claude/scripts/statusline/src/index.ts",
    "padding": 0
  }
}
/subagent-creatorCommand Validator