codex-fleet-monitor

codex-fleet-monitor is a skill for Claude Code, Codex from closedloop-ai/claude-plugins. It costs 208 tokens per session (4,577 once invoked), scanned A, original, Apache-2.0.

A monitor for multiple coding-agent sessions and their pull requests. It checks whether each session is still making progress and reports changes or stalled work.

In plain words
What is it for?
Watch parallel coding sessions, detect stalled or changed work, and alert the operator when a session or pull request needs attention.
Why use it?
A session can appear active even after it has stopped producing results, so checking only its status can miss a problem. The monitor reduces the need for separate polling scripts.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: reads ~/.codex paths; mentions Codex.

Part of the vibe plugin — 14 skills, 3 agents shipped together

Good fit Watch parallel coding sessions, detect stalled or changed work, and alert the operator when a session or pull request needs attention.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/closedloop-ai/claude-plugins/codex-fleet-monitor
Install

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.

Any agent
npx skills add closedloop-ai/claude-plugins --skill codex-fleet-monitor
Clone the repo
git clone --depth 1 https://github.com/closedloop-ai/claude-plugins

Made for: Claude Code, Codex.

Or install vibe, the plugin that ships this one along with the rest of its 14 skills, 3 agents.

Wrote 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.

agentmods badge for codex-fleet-monitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/closedloop-ai/claude-plugins/codex-fleet-monitor/github.svg)](https://agentmods.dev/skills/closedloop-ai/claude-plugins/codex-fleet-monitor)
Your own site
<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.

agentmods 80×15 button for codex-fleet-monitor

Your own site · 80×15
<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>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash 2904836392ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/classify.sh, scripts/claude-usage.mjs, scripts/hook-approval.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/vibe-closedloop/skills/codex-fleet-monitor/SKILL.md · 152 lines

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 with codex app-server daemon start and connects through codex app-server proxy; scripts/ratelimit.mjs (the plugin's one usage reader, also imported by vibe's codex-usage.mjs), scripts/recover.mjs and scripts/supervise.mjs reuse its client.
  • codex, node, jq, gh (authenticated) on this machine; codex and node on the remote host, reachable through REMOTE_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

Read the full file on GitHub · 152 lines

Changes

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.

  1. 10d ago Changed 2904836392ff
  2. 19d ago Changed · +1 lines 08fefc2598dc
  3. 26d ago Changed · +4 lines 71dbb0d1c0eb
  4. 1mo ago Changed f485c57a5856
  5. 1mo ago Changed · +1 lines ffeb4ce2e3f1
  6. 1mo ago Changed 79742e47658b
  7. 1mo ago Changed · +12 lines ebbda25d68d2
  8. 1mo ago Changed · +51 lines · +48 tokens per session c832d45578f5
  9. 1mo ago First seen · 83 lines · 160 tokens per session scan A 3ea2a5c3b39e

Subscribe to this mod's changes

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.

Related

codex-fleet-monitor compared with skills from other repositories

codex-fleet-monitor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-fleet-monitorclosedloop-ai/claude-pluginsSkill1223d agoApache-2.0A208Claude Code, Codex
grounded-citationsNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
openhandsNousResearch/hermes-agentSkill267ktodayMITA19Claude Code, Codex
mcporterNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
apple-notesNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
react-patternsaffaan-m/ECCSkill313k7d agoMITA49Claude Code, Kiro
one-three-one-ruleNousResearch/hermes-agentSkill267ktodayMITA21Claude Code, Codex