phoenix-traces
Analyze Sage's Phoenix/OpenInference trace database (phoenix.db) for the Sage LangGraph multi-agent system.
Skill by MythicAgents
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mythicagents-phoenix-traces
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/phoenix-traces
What's inside
- Skill name
phoenix-traces- Description
- Analyze Sage's Phoenix/OpenInference trace database (phoenix.db) for the Sage LangGraph multi-agent system. Inspect the latest run, per-model-call token usage, errors, tool-call frequency, and compare two traces (e.g. before/after a context/token optimization). Use when asked to read the Phoenix DB, check Sage trace tokens, verify token reduction, find Sage run errors, see which tools an agent called, or analyze/compare Sage runs.
- License
- GPL-3.0
- Instructions
- 41 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- analyze.ts
SKILL.md (first lines)
# Phoenix Trace Analysis
Read-only analysis of Sage's Phoenix trace store. Phoenix records every LangGraph/LangChain span (model calls, tool calls, chains, handoffs) to a SQLite DB while Sage runs. This skill queries that DB **without locking it** (opened read-only, WAL-respecting), so it is safe to run during a live Sage run.
## How to run
```bash
bun skills/phoenix-traces/analyze.ts <command> [args] [--db PATH] [--project NAME] [--json]
```
Default DB: `Payload_Type/sage/.phoenix/phoenix.db` (resolved relative to the skill). Default project: `Sage`. Add `--json` to any command for machine-readable output.
## Commands
| Command | What it shows |
|---------|---------------|
| `latest` | Full breakdown of the most recent trace: wall time, span/model/tool counts, total tokens, **max & avg prompt tokens per model call**, errors. (default if no command given) |
| `list [--limit N]` | Recent traces, newest first — one row each with spans, model calls, total tokens, max-prompt-per-call, error count. |
| `trace <trace_id\|prefix>` | Same breakdown as `latest` for a specific trace (accepts a trace_id prefix). |
| `tokens [<trace_id>]` | Per-model-call prompt/completion token table for a trace (default: latest). The view for verifying the per-call context ceiling. |
| `errors [--limit N]` | Recent `ERROR` spans across the project, deduped by message with counts. |
| `tools [--limit N]` | Tool-call frequency across the project (which tools agents call most). |
| `compare <baseline_id> <new_id>` | Side-by-side token/latency comparison of two traces — total tokens, max & avg prompt/call, model calls, wall time, with Δ% and reduction factor. |
## Common tasks
- **Did a context/token change work?** Note the baseline trace id, do a fresh Sage run, then:
`bun skills/phoenix-traces/analyze.ts compare <baseline_id> <new_id>`
Watch `max prompt / call` (should flat-line near the configured ceiling instead of climbing) and `total tokens` (should drop by a multiple).
- **What blew up in the last run?** `analyze.ts latest` then `analyze.ts errors`.
- **Per-step token climb?** `analyze.ts tokens` — if prompt tokens grow monotonically across calls, history is accumulating unbounded.
## Notes / gotchas
- **Read-only & WAL-safe.** Opened with `{ readonly: true }`; never writes, never locks. Fine to run mid-run, but a trace still in flight may show partial spans until Sage finishes flushing.
- **Token columns:** per-call values come from `spans.llm_token_count_prompt` / `llm_token_count_completion` on `span_kind='LLM'` spans; totals sum those over the trace.
- **Trace ids:** `list` prints shortened ids; `trace`/`tokens`/`compare` accept a prefix, so the first ~12 chars are enough.
- **Different DB or project:** `--db /path/to/phoenix.db` and `--project <name>` (the projects table currently holds `Sage` and `default`).
- Zero dependencies — uses Bun's built-in `bun:sqlite`. Requires `bun`.From MythicAgents/sage, GPL-3.0.
More from MythicAgents/sage
- 0.655score
sage-trace-analysis
MythicAgents
Repo-local Sage trace, Phoenix, Mythic task-output, and run-log analysis workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-focused-capability-tests
MythicAgents
Repo-local focused Sage capability, adapter, and notification validation workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-foothold-launch
MythicAgents
Build a live Apollo foothold on the GOAD range as NORTH\samwell.tarly through a pure WinRM scheduled-task batch logon.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-canary-attestation
MythicAgents
Independently attest a bounded native Mythic canary by reconstructing the run from Mythic's own records with a read-only Spectator credential, then diffing…
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-eval-gauge
MythicAgents
Repo-local Sage eval-gauge / hill-climbing Phase-0 toolkit.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-architecture-governor
MythicAgents
Use for Sage prompt, topology, tool, planner, runtime authority, and other consequential architecture changes; keep ordinary development measurement plumbing…
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-live-runner
MythicAgents
Repo-local Sage native Mythic v4 chat execution and inspection workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-callback-bootstrap
MythicAgents
Repo-local post-Mythic-reset Sage chat and foothold bootstrap workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.651score
sage-mythic-payload-deploy
MythicAgents
Download an existing Mythic payload, stage it onto a Ludus Windows host over WinRM, and launch it as the current user or a supplied run-as user.
SkillAFreshness: A★ 29Claude Code +9 - 0.651score
sage-goad-reset
MythicAgents
Repo-local Sage GOAD/Trust Walker full lab reset and readiness workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.650score
sage-forge-ops
MythicAgents
Repo-local Sage Forge/Codex helper workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.612score
sage-artifact-retention
MythicAgents
Preserve high-value Sage contracts, handoffs, reviews, transcripts, and evidence in a private project-local history while keeping payloads, credentials…
SkillBFreshness: B★ 29Claude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 29
- Forks
- 5
- Open issues
- 1
- Last commit (this folder)
- Oct 20, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/MythicAgents/sage
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MythicAgents
- 0.655score
sage-canary-attestation
MythicAgents
Independently attest a bounded native Mythic canary by reconstructing the run from Mythic's own records with a read-only Spectator credential, then diffing…
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-trace-analysis
MythicAgents
Repo-local Sage trace, Phoenix, Mythic task-output, and run-log analysis workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-focused-capability-tests
MythicAgents
Repo-local focused Sage capability, adapter, and notification validation workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-foothold-launch
MythicAgents
Build a live Apollo foothold on the GOAD range as NORTH\samwell.tarly through a pure WinRM scheduled-task batch logon.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-eval-gauge
MythicAgents
Repo-local Sage eval-gauge / hill-climbing Phase-0 toolkit.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-callback-bootstrap
MythicAgents
Repo-local post-Mythic-reset Sage chat and foothold bootstrap workflow.
SkillAFreshness: A★ 29Claude Code +9
Cite this page
phoenix-traces skill. Agent Mart. https://agentmart.dev/skills/mythicagents-phoenix-traces (last updated 2026-10-24)