Chuyển đến nội dung
Skillpedia
Khác34k · #8420

hud

Skill này làm gì

Skill này điều khiển bảng hiển thị trạng thái của oh-my-codex. Skill dành cho người muốn xem nhanh agent đang làm gì.

Khi nào nên dùng

  • ✓Khi bạn muốn xem những chế độ agent nào đang chạy ngay lúc này.
  • ✓Khi bạn muốn một bảng trạng thái trực tiếp cập nhật khi công việc diễn ra.
  • ✓Khi bạn muốn chọn một bố cục trạng thái tối giản, tập trung hoặc đầy đủ.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/hud/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hiển thị bảng trạng thái trực tiếp với mọi thành phần để tôi theo dõi nhóm làm việc.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đọc các file trạng thái điều phối và in một dòng trạng thái gọn theo một trong ba cấu hình sẵn. Nó cũng có chế độ trực tiếp làm mới mỗi giây, và đầu ra JSON cho các script.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Có những cấu hình nào?

Có tối giản, tập trung và đầy đủ, với tập trung là mặc định.

Tôi có cần khởi động lại Codex không?

Nếu thay đổi HUD không hiện ra, hãy khởi động lại giao diện dòng lệnh Codex một lần.

Script có đọc được không?

Có. Đầu ra JSON cung cấp trạng thái thô để viết script.

Chi tiết

Mô tả gốc của tác giả

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

repo: Yeachan-Heo/oh-my-codex

Độ phổ biến

Sao GitHub
34k
Vị trí xếp hạng
#8420
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự