CodexAgentMonitor is a native macOS menu-bar observability app for Codex-style agent workflows. It shows active agents, live state, token/quota telemetry, permission scopes, rate limits, and quick diagnostics from a local event stream.
This project does not modify Codex and does not control external systems. It observes JSONL events from an integration layer and renders them in the menu bar.
- Native macOS menu-bar app using SwiftUI
MenuBarExtra. - Health icon states: green healthy, yellow high usage, red critical/blocked.
- Active agent list with ID, name, status, task, start time, duration, and activity.
- Usage metrics for last 5 hours, last 7 days, total usage, remaining quota, and trend.
- Permission scope and rate-limit display per agent.
- Diagnostics panel for permission and quota warnings.
- Demo telemetry when no event log exists.
- macOS 14 or newer.
- Swift 6.3 toolchain or compatible Xcode command line tools.
swift build
swift run CodexAgentMonitorWhen launched from Codex, the app runs from the agent PTY. The menu-bar item appears in the macOS menu bar.
./script/run_tests.sh
./script/run_ui_smoke.shThe current Command Line Tools environment cannot import XCTest/Testing, so core checks run through CodexAgentMonitorTestRunner. Full validation also runs CodexAgentMonitorE2ERunner, which simulates an orchestrator agent and tester agent end to end. Use swift run CodexAgentMonitorE2ERunner -- --live to slow the feed down for menu-bar inspection.
Default path:
~/.codex-agent-monitor/events.jsonl
Each line is one JSON event. Dates use ISO-8601.
Supported event types:
agent_startedagent_updatedagent_status_updateagent_finishedagent_completedagent_errortoken_usage_updatedpermission_warning_triggered
Example:
{"type":"agent_started","agent":{"id":"local-main","name":"Primary Codex","status":"running","currentTask":"Implement feature","startedAt":"2026-05-17T12:00:00Z","updatedAt":"2026-05-17T12:00:10Z","activity":"Reading files"}}See Architecture for the full model boundary. See End-to-End Testing for the orchestrated tester-agent simulation.