跳到正文
Skillpedia
其他34k · #8420

hud

它能做什么

这个技能控制 oh-my-codex 的状态面板。适合想快速了解智能体正在做什么的用户。

适用场景

  • ✓当你想查看当前正在运行哪些智能体模式的时候。
  • ✓当你希望有一个随工作进展实时更新的状态面板的时候。
  • ✓当你想选择简洁、专注或完整的状态布局的时候。

技能链接

https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/hud/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/hud/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请显示包含所有元素的实时状态面板,让我可以看着团队工作。”

每周 5 个新技能,1 分钟读完。

工作原理

它会读取编排状态文件,并以三种预设之一输出一行紧凑的状态。它还有每秒刷新一次的实时模式,以及供脚本使用的 JSON 输出。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

HUD Skill

The OMX HUD uses a two-layer architecture:

  1. Layer 1 - Codex built-in statusLine: Real-time TUI footer showing model, git branch, and context usage. Configured via [tui] status_line in ~/.codex/config.toml. Zero code required.

  2. Layer 2 - omx hud CLI command: Shows OMX-specific orchestration state (ralph, ultrawork, autopilot, team, pipeline, ecomode, turns). Reads .omx/state/ files.

Quick Commands

Command Description
omx hud Show current HUD (modes, turns, activity)
omx hud --watch Live-updating display (polls every 1s)
omx hud --json Raw state output for scripting
omx hud --preset=minimal Minimal display
omx hud --preset=focused Default display
omx hud --preset=full All elements

Presets

minimal

[OMX] ralph:3/10 | turns:42

focused (default)

[OMX] ralph:3/10 | ultrawork | team:3 workers | turns:42 | last:5s ago

full

[OMX] ralph:3/10 | ultrawork | autopilot:execution | team:3 workers | pipeline:exec | turns:42 | last:5s ago | total-turns:156

Setup

omx setup automatically configures both layers:

  • Adds [tui] status_line to ~/.codex/config.toml (Layer 1)
  • Writes .omx/hud-config.json with default preset (Layer 2)
  • Default preset is focused; if HUD/statusline changes do not appear, restart Codex CLI once.

Layer 1: Codex Built-in StatusLine

Configured in ~/.codex/config.toml:

[tui]
status_line = ["model-with-reasoning", "git-branch", "context-remaining"]

Available built-in items (Codex CLI v0.101.0+): model-name, model-with-reasoning, current-dir, project-root, git-branch, context-remaining, context-used, five-hour-limit, weekly-limit, codex-version, context-window-size, used-tokens, total-input-tokens, total-output-tokens, session-id

Layer 2: OMX Orchestration HUD

The omx hud command reads these state files:

  • .omx/state/ralph-state.json - Ralph loop iteration
  • .omx/state/ultrawork-state.json - Ultrawork mode
  • .omx/state/autopilot-state.json - Autopilot phase
  • .omx/state/team-state.json - Team workers
  • .omx/state/pipeline-state.json - Pipeline stage
  • .omx/state/ecomode-state.json - Ecomode active
  • .omx/state/hud-state.json - Last activity (from notify hook)
  • .omx/metrics.json - Turn counts

Configuration

HUD config stored at .omx/hud-config.json:

{
  "preset": "focused"
}

Color Coding

  • Green: Normal/healthy
  • Yellow: Warning (ralph >70% of max)
  • Red: Critical (ralph >90% of max)

Troubleshooting

If the TUI statusline is not showing:

  1. Ensure Codex CLI v0.101.0+ is installed
  2. Run omx setup to configure [tui] section
  3. Restart Codex CLI

If omx hud shows "No active modes":

  • This is expected when no workflows are running
  • Start an explicitly requested supported workflow ($autopilot or $ultragoal) and check again
常见问题

有哪些预设?

有 minimal(精简)、focused(专注)和 full(完整)三种预设,默认是 focused。

需要重启 Codex 吗?

如果 HUD 的更改没有出现,请重启一次 Codex 命令行工具。

脚本可以读取它吗?

可以。JSON 输出提供原始状态,方便编写脚本。

详情

作者的原始描述

Show or configure the OMX HUD (two-layer statusline)

repo: Yeachan-Heo/oh-my-codex

热度

GitHub 星标
34k
排名
#8420
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能