agtop is a process monitor for AI coding agents.
It walks /proc on Linux (sysinfo on macOS, Windows, and *BSD) plus the
on-disk session transcripts of Claude Code, OpenAI Codex, Block Goose,
Aider, and Google Gemini, and presents per-agent CPU, RSS, status,
current tool, in-flight subagents, token usage, estimated cost,
context-window fill, and loaded skills in a top-style ratatui TUI.
On FreeBSD, writable-FD enumeration is provided by libprocstat
(see fstat(1)); per-process IO byte counters are not available
through sysinfo on this platform.
Distribution is also available via crates.io, npm, the AUR, and
a Homebrew tap.
misc/agtop: fix build on powerpc64* and crash when an agent is running
c_char is unsigned there (and on aarch64, which fails the same way),
so the i8 errbuf doesn't match libprocstat's prototype. The FreeBSD
filestat mirror in net_count.rs also has an extra leading pointer, so
the list link is read from fs_cap_rights and the second entry is
garbage; that one dies on every arch as soon as one agent is found.
The bundled sysinfo reads the u_int vm.stats.vm page counters into
u64, which on big-endian lands them in the wrong half and turns every
memory figure into u64::MAX. Read them as u32, as sent upstream.