# Agent Meter – Native macOS menu bar monitor for CLI coding agents

> Source: <https://github.com/amazingyyc/AgentMeter>
> Published: 2026-11-04 12:03:12+00:00

English | [简体中文](https://github.com/amazingyyc/AgentMeter/blob/main/README_zh.md)

A native macOS menu bar CLI Agent monitor (**Rex terminal only**). It detects active **Claude Code**, **Codex CLI**, **Copilot CLI**, and **Antigravity CLI** sessions running inside **Rex** in real time, letting you manage all agents from the menu bar without breaking your coding flow.

- **Stop Babysitting `y/n` Prompts** : Get an instant amber menu bar alert the moment an agent pauses for permission, and click**`Allow ⏎`** or**` Deny Esc`** inline without leaving your current window.
- **No More Tab Hunting** : Preview the latest terminal output of all local and SSH sessions in one place, and press**`⌥ + Return`** (or click any card) to jump straight to the exact**Rex** window and tab.
- **Prevent Mid-Task Context Compaction** : Monitor each session's 5-segment context window usage meter (`%` ) at a glance before auto-compaction catches you off guard.
- **1-Click Session Launch** : Start a new Claude, Codex, Copilot, or Antigravity session in any recent workspace directory directly from the**`+`** menu.

| Shortcut | Action | 
|---|---|
| `⌥ + Space` (`Option + Space` ) | Toggle Agent Meter menu bar panel | 
| `⌥ + Return` (`Option + Return` ) | Jump straight to the #1 most urgent Rex agent session | 

*(Global shortcuts can be enabled or disabled in Settings.)*

- macOS 14.0+
- **Rex** terminal (Rex only; other terminal emulators are not supported)
- Swift 6.0+ (Xcode Command Line Tools)

Build the `.app` bundle and open it:

```
zsh scripts/build-app.sh
open "build/Agent Meter.app" --args --show-panel
```

Or build directly with Swift Package Manager:

```
swift build -c release
```

Demo mode:

```
open -n "build/Agent Meter.app" --args --demo --show-panel
```


