Borrowing it
Nothing to install: this file belongs to bifrost-proxy/bifrost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bifrost-proxy/bifrost/main/.agents/skills/codex-task-inspector/SKILL.mdgit clone --depth 1 https://github.com/bifrost-proxy/bifrostWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bifrost-proxy/bifrost/codex-task-inspector)<a href="https://agentmods.dev/skills/bifrost-proxy/bifrost/codex-task-inspector"><img src="https://agentmods.dev/badge/skills/bifrost-proxy/bifrost/codex-task-inspector/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bifrost-proxy/bifrost/codex-task-inspector"><img src="https://agentmods.dev/badge/skills/bifrost-proxy/bifrost/codex-task-inspector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.02291 |
| Opus 5.5 | $0.00036 | $0.00916 |
| Sonnet 5.5 | $0.00018 | $0.00458 |
| Haiku 4.5 | $0.00009 | $0.00229 |
Grade A, and why
codex-task-inspector scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
p = subprocess.run( How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Task Inspector
用于统一检查 Codex 异步任务状态,避免把“仓库里的任务跟踪文件(.codex-tasks/)”与“Codex 实际数据目录里的 session/rollout 日志”混为一谈。
关键纠错(高频踩坑)
当用户提供类似 019df414-... 这种 rollout/session id 并询问“任务进展”,默认应优先检查探测出的 Codex 数据目录:
- ✅
<detected_codex_dir>/sessions/YYYY/MM/DD/rollout-...-<id>.jsonl(权威事实来源:含 task_complete、命令执行、CI watch 记录) - ⚠️
.codex-tasks/只在用户明确说“看仓库里的 .codex-tasks 跟踪”或你确定该任务是由仓库派发器写入.codex-tasks/时才用
如果你先去 .codex-tasks/ 导致找不到 id,这是误判路径;应立即切换到探测出的 Codex 数据目录再查。
适用场景
当用户提到以下意图时触发:
- “检查 Codex 状态”
- “看看 Codex 任务进展”
- “汇总
.codex-tasks” - “本地任务还在跑吗”
- “CI 这边还剩什么”
- “哪个 Codex 任务失败了”
核心原则
- 先判定本地进程,再看文件产物。 不要因为
.codex-tasks里还有文件,就误判任务仍在运行。 - 本地任务状态与 CI 状态分开汇报。
.pid代表本地进程,*-last.md/*-report-*.md代表任务产物,*.log里的 poll 代表 CI 轮询。 - 默认只读。 不修改
.codex-tasks/,不清理 pid/log/report,不擅自重跑任务。 - 输出必须给出下一步建议,但只限于:继续查失败原因 / 整理状态表 / 指定某任务深挖。
标准检查顺序
第 0 步:先选对数据目录(必须)
0.0 先探测 Codex 实际数据目录
无论最终是否会落到 .codex-tasks/,先明确当前机器上的 Codex 数据目录,避免把 ~/.codex 当成硬编码事实。
优先运行:
python3 .agents/skills/codex-task-inspector/scripts/detect_codex_data_dir.py
解读规则:
selected_source=env:CODEX_HOME→ 说明当前应优先看CODEX_HOMEselected_source=default:$HOME/.codex→ 说明当前使用默认回退目录markers里若存在config_toml/sessions_dir/session_index/history/state_db,可作为“这是活跃 Codex home”的旁证
只有当用户明确要求检查仓库 .codex-tasks/ 时,才切换到仓库路径;否则都先以探测结果为准。
输入信号 → 选路由:
- 用户给的是
019...这种 rollout/session id,或明确说“去 Codex 默认数据目录” → 走探测出的 Codex 数据目录 - 用户明确说“看这个仓库
.codex-tasks” → 走.codex-tasks/
0.1 在探测出的 Codex 数据目录按 rollout/session id 定位日志
优先在 <detected_codex_dir>/sessions/ 下找 rollout-*-<id>.jsonl:
export RID='019df414-235e-74e3-be4b-84f883e0ea17'
export CODEX_DIR="$(python3 .agents/skills/codex-task-inspector/scripts/detect_codex_data_dir.py | python3 -c 'import json,sys; print(json.load(sys.stdin)["selected_path"])')"
python3 - <<'PY'
import glob
import os
rid = os.environ['RID']
base = os.path.join(os.environ['CODEX_DIR'], 'sessions')
paths = glob.glob(f"{base}/**/rollout-*-{rid}.jsonl", recursive=True)
for p in sorted(paths):
print(p)
PY
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 239 lines · 91 tokens per session scan A 127660d46728
codex-task-inspector is a skill published in the GitHub repository bifrost-proxy/bifrost (165 stars, last pushed 2d ago), licensed MIT. It adds 91 tokens to every session and 2,291 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
omh-automation-blueprint
This is a Hermes-native automation-blueprint workflow skill.
omh-morning-brief
This is a Hermes-native morning-brief workflow skill.
omh-rust
This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
omh-deliverable-package
This is an OMH deliverable-package workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
omh-todo-checklist
This is a Hermes-native todo-checklist workflow skill.
omh-voice-input
This is an OMH voice-operator workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).