CTOP交互式进程查看器 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
AI编码代理交互式进程查看器,提高工作效率
CTOP交互式进程查看器 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI编码代理交互式进程查看器,提高工作效率
CTOP交互式进程查看器 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g ctop # 方式二:npx 直接运行(无需安装) npx ctop --help # 方式三:项目依赖安装 npm install ctop # 方式四:从源码运行 git clone https://github.com/aakashadesara/ctop cd ctop npm install npm start
# 命令行使用
ctop --help
# 基本用法
ctop [options] <input>
# Node.js 代码中使用
const ctop = require('ctop');
const result = await ctop.run(options);
console.log(result);
# ctop 配置说明 # 查看配置选项 ctop --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CTOP_CONFIG="/path/to/config.yml"
htop for your AI coding agents. Monitor Claude Code, Codex CLI, OpenCode, and Devin sessions — CPU, memory, tokens, context window, costs, branches — from a single terminal pane.

ctop ls --json | jq '.[] | select(.contextPct != null and .contextPct < 20)'
PL)F)d), 24-hour usage charts (H)~/.ctop/plugins/ctop ls, ctop whoami, ctop alerts, … (see CLI mode)
---
sqlite3 on PATH for OpenCode and Devin session reads (built-in on macOS; available via apt/brew on Linux)```bash
npx ctop-claude
```bash
{
"refreshInterval": 5000,
"contextLimit": 200000,
"defaultView": "list",
"theme": "default",
"contextBarStyle": "block",
"notifications": { "enabled": true, "minDuration": 30 }
}
CLI flags override config file values.
---
ctop with no args starts the interactive TUI. ctop <subcommand> runs a one-shot query and exits, so AI agents can introspect their own sessions and sister sessions from another terminal.
ctop ls # Table of every running agent
ctop ls --json # Same, machine-parseable
ctop ls --agent claude # Filter by backend
ctop ls --cwd ~/code/myproj # Filter by directory
ctop get <pid> --json # Full detail on one session
ctop log <pid> --tail 20 # Last 20 conversation messages
ctop search "TODO" --json # Full-text search across sessions
ctop diff <pid> # Git diff for the session's cwd
ctop stats --json # Aggregate cost / tokens / counts
ctop whoami # Detect which session you're in
ctop whoami --pid-only # PID only, for scripting
ctop alerts # Low-context / idle / ghost warnings
ctop alerts --severity critical # Only critical-level alerts
ctop kill <pid> # SIGTERM (must be your own user)
ctop kill <pid> --force # SIGKILL
ctop notify "title" "message" # Desktop notification
whoami detects the calling session via $CTOP_PID → parent-PID walk → $PWD match, with a matchConfidence label (exact | ppid | cwd-guess | none) so agents know how much to trust the answer.
Read tools surface data that the user could read off disk anyway. kill enforces uid ownership and an agent-session check before sending the signal — there is no kill-all.
ctop --refresh 3 # Refresh every 3 seconds
ctop --context-limit 128000 # Set context window to 128k
ctop --pane # Start in pane view
Extend with custom columns. Create .js files in ~/.ctop/plugins/:
module.exports = {
name: 'my-plugin',
column: {
header: 'CUSTOM',
width: 10,
getValue: (proc) => proc.cwd ? 'yes' : 'no',
},
};
See examples/plugins/ for more.
---
CTOP 是一个 AI 代理终端操作面板,用于监控和管理 AI 代理会话。它提供了多个功能,包括多代理监控、上下文窗口跟踪、成本估算和令牌波形图等。
CTOP 的功能包括多代理监控、上下文窗口跟踪、成本估算和令牌波形图等。它支持 Claude Code、Codex CLI、OpenCode 和 Devin 等 AI 代理的监控和管理。
CTOP 的环境依赖包括 Node.js 18+、macOS、Linux 或 Windows 等。它还需要 Claude Code、Codex CLI、OpenCode 和 Devin 等 AI 代理的运行会话。
CTOP 的安装步骤包括使用 npm 或 Docker 安装。用户可以使用以下命令安装 CTOP:npx ctop-claude。
CTOP 的使用教程包括使用 CLI 命令和配置文件。用户可以使用以下命令启动 CTOP:ctop。用户还可以使用配置文件来自定义 CTOP 的行为。
CTOP 的配置文件(~/.ctoprc)包括 refreshInterval、contextLimit、defaultView、theme、contextBarStyle 和 notifications 等参数。用户可以使用 CLI flags 来覆盖配置文件的值。
CTOP 的 API 支持 CLI 模式和 TUI 模式。用户可以使用以下命令启动 CTOP 的 API:ctop <subcommand>。用户还可以使用 CLI flags 来自定义 CTOP 的行为。
CTOP 的工作流包括使用 CLI 命令和配置文件来监控和管理 AI 代理会话。用户可以使用以下命令启动 CTOP:ctop。用户还可以使用配置文件来自定义 CTOP 的行为。
高效的AI工作流管理工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,CTOP交互式进程查看器 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | ctop |
| 原始描述 | 开源AI工作流:CTOP - Interactive Process Viewer for AI Coding Agents。⭐84 · JavaScript |
| Topics | ai-agentsclaudecodexjavascript |
| GitHub | https://github.com/aakashadesara/ctop |
| License | MIT |
| 语言 | JavaScript |
收录时间:2026-06-06 · 更新时间:2026-06-08 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端