claude-tap Intercepts 16 AI Coding CLIs So You Can See Every Request They Send
Prompt engineers and agent developers debugging opaque AI coding tools now have a Wireshark-equivalent that reveals exactly what each CLI sends to the model. Seeing the raw requests — system prompts, tool definitions, context diffs — replaces guesswork with data, and the automatic key redaction plus self-contained HTML exports make it safe to share traces with a team or in a GitHub issue.
AI coding assistants are black boxes — they work, but you never see the raw requests they send to the model. claude-tap inserts a local proxy between any of 16 supported CLIs and their APIs, recording every request and response into a self-contained HTML viewer. It covers Claude Code, Codex CLI, Gemini CLI, Cursor, Kimi Code, CodeBuddy, and more, handling both reverse-proxy and forward-proxy modes depending on whether the tool supports custom base URLs.
The standout feature is a structured diff view that shows character-level changes between consecutive requests. System prompt edits, tool list additions, conversation history concatenation order, and hidden instruction insertions all become visible. Token usage is broken down into input, output, cache reads, and cache creation.
Installation is a single `uv tool install claude-tap` command. The tool auto-launches a proxy, a browser viewer, and the target CLI. API keys are automatically redacted before storage, and exported traces are zero-dependency HTML files that anyone can open.
AI coding tooling has crossed a maturity threshold where developers now demand visibility into request internals — system prompts, tool definitions, and context management — rather than just evaluating output quality by feel.
The 16-CLI coverage is unusually broad and signals that the proxy approach (reverse for configurable base URLs, forward with TLS decryption for locked-down clients) generalizes well across the fragmented coding-assistant landscape.
Character-level diffing of multi-turn agent requests is a genuinely under-served debugging primitive; most observability tools stop at single-request inspection and miss how context mutates across turns.
Self-contained HTML trace exports with automatic secret redaction lower the friction for sharing debugging evidence in issues, code reviews, and compliance audits — a design choice that prioritizes collaboration over dashboard lock-in.