Show HN: Decompile and deminify Bun using an LLM

https://www.npmjs.com/package/@shepherdjerred/bun-decompile
I'm working on a tool that wraps Claude Code. In the process, I wanted to know some implementation details of the Claude Code CLI.

Claude Code is just a Bun CLI app, so I figured it could be decompiled.

This program will:

1. Decompile a Bun app

2. For each minified method, it will call an LLM (OpenAI, Anthropic, etc.) with the method and some context

3. The LLM will reply with suggested names for methods/variables/etc

4. Babel will apply those renames in a deterministic manner, so that functionality cannot be broken

Comments