@jiawang1209/codex-hud 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -267
- package/dist/render.d.ts +1 -0
- package/dist/render.js +13 -2
- package/dist/render.js.map +1 -1
- package/dist/sources/session.js +2 -0
- package/dist/sources/session.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/docs/native-codex-cli-patch.md +1 -1
- package/docs/upstream/codex-command-backed-statusline.md +1 -1
- package/package.json +1 -1
- package/plugins/codex-hud/skills/codex-hud/SKILL.md +1 -1
- package/skills/codex-hud/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
# Codex HUD
|
|
2
2
|
|
|
3
|
-
Codex HUD is a
|
|
3
|
+
Codex HUD is a terminal heads-up display for Codex CLI sessions. It surfaces the signals you usually need while working with an agent: model, reasoning effort, project, git branch, context usage, five-hour usage, weekly usage, active tools, and task progress.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
```text
|
|
6
|
+
[gpt-5.5 medium] │ codex-hud git:(main*)
|
|
7
|
+
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (resets in 3h 17m) │ Weekly █████████░ 86% (resets in 6d 10h)
|
|
8
|
+
Todos 2/5 │ Exec active, Plan x2
|
|
9
|
+
```
|
|
9
10
|
|
|
10
|
-
Codex HUD
|
|
11
|
+
Codex HUD is intentionally local-first. It reads Codex config, Codex session metadata, and git metadata from your machine. It does not upload data or need to display private message bodies.
|
|
11
12
|
|
|
12
13
|
## Install
|
|
13
14
|
|
|
14
|
-
Follow
|
|
15
|
+
Follow the steps in order. If Node.js/npm or Codex CLI is already installed, skip that step.
|
|
15
16
|
|
|
16
|
-
### 1. Set Up
|
|
17
|
+
### 1. Set Up npm
|
|
17
18
|
|
|
18
19
|
Codex HUD is distributed through npm and requires Node.js 18 or newer.
|
|
19
20
|
|
|
@@ -36,9 +37,7 @@ Windows, PowerShell:
|
|
|
36
37
|
winget install OpenJS.NodeJS.LTS
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Check that npm is available:
|
|
40
|
+
Verify:
|
|
42
41
|
|
|
43
42
|
```bash
|
|
44
43
|
npm --version
|
|
@@ -46,44 +45,33 @@ npm --version
|
|
|
46
45
|
|
|
47
46
|
### 2. Install Codex CLI
|
|
48
47
|
|
|
49
|
-
Codex HUD is built for Codex CLI. If
|
|
50
|
-
|
|
51
|
-
The current official Codex CLI install paths are documented in the
|
|
52
|
-
[OpenAI Codex README](https://github.com/openai/codex#installing-and-running-codex-cli).
|
|
53
|
-
|
|
54
|
-
macOS or Linux:
|
|
48
|
+
Codex HUD is built for Codex CLI. If this works, skip this step:
|
|
55
49
|
|
|
56
50
|
```bash
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Windows, PowerShell:
|
|
61
|
-
|
|
62
|
-
```powershell
|
|
63
|
-
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
|
|
51
|
+
codex --version
|
|
64
52
|
```
|
|
65
53
|
|
|
66
|
-
|
|
54
|
+
Install Codex CLI with one of the official options:
|
|
67
55
|
|
|
68
56
|
```bash
|
|
69
57
|
npm install -g @openai/codex
|
|
70
58
|
```
|
|
71
59
|
|
|
72
|
-
macOS Homebrew
|
|
60
|
+
macOS users can also use Homebrew:
|
|
73
61
|
|
|
74
62
|
```bash
|
|
75
63
|
brew install --cask codex
|
|
76
64
|
```
|
|
77
65
|
|
|
78
|
-
|
|
66
|
+
See the official OpenAI Codex README for current Codex CLI install options and release binaries:
|
|
79
67
|
|
|
80
|
-
```
|
|
81
|
-
codex
|
|
68
|
+
```text
|
|
69
|
+
https://github.com/openai/codex#installing-and-running-codex-cli
|
|
82
70
|
```
|
|
83
71
|
|
|
84
72
|
### 3. Install Codex HUD
|
|
85
73
|
|
|
86
|
-
Install the
|
|
74
|
+
Install the package:
|
|
87
75
|
|
|
88
76
|
```bash
|
|
89
77
|
npm install -g @jiawang1209/codex-hud
|
|
@@ -96,123 +84,50 @@ codex-hud setup
|
|
|
96
84
|
codex
|
|
97
85
|
```
|
|
98
86
|
|
|
99
|
-
|
|
87
|
+
This is the safest default path. It uses Codex CLI's supported native status-line items.
|
|
100
88
|
|
|
101
|
-
|
|
89
|
+
## Native Auto-Launch
|
|
90
|
+
|
|
91
|
+
For the fuller HUD experience, `codex-hud install` builds a patched Codex CLI adapter and installs a reversible `codex` shim. After that, the normal `codex` command launches Codex with `codex-hud status` wired into the footer.
|
|
92
|
+
|
|
93
|
+
macOS prerequisites:
|
|
102
94
|
|
|
103
95
|
```bash
|
|
104
96
|
brew install git rust tmux
|
|
105
97
|
```
|
|
106
98
|
|
|
107
|
-
Linux, Debian/Ubuntu:
|
|
99
|
+
Linux, Debian/Ubuntu prerequisites:
|
|
108
100
|
|
|
109
101
|
```bash
|
|
110
102
|
sudo apt install -y git cargo tmux
|
|
111
103
|
```
|
|
112
104
|
|
|
113
|
-
|
|
105
|
+
Install and launch:
|
|
114
106
|
|
|
115
107
|
```bash
|
|
116
108
|
codex-hud install
|
|
117
109
|
codex
|
|
118
110
|
```
|
|
119
111
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
The npm package and built-in Codex status-line setup work on Windows through Node.js. The current `codex-hud install` native auto-launch flow is aimed at macOS/Linux because it builds a patched Codex binary and installs a Unix-style `~/.local/bin/codex` shim.
|
|
123
|
-
|
|
124
|
-
## Install From Source
|
|
125
|
-
|
|
126
|
-
Use this when you want to test the latest GitHub version:
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
git clone https://github.com/Jiawang1209/codex-hud.git
|
|
130
|
-
cd codex-hud
|
|
131
|
-
npm install
|
|
132
|
-
npm run build
|
|
133
|
-
npm link
|
|
134
|
-
codex-hud install
|
|
135
|
-
codex
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
In this flow, `npm install` installs the project's development dependencies and `npm run build` compiles the TypeScript source into `dist/`. `npm link` makes the local `codex-hud` command available globally on your machine.
|
|
112
|
+
If `codex` still resolves to the official binary after install, put `~/.local/bin` before the existing Codex binary in `PATH`.
|
|
139
113
|
|
|
140
|
-
|
|
114
|
+
Windows supports the npm package and `codex-hud setup` through Node.js. The current native auto-launch flow is aimed at macOS/Linux because it builds a patched Codex binary and writes a Unix-style `~/.local/bin/codex` shim.
|
|
141
115
|
|
|
142
|
-
|
|
143
|
-
node dist/index.js status
|
|
144
|
-
node dist/index.js run
|
|
145
|
-
node dist/index.js setup
|
|
146
|
-
node dist/index.js doctor
|
|
147
|
-
node dist/index.js config
|
|
148
|
-
node dist/index.js config init
|
|
149
|
-
node dist/index.js watch
|
|
150
|
-
```
|
|
116
|
+
## HUD Pane Mode
|
|
151
117
|
|
|
152
|
-
|
|
118
|
+
Use a live HUD pane alongside Codex:
|
|
153
119
|
|
|
154
120
|
```bash
|
|
155
|
-
codex-hud status
|
|
156
121
|
codex-hud run
|
|
157
|
-
codex-hud install
|
|
158
|
-
codex-hud native
|
|
159
|
-
codex-hud install-shim
|
|
160
|
-
codex-hud uninstall-shim
|
|
161
|
-
codex-hud setup
|
|
162
|
-
codex-hud doctor
|
|
163
|
-
codex-hud config
|
|
164
|
-
codex-hud config init
|
|
165
|
-
codex-hud watch
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
Example output:
|
|
169
|
-
|
|
170
|
-
```text
|
|
171
|
-
[gpt-5.5 medium] │ codex-hud git:(main*)
|
|
172
|
-
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (3h 24m / 5h) │ Weekly █████████░ 86% (6d 29m / 7d)
|
|
173
|
-
Todos 2/5 │ Exec active, Plan x2
|
|
174
122
|
```
|
|
175
123
|
|
|
176
|
-
## Commands
|
|
177
|
-
|
|
178
|
-
- `status`: print one HUD snapshot.
|
|
179
|
-
- `watch`: refresh the HUD until interrupted.
|
|
180
|
-
- `run`: launch Codex inside a tmux session with a live Codex HUD pane.
|
|
181
|
-
- `pane`: internal command used by `run` to refresh the HUD in a small pane.
|
|
182
|
-
- `install`: prepare the full native bundle: patched Codex checkout, build, and reversible `codex` shim.
|
|
183
|
-
- `native`: launch a patched Codex CLI binary with `codex-hud status` wired into the native footer.
|
|
184
|
-
- `install-shim`: install a reversible `codex` wrapper that launches `codex-hud native`.
|
|
185
|
-
- `uninstall-shim`: remove the `codex` wrapper installed by `install-shim`.
|
|
186
|
-
- `setup`: configure Codex CLI's native in-window `[tui].status_line` with HUD-like items.
|
|
187
|
-
- `install-statusline`: alias for `setup`; accepts `--config <file>` for testing or custom Codex config paths.
|
|
188
|
-
- `doctor`: check Codex CLI, `codex-hud`, shim, patched Codex, native status command, Codex home, and Node.js readiness.
|
|
189
|
-
- `config`: print the effective Codex HUD configuration.
|
|
190
|
-
- `config init`: create `~/.codex-hud/config.json` with default settings.
|
|
191
|
-
|
|
192
|
-
## Run Codex With A HUD Pane
|
|
193
|
-
|
|
194
|
-
For the closest current approximation of a Claude HUD-like persistent display, use:
|
|
195
|
-
|
|
196
|
-
```bash
|
|
197
|
-
codex-hud run
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
The default launcher uses `tmux`. It creates a tmux session with Codex in the main pane and a small live HUD pane underneath.
|
|
201
|
-
|
|
202
124
|
Pass Codex arguments after `--`:
|
|
203
125
|
|
|
204
126
|
```bash
|
|
205
127
|
codex-hud run -- --model gpt-5.5 --sandbox danger-full-access
|
|
206
128
|
```
|
|
207
129
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
```bash
|
|
211
|
-
codex-hud run --session my-work --height 5
|
|
212
|
-
codex-hud run --dry-run -- --model gpt-5.5
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
Terminal launcher options:
|
|
130
|
+
Terminal launchers:
|
|
216
131
|
|
|
217
132
|
```bash
|
|
218
133
|
codex-hud run --terminal tmux
|
|
@@ -220,205 +135,106 @@ codex-hud run --terminal iterm
|
|
|
220
135
|
codex-hud run --terminal terminal
|
|
221
136
|
```
|
|
222
137
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
- `tmux`: portable default, works inside Terminal.app, iTerm2, and most terminal emulators.
|
|
226
|
-
- `iterm`: macOS iTerm2 AppleScript launcher with a native horizontal split pane.
|
|
227
|
-
- `terminal`: macOS Terminal.app AppleScript launcher that opens separate Codex and HUD terminal sessions.
|
|
228
|
-
|
|
229
|
-
`codex-hud run` is intentionally a wrapper, not a Codex fork. It keeps Codex HUD usable today while the project tracks native command-backed status-line support upstream.
|
|
230
|
-
|
|
231
|
-
## Auto-Launch With `codex`
|
|
232
|
-
|
|
233
|
-
Recommended product install:
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
npm install -g @jiawang1209/codex-hud
|
|
237
|
-
codex-hud install
|
|
238
|
-
codex
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
`codex-hud install` clones a clean Codex CLI source checkout, applies the bundled native status-line patch, builds the patched Codex binary, and installs the reversible shim below.
|
|
242
|
-
|
|
243
|
-
For the Claude HUD-like experience where users keep typing `codex` and the HUD appears automatically, Codex HUD provides a reversible command shim:
|
|
244
|
-
|
|
245
|
-
```bash
|
|
246
|
-
codex-hud install-shim --codex /path/to/patched/codex
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
The shim writes a `codex` wrapper to `~/.local/bin/codex`. If `~/.local/bin` appears before the official Codex binary in `PATH`, then:
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
codex
|
|
253
|
-
```
|
|
138
|
+
`tmux` is the portable default. `iterm` and `terminal` are macOS launchers.
|
|
254
139
|
|
|
255
|
-
|
|
140
|
+
## Commands
|
|
256
141
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
142
|
+
| Command | Purpose |
|
|
143
|
+
| --- | --- |
|
|
144
|
+
| `codex-hud status` | Print one HUD snapshot. |
|
|
145
|
+
| `codex-hud watch` | Refresh the HUD until interrupted. |
|
|
146
|
+
| `codex-hud run` | Launch Codex with a persistent HUD pane. |
|
|
147
|
+
| `codex-hud setup` | Configure Codex CLI's built-in status line. |
|
|
148
|
+
| `codex-hud install` | Build the native adapter and install the reversible `codex` shim. |
|
|
149
|
+
| `codex-hud native` | Launch a patched Codex binary with command-backed HUD output. |
|
|
150
|
+
| `codex-hud doctor` | Check Codex, Node.js, shim, native adapter, and config readiness. |
|
|
151
|
+
| `codex-hud config` | Print the effective Codex HUD config. |
|
|
152
|
+
| `codex-hud config init` | Create `~/.codex-hud/config.json`. |
|
|
260
153
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
```bash
|
|
264
|
-
-c 'tui.status_line=["command: codex-hud status"]'
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
Remove it and return to the official `codex` command with:
|
|
154
|
+
Remove the auto-launch shim:
|
|
268
155
|
|
|
269
156
|
```bash
|
|
270
157
|
codex-hud uninstall-shim
|
|
271
158
|
```
|
|
272
159
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
## Codex In-Window Status Line
|
|
160
|
+
## Configuration
|
|
276
161
|
|
|
277
|
-
|
|
162
|
+
Create a config file:
|
|
278
163
|
|
|
279
164
|
```bash
|
|
280
|
-
codex-hud
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
This writes the closest currently supported Codex CLI native status line to `~/.codex/config.toml`:
|
|
284
|
-
|
|
285
|
-
```toml
|
|
286
|
-
[tui]
|
|
287
|
-
status_line = [
|
|
288
|
-
"model-with-reasoning",
|
|
289
|
-
"task-progress",
|
|
290
|
-
"current-dir",
|
|
291
|
-
"git-branch",
|
|
292
|
-
"context-used",
|
|
293
|
-
"five-hour-limit",
|
|
294
|
-
"weekly-limit",
|
|
295
|
-
"fast-mode",
|
|
296
|
-
]
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
Restart `codex` after running setup. Inside Codex you can also use `/statusline` to inspect or reorder the built-in items.
|
|
300
|
-
|
|
301
|
-
Claude HUD uses Claude Code's command-backed `statusLine` API, where the app invokes a plugin script directly in the prompt footer. Codex CLI 0.131.0 does not currently expose an equivalent command-backed status-line provider; its supported native integration is the fixed `tui.status_line` item list above. Codex HUD keeps the richer CLI renderer in place so it can become the status-line command as soon as Codex exposes that API.
|
|
302
|
-
|
|
303
|
-
The upstream feature request draft lives at:
|
|
304
|
-
|
|
305
|
-
```text
|
|
306
|
-
docs/upstream/codex-command-backed-statusline.md
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
There is also a local native Codex CLI proof-of-concept patch that adds
|
|
310
|
-
`tui.status_line = ["command: codex-hud status"]` support and preserves multi-line HUD output in
|
|
311
|
-
the native bottom footer. See:
|
|
312
|
-
|
|
313
|
-
```text
|
|
314
|
-
docs/native-codex-cli-patch.md
|
|
165
|
+
codex-hud config init
|
|
315
166
|
```
|
|
316
167
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
Codex HUD looks for config at:
|
|
168
|
+
Default path:
|
|
320
169
|
|
|
321
170
|
```text
|
|
322
171
|
~/.codex-hud/config.json
|
|
323
172
|
```
|
|
324
173
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
The configuration is intentionally close to Claude HUD-style customization. Example:
|
|
174
|
+
Minimal example:
|
|
328
175
|
|
|
329
176
|
```json
|
|
330
177
|
{
|
|
331
|
-
"
|
|
332
|
-
"lineLayout": "expanded",
|
|
178
|
+
"layout": "expanded",
|
|
333
179
|
"pathLevels": 2,
|
|
334
|
-
"elementOrder": ["model", "project", "context", "usage", "weekly", "
|
|
335
|
-
"gitStatus": {
|
|
336
|
-
"enabled": true,
|
|
337
|
-
"showDirty": true,
|
|
338
|
-
"showAheadBehind": true,
|
|
339
|
-
"showFileStats": false
|
|
340
|
-
},
|
|
180
|
+
"elementOrder": ["model", "project", "context", "usage", "weekly", "todos", "tools"],
|
|
341
181
|
"display": {
|
|
342
|
-
"showModel": true,
|
|
343
|
-
"showProject": true,
|
|
344
|
-
"showGit": true,
|
|
345
182
|
"showContext": true,
|
|
346
183
|
"showUsage": true,
|
|
347
|
-
"showWeekly": true
|
|
348
|
-
"showTools": true,
|
|
349
|
-
"showAgents": true,
|
|
350
|
-
"showTodos": true,
|
|
351
|
-
"showConfigCounts": true,
|
|
352
|
-
"showDuration": true,
|
|
353
|
-
"showMemoryUsage": true
|
|
184
|
+
"showWeekly": true
|
|
354
185
|
},
|
|
355
186
|
"colors": {
|
|
356
187
|
"context": "yellow",
|
|
357
188
|
"usage": "magenta",
|
|
358
|
-
"weekly": "magenta"
|
|
359
|
-
"warning": "yellow",
|
|
360
|
-
"usageWarning": "magenta",
|
|
361
|
-
"critical": "red",
|
|
362
|
-
"model": "magenta",
|
|
363
|
-
"project": "cyan",
|
|
364
|
-
"git": "magenta",
|
|
365
|
-
"gitBranch": "cyan",
|
|
366
|
-
"label": "dim",
|
|
367
|
-
"custom": "#FF6600"
|
|
189
|
+
"weekly": "magenta"
|
|
368
190
|
}
|
|
369
191
|
}
|
|
370
192
|
```
|
|
371
193
|
|
|
372
|
-
`
|
|
194
|
+
`layout` can be `expanded` or `compact`. `elementOrder` controls HUD section order. Colors support common ANSI names such as `cyan`, `magenta`, `yellow`, `red`, `green`, `gray`, `dim`, and truecolor hex values such as `#FF6600`.
|
|
373
195
|
|
|
374
|
-
|
|
196
|
+
## Install From Source
|
|
197
|
+
|
|
198
|
+
Use this when testing the latest GitHub version:
|
|
375
199
|
|
|
376
200
|
```bash
|
|
377
|
-
codex-hud
|
|
201
|
+
git clone https://github.com/Jiawang1209/codex-hud.git
|
|
202
|
+
cd codex-hud
|
|
203
|
+
npm install
|
|
204
|
+
npm run build
|
|
205
|
+
npm link
|
|
206
|
+
codex-hud setup
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
For native auto-launch from source:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
codex-hud install
|
|
213
|
+
codex
|
|
378
214
|
```
|
|
379
215
|
|
|
380
216
|
## Data Sources
|
|
381
217
|
|
|
218
|
+
Codex HUD reads:
|
|
219
|
+
|
|
382
220
|
- `~/.codex/config.toml` for model and reasoning effort.
|
|
383
|
-
- `~/.codex/sessions/**/*.jsonl` for token counters, rate limits, tool activity, and plan progress.
|
|
221
|
+
- `~/.codex/sessions/**/*.jsonl` for token counters, rate limits, tool activity, and plan progress.
|
|
384
222
|
- `git` for branch and dirty state.
|
|
385
223
|
- `codex --version` for diagnostics.
|
|
386
224
|
|
|
387
|
-
|
|
388
|
-
Context uses the latest token-count frame's `last_token_usage` when available, falling back to cumulative session usage only when needed.
|
|
389
|
-
Progress values render as bars, with terminal colors enabled automatically for TTY output and disabled when `NO_COLOR` is set.
|
|
390
|
-
|
|
391
|
-
## Plugin Wrapper
|
|
392
|
-
|
|
393
|
-
The repository includes `.codex-plugin/plugin.json` and `skills/codex-hud/SKILL.md`. The plugin wrapper documents how to install Codex HUD, configure the native Codex status line, and use the richer CLI renderer while Codex command-backed status-line support is not yet available.
|
|
225
|
+
Session parsing uses structured metadata such as event types, tool names, token counters, rate-limit counters, and plan status. It avoids displaying private transcript message bodies.
|
|
394
226
|
|
|
395
|
-
##
|
|
396
|
-
|
|
397
|
-
This repository includes a local marketplace snapshot at:
|
|
398
|
-
|
|
399
|
-
```text
|
|
400
|
-
.agents/plugins/marketplace.json
|
|
401
|
-
```
|
|
227
|
+
## Docs
|
|
402
228
|
|
|
403
|
-
|
|
229
|
+
- [Installation details](docs/installation.md)
|
|
230
|
+
- [Native Codex CLI patch](docs/native-codex-cli-patch.md)
|
|
231
|
+
- [Plugin marketplace wrapper](docs/plugin-marketplace.md)
|
|
232
|
+
- [Release checklist](docs/release.md)
|
|
233
|
+
- [Upstream command-backed status-line proposal](docs/upstream/codex-command-backed-statusline.md)
|
|
404
234
|
|
|
405
|
-
|
|
406
|
-
codex plugin marketplace add /path/to/codex-hud
|
|
407
|
-
codex plugin list --marketplace codex-hud-marketplace
|
|
408
|
-
codex plugin add codex-hud@codex-hud-marketplace
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
The marketplace entry uses the standard Codex plugin layout path `./plugins/codex-hud`.
|
|
412
|
-
|
|
413
|
-
To install the plugin wrapper from GitHub:
|
|
414
|
-
|
|
415
|
-
```bash
|
|
416
|
-
codex plugin marketplace add Jiawang1209/codex-hud --ref main
|
|
417
|
-
codex plugin list --marketplace codex-hud-marketplace
|
|
418
|
-
codex plugin add codex-hud@codex-hud-marketplace
|
|
419
|
-
```
|
|
235
|
+
## Plugin Wrapper
|
|
420
236
|
|
|
421
|
-
|
|
237
|
+
This repository includes a Codex plugin wrapper in `.codex-plugin/` and `plugins/codex-hud/`. The plugin gives Codex-side guidance and marketplace metadata; the terminal HUD runtime still comes from the `codex-hud` CLI installed through npm or from source.
|
|
422
238
|
|
|
423
239
|
## Privacy
|
|
424
240
|
|
package/dist/render.d.ts
CHANGED
package/dist/render.js
CHANGED
|
@@ -76,12 +76,23 @@ function formatProgress(progress, kind, config, options) {
|
|
|
76
76
|
const bar = `${config.colors.barFilled.repeat(filled)}${config.colors.barEmpty.repeat(empty)}`;
|
|
77
77
|
const label = kind === "usage" && progress.windowMinutes ? "Usage" : progress.label;
|
|
78
78
|
const limitText = kind === "usage" ? progress.label : formatDurationMinutes(progress.windowMinutes ?? 0);
|
|
79
|
-
const windowText =
|
|
80
|
-
?
|
|
79
|
+
const windowText = kind === "usage" || kind === "weekly"
|
|
80
|
+
? formatLimitWindowText(progress, percent, limitText, options)
|
|
81
81
|
: "";
|
|
82
82
|
const labelColor = config.colors[kind];
|
|
83
83
|
return `${styleText(label, labelColor, options)} ${colorizeBar(bar, percent, config, options)} ${colorizeBar(`${percent}%`, percent, config, options)}${windowText}`;
|
|
84
84
|
}
|
|
85
|
+
function formatLimitWindowText(progress, percent, limitText, options) {
|
|
86
|
+
if (progress.resetsAt) {
|
|
87
|
+
const now = options.now ?? Date.now();
|
|
88
|
+
const remainingMinutes = Math.max(0, Math.round(((progress.resetsAt * 1000) - now) / 60000));
|
|
89
|
+
return ` (resets in ${formatDurationMinutes(remainingMinutes)})`;
|
|
90
|
+
}
|
|
91
|
+
if (progress.windowMinutes) {
|
|
92
|
+
return ` (${formatConsumedWindow(percent, progress.windowMinutes)} / ${limitText})`;
|
|
93
|
+
}
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
85
96
|
function formatConsumedWindow(percent, windowMinutes) {
|
|
86
97
|
return formatDurationMinutes(Math.round((percent / 100) * windowMinutes));
|
|
87
98
|
}
|
package/dist/render.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,GAAG,EAAE,EACZ,QAAQ,GAKT;IACC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,KAAK,UAAU;QACzC,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC3C,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,OAAO,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,aAAa,CAAC,MAAiB,EAAE,QAAqB,EAAE,OAAsB;IACrF,OAAO,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,cAAc,CAAC,MAAiB,EAAE,QAAqB,EAAE,OAAsB;IACtF,MAAM,SAAS,GAAG,KAAK,CAAC;IACxB,MAAM,QAAQ,GAAG,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC/F,MAA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
|
|
69
69
|
label: formatRateLimitWindow(primary?.window_minutes),
|
|
70
70
|
percent: primary.used_percent,
|
|
71
71
|
windowMinutes: validPositiveNumber(primary?.window_minutes) ? primary.window_minutes : undefined,
|
|
72
|
+
resetsAt: validPositiveNumber(primary?.resets_at) ? primary.resets_at : undefined,
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
const secondary = payload.rate_limits?.secondary;
|
|
@@ -80,6 +81,7 @@ export function parseSessionJsonl(text, options = {}) {
|
|
|
80
81
|
label: "Weekly",
|
|
81
82
|
percent: secondary.used_percent,
|
|
82
83
|
windowMinutes,
|
|
84
|
+
resetsAt: validPositiveNumber(secondary?.resets_at) ? secondary.resets_at : undefined,
|
|
83
85
|
};
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/sources/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,IAAI,MAAM,WAAW,CAAC;AAe7B,MAAM,8BAA8B,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/sources/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,IAAI,MAAM,WAAW,CAAC;AAe7B,MAAM,8BAA8B,GAAG,EAAE,CAAC;AAuC1C,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,SAAiB,EAAE,GAAY;IAC5E,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAC7D,IAAI,CAAC,MAAM;QAAE,OAAO,YAAY,EAAE,CAA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,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AACzF,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ The patch adds support for a `command:` item in `tui.status_line`. When present,
|
|
|
12
12
|
|
|
13
13
|
```text
|
|
14
14
|
[gpt-5.5 medium] │ codex-hud git:(feat/codex-hud-mvp*)
|
|
15
|
-
Context ███░░░░░░░ 31% │ Usage ░░░░░░░░░░ 0% (
|
|
15
|
+
Context ███░░░░░░░ 31% │ Usage ░░░░░░░░░░ 0% (resets in 4h 58m)
|
|
16
16
|
Todos 0/4 │ Stdin x5, Exec active
|
|
17
17
|
```
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ Default `codex-hud status` output uses the expanded HUD style:
|
|
|
42
42
|
|
|
43
43
|
```text
|
|
44
44
|
[gpt-5.5 medium] │ codex-hud git:(main*)
|
|
45
|
-
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (
|
|
45
|
+
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (resets in 3h 17m) │ Weekly █████████░ 86% (resets in 6d 10h)
|
|
46
46
|
Todos 2/5 │ Exec active, Plan x2
|
|
47
47
|
```
|
|
48
48
|
|
|
@@ -42,7 +42,7 @@ Default `codex-hud status` output uses the expanded HUD style:
|
|
|
42
42
|
|
|
43
43
|
```text
|
|
44
44
|
[gpt-5.5 medium] │ codex-hud git:(main*)
|
|
45
|
-
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (
|
|
45
|
+
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (resets in 3h 17m) │ Weekly █████████░ 86% (resets in 6d 10h)
|
|
46
46
|
Todos 2/5 │ Exec active, Plan x2
|
|
47
47
|
```
|
|
48
48
|
|