Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add closedloop-ai/claude-plugins --skill codex-fleet-monitorgit clone --depth 1 https://github.com/closedloop-ai/claude-pluginsWrote 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/closedloop-ai/claude-plugins/codex-fleet-monitor)<a href="https://agentmods.dev/skills/closedloop-ai/claude-plugins/codex-fleet-monitor"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/codex-fleet-monitor/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/closedloop-ai/claude-plugins/codex-fleet-monitor"><img src="https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/codex-fleet-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00208 | $0.04577 |
| Opus 5.5 | $0.00083 | $0.01831 |
| Sonnet 5.5 | $0.00042 | $0.00915 |
| Haiku 4.5 | $0.00021 | $0.00458 |
Grade A, and why
codex-fleet-monitor scanned grade A with 0 findings 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 10d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
codex-fleet-monitor
One background command polls every watched Codex thread and PR and exits with a diff when any line changes; act on it, then re-arm. Waiting costs no model tokens.
It also resumes a turn that failed with a transient provider error after a backoff (Recovery); the supervisor does the same on each host when no orchestrator is awake.
Why liveness is read from the thread, not the turn id
A Codex turn that hits a usage limit stays open and stops producing items, so "is a turn active" reports it running forever. The monitor reads each thread's last turn (status, error, newest item) and flags a turn whose newest item has not changed for STALL_SECONDS as STALLED. It never loads a thread's history (one full read passed 1 GB of RSS): thread/read without turns, thread/turns/list for the newest turn, and thread/items/list for its newest item, with a full read only on an App Server too old for thread/turns/list.
Requirements
- Each Codex session is identified by its thread id.
scripts/liveness.mjs(Node built-ins only) starts the managed App Server withcodex app-server daemon startand connects throughcodex app-server proxy;scripts/ratelimit.mjs(the plugin's one usage reader, also imported by vibe'scodex-usage.mjs),scripts/recover.mjsandscripts/supervise.mjsreuse its client. codex,node,jq,gh(authenticated) on this machine;codexandnodeon the remote host, reachable throughREMOTE_SHELL.
Set up a work dir
Use fleet-orchestrator's fleet home (its active program; scripts/work-dir.mjs resolves it and derives the state dirs) or a dir of your own per orchestration, and create:
config.env
LOCAL_STATE_DIR=/path/to/local/state/files # only for two-column sessions
REMOTE_HOST=user@host # omit when there are no remote sessions
REMOTE_STATE_DIR=/path/on/remote # remote scratch dir; also holds state files for two-column sessions
# REMOTE_FLEET_HOME=/path/on/remote # in a fleet home, replaces REMOTE_STATE_DIR and REMOTE_REQUESTS_DIR
REMOTE_SHELL="zsh -lic" # login shell so node/codex are on PATH (default)
STALL_SECONDS=720 # no new thread items for this long means STALLED (default 12m)
# CLAUDE_USAGE=0 # turn off the claude-usage line; CLAUDE_USAGE_SECONDS=600 sets how often it is read
# QUESTION_SECONDS=900 # an idle writer's question unanswered this long is QUESTION-UNANSWERED (default 15m)
# STALE_PR_SECONDS=2700 # a PR needing its writer with no push this long is STALE-PR (default 45m)
# HEARTBEAT_SECONDS=1800 # with no change, watch.sh exits with HEARTBEAT after this long (default 30m)
WATCH_NEW_PR_REPOS="owner/repo" # open PRs here that PR_SEARCH lists or WATCH_PR_AUTHOR opened join the watch set
# WATCH_PR_AUTHOR=@me # author whose open PRs are watched on any branch prefix (default the gh account)
PR_SEARCH="head:feature/" # optional: search filter for that list
BOT_LOGIN_REGEX="vercel|codex|github-actions|copilot|bot" # authors not counted as human feedback
# USAGE_HIGH_PERCENT=80 # usage below this prints one band (default MOVE_AT_PERCENT, else 80)
# USAGE_STALE_SECONDS=1800 # status flags the last good reading after this age (default 30m)
# CODEX_MODEL=<model> # with CODEX_EFFORT, a thread on another model or effort gets a MODEL(...) word
# CODEX_EFFORT=high
RECOVERY_BACKOFF_SECONDS="120 300 600" # wait before each resume of a transient failure; one retry per value
# CONTINUE_PROMPT_FILE=/path/to/continue.md # replaces the built-in continue prompt (REMOTE_CONTINUE_PROMPT_FILE on REMOTE_HOST)
# AUTO_RESTART_DAEMON=1 # allow restarting the App Server daemon for threads stuck in systemError; off by default
# RESTART_COOLDOWN_SECONDS=1800 # at most one automatic restart per host in this window
# MY_GH_LOGIN=me # your own comments are not counted; defaults to `gh api user`
# PASS_TIMEOUT_SECONDS=300 # a recovery pass running longer is abandoned with a pass-timeout event
# LOG_MAX_BYTES=1048576 # events.log and supervisor.log rotate to <file>.1 at this size
# SUPERVISOR_RSS_CAP_MB=300 # a supervisor heartbeat over this RSS is RSS-HIGH
REQUESTS_DIR=/path/to/requests # optional: local dir where sessions drop delegated-work request files
REMOTE_REQUESTS_DIR=/path/on/remote/requests # optional: the same on REMOTE_HOST
What ships with it
18 files 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.
- agents/openai.yaml 222 B
- scripts/classify.sh 1.5 KB runs code
- scripts/claude-usage.mjs 4.3 KB runs code
- scripts/hook-approval.mjs 5.9 KB runs code
- scripts/liveness.mjs 253 B runs code
- scripts/ratelimit.mjs 5.3 KB runs code
- scripts/recover.mjs 23 KB runs code
- scripts/snapshot.sh 14 KB runs code
- scripts/supervise.mjs 7.9 KB runs code
- scripts/supervise.sh 423 B runs code
- scripts/thread-sidebar.mjs 3.9 KB runs code
- scripts/usage-state.mjs 13 KB runs code
- scripts/watch-usage-state.mjs 6.2 KB runs code
- scripts/watch.sh 11 KB runs code
- scripts/watcher.mjs 2.6 KB runs code
- scripts/work-dir.mjs 253 B runs code
- templates/codex-fleet-supervisor.plist 1.4 KB
- templates/codex-fleet-supervisor.service 1002 B
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.
- 10d ago Changed 2904836392ff
- 19d ago Changed · +1 lines 08fefc2598dc
- 26d ago Changed · +4 lines 71dbb0d1c0eb
- 1mo ago Changed f485c57a5856
- 1mo ago Changed · +1 lines ffeb4ce2e3f1
- 1mo ago Changed 79742e47658b
- 1mo ago Changed · +12 lines ebbda25d68d2
- 1mo ago Changed · +51 lines · +48 tokens per session c832d45578f5
- 1mo ago First seen · 83 lines · 160 tokens per session scan A 3ea2a5c3b39e
codex-fleet-monitor is a skill published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed 3d ago), licensed Apache-2.0. It adds 208 tokens to every session and 4,577 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
codex-fleet-monitor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-fleet-monitorclosedloop-ai/claude-plugins | Skill | 122 | 3d ago | Apache-2.0 | A | 208 | Claude Code, Codex |
| grounded-citationsNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| openhandsNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 19 | Claude Code, Codex |
| mcporterNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| apple-notesNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 17 | Claude Code, Codex |
| react-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 49 | Claude Code, Kiro |
| one-three-one-ruleNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 21 | Claude Code, Codex |