Skip to content
Back to skills

Codex Monitor

ASecurity

Monitor active Codex CLI sessions - shows status, working directory, and last messages

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
businesspythonbash

Works with

  • cli

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill codex-monitor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Monitor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Monitor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-codex-monitor/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-codex-monitor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex-monitor
description: Monitor active Codex CLI sessions - shows status, working directory, and last messages
user_invocable: true
---

# Codex Session Monitor

When the user invokes this skill (e.g., "/sessions"), run the session monitoring script and report the results.

## What This Skill Does

Monitors all active Codex CLI sessions by parsing the JSONL rollout files in `~/.codex/sessions/`. Shows:

- Thread ID and working directory for each session
- Session status: WORKING, WAITING, or IDLE
- File size (indicates session length/activity)
- Last modification time
- Last 2-3 lines of the most recent user message
- Last 2-3 lines of the most recent Codex response

## How to Run

Execute the Python script:

```bash
python3 {{skill_dir}}/scripts/sessions.py
```

Report the full output to the user in a code block.

## Interpreting Results

- **WORKING**: Session has recent reasoning or function_call events - actively processing
- **WAITING**: Session has an input_wait event - blocked waiting for user input
- **IDLE**: No recent activity indicators - may be finished or stalled

Sessions are considered "active" if modified within the last 5 minutes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.