agent-pulse
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Pulse
Agent Pulse
Purpose
用途
Use the installed CLI as the source of truth for local AI-agent activity. The PyPI package is , while the command remains . Prefer running commands and summarizing their output over reading the Agent Pulse source code.
agent-pulseagentpulse-cliagent-pulseAlways enable UTF-8 on Windows before running commands because Agent Pulse output contains emoji and box drawing:
powershell
$env:PYTHONUTF8='1'
$env:PYTHONIOENCODING='utf-8'If is not on PATH, ask before installing dependencies. If the user approves, install the PyPI package or try running from a local project checkout:
agent-pulsepowershell
pip install agentpulse-clipowershell
python -m agent_pulse.cli --version将已安装的 CLI作为本地AI-agent活动的权威数据源。PyPI包名为,而命令仍为。优先选择运行命令并汇总输出,而非阅读Agent Pulse的源代码。
agent-pulseagentpulse-cliagent-pulse在Windows上运行命令前务必启用UTF-8,因为Agent Pulse的输出包含表情符号和框线绘制字符:
powershell
$env:PYTHONUTF8='1'
$env:PYTHONIOENCODING='utf-8'如果不在PATH中,请先询问用户是否同意安装依赖。若用户同意,可安装PyPI包或尝试从本地项目检出目录运行:
agent-pulsepowershell
pip install agentpulse-clipowershell
python -m agent_pulse.cli --versionSource Keys
源平台标识
Use when the user asks about one agent tool instead of all local data:
-P/--platformtext
hermes, claude, codex, deepseek, openclaw, copilot, aider, qwen,
opencode, goose, cursor, antigravity, amp当用户询问单个agent工具而非所有本地数据时,使用参数:
-P/--platformtext
hermes, claude, codex, deepseek, openclaw, copilot, aider, qwen,
opencode, goose, cursor, antigravity, ampChoose Commands
命令选择
Use this command selection table first:
| User wants | Run |
|---|---|
| Current status | |
| Full dashboard | |
| Demo data | |
| Setup diagnosis | |
| Recent sessions | |
| Top sessions | |
| Top expensive sessions | |
| Model cost analysis | |
| Model ranking | |
| Cost savings | |
| Budget status | |
| Cost forecast | |
| Cost anomaly check | |
| Health/CI check | |
| Composite score | |
| Search sessions | |
| Compare periods | |
| Compare projects | |
| Activity calendar | |
| Smart recommendations | |
| Prometheus metrics | |
| Export report | |
| Web dashboard | |
| REST API | |
| MCP tools | |
If the installed command lacks an option, run and adapt.
agent-pulse <command> --help首先参考以下命令选择表:
| 用户需求 | 运行命令 |
|---|---|
| 当前状态 | |
| 完整仪表盘 | |
| 演示数据 | |
| 设置诊断 | |
| 近期会话 | |
| 热门会话 | |
| 高成本会话 | |
| 模型成本分析 | |
| 模型排名 | |
| 成本优化建议 | |
| 预算状态 | |
| 成本预测 | |
| 成本异常检测 | |
| 健康/CI检查 | |
| 综合评分 | |
| 会话搜索 | |
| 时段对比 | |
| 项目对比 | |
| 活动日历 | |
| 智能建议 | |
| Prometheus指标 | |
| 导出报告 | |
| Web仪表盘 | |
| REST API | |
| MCP工具 | |
若已安装的命令缺少某个选项,运行并调整使用最接近的支持选项。
agent-pulse <command> --helpWorkflow
工作流程
- Start with only when the user asks why data is missing, asks for setup help, or a normal data command returns no sessions.
agent-pulse doctor --json - Use JSON output whenever possible. Summarize the fields that matter: sessions, tokens, tools, search calls, model breakdown, source breakdown, estimated cost, warnings.
- Use time filters for scoped questions. Default to 24 hours for "recent" and 168 hours for "this week":
powershell
agent-pulse status --json --hours 24
agent-pulse --json --hours 168 --limit 50- Use platform filters when the user asks about a specific agent system:
powershell
agent-pulse --json -P codex --hours 24
agent-pulse --json -P claude --hours 24
agent-pulse top --json -P aider --sort cost
agent-pulse status --json -P cursor- For cost questions, pair summary, model, and top-session views:
powershell
agent-pulse status --json --hours 24
agent-pulse models --json --hours 24
agent-pulse top --sort cost --json --hours 24
agent-pulse optimize --json --hours 168- For trend and risk questions, use forecast/history/compare/anomaly:
powershell
agent-pulse forecast --json
agent-pulse history --json
agent-pulse compare --json
agent-pulse anomaly --json- For setup, use the discovery commands before guessing paths:
powershell
agent-pulse doctor --json
agent-pulse scan --json --details
agent-pulse config show- 仅当用户询问数据缺失原因、设置帮助,或常规数据命令未返回会话时,才先运行。
agent-pulse doctor --json - 尽可能使用JSON输出。汇总关键字段:会话、令牌、工具、搜索调用、模型细分、源平台细分、估算成本、警告信息。
- 针对限定范围的问题使用时间过滤器。“近期”默认设为24小时,“本周”默认设为168小时:
powershell
agent-pulse status --json --hours 24
agent-pulse --json --hours 168 --limit 50- 当用户询问特定agent系统时,使用平台过滤器:
powershell
agent-pulse --json -P codex --hours 24
agent-pulse --json -P claude --hours 24
agent-pulse top --json -P aider --sort cost
agent-pulse status --json -P cursor- 针对成本相关问题,结合汇总、模型和热门会话视图:
powershell
agent-pulse status --json --hours 24
agent-pulse models --json --hours 24
agent-pulse top --sort cost --json --hours 24
agent-pulse optimize --json --hours 168- 针对趋势和风险相关问题,使用预测/历史/对比/异常检测命令:
powershell
agent-pulse forecast --json
agent-pulse history --json
agent-pulse compare --json
agent-pulse anomaly --json- 针对设置问题,先使用发现命令再猜测路径:
powershell
agent-pulse doctor --json
agent-pulse scan --json --details
agent-pulse config showInterpreting Results
结果解读
- Treat as an estimate based on Agent Pulse's local model pricing table.
total_cost_usd - Report both cost and token volume; low-cost models can still have very high token usage.
- Distinguish sources such as ,
codex,claude,hermes,deepseek,openclaw,aider,cursor, andopencode.goose - Mention if reports missing optional sources, missing
doctor, or optional web dependencies.dev_root - If no sessions appear, check , then try a wider time window such as
doctor.--hours 168 - Check whether the user asked for a source () filter, a model filter, or a project comparison before giving overall totals.
-P - If a command emits plain text instead of JSON or fails because an installed version is older, run and use the closest supported option.
agent-pulse <command> --help
- 将视为基于Agent Pulse本地模型定价表的估算值。
total_cost_usd - 同时报告成本和令牌用量;低成本模型仍可能有极高的令牌消耗。
- 区分、
codex、claude、hermes、deepseek、openclaw、aider、cursor和opencode等源平台。goose - 若报告缺失可选源平台、缺失
doctor或可选Web依赖,请提及这些信息。dev_root - 若未显示任何会话,先检查结果,再尝试扩大时间范围,例如
doctor。--hours 168 - 在给出总统计数据前,确认用户是否要求了源平台()过滤、模型过滤或项目对比。
-P - 若命令输出纯文本而非JSON,或因安装版本过旧导致运行失败,运行并使用最接近的支持选项。
agent-pulse <command> --help
Reports
报告
For a short human-readable answer, run JSON commands and summarize.
For artifacts, prefer:
powershell
agent-pulse report --period daily
agent-pulse export -f markdown
agent-pulse export-htmlDo not invent exact savings or costs. Use the CLI output.
若需要简短的易读答案,运行JSON命令并汇总结果。
若需要生成文件,优先使用:
powershell
agent-pulse report --period daily
agent-pulse export -f markdown
agent-pulse export-html不要编造精确的节省金额或成本数据,以CLI输出为准。
Integrations
集成
Use the web and API extras only when the user asks for a browser dashboard or programmatic server. Ask before installing missing extras:
powershell
pip install "agentpulse-cli[web]"
agent-pulse web --port 8765
agent-pulse api --port 8766For monitoring pipelines:
powershell
agent-pulse metrics --format prometheus
agent-pulse health --cost-limit 100 --token-limit 1000000 --json仅当用户要求浏览器仪表盘或程序化服务器时,才使用Web和API扩展功能。安装缺失的扩展前请先询问用户:
powershell
pip install "agentpulse-cli[web]"
agent-pulse web --port 8765
agent-pulse api --port 8766针对监控流水线:
powershell
agent-pulse metrics --format prometheus
agent-pulse health --cost-limit 100 --token-limit 1000000 --jsonMCP
MCP集成
Use MCP mode when the user wants other AI clients to query Agent Pulse:
powershell
agent-pulse mcp --list-tools
agent-pulse mcpWhen explaining MCP, mention that it exposes tools such as status, forecast, top sessions, model analytics, optimization, health, search, and leaderboard.
当用户希望其他AI客户端查询Agent Pulse时,使用MCP模式:
powershell
agent-pulse mcp --list-tools
agent-pulse mcp解释MCP时,需说明它暴露了状态、预测、热门会话、模型分析、优化、健康检查、搜索和排行榜等工具。
Local Helper
本地辅助工具
This skill includes , which runs a compact set of JSON-friendly Agent Pulse checks and prints a combined summary:
scripts/run_agent_pulse_snapshot.pypowershell
python scripts/run_agent_pulse_snapshot.py --hours 24 --days 7本技能包含,它会运行一组精简的、支持JSON的Agent Pulse检查,并打印合并后的汇总信息:
scripts/run_agent_pulse_snapshot.pypowershell
python scripts/run_agent_pulse_snapshot.py --hours 24 --days 7