Reverse engineer LLM agent interactions
Top 38.6% on SourcePulse
This repository provides tools and analysis for reverse-engineering Claude Code's LLM interactions, targeting developers and researchers interested in understanding its architecture and agent workflows. It offers a visualization tool to explore API request/response logs, enabling detailed study of Claude Code's behavior across various task scenarios.
How It Works
The v2 approach focuses on runtime behavior and API data, achieved by monkey-patching the beta.messages.create
method within Claude Code's bundled Anthropic TS SDK. This modification intercepts and logs all LLM API requests and responses. A companion log parsing and visualization tool (parser.js
and visualize.html
) then processes these logs to reconstruct and display conversational flows, highlighting common prompts and tool definitions.
Quick Start & Requirements
cli.js
file of an existing Claude Code installation.js-beautify
for code formatting, Node.js environment for Claude Code.Highlighted Details
prompts/
and tools/
directories.Maintenance & Community
The project appears to be a personal effort by Yuyz0112, with no explicit mention of a broader community, ongoing maintenance schedule, or partnerships.
Licensing & Compatibility
The README does not specify a license. The project's nature involves reverse-engineering proprietary software, which may have legal implications depending on Anthropic's terms of service.
Limitations & Caveats
This method relies on modifying installed files of Claude Code, which could be brittle against updates. The project is presented as an experimental analysis tool rather than a robust reverse-engineering framework.
2 weeks ago
Inactive