Copilot HUD
A GitHub Copilot CLI plugin that displays a real-time status line inside your Copilot session — project path, git branch, context usage, tool activity, and background agents.
English | 中文
/Users/sky/Github/my-project [↙ main] Claude Opus 4.6 (3x) (high)
──────────────────────────────────────────────────────────────────────────────────────
[Opus 4.6 3x·high] │ my-project │ git:(main* ↑2) │ Creating README │ ⏱ 5m │ +42/-3
Ctx ████░░░░░░ 70.0k/200.0k 35% │ Quota ██████░░░░ 4785/7500 64% · 19d │ Credits 1.42 │ 42 tok/s
✓ ✎ Edit: auth.ts | ✓ ⌨ Bash: git status ×3 | ◐ ◉ Read: index.ts
◐ [explore] Analyze test coverage (45s…)
✓ [explore] Search auth module (18s)
✗ [general-purpose] Parse config schema (1m 12s)
Install
Prerequisites
That's the whole list. jq used to be required as well, for the hook scripts
that track tool and agent activity; those hooks are now plain Node, so there is
nothing to install beyond Node itself.
Quick Start
-
Install the plugin:
copilot plugin marketplace add griches/copilot-hud
copilot plugin install copilot-hud@copilot-hud
-
Start Copilot with the experimental flag and run the setup skill:
copilot --experimental
Then inside the session:
/copilot-hud:setup
The setup points Copilot's status line at the HUD, installs the quota-bar extension, and enables the experimental flag. Restart Copilot after setup and the HUD will appear at the bottom of the interface.
Setup is safe to re-run and you rarely need to: it installs a small launcher that finds the installed plugin each time the status line runs, so updating, reinstalling, or moving the plugin to another marketplace keeps working. It backs up your Copilot settings before changing them, and if you already have a different status line it asks before replacing it.
- (Optional) Customize what the HUD shows:
/copilot-hud:configure
Choose which elements to display — session name, duration, token breakdown, output speed, tool activity, agent tracking, and git style.
Note: The statusLine feature in Copilot CLI requires the --experimental flag as of v1.0.12. The setup skill adds "experimental": true to your Copilot settings so you don't need the flag again.
What setup changes, and doing it by hand
Setup runs node scripts/setup.mjs install from the installed plugin. Under your Copilot home (~/.copilot, or $COPILOT_HOME) it writes:
| File | What it is |
|---|
plugins/copilot-hud/statusline.mjs | The launcher. Finds the installed copilot-hud and runs it |
copilot-hud.sh (copilot-hud.cmd on Windows) | The wrapper Copilot executes. Pins the Node that ran setup, falling back to node on PATH |
extensions/copilot-hud/extension.mjs | The quota-bar session extension (skip with --no-extension) |
settings.json | Gains statusLine and "experimental": true; every other key is kept. Backed up to settings.json.bak.<timestamp> first |
On Copilot CLI versions from before user settings moved to settings.json, the same keys go in config.json instead; setup detects which one your CLI reads.
node scripts/setup.mjs inspect prints what would happen without changing anything.
Refreshing While Idle
Copilot re-runs the status line when something happens in the session, so the prompt timer and running-agent durations stand still while you wait. On Copilot CLI v1.0.76+ you can make them tick by adding refreshInterval (seconds) to the statusLine entry in ~/.copilot/settings.json:
"statusLine": { "type": "command", "command": "~/.copilot/copilot-hud.sh", "refreshInterval": 5 }
Setup keeps a refreshInterval or padding you add here.
Turning It Off for a Session
COPILOT_HUD_DISABLE=1 copilot
Any value other than 0, false, off, or no blanks the HUD for that session without touching your settings.
Install from Source
Register your local checkout as a marketplace, then install from it:
git clone https://github.com/griches/copilot-hud.git
cd copilot-hud
npm install
npm run build
copilot plugin marketplace add ./
copilot plugin install copilot-hud@copilot-hud
The marketplace only needs registering once. After each rebuild, re-run copilot plugin install copilot-hud@copilot-hud to pick up your changes — copilot plugin update won't, since it compares versions and your local version hasn't changed.