OpenAI Codex

Codex CLI, With Adult Supervision

Terse compresses the prompts you feed the Codex CLI by 40–70%, tracks every session's tokens and cost, and — because Codex is a local process — can pause or kill a runaway session before its next API call.

40–70%prompt token reduction
AutoCodex session detection
3budget ceiling types
0data leaves device

How Terse Works with Codex

Terse auto-detects the Codex CLI via process and config detection — no Codex configuration changes — and starts tracking the session immediately.

Terse — Agent Monitor · codex (PID 9174)
Detected
$ codex "migrate the payments module to the new SDK"
terse session detected · codex · model-aware pricing loaded
terse prompt optimized · 312 → 128 tokens · −59% · Balanced mode
terse session: 84.5k tokens · est. $0.96 · burn $1.80/hr
terse ceiling armed: $4.00 per session · alert → pause → kill
👁️

Auto-Detection

Terse recognizes a running Codex CLI session by process and config — one of 8 agents it detects out of the box. Nothing to install into your Codex setup.

Zero setup
✂️

Prompt Compression

Task descriptions get the full 35+ technique pipeline in Light, Balanced, or Aggressive mode. Shell commands, code, and paths are never touched.

3 modes
🛑

Budget Circuit Breaker

Codex runs as a local process, so enforcement is direct: alert, SIGSTOP pause, SIGTERM kill — before the next API call. One click resumes a paused session.

Spend cap
📈

Session Stats

Per-session token usage, estimated cost with model-aware pricing, burn rate, and session history — live in the Terse monitor and the floating island.

Live
🩺

Terse Doctor

~25 consent-gated scans: agent loops, duplicate tool calls, redundant file reads, context burn, secret exposure, runaway runtimes — with one-click fixes.

~25 scans
🔔

Alert Center

9 alert kinds via macOS notifications, Slack webhook, or ntfy.sh push — so a Codex session tripping its ceiling at 2am reaches your phone, not just your desktop.

9 alerts

Honest About Monitoring Depth

Not every agent exposes the same telemetry. Here's exactly what you get with Codex versus Claude Code.

Codex — process & config detection
Session detection & history
Session token & cost stats✓ estimated
Burn rate & budget breaker✓ direct process control
Prompt optimizer & Doctor✓ full
Lighter telemetry — but the optimizer, Doctor, and breaker deliver their full value on every Codex session.
Claude Code — deepest integration
Exact input/output tokens from JSONL session streaming
Cache read/write efficiency, per-turn cost, context-window fill %
30-day historical backfill + session replay export
Run both? Terse tracks Codex and Claude Code side by side.

Frequently Asked Questions

Everything about using Terse with the OpenAI Codex CLI.

How does Terse detect OpenAI Codex?
Via process and configuration detection — one of 8 agents recognized out of the box, no Codex config changes. Sessions appear in the monitor with token usage, estimated cost, burn rate, and history.
Can I set a spending limit for Codex?
Yes. Set a burn-rate, token, or dollar ceiling. Because Codex is a local CLI process, Terse enforces directly: alert → SIGSTOP pause → SIGTERM kill, before the next API call, with one-click resume.
Does Terse compress the prompts I give Codex?
Yes — the 35+ technique pipeline runs in Light, Balanced, or Aggressive mode. Code blocks, shell commands, file paths, and identifiers are always protected. Typical reduction is 40–70%.
Can Terse stop a looping Codex agent?
Yes. A loop shows up as a burn-rate spike within minutes. With a ceiling armed, Terse alerts and then pauses the process before its next API call — a loop that would have run all night stops at your limit.
Is Codex monitoring as deep as Claude Code?
No — Claude Code gets exact tokens, cache efficiency, and 30-day backfill via JSONL streaming. Codex gets process/config detection with session-level stats and estimates. Optimizer, Doctor, and breaker work fully for both.
Does any Codex data leave my machine?
No. Detection, monitoring, compression, and budget enforcement all run on-device on macOS or Windows.

Also Works With

Terse supports every major AI coding agent — 8 detected automatically.

Claude Code — CLI Agent 🖥️Aider — Terminal Agent 🤖Cline — VS Code Agent 🦞OpenClaw — Agent 🛑Budget Circuit Breaker

Let Codex Work. Cap the Damage.

30-day free trial. No credit card required until your trial ends. Cancel anytime.

Start Free Trial Calculate Your Savings