agent-pulse
jane-o-o-o-o/agent-pulse-skill
Inspect local AI-agent activity across 13+ platforms with tokens, costs, budgets, and health checks.
What is agent-pulse?
Agent Pulse is a CLI tool that analyzes logs from multiple AI coding agents (Claude Code, Cursor, Copilot, Aider, DeepSeek, and others) to track sessions, token usage, tool calls, model costs, and system health. Use it when you need visibility into agent activity, cost forecasting, budget monitoring, or setup diagnostics.
- Query sessions, tokens, and tool/search calls across 13+ AI-agent platforms
- Analyze model usage and estimated costs with cost-per-session breakdowns
- Generate cost forecasts, anomaly detection, and budget status reports
- Compare activity across time periods and projects with heatmaps and trends
- Export metrics to Prometheus, Markdown, HTML, or REST API for integration
- Run health checks and setup diagnostics to troubleshoot missing data or configuration issues
How to install agent-pulse
npx skills add https://github.com/jane-o-o-o-o/agent-pulse-skill --skill agent-pulse- Python 3.7+ and pip installed
- PyPI package `agentpulse-cli` (installed via `pip install agentpulse-cli`)
- On Windows: UTF-8 environment variables set before running commands
How to use agent-pulse
- 1.Install the PyPI package: `pip install agentpulse-cli`
- 2.Run `agent-pulse doctor --json` to verify setup and discover local agent logs
- 3.Use `agent-pulse status --json` for a quick overview of recent activity
- 4.Filter by platform with `-P <platform>` (e.g., `-P cursor`, `-P claude`) or time with `--hours <N>`
- 5.Run specialized commands: `agent-pulse top --sort cost --json` for expensive sessions, `agent-pulse forecast --json` for cost trends, `agent-pulse models --json` for model breakdown
- 6.Export reports with `agent-pulse export -f markdown` or start a web dashboard with `agent-pulse web --port 8765`
Use cases
- Track total token spend and identify expensive sessions across all local AI agents
- Forecast monthly costs and detect spending anomalies before they exceed budget
- Compare model efficiency and find optimization opportunities (e.g., switching to cheaper models)
- Export daily/weekly reports for team visibility or billing reconciliation
- Integrate Agent Pulse metrics into monitoring pipelines via Prometheus or REST API
- Developers using multiple AI coding agents who need cost visibility
- Teams managing AI-agent budgets and forecasting spend
- DevOps/SRE engineers integrating agent metrics into monitoring systems
- Technical leads auditing model usage and efficiency across projects
agent-pulse FAQ
Hermes, Claude Code, Codex, DeepSeek, OpenClaw, Copilot, Aider, Qwen, OpenCode, Goose, Cursor, Antigravity, and Amp. Use `-P <platform>` to filter by a specific agent.
Use time filters: `agent-pulse status --json --hours 24` for the last 24 hours, or `--hours 168` for the last week.
Costs are estimates based on Agent Pulse's local model pricing table. Use them for trends and comparisons, not exact billing. Always verify against your provider's invoice.
Run `agent-pulse doctor --json` to check for missing log paths or configuration issues. Then try a wider time window with `--hours 168`.
Yes. Export Prometheus metrics with `agent-pulse metrics --format prometheus`, use the REST API with `agent-pulse api --port 8766`, or expose MCP tools with `agent-pulse mcp`.
Full instructions (SKILL.md)
Source of truth, from jane-o-o-o-o/agent-pulse-skill.
name: agent-pulse description: Use Agent Pulse to inspect local AI-agent activity across Hermes, Claude Code, Codex, DeepSeek, OpenClaw, Copilot, Aider, Qwen, OpenCode, Goose, Cursor, Antigravity, and Amp logs. Use when the user asks about AI-agent sessions, tokens, tool/search calls, model usage, estimated cost, budgets, forecasts, health checks, reports, setup diagnosis, web/API/metrics exports, or MCP integration.
Agent Pulse
Purpose
Use the installed agent-pulse CLI as the source of truth for local AI-agent activity. The PyPI package is agentpulse-cli, while the command remains agent-pulse. Prefer running commands and summarizing their output over reading the Agent Pulse source code.
Always enable UTF-8 on Windows before running commands because Agent Pulse output contains emoji and box drawing:
$env:PYTHONUTF8='1'
$env:PYTHONIOENCODING='utf-8'
If agent-pulse is not on PATH, ask before installing dependencies. If the user approves, install the PyPI package or try running from a local project checkout:
pip install agentpulse-cli
python -m agent_pulse.cli --version
Source Keys
Use -P/--platform when the user asks about one agent tool instead of all local data:
hermes, claude, codex, deepseek, openclaw, copilot, aider, qwen,
opencode, goose, cursor, antigravity, amp
Choose Commands
Use this command selection table first:
| User wants | Run |
|---|---|
| Current status | agent-pulse status --json |
| Full dashboard | agent-pulse --json or agent-pulse --no-banner |
| Demo data | agent-pulse demo --json |
| Setup diagnosis | agent-pulse doctor --json |
| Recent sessions | agent-pulse --json --hours 24 --limit 20 |
| Top sessions | agent-pulse top --sort tokens --json |
| Top expensive sessions | agent-pulse top --sort cost --json --hours 168 |
| Model cost analysis | agent-pulse models --json |
| Model ranking | agent-pulse leaderboard --json --rank-by efficiency |
| Cost savings | agent-pulse optimize --json |
| Budget status | agent-pulse budget --json |
| Cost forecast | agent-pulse forecast --json |
| Cost anomaly check | agent-pulse anomaly --json |
| Health/CI check | agent-pulse health --json |
| Composite score | agent-pulse score --json |
| Search sessions | agent-pulse search "<query>" --json |
| Compare periods | agent-pulse compare --json |
| Compare projects | agent-pulse compare-projects --json |
| Activity calendar | agent-pulse heatmap --json |
| Smart recommendations | agent-pulse insights --json |
| Prometheus metrics | agent-pulse metrics --format prometheus |
| Export report | agent-pulse export -f markdown or agent-pulse export-html |
| Web dashboard | agent-pulse web --port 8765 |
| REST API | agent-pulse api --port 8766 |
| MCP tools | agent-pulse mcp --list-tools |
If the installed command lacks an option, run agent-pulse <command> --help and adapt.
Workflow
- Start with
agent-pulse doctor --jsononly when the user asks why data is missing, asks for setup help, or a normal data command returns no sessions. - 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":
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:
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:
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:
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:
agent-pulse doctor --json
agent-pulse scan --json --details
agent-pulse config show
Interpreting Results
- Treat
total_cost_usdas an estimate based on Agent Pulse's local model pricing table. - 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,opencode, andgoose. - Mention if
doctorreports missing optional sources, missingdev_root, or optional web dependencies. - If no sessions appear, check
doctor, then try a wider time window such as--hours 168. - Check whether the user asked for a source (
-P) filter, a model filter, or a project comparison before giving overall totals. - If a command emits plain text instead of JSON or fails because an installed version is older, run
agent-pulse <command> --helpand use the closest supported option.
Reports
For a short human-readable answer, run JSON commands and summarize.
For artifacts, prefer:
agent-pulse report --period daily
agent-pulse export -f markdown
agent-pulse export-html
Do not invent exact savings or costs. Use the CLI output.
Integrations
Use the web and API extras only when the user asks for a browser dashboard or programmatic server. Ask before installing missing extras:
pip install "agentpulse-cli[web]"
agent-pulse web --port 8765
agent-pulse api --port 8766
For monitoring pipelines:
agent-pulse metrics --format prometheus
agent-pulse health --cost-limit 100 --token-limit 1000000 --json
MCP
Use MCP mode when the user wants other AI clients to query Agent Pulse:
agent-pulse mcp --list-tools
agent-pulse mcp
When explaining MCP, mention that it exposes tools such as status, forecast, top sessions, model analytics, optimization, health, search, and leaderboard.
Local Helper
This skill includes scripts/run_agent_pulse_snapshot.py, which runs a compact set of JSON-friendly Agent Pulse checks and prints a combined summary:
python scripts/run_agent_pulse_snapshot.py --hours 24 --days 7
Related skills
More from jane-o-o-o-o/agent-pulse-skill and the wider catalog.

architect
Think through what you're building like a senior engineer before writing code.

imprint
Extract and enforce UI visual patterns automatically after each component build.

recover
Diagnose build failures before fixing—targeted fix, hard reset, or rethink based on failure mode.

remember
Save and restore session context between AI agent sessions to maintain continuity without losing progress.

review
Verify features match the plan, respect system architecture, and are production-ready before shipping.

clone-website
Reverse-engineer and clone websites pixel-perfect in parallel—extracts assets, CSS, and content with builder agents.