Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Skobynv0.2.0MITIn 1 marketplace
Trace, replay, and cost-attribute multi-agent runs: hook-driven JSONL AgentTrace, deterministic OrchestrationReplay, and per-subagent TokenLens — pure artifacts, with an optional read-only MCP dashboard server.
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
observability, tracing, multi-agent, subagent, replay, tokens, cost, hooks ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Trace, replay, and cost-attribute multi-agent runs: hook-driven JSONL AgentTrace, deterministic OrchestrationReplay, and per-subagent TokenLens — pure artifacts, with an optional read-only MCP dashboard server.
See what your swarm actually did. Hook-captured traces, deterministic replay, and per-subagent cost attribution for multi-agent runs — as plain on-disk artifacts, with an optional read-only dashboard server.
When a Claude Code run fans out into subagents, the transcript tells you the story but hides the execution graph: which agent spawned which, in what order, what each one did, where it stalled, and which branch burned the budget. apex-agent-observability captures every subagent and tool event as a run-local JSONL trace, then gives you tools to reconstruct and cost it — no server required, no third-party dependencies, nothing to stand up.
Three cohesive sub-features, all built on one JSONL trace:
| # | Feature | Surface | What you get |
|---|---|---|---|
| A1 | AgentTrace | hooks + agent-trace skill | One JSON line per SubagentStart/SubagentStop/PreToolUse/PostToolUse event — timestamp, subagent id, tool, token estimate, and the parent->child execution-order edge. Read the timeline to find where a multi-agent run went wrong. |
| A2 | OrchestrationReplay | orchestration-replay skill + scripts/replay.sh | Reconstructs the spawn tree and per-subagent tool sequence so a failed run can be analyzed and re-run deterministically. |
| A3 | TokenLens | token-lens skill + scripts/token-lens.sh | Aggregates per-subagent token + latency attribution into a cost report — find the budget hog. |
Plus a /apex-agent-observability:trace-report command that runs replay +
token-lens and synthesizes a single report.
Traces land at ${CLAUDE_PROJECT_DIR:-$PWD}/.claude/traces/run-<session>.jsonl
(override with APEX_TRACE_DIR). <session> is the hook payload's
session_id, then $APEX_TRACE_SESSION, then local (Claude Code does not
export a session id to hook processes, so the payload is the key). Subagent
records also carry agent_type and agent_transcript_path. The hooks are
non-fatal and observational — a recording error never blocks the host
run, and they print nothing (no permission decision).
This plugin ships an optional, read-only MCP server at mcp/server.py,
declared in .mcp.json as command: python3 with no third-party
dependencies (Python standard library only). It is not required. Every
core feature — capturing the trace via hooks, reconstructing the run with
scripts/replay.sh, and cost-attributing it with scripts/token-lens.sh —
works fully from the on-disk JSONL with no server running.
The server exists solely so an external dashboard (or the agent itself) can read an already-captured trace over MCP. It exposes three read-only tools:
list_traces — available trace files in the trace directoryread_trace — the parsed JSONL records of one trace (defaults to latest)trace_summary — per-subagent event/token rollup + execution edgesBecause the server is optional and environmental, the skills' allowed-tools
never list mcp__* tools. If you don't configure the server, nothing
about tracing, replay, or cost attribution changes. The server only ever
reads the trace files; it never writes them.
# From the Apex marketplace
/plugin marketplace add Skobyn/Apex-Dev-Skills
/plugin install apex-agent-observability@apex-dev-skills
# …or test locally against this repo
claude --plugin-dir ./plugins/apex-agent-observability
Then /reload-plugins (or restart Claude Code) to activate the hooks.
# 1. Run any multi-agent / subagent task as normal — the hooks capture it
# to .claude/traces/run-<session>.jsonl automatically.
# 2. When something looks wrong, get the full report:
/apex-agent-observability:trace-report
# …or run the engines directly on the latest trace:
bash plugins/apex-agent-observability/scripts/replay.sh
bash plugins/apex-agent-observability/scripts/token-lens.sh
SubagentStart, SubagentStop,
PreToolUse, PostToolUse hook events, ${CLAUDE_PLUGIN_ROOT} expansion
in hook commands, and (for the optional server only) .mcp.json plugin
MCP discovery.PATH — used by the hook emitter, the
replay/token-lens scripts, and the optional MCP server. If python3 is
missing, the hook degrades to a minimal fallback line and never blocks the
run.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub skobyn/apex-dev-skills --plugin apex-agent-observabilityPlugins from other owners that cover similar ground