Claude Code session

claude-tap

Intercepts and inspects API traffic from Claude Code and other agent CLIs.

3,324 stars 286 forksSessions & history Source

Install

Install
uv tool install claude-tap
From source
git clone https://github.com/liaohch3/claude-tap.git

From the README

claude-tap

中文文档

claude-tap is a local proxy and trace viewer for AI coding agents. Run your CLI through it, or listen to local app transcripts, then inspect the real API traffic and agent context: system prompts, conversation history, tool schemas, tool calls, streaming responses, token usage, and request diffs.

Website: Local AI Agent Trace Viewer · Guide: How to view agent traces locally

It works with Claude Code, Codex CLI, Codex App, Gemini CLI, Grok Build CLI, Kimi CLI, MiMo Code, OpenCode, OpenClaw, Pi, Hermes Agent, Cursor CLI, Qoder CLI, Antigravity CLI, and CodeBuddy CLI.

  Open a real agent run, inspect every request, and compare how context changes between turns.

      Light viewer overview

      Dark mode for long review sessions

      Structured diff across adjacent requests

Built with claude-tap

      Phistory archives versioned system prompt snapshots from agent CLIs such as Claude Code, Codex, Kimi, opencode, and Pi. It uses claude-tap's capture-only prompt export to preserve raw HTTP trace evidence and generate comparison-friendly prompt snapshots.

      Open the prompt diff viewer · View repository

Why use it

- 👀 See the exact context: inspect prompts, messages, tool definitions, tool calls, tool results, reconstructed streaming responses, and token usage.
- 🔎 Debug behavior with evidence: compare adjacent requests and pinpoint which prompt, message, tool, or parameter changed.
- 📦 Share one portable artifact: each run writes a local trace session that can be exported to a self-contained HTML viewer for review or archiving.
- 🔒 Keep traces on your machine: no hosted dashboard is required, and common auth headers are redacted before recording.
- 🧩 Use one workflow across clients: trace Claude Code, Codex CLI, Codex App, Gemini CLI,…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
3 November 2026
Topics
agent-debuggingagent-observabilityai-agentsai-toolsapi-debuggingclaude-codecodexcodex-clicursor-clideveloper-toolsgemini-clihermes-agent

FAQ

What is claude-tap?

Intercepts and inspects API traffic from Claude Code and other agent CLIs. It is a session for Claude Code, from liaohch3/claude-tap on GitHub.

How do I install claude-tap?

Run uv tool install claude-tap, then follow the setup in the README.

Is claude-tap popular?

liaohch3/claude-tap has 3,324 GitHub stars and 286 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.