Configure
Codex-hud durum satırı görüntüleme seçeneklerini yapılandırma (yönlendirmeli etkileşimli akış)
Kaynak: davepoon/claude-code-subagents-collection · MIT
Codex-hud durum satırı görüntüleme seçeneklerini yapılandırma (yönlendirmeli etkileşimli akış)
Kaynak: davepoon/claude-code-subagents-collection · MIT
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/configure/raw -o .claude/commands/configure.mdHedef dosya: .claude/commands/configure.md
FIRST: Load current display configuration:
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" configure --get --json
Parse the JSON to determine current values. If _configured is true, use Flow B (existing user). Otherwise use Flow A (new user).
Defaults:
layout: "expanded", showPlan: true, showFooter: true, showUsage: true, showWeekly: true, showModel: true, showContext: true, resetStyle: "both", barWidth: 10, fallbackToWeek: true, language: "en"── Codex ──)~/.codex/sessions/)⚠ LIMIT alert when Codex reports a reached rate limit (it only appears while a limit is actually hit)Advanced fields like colors are not yet exposed via this flow.
preview fields)AskUserQuestion options support a preview field that renders next to the choices. Use it so the user SEES the effect before picking. Generate previews from the real renderer (never hand-write them — they must match the code):
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" preview --set <key>=<value> [--set <key>=<value> ...]
--set layout=expanded, =horizontal, =inline, =compact) and put each result in that option's preview.preview is NOT supported on multiSelect questions, so the on/off toggle questions have no per-option preview — instead show a combined preview in the final confirmation step.--set showPlan=false) so the preview matches what saving would actually produce.Ask the questions below. AskUserQuestion allows at most 4 questions per call, so split into two rounds (e.g. Layout+Preset+Reset+Language, then Bar width) — or skip the ones the user clearly doesn't care about.
preview --set layout=expanded, =horizontal, =inline, =compact and use each result as that option's preview field (see "Live previews" above).preview):
preview per preset: run preview with the preset's flags plus the layout chosen in Q1 (or layout=expanded if asking Q1+Q2 together), e.g. Bars only → preview --set layout=expanded --set showPlan=false --set showFooter=false.preview per option: preview --set resetStyle=both, =absolute, =relative (plus the layout being used). Attach each.resets 19:38 · 4h 37m (absolute clock + time left, like Codex /status)resets 19:38 / resets 15:04 on 22 Jun (clock only)resets in 4h 37m (time left only)Usage, Weekly, resets in ...Usage, Weekly, 리셋까지 ...Build questions based on current values. Show current value in the question text. Skip any question the user clearly doesn't need; AskUserQuestion allows 4 per call, so split into rounds if you ask more.
preview for each option: for "Keep current" run preview with no --set layout (current layout), and for each "Switch to X" run preview --set layout=X. The user's other saved toggles are already reflected. Attach each as the option's preview.preview:
showPlan → falseshowFooter → falseshowUsage → falseshowWeekly → falseshowModel → falseshowContext → falsefallbackToWeek → falseIf nothing is ON, say "Nothing to disable" and skip.
If nothing is OFF, say "Nothing to enable — everything is already on" and skip.
Ask only if the user wants to change how reset times show (current: {currentResetStyle}).
preview per option with the user's current layout: preview --set resetStyle=both, =absolute, =relative. Attach each.resets 19:38 · 4h 37m, like Codex /status) / "Absolute" (resets 19:38) / "Relative" (resets in 4h 37m)Layout always comes from Q1; presets only set the visibility flags below.
| Preset | showPlan | showFooter | showUsage | showWeekly |
|---|---|---|---|---|
| Full | true | true | true | true |
| Bars only | false | false | true | true |
| Usage only | false | false | true | false |
| Minimal | true | false | false | false |
| UI option | CLI key | Values |
|---|---|---|
| Layout | layout | expanded / horizontal / inline / compact |
| Plan badge | showPlan | true / false |
| Session footer | showFooter | true / false |
| Usage bar (5h) | showUsage | true / false |
| Weekly bar (7d) | showWeekly | true / false |
| Model badge | showModel | true / false |
| Context bar | showContext | true / false |
| Reset time format | resetStyle | relative / absolute / both |
| Fallback to week | fallbackToWeek | true / false |
| Bar width | barWidth | 1–40 |
| Language | language | en / ko |
Guards — do NOT write if:
Show a summary of changes first:
layout : expanded → compact
showPlan : true → false
showUsage : true → (unchanged)
language : en → ko
Show the final preview — render it from the resolved settings so it exactly matches what will be saved (sample data, plain text; the user sees real colors after reload):
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" preview --set <key>=<value> [--set <key>=<value> ...]
Pass every key the user changed (layout + any toggles + language + barWidth). Show the output in a code block above the confirmation.
Ask confirmation with AskUserQuestion:
"Save", "Cancel"For each changed key, run:
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" configure --set <key>=<value>
(batch multiple --set calls sequentially; each is idempotent)
For reset to defaults:
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" configure --reset
Say: "Configuration saved. The statusline picks it up at its next refresh (within ~60 seconds, or after the next assistant message) — no restart needed."