agtop

作者 ldegio已验证

top-style TUI for monitoring AI coding agent sessions

273
Stars
20
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/ldegio/agtop

快速入门

使用 agtop 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

agtop

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.

agtop License: GPL v2

Session list with live CPU and cost metrics

Features

  • Session discovery -- automatically finds Claude Code (~/.claude/projects/) and Codex (~/.codex/sessions/) sessions
  • Cost tracking -- per-session spend with hourly and daily breakdowns; plan-aware billing (retail, Max, included)
  • Context pressure -- CTX% shows how full each agent's context window is
  • Live toggle -- filter to running sessions with real-time CPU%, cost rates, and incremental tool counts
  • Performance panel -- per-session CPU and memory sparkline charts over time
  • Processes panel -- live process tree showing child processes with CPU%, memory, and command lines
  • Tool Activity panel -- scrollable per-tool invocation history with timestamps; see exactly what each agent has been doing
  • Cost panel -- total spend by time window with per-model token and cost breakdown
  • Config panel -- browse CLAUDE.md/AGENTS.md, memories, skills, MCP servers, and permissions per session
  • Subagents panel -- list the subagents a session dispatched (type, model, description, cost, tools, duration); includes "ghost" rows reconstructed from the parent transcript when Claude Code has purged the subagent's own jsonl. Expand a session row in the list to inspect or drill into each subagent.
  • OS process metrics -- CPU% and PID count for running sessions (macOS/Linux/Windows)
  • Overview sparklines -- aggregate spend, tokens, and CPU charts at a glance
  • Detail view -- full cost breakdown, token split, per-model stats, and complete tool history
  • Session management -- delete non-running sessions with confirmation
  • Inactivity filter -- filter sessions by age (1 day, 1 week, 1 month)
  • Mouse support -- click to select, sort by column, switch tabs; hover tooltips on column headers
  • Non-interactive modes -- table and full JSON dump for scripting

Setup

The 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.

Options

FlagDescription
-l, --listList sessions in a table and exit
-j, --jsonDump 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, --helpShow help

Keyboard Shortcuts

KeyAction
j/k or arrowsNavigate sessions
EnterOpen detail view
TabCycle bottom panel tabs
Shift+Tab or `Toggle Live filter
1-7Switch to Info/Performance/Processes/Tool Activity/Subagents/Cost/Config panel
/ EnterExpand a session's subagents in the list; on a subagent row, the bottom panels show its data
Collapse a session's expanded subagents
F1, ?, hShow help
F3 or /Search/filter sessions
F5 or rForce refresh
F6 or >Sort-by panel
F7Filter sessions by age (1d/1w/1mo)
P/M/TSort by Status/Memory/Cost
dDelete selected session (non-running only)
q or F10Quit

JSON Output

agtop -j dumps comprehensive session data including:

  • Session identity (provider, ID, project, model)
  • Cost breakdown (total, per-category, hourly/daily rates)
  • Token counts (input, output, cached, detailed splits)
  • Activity metrics (tool invocations by name, skills, web fetches/searches, MCP calls)

Screenshots

Info panel: session identity, wall/API time, context pressure

Info panel

Performance: per-session CPU and memory sparkline charts over time

Performance panel

Processes: live process tree with CPU%, memory, and command lines (C++ builds, caffeinate, etc.)

Processes panel

Tool Activity: per-tool invocation counts and live feed with timestamps

Tool Activity panel

Cost breakdown: total spend by time window, per-model token and cost split

Cost panel

Config: browse CLAUDE.md, memories, skills, MCP servers, and permissions

Config panel

How It Works

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.

常见问题

What is agtop?

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 273 GitHub stars.

Is agtop safe to use?

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.

How do I install agtop?

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).

What programming language is agtop written in?

agtop is primarily written in JavaScript. It is open-source under ldegio on GitHub, so you can review or fork the full source.

Are there alternatives to agtop?

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.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情