abtop
Description
AI agent monitor for your terminal. Like btop++, but for AI coding agents. Supports Claude Code and Codex CLI.
Installation
claude install-skill https://github.com/graykode/abtop README
abtop
AI agent monitor for your terminal. Like btop++, but for AI coding agents.
Supports Claude Code and Codex CLI.
Architecture
src/
├── main.rs # Entry, terminal setup, event loop, --setup flag
├── app.rs # App state, tick logic, key handling, summary generation
├── setup.rs # StatusLine hook installation (abtop --setup)
├── ui/
│ └── mod.rs # All panels in single file: header, context, quota,
│ # tokens, projects, ports, sessions, footer
├── collector/
│ ├── mod.rs # MultiCollector orchestration, orphan port detection
│ ├── claude.rs # Claude Code: session discovery, transcript parsing
│ ├── codex.rs # Codex CLI: session discovery via ps+lsof, JSONL parsing
│ ├── process.rs # Child process tree (ps) + open ports (lsof) + git stats
│ └── rate_limit.rs # Rate limit file reading (~/.claude/abtop-rate-limits.json)
└── model/
├── mod.rs # Re-exports
└── session.rs # AgentSession, SessionStatus, RateLimitInfo,
# ChildProcess, OrphanPort, SubAgent
Layout
┌─ ¹context (token rate sparkline + per-session context bars) ─────────┐
│ ▁▃▅▇█▇▅▃▁▃▅▇██ S1 abtop ████████ 82% │
│ token rate (200pt history) S2 prediction █████████91%⚠ │
│ S3 api-server ███ 22% │
└──────────────────────────────────────────────────────────────────────┘
┌─ ²quota ─────┐┌─ ³tokens ───┐┌─ ⁴projects ──┐┌─ ⁵ports ──────────┐
│ CLAUDE ││ Total 1.2M ││ abtop ││ PORT SESSION CMD │
│ 5h ████ 35% ││ Input 402k ││ main +3 ~18 ││ :3000 api-srv node│
│ resets 2h ││ Output 89k ││ ││ :8080 predict crgo│
│ 7d ██ 12% ││ Cache 710k ││ prediction ││ │
│ ││ ▁▃▅▇█▇▅▃▁▃▅││ feat/x +1~2 ││ ORPHAN PORTS │
│ CODEX ││ Turns: 48 ││ ││ :4000 old-prj node│
│ 5h █ 9% ││ Avg: 25k/t ││ api-server ││ │
│ 7d ██ 14% ││ ││ main ✓clean ││ │
└──────────────┘└─────────────┘└──────────────┘└────────────────────┘
┌─ ⁶sessions ─────────────────────────────────────────────────────────┐
│ ►*CC 7336 abtop ● Work opus 82% 1.2M 48 Edit src/pay.rs │
│ >CD 8840 pred ◌ Wait sonn 91% 340k 12 waiting │
│ ─────────────────────────────────────────────────────────────────── │
│ SESSION 7336 · /Users/graykode/abtop │
│ Stripe payment integration... │
│ └─ Edit src/pay.rs │
│ CHILDREN: 7401 cargo build │
│ SUBAGENTS: explore-data ✓12k · run-tests ●8k │
│ MEM 4f · 12/200 │ v2.1.86 · 47m │
└───────────────────────────────
Related Agents
Opencode
(60.8k ⭐) - The open source AI coding agent.
Data & AI community Gemini CLI
(90.5k ⭐) - An open-source AI agent that brings the power of Gemini directly into your terminal.
Data & AI community Chatgpt On Wechat
CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择OpenAI/Claude/Gemini/DeepSeek/ Qwen/GLM/Kimi/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Data & AI community Claude Mem
(13.1k ⭐) - A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back...
Data & AI community Read research for Nyquist validation data
cat "$phase_dir"/*-RESEARCH.md 2>/dev/null node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" roadmap get-phase "$phase_number" ls "$phase_dir"/*-BRIEF.md 2>/dev/null
Data & AI community Multi Agent Review
| A sophisticated AI-powered code review system designed to provide comprehensive, multi-perspective a... | - | [wshobson/agents](https://github.com/wshobson/agents) |
Data & AI community