claude-hud README

README проекта с github.com/jarrodwatts/claude-hud. Одним файлом markdown: README.md.

Claude HUD

A Claude Code plugin that shows what's happening: context usage, rate limits, active tools, running agents, and todo progress, always visible below your input.

License Stars

Claude HUD in action

🌐 English | 中文文档

Install

Inside Claude Code, run:

/plugin marketplace add jarrodwatts/claude-hud
/plugin install claude-hud
/reload-plugins
/hud

/hud checks your setup and points your status line at the HUD, after asking you. It needs Node.js 22.18 or later; if yours is older, /hud finds a newer one on your machine or helps you install one.

Prefer the terminal?
claude plugin marketplace add jarrodwatts/claude-hud
claude plugin install claude-hud@claude-hud

Then run /reload-plugins and /hud inside a session.

Updates: Claude Code doesn't auto-update third-party plugins by default. To turn it on, run /plugin, open Marketplaces, select claude-hud, and choose Enable auto-update. Or update by hand with claude plugin marketplace update claude-hud and claude plugin update claude-hud@claude-hud, then /reload-plugins. You don't need to set it up again.

What You See

The default is two lines:

[Opus] │ my-project git:(main*)
Context █████░░░░░ 45% │ Usage ██░░░░░░░░ 25% (resets in 1h 30m)

Optional lines include tools, agents and todos, plus about a hundred other options:

◐ Edit: auth.ts | ✓ Read ×3 | ✓ Grep ×2        ← tools
◐ explore [haiku]: Finding auth code (2m 15s)    ← agents
▸ Fix authentication bug (2/5)                   ← todos

Change It, Fix It, Report It

Ask Claude, or type /hud and say what you want: "show tool activity", "use the compact layout", "the HUD is blank", "the context bar looks wrong". Claude looks up the options, shows you a preview, and saves the change once you approve it. /hud also undoes the last change, replays the last real render to explain what you see, and, for a real bug, writes a scrubbed report that you read in full before anything is filed.

Settings live in ~/.claude/plugins/claude-hud/config.json (under $CLAUDE_CONFIG_DIR if set). To turn the HUD off for one session, start Claude Code with CLAUDE_HUD_DISABLE=1.

Security

The HUD's logic runs in a locked-down Node process. Node's permission model blocks it from starting programs, reading your credentials, and writing anywhere but its own data folder. An import fence keeps Node's network modules and globals out of its reach; that fence blocks every way out found so far, and is tested against each one on every change. A small separate file runs the fixed git, jj and memory commands it needs. The HUD reads Claude Code's stdin, the session transcript, Claude config files, and git or jj metadata for the current directory, and calls no undocumented APIs.

--extra-cmd runs a shell command on every refresh and puts its output on the first line. It is ignored unless CLAUDE_HUD_ALLOW_EXTRA_CMD=1 is set in the HUD's environment. Treat it as arbitrary code execution and never use a command from an untrusted source.

Requirements

Development

git clone https://github.com/jarrodwatts/claude-hud
cd claude-hud
npm ci && npm test

See CONTRIBUTING.md.

License

MIT. See LICENSE.

Star History

Star History Chart

claude-hud (jarrodwatts/claude-hud)

Ищем в базе…

Что это такое?Claude HUD — это плагин для Claude Code, который добавляет живую строку статуса с заполненностью контекста, активными инструментами, работающими агентами и прогрессом списка задач. Она всегда видна под полем ввода.
Это отдельное приложение или оно работает внутри Claude Code?Это плагин, который работает полностью внутри сессии Claude Code и использует нативный API строки статуса Claude Code. Отдельное окно или терминальный мультиплексор не нужны.
Как установить и настроить?Внутри экземпляра Claude Code добавьте маркетплейс, установите плагин, а затем выполните /claude-hud:setup для настройки строки статуса. Она активируется после вашего следующего сообщения, перезапуск не нужен.
Нужно ли что-то кроме Claude Code, чтобы это работало?В Windows нужна среда выполнения JavaScript; для настройки поддерживается Node.js LTS. В Linux дополнительных зависимостей нет, но в старых версиях Claude Code может возникнуть проблема с файловой системой /tmp.
Есть ли подводные камни при установке, о которых стоит знать?Пользователи Linux на старых версиях Claude Code могут получить ошибку EXDEV, потому что /tmp — это отдельная файловая система tmpfs. Это исправлено в основном репозитории; в качестве обходного пути можно задать TMPDIR перед установкой. Пользователям Windows может понадобиться сначала установить среду выполнения Node.js, если установка не может найти JavaScript.
Какие пресеты доступны для макета HUD?Есть три встроенных пресета: Full (показывает всё — инструменты, агентов, задачи, git, использование и длительность), Essential (строки активности и статус git) и Minimal (только название модели и полоса контекста).
Может ли HUD показывать подписи на китайском языке?Да, подписи на упрощённом и традиционном китайском включаются по выбору через /claude-hud:configure или настройкой параметра language (zh/zh-Hans для упрощённого, zh-TW/zh-Hant для традиционного). По умолчанию используется английский.
Показывает ли он активность субагентов и инструментов в реальном времени?Да, он разбирает транскрипт сессии и показывает, какие инструменты использует Claude (чтение/редактирование/поиск) и какие субагенты работают. Отрисовка обновляется после каждого взаимодействия с задержкой 300 мс.
Можно ли отслеживать стоимость сессии и лимиты использования?Да, необязательные флаги отображения могут показывать лимиты использования для подписчиков Claude, стоимость сессии (используя нативные данные о стоимости Claude Code с запасной локальной оценкой), а также совокупные дневные расходы по всем сессиям.
Какие есть похожие проекты?claude-code, claude-ops, nodemon, evenfire, ordewell, craft-agents-oss, ECC, claudecodeui
Автор
jarrodwatts
Размер
3.8 MB
Звёзды
29.2K
Возраст
10 мес
Коммиты · 90 дней