@jiawang1209/codex-hud 0.1.1 → 0.1.4

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 CHANGED
@@ -1,324 +1,240 @@
1
1
  # Codex HUD
2
2
 
3
- Codex HUD is a real-time heads-up display for Codex CLI and Agent CLI workflows, showing context, tools, task progress, git state, and session signals directly in the terminal.
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
- The first version ships with two layers:
6
-
7
- - A Codex native status-line setup command that configures the in-window Codex CLI footer.
8
- - A standalone `codex-hud status/watch` CLI core with richer session telemetry for development and future command-backed status-line support.
5
+ ```text
6
+ [gpt-5.5 medium] │ codex-hud git:(main*)
7
+ Context ████░░░░░░ 42% Usage ███████░░░ 68% (3h 24m / 5h) Weekly █████████░ 86% (6d 29m / 7d)
8
+ Todos 2/5 Exec active, Plan x2
9
+ ```
9
10
 
10
- Codex HUD reads local Codex configuration, git metadata, and safe session-log metadata. It uses session event types, tool names, token counters, rate-limit counters, and plan status only; it does not need to display private message bodies.
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
- Install the published package from npm:
15
-
16
- ```bash
17
- npm install -g @jiawang1209/codex-hud
18
- codex-hud install
19
- codex
20
- ```
15
+ Follow the steps in order. If Node.js/npm or Codex CLI is already installed, skip that step.
21
16
 
22
- `codex-hud install` prepares the native Codex HUD bundle and installs a reversible `codex` shim, so you can keep launching Codex with the normal `codex` command.
17
+ ### 1. Set Up npm
23
18
 
24
- ## Install From Source
19
+ Codex HUD is distributed through npm and requires Node.js 18 or newer.
25
20
 
26
- Use this when you want to test the latest GitHub version:
21
+ macOS:
27
22
 
28
23
  ```bash
29
- git clone https://github.com/Jiawang1209/codex-hud.git
30
- cd codex-hud
31
- npm install
32
- npm run build
33
- npm link
34
- codex-hud install
35
- codex
24
+ brew install node
36
25
  ```
37
26
 
38
- 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.
39
-
40
- ## Development Usage
27
+ Linux, Debian/Ubuntu:
41
28
 
42
29
  ```bash
43
- node dist/index.js status
44
- node dist/index.js run
45
- node dist/index.js setup
46
- node dist/index.js doctor
47
- node dist/index.js config
48
- node dist/index.js config init
49
- node dist/index.js watch
30
+ sudo apt update
31
+ sudo apt install -y nodejs npm
50
32
  ```
51
33
 
52
- When installed as a package, the binary is:
34
+ Windows, PowerShell:
53
35
 
54
- ```bash
55
- codex-hud status
56
- codex-hud run
57
- codex-hud install
58
- codex-hud native
59
- codex-hud install-shim
60
- codex-hud uninstall-shim
61
- codex-hud setup
62
- codex-hud doctor
63
- codex-hud config
64
- codex-hud config init
65
- codex-hud watch
36
+ ```powershell
37
+ winget install OpenJS.NodeJS.LTS
66
38
  ```
67
39
 
68
- Example output:
40
+ Verify:
69
41
 
70
- ```text
71
- [gpt-5.5 medium] │ codex-hud git:(main*)
72
- Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (3h 24m / 5h)
73
- Todos 2/5 │ Exec active, Plan x2
42
+ ```bash
43
+ npm --version
74
44
  ```
75
45
 
76
- ## Commands
77
-
78
- - `status`: print one HUD snapshot.
79
- - `watch`: refresh the HUD until interrupted.
80
- - `run`: launch Codex inside a tmux session with a live Codex HUD pane.
81
- - `pane`: internal command used by `run` to refresh the HUD in a small pane.
82
- - `install`: prepare the full native bundle: patched Codex checkout, build, and reversible `codex` shim.
83
- - `native`: launch a patched Codex CLI binary with `codex-hud status` wired into the native footer.
84
- - `install-shim`: install a reversible `codex` wrapper that launches `codex-hud native`.
85
- - `uninstall-shim`: remove the `codex` wrapper installed by `install-shim`.
86
- - `setup`: configure Codex CLI's native in-window `[tui].status_line` with HUD-like items.
87
- - `install-statusline`: alias for `setup`; accepts `--config <file>` for testing or custom Codex config paths.
88
- - `doctor`: check Codex CLI, `codex-hud`, shim, patched Codex, native status command, Codex home, and Node.js readiness.
89
- - `config`: print the effective Codex HUD configuration.
90
- - `config init`: create `~/.codex-hud/config.json` with default settings.
46
+ ### 2. Install Codex CLI
91
47
 
92
- ## Run Codex With A HUD Pane
93
-
94
- For the closest current approximation of a Claude HUD-like persistent display, use:
48
+ Codex HUD is built for Codex CLI. If this works, skip this step:
95
49
 
96
50
  ```bash
97
- codex-hud run
51
+ codex --version
98
52
  ```
99
53
 
100
- The default launcher uses `tmux`. It creates a tmux session with Codex in the main pane and a small live HUD pane underneath.
101
-
102
- Pass Codex arguments after `--`:
54
+ Install Codex CLI with one of the official options:
103
55
 
104
56
  ```bash
105
- codex-hud run -- --model gpt-5.5 --sandbox danger-full-access
57
+ npm install -g @openai/codex
106
58
  ```
107
59
 
108
- Useful wrapper options:
60
+ macOS users can also use Homebrew:
109
61
 
110
62
  ```bash
111
- codex-hud run --session my-work --height 5
112
- codex-hud run --dry-run -- --model gpt-5.5
63
+ brew install --cask codex
113
64
  ```
114
65
 
115
- Terminal launcher options:
66
+ See the official OpenAI Codex README for current Codex CLI install options and release binaries:
116
67
 
117
- ```bash
118
- codex-hud run --terminal tmux
119
- codex-hud run --terminal iterm
120
- codex-hud run --terminal terminal
68
+ ```text
69
+ https://github.com/openai/codex#installing-and-running-codex-cli
121
70
  ```
122
71
 
123
- Launcher behavior:
72
+ ### 3. Install Codex HUD
124
73
 
125
- - `tmux`: portable default, works inside Terminal.app, iTerm2, and most terminal emulators.
126
- - `iterm`: macOS iTerm2 AppleScript launcher with a native horizontal split pane.
127
- - `terminal`: macOS Terminal.app AppleScript launcher that opens separate Codex and HUD terminal sessions.
74
+ Install the package:
128
75
 
129
- `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.
130
-
131
- ## Auto-Launch With `codex`
76
+ ```bash
77
+ npm install -g @jiawang1209/codex-hud
78
+ ```
132
79
 
133
- Recommended product install:
80
+ Configure Codex CLI's built-in status line:
134
81
 
135
82
  ```bash
136
- npm install -g @jiawang1209/codex-hud
137
- codex-hud install
83
+ codex-hud setup
138
84
  codex
139
85
  ```
140
86
 
141
- `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.
87
+ This is the safest default path. It uses Codex CLI's supported native status-line items.
142
88
 
143
- For the Claude HUD-like experience where users keep typing `codex` and the HUD appears automatically, Codex HUD provides a reversible command shim:
89
+ ## Native Auto-Launch
144
90
 
145
- ```bash
146
- codex-hud install-shim --codex /path/to/patched/codex
147
- ```
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.
148
92
 
149
- The shim writes a `codex` wrapper to `~/.local/bin/codex`. If `~/.local/bin` appears before the official Codex binary in `PATH`, then:
93
+ macOS prerequisites:
150
94
 
151
95
  ```bash
152
- codex
96
+ brew install git rust tmux
153
97
  ```
154
98
 
155
- will transparently run:
99
+ Linux, Debian/Ubuntu prerequisites:
156
100
 
157
101
  ```bash
158
- codex-hud native --codex /path/to/patched/codex -- "$@"
102
+ sudo apt install -y git cargo tmux
159
103
  ```
160
104
 
161
- That native launcher starts the patched Codex binary with:
105
+ Install and launch:
162
106
 
163
107
  ```bash
164
- -c 'tui.status_line=["command: codex-hud status"]'
108
+ codex-hud install
109
+ codex
165
110
  ```
166
111
 
167
- Remove it and return to the official `codex` command with:
112
+ If `codex` still resolves to the official binary after install, put `~/.local/bin` before the existing Codex binary in `PATH`.
113
+
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.
115
+
116
+ ## HUD Pane Mode
117
+
118
+ Use a live HUD pane alongside Codex:
168
119
 
169
120
  ```bash
170
- codex-hud uninstall-shim
121
+ codex-hud run
171
122
  ```
172
123
 
173
- `install-shim` refuses to overwrite an existing non-Codex-HUD `codex` file in the target bin directory. Use `--bin-dir <dir>` for testing or custom PATH layouts.
124
+ Pass Codex arguments after `--`:
174
125
 
175
- ## Codex In-Window Status Line
126
+ ```bash
127
+ codex-hud run -- --model gpt-5.5 --sandbox danger-full-access
128
+ ```
176
129
 
177
- Run:
130
+ Terminal launchers:
178
131
 
179
132
  ```bash
180
- codex-hud setup
133
+ codex-hud run --terminal tmux
134
+ codex-hud run --terminal iterm
135
+ codex-hud run --terminal terminal
181
136
  ```
182
137
 
183
- This writes the closest currently supported Codex CLI native status line to `~/.codex/config.toml`:
184
-
185
- ```toml
186
- [tui]
187
- status_line = [
188
- "model-with-reasoning",
189
- "task-progress",
190
- "current-dir",
191
- "git-branch",
192
- "context-used",
193
- "five-hour-limit",
194
- "weekly-limit",
195
- "fast-mode",
196
- ]
197
- ```
138
+ `tmux` is the portable default. `iterm` and `terminal` are macOS launchers.
198
139
 
199
- Restart `codex` after running setup. Inside Codex you can also use `/statusline` to inspect or reorder the built-in items.
140
+ ## Commands
200
141
 
201
- 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.
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`. |
202
153
 
203
- The upstream feature request draft lives at:
154
+ Remove the auto-launch shim:
204
155
 
205
- ```text
206
- docs/upstream/codex-command-backed-statusline.md
156
+ ```bash
157
+ codex-hud uninstall-shim
207
158
  ```
208
159
 
209
- There is also a local native Codex CLI proof-of-concept patch that adds
210
- `tui.status_line = ["command: codex-hud status"]` support and preserves multi-line HUD output in
211
- the native bottom footer. See:
160
+ ## Configuration
212
161
 
213
- ```text
214
- docs/native-codex-cli-patch.md
215
- ```
162
+ Create a config file:
216
163
 
217
- ## Configuration
164
+ ```bash
165
+ codex-hud config init
166
+ ```
218
167
 
219
- Codex HUD looks for config at:
168
+ Default path:
220
169
 
221
170
  ```text
222
171
  ~/.codex-hud/config.json
223
172
  ```
224
173
 
225
- Supported MVP keys include `layout`, `refreshIntervalMs`, `pathLevels`, `display`, `colors`, and `codexHome`. The default `layout` is `expanded`, which renders a Claude HUD-like multi-line display. Set `layout` to `compact` for a single-line output.
226
-
227
- The configuration is intentionally close to Claude HUD-style customization. Example:
174
+ Minimal example:
228
175
 
229
176
  ```json
230
177
  {
231
- "language": "zh",
232
- "lineLayout": "expanded",
178
+ "layout": "expanded",
233
179
  "pathLevels": 2,
234
- "elementOrder": ["model", "project", "context", "usage", "weekly", "tools", "todos", "sessionTime"],
235
- "gitStatus": {
236
- "enabled": true,
237
- "showDirty": true,
238
- "showAheadBehind": true,
239
- "showFileStats": false
240
- },
180
+ "elementOrder": ["model", "project", "context", "usage", "weekly", "todos", "tools"],
241
181
  "display": {
242
- "showModel": true,
243
- "showProject": true,
244
- "showGit": true,
245
182
  "showContext": true,
246
183
  "showUsage": true,
247
- "showWeekly": true,
248
- "showTools": true,
249
- "showAgents": true,
250
- "showTodos": true,
251
- "showConfigCounts": true,
252
- "showDuration": true,
253
- "showMemoryUsage": true
184
+ "showWeekly": true
254
185
  },
255
186
  "colors": {
256
187
  "context": "yellow",
257
188
  "usage": "magenta",
258
- "weekly": "magenta",
259
- "warning": "yellow",
260
- "usageWarning": "magenta",
261
- "critical": "red",
262
- "model": "magenta",
263
- "project": "cyan",
264
- "git": "magenta",
265
- "gitBranch": "cyan",
266
- "label": "dim",
267
- "custom": "#FF6600"
189
+ "weekly": "magenta"
268
190
  }
269
191
  }
270
192
  ```
271
193
 
272
- `elementOrder` controls the order of HUD sections. `colors` accepts named ANSI colors such as `cyan`, `magenta`, `yellow`, `red`, `green`, `dim`, and truecolor hex values like `#FF6600`.
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`.
273
195
 
274
- Initialize the config file with:
196
+ ## Install From Source
197
+
198
+ Use this when testing the latest GitHub version:
275
199
 
276
200
  ```bash
277
- codex-hud config init
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
278
214
  ```
279
215
 
280
216
  ## Data Sources
281
217
 
218
+ Codex HUD reads:
219
+
282
220
  - `~/.codex/config.toml` for model and reasoning effort.
283
- - `~/.codex/sessions/**/*.jsonl` for token counters, rate limits, tool activity, and plan progress. Codex HUD prefers the newest session whose recorded cwd overlaps the current project.
221
+ - `~/.codex/sessions/**/*.jsonl` for token counters, rate limits, tool activity, and plan progress.
284
222
  - `git` for branch and dirty state.
285
223
  - `codex --version` for diagnostics.
286
224
 
287
- Tool activity is summarized from the most recent tool calls rather than the entire session, so long-running sessions stay readable.
288
- Context uses the latest token-count frame's `last_token_usage` when available, falling back to cumulative session usage only when needed.
289
- Progress values render as bars, with terminal colors enabled automatically for TTY output and disabled when `NO_COLOR` is set.
290
-
291
- ## Plugin Wrapper
292
-
293
- 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.
294
-
295
- ## Marketplace
296
-
297
- This repository includes a local marketplace snapshot at:
298
-
299
- ```text
300
- .agents/plugins/marketplace.json
301
- ```
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.
302
226
 
303
- For local testing, add the marketplace snapshot from this repository and install `codex-hud` from it with Codex plugin commands.
227
+ ## Docs
304
228
 
305
- ```bash
306
- codex plugin marketplace add /path/to/codex-hud
307
- codex plugin list --marketplace codex-hud-marketplace
308
- codex plugin add codex-hud@codex-hud-marketplace
309
- ```
310
-
311
- The marketplace entry uses the standard Codex plugin layout path `./plugins/codex-hud`.
312
-
313
- To install the plugin wrapper from GitHub:
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)
314
234
 
315
- ```bash
316
- codex plugin marketplace add Jiawang1209/codex-hud --ref main
317
- codex plugin list --marketplace codex-hud-marketplace
318
- codex plugin add codex-hud@codex-hud-marketplace
319
- ```
235
+ ## Plugin Wrapper
320
236
 
321
- The Marketplace plugin is the Codex-side wrapper: it exposes Codex HUD guidance and diagnostics inside Codex. The terminal HUD runtime still needs the `codex-hud` CLI command from either `npm install -g @jiawang1209/codex-hud` after npm publish or the source install flow above.
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.
322
238
 
323
239
  ## Privacy
324
240
 
package/dist/render.js CHANGED
@@ -75,8 +75,9 @@ function formatProgress(progress, kind, config, options) {
75
75
  const empty = width - filled;
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
- const windowText = kind === "usage" && progress.windowMinutes
79
- ? ` (${formatConsumedWindow(percent, progress.windowMinutes)} / ${progress.label})`
78
+ const limitText = kind === "usage" ? progress.label : formatDurationMinutes(progress.windowMinutes ?? 0);
79
+ const windowText = (kind === "usage" || kind === "weekly") && progress.windowMinutes
80
+ ? ` (${formatConsumedWindow(percent, progress.windowMinutes)} / ${limitText})`
80
81
  : "";
81
82
  const labelColor = config.colors[kind];
82
83
  return `${styleText(label, labelColor, options)} ${colorizeBar(bar, percent, config, options)} ${colorizeBar(`${percent}%`, percent, config, options)}${windowText}`;
@@ -87,6 +88,18 @@ function formatConsumedWindow(percent, windowMinutes) {
87
88
  function formatDurationMinutes(minutes) {
88
89
  if (minutes < 60)
89
90
  return `${minutes}m`;
91
+ if (minutes >= 1440) {
92
+ const days = Math.floor(minutes / 1440);
93
+ const remainder = minutes % 1440;
94
+ const hours = Math.floor(remainder / 60);
95
+ const minuteRemainder = remainder % 60;
96
+ const parts = [`${days}d`];
97
+ if (hours > 0)
98
+ parts.push(`${hours}h`);
99
+ if (minuteRemainder > 0 && hours === 0)
100
+ parts.push(`${minuteRemainder}m`);
101
+ return parts.join(" ");
102
+ }
90
103
  const hours = Math.floor(minutes / 60);
91
104
  const remainder = minutes % 60;
92
105
  return remainder === 0 ? `${hours}h` : `${hours}h ${remainder}m`;
@@ -1 +1 @@
1
- {"version":3,"file":"render.js","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AAQA,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,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AK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;SAChD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,IAAY,EAAE,aAAqB;IACvD,IAAI,IAAI,CAAC,MAAM,IAAI,aAAa;QAAE,OAAO,IAAI,CAAC;IAC9C,IAAI,aAAa,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACzD,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC;AAClD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiawang1209/codex-hud",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Real-time terminal HUD for Codex CLI and Agent CLI sessions.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Jiawang1209/codex-hud",
@@ -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% (3h 24m / 5h) │ Weekly █████████░ 86%
45
+ Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (3h 24m / 5h) │ Weekly █████████░ 86% (6d 29m / 7d)
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% (3h 24m / 5h) │ Weekly █████████░ 86%
45
+ Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (3h 24m / 5h) │ Weekly █████████░ 86% (6d 29m / 7d)
46
46
  Todos 2/5 │ Exec active, Plan x2
47
47
  ```
48
48