claude-code-reverse
A Tool to Visualize Claude Code's LLM Interactions
- 2.4k stars
- 412 forks
- 6 open issues
- Language: JavaScript
- License: no standard licence
- updated
Install
git clone https://github.com/Yuyz0112/claude-code-reverse- Clone the repository.
- Follow the README for installation and usage instructions.
Editor's note
Claude Code Reverse is a JavaScript developer tool that intercepts and visualizes the actual API traffic exchanged between Claude Code and Anthropic's LLM backend. The core technique involves locating Claude Code's installed `cli.js` file, formatting it with `js-beautify`, then applying a monkey patch to the bundled Anthropic TypeScript SDK's `beta.messages.create` method, which causes every outbound request and inbound response to be written to a `messages.log` file. Two companion tools process that output: `parser.js` strips repeated boilerplate prompts by detecting frequency and position, and `visualize.html` renders the cleaned conversation flow in a browser. The repository also publishes extracted results in a dedicated directory, covering reverse-engineered prompts and tool definitions for Claude Code behaviors including quota checks (which use Claude Haiku 3.5 against a single `quota` input), topic detection, context compaction, the core agent loop, and sub-agent task management. Researchers studying agent architecture, prompt engineering, and how Anthropic structures tool-use workflows in a production coding agent are the primary audience.
Tools overview
What people ask about claude-code-reverse
What is Yuyz0112/claude-code-reverse?
Yuyz0112/claude-code-reverse is tools for the Claude AI ecosystem. A Tool to Visualize Claude Code's LLM Interactions It has 2.4k GitHub stars and its last recorded update is dated 2025-08-26.
How do I install claude-code-reverse?
You can install claude-code-reverse by cloning the repository (https://github.com/Yuyz0112/claude-code-reverse) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is Yuyz0112/claude-code-reverse safe to use?
Our security agent has analyzed Yuyz0112/claude-code-reverse and assigned a Trust Score of 39/100 (tier: Caution). See the full breakdown of passed checks and flags on this page.
Who maintains Yuyz0112/claude-code-reverse?
Yuyz0112/claude-code-reverse is maintained by Yuyz0112. The last recorded GitHub activity is dated 2025-08-26, with 6 open issues.
Are there alternatives to claude-code-reverse?
Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.