Repository navigation
v0.2.0 — Codex CLI Support & Message Detail
What's New
🆕 Codex CLI Support
- Reads session data from
~/.codex/sessionsautomatically - Calculates cost from OpenAI model pricing (gpt-4.1-codex, codex-mini, etc.)
[C]/[X]source badges in the Sessions list to distinguish Claude Code vs Codex CLI--source all|claude|codexflag to filter which tool's data is shown- Per-source stats in the Overview tab when
--source all(default)
🔍 Message Detail (on-demand)
- Press
Enteron any message in Session Detail to load full content from disk - Shows User Message, Tool Calls (with pretty-printed JSON input), Tool Results, Assistant Response, and Thinking blocks
- Falls back to cached prompt when the session file isn't on this machine (e.g. data from another device)
🌐 Leaderboard Improvements
- Claude Code and Codex CLI tracked on separate leaderboards at claude-top.a2d2.dev
- Upload success now shows per-source rank:
Claude Code 排名:#4/5andCodex CLI 排名:#1/1 - Upload confirmation dialog breaks down costs by source when both are present
- API versioned: new clients use
/api/v2/upload; old clients continue working on/api/upload
📊 Chart Improvements
- X-axis now shows intermediate ticks (up to 6 evenly spaced), not just endpoints
- Cross-midnight sessions automatically switch to
MM-DD HH:MMlabel format to avoid ambiguity
⌨️ UX Fixes
ois now an alias for,to open Settings- Settings key moved from
sto,/oto avoid conflict with sort - Cursor row background no longer causes the Directory column to wrap to a new line
Bug Fixes
- Fixed upload returning HTTP 500 due to D1 schema
UNIQUEconstraint mismatch after migration - Fixed message detail view showing session list instead of content after pressing
Enter - Fixed dangling pointer bug in JSONL parser (
byUUIDmap built after all appends) - Fixed Codex sessions showing only error without displaying the cached prompt
- Fixed Codex JSONL parser to match actual Codex CLI session format
- Fixed CWD extraction for Codex sessions
Breaking Changes
None. Old CLI versions continue uploading to /api/upload with full backward compatibility.
Upgrading
npx @a2d2/claude-top@latest
# or
npm install -g @a2d2/claude-topFull Changelog: v0.1.5...v0.2.0