Skip to content
New, experimental: CO2e for every session

Observability for the agents on your machine.

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.

$ brew install kannandreams/tap/agent-top
Works withthe agents you already run, no setup in any of them
  • Claude Code
  • Codex
  • Gemini CLI
  • OpenCode
  • Kodelet
  • OpenTelemetry
Binary
1

Static, Rust, macOS and Linux. No daemon, no runtime.

Harnesses
5 + OTLP

Plus any agent that sends OpenTelemetry spans.

Writes to your agents
0

Read-only. It never signals, kills or connects to one.

Licence
MIT

Open source on GitHub.

Everything your agents don't tell you.

Each harness shows one session at a time. agent-top lines them all up, from the live terminal view to a month of history.

agent-top

Who is working, who is waiting.

A terminal table of every agent process, with its state, tokens, burn rate and cost, and a detail pane for the one you pick.

  • Subagents nested under their parent
  • Tool calls that never came back
  • Rate-limit windows for Codex
$ agent-top
The agent-top live view

Nothing to install in your agents.

agent-top reads what is already on your disk and in your process table. Your transcripts stay on your machine.

Transcripts

The JSONL and SQLite files each harness writes, parsed for tokens, models, tool calls and timing.

Process table

Which agent owns which child, so MCP servers and shells are counted, and orphans are caught.

A local store

One SQLite file for history: sync to fill it, sql to query it, ui to browse it.

Footprint Experimental

What your tokens cost the planet.

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.

Example, invented numbers
Last 30 days · 40h of model time
8.6kg CO2e, median
▲22% more than the 30 days before
90% interval 4.6–17 kg, from 30 kWh.
35 km
driven in an average petrol car
EPA, 393 g per mile
520 days
of one urban tree seedling's growth to take it back
EPA, 60 kg per seedling over ten years
0.4 sheets of A4
of September Arctic sea ice, 0.03 m²
Notz and Stroeve 2016, 3 m² per tonne
158 litres
of water, most of it for generating the electricity
the host's on-site and off-site water per kWh

Counted exactly

  • How long each response took
  • Tokens per model, per session
  • When each session ran, and in which project

Estimated, with an interval

  • A request's share of an inference server
  • The host's overhead, grid and water
  • List price, where a response has no timing

Left out

  • Training the models
  • Manufacturing the hardware
  • Idle capacity, this machine and the network

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

From the blog.

How agent-top reads each harness, what its numbers mean, and what it found along the way. All posts

See every agent at once.

One command. Nothing to configure.