cctop
A top-style live monitor for all your Claude Code sessions, showing at a glance which is busy, how much context remains, and who is waiting for input.
- Source repo
- stefanprodan/cctop
- Stars
- ★ 150
- Last updated
- today
- FARS reviewed
- Nov 23, 2026
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 70/100 · Some gaps
At a glance
- How it runs
- Works with
- Platform-specificClaude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Developers running several Claude Code sessions who need to tell busy, idle, and waiting-for-input sessions apart at a glance.
- Not a fit if
- Teams that don't use Claude Code sessions
- Users who want a native Windows GUI instead of a terminal
- Teams monitoring multiple AI coding assistants across vendors
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-23
- Source review
- 70/100 · Some gaps
What does this agent do, and when should you use it?
cctop is a single-file command-line program written in Bun that gives Claude Code sessions a top-like real-time monitor. It runs as a TUI that aggregates every running session into one table with process stats (PID, memory, CPU, uptime), busy/idle state, context size, model, host app (terminal or IDE), project, git branch, and the last prompt. It also surfaces live sub-agents with their latest turn, each session's sub-processes, and open or orphaned TCP ports. The tool reads only ~/.claude and the process table and spawns no processes; the only files it writes are its own preferences and usage cache under ~/.claude/cctop/. When piped or run with --once it prints a single frame and exits, and --json emits a machine-readable snapshot. It installs via a script, Homebrew, or Bun, and ships an upgrade subcommand to replace its own binary.
On start, cctop reads session metadata from ~/.claude and the OS process table, then builds and refreshes a live table. The first seven columns (status dot, PID, MEM, CPU, UP, CTX, MODEL) are always shown; the remaining columns can be hidden or reordered via the columns key in ~/.claude/cctop/settings.json. Keyboard controls include: arrow/PgUp/PgDn/g/G navigation, b to jump to the last session that rang, enter for a detail view, h for the session history dashboard, / to filter, s to cycle sort columns, n to toggle notifications (terminal bell plus OSC 9 desktop notification), x to send SIGTERM to a session with confirmation, f to reclaim orphan ports from the detail view, and ? for help. CLI flags cover [filter], -w/--watch to set the refresh interval, --once for single-frame output, --json for full session details, -v/--version, and -h/--help. An optional --capture-usage mode, called from a Claude Code status-line script, persists 5h/7d rate-limit stats to ~/.claude/cctop/usage.json for the TUI to display in the summary line.
- Developers running several Claude Code sessions who need to tell busy, idle, and waiting-for-input sessions apart at a glance.
- tmux users with agents spread across many panes who rely on the bell and desktop notifications while away.
- Operators hunting a leftover dev server holding a port and reclaiming it from the detail view.
- Anyone reviewing past token usage by model, tool/MCP, or project through the h-key history dashboard.
- Scripts and CI jobs that need a one-shot session snapshot via --once or --json.
- Debugging a runaway agent by inspecting the sub-agent and sub-process tree and terminating it in place.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://raw.githubusercontent.com/stefanprodan/cctop/main/install.sh | shbrew install stefanprodan/tap/cctopbun install -g github:stefanprodan/cctop#v0.9.1
- Config files
~/.local/bin- Install notes cover
- macOS · Linux
How do you install or deploy this agent?
On macOS or Linux, the install script downloads the standalone binary for your OS/arch, verifies its checksum, and installs to ~/.local/bin (override with PREFIX):
curl -fsSL https://raw.githubusercontent.com/stefanprodan/cctop/main/install.sh | shOr install with Homebrew:
brew install stefanprodan/tap/cctopOr with Bun (requires Bun; pins an explicit release):
bun install -g github:stefanprodan/cctop#v0.9.1The standalone binary is self-contained and needs no Bun runtime. To install a specific release set CCTOP_VERSION=v0.5.0; from a fork set CCTOP_REPO=owner/name.
How do you use this agent?
Run cctop on an interactive terminal for the live TUI; when piped or with --once it prints a single frame and exits. Common invocations:
cctop flux # only sessions matching "flux" in project, host, branch, model, or session id
cctop --watch=0.5 # refresh twice a second
cctop --once # single frame, then exit
cctop --json # machine-readable snapshotTo show your subscription's 5h/7d rate-limit usage in the summary line, add this to your Claude Code status-line script:
input=$(cat)
printf '%s' "$input" | cctop --capture-usage || trueUpdate in place with the built-in updater:
cctop upgrade
cctop upgrade --checkSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
FARS trust-control audit
- data-flow disclosure
What are this agent's strengths and limitations?
- A single Bun program with zero npm packages; the standalone binary is self-contained, so install is one command.
- Puts process metrics, context headroom, busy/idle state, sub-agents, and ports into one live table with top-style navigation.
- Read-only by default: reads only ~/.claude and the process table, spawns no processes, and writes only under ~/.claude/cctop/.
- --once and --json make it scriptable; columns are configurable and sort/refresh/notification settings persist across restarts.
- Opt-in bell and desktop notifications (OSC 9, supported by iTerm2, Ghostty, kitty, WezTerm, Windows Terminal, and tmux monitor-bell) cover the look-away case.
- Monitor scope is tied to Claude Code sessions, so it is unusable for other coding agents.
- Depends on the ~/.claude directory and the process table; shows nothing on machines with no Claude Code sessions.
- Notifications are opt-in and rely on terminal OSC 9 support, which varies across terminals.
- Rate-limit display requires manually editing your Claude Code status-line script.
- Windows is not documented as supported; the install script targets macOS and Linux.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| cctop This agent | 70 · Some gaps | CLIFree | ★ 150 | today | TypeScript | Claude Code |
| GenericAgent | 39 · Major gaps | CLIFree + model costs | ★ 14k | today | Python | Claude API |
| OpenClaw Command Center | 62 · Some gaps | Agent plugin / skillFree | ★ 250 | 1mo ago | JavaScript | — |
| Jelly: Local Multi-Bot Agent Workspace | 53 · Major gaps | — | ★ 95 | 1d ago | TypeScript | ChatGPT · OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The monitoring path is read-only over ~/.claude and the process table, writing only its own settings.json/usage.json, with network confined to explicit `cctop upgrade` (least_privilege 2). SIGTERM to sessions and port reclamation both require confirmation (user_confirmation 2). Data flow is documented thoroughly across README, AGENTS.md and usage-limits.md (data_flow_transparency 3). However it reads full transcripts and last prompts; sensitive-data handling relies on local storage and throttling with no redaction or access-control notes (sensitive_data_handling 2). Zero runtime dependencies and pinned devDependencies, but no lockfile audit or vulnerability scanning shown (dependency_security 2). External effects are limited to signals and self-update with atomic swap and checksum, yet upgrade replaces its own binary and rollback is reinstall-only (external_effects 2, rollback 2). Release workflow includes build provenance attestation, but no NOTICE/copyright attribution in-repo and publisher is unverified (source_attribution 1).
README, AGENTS.md, package.json and tests describe consistent behavior; tests cover parsing and collection logic (self_consistency 2). Dependencies are only Bun and OS built-ins with engines bun>=1.4.0, though tightly bound to Bun and macOS/Linux (dependency_availability 2). Docs explain failure paths (--capture-usage silent exit 0, stale-data labeling) but lack user-facing error messages and diagnostics (failure_messages 1).
Targets users running many Claude Code sessions; scenario is clear (audience_and_scenarios 2). Capability boundaries are sharply defined in AGENTS.md: read-only, exception list, platform limits (capability_boundaries 3). Invocation is via CLI flags and TUI keys, well-defined but without natural-language trigger semantics (trigger_precision 2). macOS/Linux only, relying on libproc and /proc, limiting environment fit (environment_fit 2).
README is well structured with features, install, keys, options and column customization (information_architecture 3). Install covers script, Homebrew and Bun, plus update and uninstall (install_notes 3). Version numbers are inconsistent between package.json and README examples (v0.9.1 vs v0.5.0), so naming stability is moderate (naming_stability 2). Example scripts and usage examples exist but no FAQ (examples_and_faq 2). Known limitations are scattered (subscription accounts, platforms, stale data) rather than consolidated (known_limitations 2). Full Apache-2.0 license file (license 3). Release workflow with version check exists but no CHANGELOG (versioning_changelog 2). Maintenance responsibility points only to GitHub issues/PRs and the publisher is unverified (maintenance_responsibility 1).
TUI plus --json/--once output is practical, columns configurable, information-dense (output_usability 3). Clear marginal value for multi-session monitoring but a convenience tool (marginal_value 2). Zero dependencies, single binary, low overhead, though it needs a resident TUI and status-line hook setup (cost_benefit 2).
Most README claims map to AGENTS.md and source layout, but some features (notifications, history view) lack source evidence in the sample (claim_traceability 2). Tests and CI workflow corroborate parsing logic, though the sample does not cover all claims (cross_source_corroboration 2). Docs separate facts from design intent (e.g. upgrade as the only network path), but some performance and safety assertions lack evidence (fact_inference_separation 2).
- The install script is fetched via curl | sh from the main branch; review it and verify checksums before executing.
- `cctop upgrade` replaces its own binary and rollback requires reinstall; keep a backup of the previous version.
- The tool reads full transcripts and last prompts; be mindful of local data exposure in sensitive projects.
- README version examples (v0.5.0) disagree with package.json (0.9.1); rely on the actual release when installing.
- Publisher identity is unverified; enterprise users should audit the source or verify the build provenance attestation.
FAQ
Does cctop modify my Claude Code session data?
Can I use it without installing Bun?
Are notifications and usage limits on by default?
How do I update to a new version?
Is cctop free?
Is cctop open source?
Is cctop safe to use?
Is cctop still maintained?
Who makes cctop?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.