One view of every Claude Code, Codex, Gemini CLI, OpenCode and Kodelet session: what it is doing, what it has spent, and what it left running.
Static, Rust, macOS and Linux. No daemon, no runtime.
Plus any agent that sends OpenTelemetry spans.
Read-only. It never signals, kills or connects to one.
Open source on GitHub.
Each harness shows one session at a time. agent-top lines them all up, from the live terminal view to a month of history.
A terminal table of every agent process, with its state, tokens, burn rate and cost, and a detail pane for the one you pick.

Each MCP server's calls, errors, CPU and memory, joined to its process. An orphan turns red and says which agent it came from.

Tokens and dollars at list price, by harness, model, project or day, from the transcripts already on disk.

Overview, insights, sessions and tools, served on 127.0.0.1 from the local store. Open a session for its run graph and turns.

Every turn's context, split by source, with compactions marked. See which files and tool results filled it.

Point any OpenTelemetry SDK at agent-top and its spans join the store, priced from the same table as the coding agents.

agent-top reads what is already on your disk and in your process table. Your transcripts stay on your machine.
The JSONL and SQLite files each harness writes, parsed for tokens, models, tool calls and timing.
Which agent owns which child, so MCP servers and shells are counted, and orphans are caught.
One SQLite file for history: sync to fill it, sql to query it, ui to browse it.
agent-top times every response your agents wait for and estimates the energy, CO2e and water behind it, as a median and a 90% interval, from published research. No setup. The Footprint view in agent-top ui shows it beside the change on the period before.
From Jegham et al. 2025, "How Hungry is AI?". Your own figures in ~/.config/agent-top/energy.toml take over for the models they list. How it works
How agent-top reads each harness, what its numbers mean, and what it found along the way. All posts
30 November 2026
How agent-top 0.32 estimates the energy, CO2e and water behind a coding agent's work: what providers publish, what the research offers, why per-token figures disagree by 5×, and how timing every response gives a median with a 90% interval.
Read the post
23 November 2026
What context compaction is, how Claude Code and Codex each do it, what they write down about it, and how agent-top 0.30 draws it as a timeline.
Read the post
24 September 2026
How Codex's usage limits work on a ChatGPT plan, where the CLI writes the numbers down, how agent-top reads them, and a bug in that reading found while writing this post.
Read the postOne command. Nothing to configure.