by ldegio
top-style TUI for monitoring AI coding agent sessions
# Add to your Claude Code skills
git clone https://github.com/ldegio/agtopLast scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T16:02:24.870Z",
"npmAuditRan": true,
"pipAuditRan": true
}agtop is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ldegio. top-style TUI for monitoring AI coding agent sessions. It has 188 GitHub stars.
Yes. agtop passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/ldegio/agtop" and add it to your Claude Code skills directory (see the Installation section above).
agtop is primarily written in JavaScript. It is open-source under ldegio on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agtop against similar tools.
No comments yet. Be the first to share your thoughts!
Run with:
npx @ldegio/agtop
Your window into what your AI coding agents are doing, sitting in the terminal, where you run them. agtop is a top-style terminal dashboard that tracks every Claude Code and Codex session on your machine: spend, token usage, context pressure, CPU load, tool invocations, and more. All in one place, live.
~/.claude/projects/) and Codex (~/.codex/sessions/) sessionsThe npx command at the top of this page runs agtop without installing it. To install it permanently so agtop is always available in your terminal:
npm install -g @ldegio/agtop
agtop
npm uninstall -g @ldegio/agtop
Requires Node.js >= 18. No other dependencies.
| Flag | Description |
|---|---|
-l, --list |
List sessions in a table and exit |
-j, --json |
Dump full session data as JSON and exit |
-p, --plan <plan> |
Billing plan for cost display (default: retail) |
-d, --delay <secs> |
Refresh interval in seconds (default: 2) |
-h, --help |
Show help |
| Key | Action |
|---|---|
j/k or arrows |
Navigate sessions |
Enter |
Open detail view |
Tab |
Cycle bottom panel tabs |
Shift+Tab or ` |
Toggle Live filter |
1-7 |
Switch to Info/Performance/Processes/Tool Activity/Subagents/Cost/Config panel |
→ / Enter |
Expand a session's subagents in the list; on a subagent row, the bottom panels show its data |
← |
Collapse a session's expanded subagents |
F1, ?, h |
Show help |
F3 or / |
Search/filter sessions |
F5 or r |
Force refresh |
F6 or > |
Sort-by panel |
F7 |
Filter sessions by age (1d/1w/1mo) |
P/M/T |
Sort by Status/Memory/Cost |
d |
Delete selected session (non-running only) |
q or F10 |
Quit |
agtop -j dumps comprehensive session data including:
Info panel: session identity, wall/API time, context pressure
Performance: per-session CPU and memory sparkline charts over time
Processes: live process tree with CPU%, memory, and command lines (C++ builds, caffeinate, etc.)
Tool Activity: per-tool invocation counts and live feed with timestamps
Cost breakdown: total spend by time window, per-model token and cost split
Config: browse CLAUDE.md, memories, skills, MCP servers, and permissions
agtop reads JSONL transcript files written by Claude Code and Codex to extract token counts, tool invocations, and model information. It fetches current model pricing from LiteLLM (cached for 24 hours) to compute cost estimates. For running sessions, it uses ps and lsof to map OS processes back to sessions and collect CPU/memory metrics.