ccstatusline README

The project's README from github.com/sirmalloc/ccstatusline. As one markdown file: README.md.

              _        _             _ _            
  ___ ___ ___| |_ __ _| |_ _   _ ___| (_)_ __   ___ 
 / __/ __/ __| __/ _` | __| | | / __| | | '_ \ / _ \
| (_| (__\__ \ || (_| | |_| |_| \__ \ | | | | |  __/
 \___\___|___/\__\__,_|\__|\__,_|___/_|_|_| |_|\___|
                                                     

ccstatusline

🎨 A highly customizable status line formatter for Claude Code CLI Display model info, git branch, token usage, and other metrics in your terminal

npm version npm downloads License: MIT Node.js Version install size Maintenance

Mentioned in Awesome Claude Code ClaudeLog - A comprehensive knowledge base for Claude

Demo


📚 Table of Contents


🆕 Recent Updates

v2.2.28 - v2.2.29 - Service health, flexible formatting, and resilient rendering

v2.2.27 - Portable configuration import and export

v2.2.25 - v2.2.26 - Fable usage, migrated usage API support, compaction accuracy, and rendering reliability

v2.2.22 - v2.2.24 - Powerline flex mode, cache/CI/sandbox visibility, layout controls, composable metrics, and safer config

Powerline Flex Mode

v2.2.21 - Cache widgets, compaction details, extra usage currency, and package fixes

v2.2.20 - Gradients, token accuracy, usage reliability, and Git PR/MR fixes

v2.2.14 - v2.2.19 - Version pinning, npm provenance, usage overage widgets, and Git lock avoidance

v2.2.13 - Weekly model usage, voice status, hooks, and docs

v2.2.9 - v2.2.12 - GitLab support, reset timers, context, compaction, and git widgets


Older updates (v2.2.8 and earlier)

v2.2.8 - Git widgets, smarter picker search, and minimalist mode

  • 🔀 New Git PR widget - Added a Git PR widget with clickable PR links plus optional status and title display for the current branch.
  • 🧰 Major Git widget expansion - Added Git Status, Git Staged, Git Unstaged, Git Untracked, Git Ahead/Behind, Git Conflicts, Git SHA, Git Origin Owner, Git Origin Repo, Git Origin Owner/Repo, Git Upstream Owner, Git Upstream Repo, Git Upstream Owner/Repo, Git Is Fork, Git Worktree Mode, Git Worktree Name, Git Worktree Branch, Git Worktree Original Branch, and Custom Symbol.
  • 👤 Claude Account Email widget - Added a session widget that reads the signed-in Claude account email from ~/.claude.json while respecting CLAUDE_CONFIG_DIR.
  • 🧼 Global Minimalist Mode - Added a global toggle in Global Overrides that forces widgets into raw-value mode for a cleaner, label-free status line.
  • 🔎 Smarter widget picker search - The add/change widget picker now supports substring, initialism, and fuzzy matching, with ranked results and live match highlighting.
  • 📏 Better terminal width detection - Flex separators and right-alignment now work more reliably when ccstatusline is launched through wrapper processes or nested PTYs.
  • 🎨 Powerline theme continuity - Built-in Powerline themes can now continue colors cleanly across multiple status lines instead of restarting each line.
  • 🚀 New Token Speed widgets - Added three widgets: Input Speed, Output Speed, and Total Speed.
    • Each speed widget supports a configurable window of 0-120 seconds in the widget editor (w key).
    • 0 disables window mode and uses a full-session average speed.
    • 1-120 calculates recent speed over the selected rolling window.
  • 🧩 New Skills widget controls (v2.2.1) - Added configurable Skills modes (last/count/list), optional hide-when-empty behavior, and list-size limiting with most-recent-first ordering.
  • 🌐 Usage API proxy support (v2.2.2) - Usage widgets honor the uppercase HTTPS_PROXY environment variable for their direct API call to Anthropic.
  • 🧠 New Thinking Effort widget (v2.2.4) - Added a widget that shows the current Claude Code thinking effort level.
  • 🍎 Better macOS usage lookup reliability (v2.2.5) - Improved reliability when loading usage API tokens on macOS.
  • ⌨️ New Vim Mode widget (v2.2.5) - Added a widget that shows the current vim mode, with ASCII and optional Nerd Font icon display.
  • 🔗 Git widget link modes (v2.2.6) - Git Branch can render clickable GitHub branch links, and Git Root Dir can render clickable IDE links for VS Code and Cursor.
  • 🤝 Better subagent-aware speed reporting - Token speed calculations continue to include referenced subagent activity so displayed speeds better reflect actual concurrent work.
  • 🧩 New Usage widgets (v2.1.0) - Added Session Usage, Weekly Usage, Block Reset Timer, and Context Bar widgets.
  • 📊 More accurate counts (v2.1.0) - Usage/context widgets now use new statusline JSON metrics when available for more accurate token and context counts.
  • 🪟 Windows empty file bug fix (v2.1.1) - Fixed a Windows issue that could create an empty c:\dev\null file.
  • 🔗 New Link widget (v2.1.3) - Added a new Link widget with clickable OSC8 rendering, preview parity, and raw mode support.
  • ➕ New Git Insertions widget (v2.1.4) - Added a dedicated Git widget that shows only uncommitted insertions (e.g., +42).
  • ➖ New Git Deletions widget (v2.1.4) - Added a dedicated Git widget that shows only uncommitted deletions (e.g., -10).
  • 🧠 Context format fallback fix (v2.1.6) - When context_window_size is missing, context widgets now infer 1M models from long-context labels such as [1m] and 1M context in model identifiers.
  • **⏳ Wee

ccstatusline (sirmalloc/ccstatusline)

Searching Database…

Что это такое?ccstatusline — это настраиваемая строка состояния для CLI Claude Code: она показывает прямо в терминале информацию о модели, ветку git, расход токенов и другие метрики.
Как добавить её в свой терминал с Claude Code?Установите npm-пакет — по умолчанию ставится глобально с фиксированной версией — затем с помощью встроенного TUI разложите виджеты, и запись statusLine пропишется в настройки Claude Code.
Что ещё должно быть установлено, чтобы работали все виджеты?Node.js 14 или новее с npm или Bun для установки; git для виджетов с ветками; CLI gh или glab, если нужны виджеты с пул-реквестами и статусом CI.
Какие функции требуют более новой версии Claude Code или дополнительных инструментов?Чтобы задать интервал обновления, нужен Claude Code 2.1.97 или новее; виджеты расхода показывают заглушки загрузки, пока от Claude Code не придут данные о расходе; виджетам PR/MR нужны установленные gh или glab.
Работает ли это на Windows?Windows официально поддерживается: вспомогательные процессы запускаются без окна, а кэш git обходит особенности блокировки файлов в Windows; как CLI на Node он также работает на macOS и Linux.
Что можно настроить в строке состояния?Выбор и порядок виджетов, цветовые градиенты для отдельных виджетов или всей строки, приглушённый стиль, отступы, формат чисел, условное скрытие и режим Powerline с гибкими разделителями — всё редактируется прямо в TUI.
Какие виджеты входят в комплект?Информация о модели, длина контекста и его процент, счётчики токенов, расход за сессию и за неделю с разбивкой по Sonnet/Opus/Fable, таймеры блока и сброса, счётчик компакции, попадания/чтение/запись кэша, ветка git, статусы PR/MR и CI, статус песочницы и голосового режима, состояние сервисов Claude, а также свои команды.
Не замедлится ли строка состояния при долгой сессии в Claude Code?Нет. Метрики токенов, длительности и скорости извлекаются из транскрипта одним общим проходом вместо загрузки его целиком, а результаты при отсутствии активного блока ненадолго кэшируются, чтобы не сканировать всю историю повторно.
Можно ли перенести настройки на другой компьютер?Да — TUI умеет экспортировать конфигурацию в JSON и импортировать её обратно с проверкой и предпросмотром: либо заменив все настройки, либо объединив только указанные поля.
Creator
sirmalloc
Size
14.7 MB
Stars
13.3K
Age
1y
Commits · 90 Days