agentop
Health Uyari
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Low visibility รขโฌโ Only 5 GitHub stars
Code Gecti
- Code scan รขโฌโ Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions รขโฌโ No dangerous permissions requested
This tool is a terminal UI dashboard that lets you monitor AI coding agents running on your machine in real time. It tracks local processes, token usage, and estimated costs, similar to how htop monitors system resources.
Security Assessment
Overall Risk: Low. The tool operates entirely locally by reading session files (from directories like ~/.claude/) and scanning system process metadata. It explicitly states it makes no network calls to external AI providers, which is a strong positive. The automated code scan reviewed 12 files and found no dangerous patterns, no hardcoded secrets, and no risky shell command executions. Furthermore, it does not request any dangerous system permissions.
Quality Assessment
The project uses the permissive MIT license and is very new but actively maintained, with its latest code push occurring today. However, community trust and visibility are currently very low. The repository only has 5 GitHub stars, which is typical for a new project but means it has not yet been widely reviewed or battle-tested by a large user base.
Verdict
Safe to use, though you should keep in mind that it is a young, low-visibility project.
๐ Terminal UI for monitoring AI coding agents โ like htop for Claude Code, Codex, and Antigravity.
agentop
like htop, but for AI coding agents
A terminal UI for monitoring AI coding agents in real time. Inspect running sessions, track token usage, watch costs accumulate, and see what every agent on your machine is doing โ without leaving the terminal.
Supported agents
| Agent | Status | Config path |
|---|---|---|
| Claude Code | Supported | ~/.claude/ |
| Codex | Supported | ~/.codex/ |
| Antigravity | Supported | ~/.antigravity/ |
| OpenCode | Supported | ~/.opencode/ |
What you see
agentop presents a multi-panel TUI. Each panel updates live as agents write to their session files.
Process monitor
CPU usage, memory footprint, and uptime for every active agent process. Modelled after htop's process list โ sortable by any column.
Usage stats
Token counts (prompt and completion), estimated cost, and session count per agent. Aggregates across all running and recently completed sessions.
Quota tracking
Remaining API budget against configured limits. Raises a visual alert when an agent is close to exhausting its allocation.
Timeline view
A scrollable chronological log of agent events โ session starts, tool calls, errors, and completions โ across all monitored agents in a single stream.
Data flow
~/.claude/ + ~/.codex/ + ~/.antigravity/ + ~/.opencode/
|
v
agentop (file watchers + process scan)
|
v
TUI Dashboard
agentop reads only local files and process metadata. No network calls are made to any AI provider.
Installation
pip install agentop
Python 3.9 or later is required. No additional system dependencies.
From source
git clone https://github.com/dadwadw233/agentop.git
cd agentop
pip install -e .
Usage
# Launch the TUI
agentop
# Monitor a specific agent only
agentop --agent claude
# Set a refresh interval in seconds (default: 1)
agentop --interval 2
# Print a one-shot summary to stdout and exit
agentop --snapshot
Keyboard shortcuts inside the TUI:
| Key | Action |
|---|---|
q |
Quit |
Tab |
Switch panel |
j / k |
Scroll down / up |
s |
Cycle sort column |
r |
Force refresh |
? |
Show help overlay |
Data sources
agentop derives its information from the following sources:
- Session files โ JSON or JSONL files written by each agent under its config directory. The schema differs per agent; agentop ships a normalisation layer for each supported format.
- Process table โ
/procon Linux,pson macOS. Used to correlate session files with live PIDs and measure CPU/memory. - Cost estimation โ Token counts from session files multiplied by per-model pricing bundled with agentop. Prices are updated on each release and can be overridden in
~/.config/agentop/pricing.toml.
Configuration
agentop looks for a config file at ~/.config/agentop/config.toml. All fields are optional.
[display]
interval = 1 # refresh rate in seconds
theme = "dark" # "dark" or "light"
[quota]
daily_usd = 20.0 # alert threshold in USD
[agents]
# Disable an agent by setting enabled = false
[agents.codex]
enabled = false
Known limitations
- Windows is not supported. The process monitor relies on POSIX interfaces. WSL2 works.
- Session file formats change without notice. Agent vendors do not publish stable schemas. agentop may lag behind a new release by a few days until the parser is updated.
- Cost figures are estimates. Pricing tables are maintained manually. Batch discounts, enterprise agreements, and cached-prompt pricing may not be reflected accurately.
- Multi-user machines. agentop only reads the current user's home directory. Agents running under other users are not visible.
- Very high session volumes. If a session directory contains tens of thousands of files, the initial parse can take several seconds.
Roadmap
- Persistent session history database (SQLite)
- Export to CSV / JSON
- Configurable cost alerts via desktop notification
- Windows support via a cross-platform process backend
- Plugin API for community-contributed agent parsers
- Web dashboard mode (read-only HTTP server, no extra dependencies)
Changelog
0.3.0
- Added OpenCode support
- Timeline view panel
--snapshotflag for non-interactive output
0.2.0
- Antigravity support
- Quota tracking panel
pricing.tomloverride for custom cost tables
0.1.0
- Initial release
- Claude Code and Codex support
- Process monitor and usage stats panels
Contributing
Bug reports and pull requests are welcome. Please open an issue before starting substantial work so we can agree on direction.
# Run tests
pytest
# Run the linter
ruff check .
License
MIT. See LICENSE for the full text.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi