← ClaudeAtlas

cctracelisted

Trace, inspect, and replay Claude Code's HTTP traffic with cctrace — a TLS-intercepting tracer with a live web UI. Use this skill whenever the user wants to see what Claude Code sends over the wire (system prompts, tools, token usage, cache hits, cost, usage limits, errors), debug a Claude Code session ("why did it do that", "what did the agent see", "why is my cache hit rate low", "how much did that session cost"), capture API traffic for a bug report, replay or share a captured session, work with saved .jsonl traces (view, clean, merge, compress), or find which port a running cctrace instance is on. Also use it when the user mentions cctrace, trace files in a .cctrace/ directory, MITM-capturing Claude traffic, tracing a third-party ANTHROPIC_BASE_URL provider, or tracing the codex / grok / kimi CLIs.
thevibeworks/cctrace · ★ 6 · AI & Automation · score 71
Install: claude install-skill thevibeworks/cctrace
# cctrace — trace Claude Code's HTTP traffic cctrace wraps the Claude Code CLI, captures every request/response pair to `.cctrace/trace-<ts>.jsonl`, and serves a live web UI (requests list, reconstructed conversation, session replay, cost estimates). Repo: https://github.com/thevibeworks/cctrace · npm: `@thevibeworks/cctrace` ## Run a traced session ```bash cctrace # wrap claude, capture everything, open live UI cctrace -- --continue # everything after -- goes to claude verbatim cctrace -- -p "explain this" # traced print-mode run cctrace --mode base-url # lightweight: /v1/messages only, no CA setup cctrace -s # static: no live server, just files cctrace --no-open # don't auto-open the browser cctrace --dir path/to/logs # trace dir (default: ./.cctrace) cctrace --fresh # don't merge prior traces of a continued session cctrace --version # print version (+ newer version if known) cctrace --no-update-check # skip the daily npm version check / prompt cctrace codex -- exec "..." # trace the OpenAI Codex CLI instead cctrace grok -- -p "..." # trace the Grok CLI cctrace kimi # trace the Kimi Code CLI (all non-Claude use mitm) ``` Two gotchas worth knowing before suggesting commands: - **`-p` position matters**: before `--` it is cctrace's port; after `--` it is Claude's print mode. - **A leading `--` is eaten by b