cd /news/ai-tools/i-built-an-open-source-tool-that-rev… · home topics ai-tools article
[ARTICLE · art-17041] src=dev.to pub= topic=ai-tools verified=true sentiment=↑ positive

I built an open-source tool that reverse-engineers any GitHub repo in 10 seconds

A developer built CodeAutopsy, an open-source tool that reverse-engineers any GitHub repository in about 10 seconds by cloning the repo, parsing every file into an Abstract Syntax Tree, and tracing all imports and dependencies. The tool uses a dual-endpoint serverless architecture to avoid timeout limits and streams AI analysis results in real time with a partial JSON repair algorithm. It also includes a blast radius feature that highlights all files affected by changes to a specific file, using BFS traversal on the reverse adjacency list of the dependency graph.

read3 min publishedMay 29, 2026

You know that feeling when you join a new project or want to contribute to an open-source repo, and you spend the first two days just trying to figure out where everything is?

I did. Every single time.

Clone the repo. Open the files. Stare at 47 folders. Wonder which one actually matters. Grep for the entry point. Follow imports down a rabbit hole. Give up and ask someone.

That's not learning. That's just wasted time.

So I built CodeAutopsy.

Paste any GitHub URL. That's it.

CodeAutopsy clones the repo, parses every file into an AST (Abstract Syntax Tree), traces every import and dependency, and gives you:

What used to take days now takes about 10 seconds.

Every developer has been here:

CodeAutopsy solves all three.

The hardest part wasn't the AST parsing — it was keeping it serverless without hitting Vercel's 504 timeout limits, while making the AI analysis feel instant.

The Serverless Timeout Hack: Doing AST extraction, building an adjacency list, and waiting for an LLM to generate a massive response in a single API route was a guaranteed timeout crash. I split it into dual endpoints: a fast extractor for the AST graph, and a separate inference engine triggered by the client that pipes a native Web ReadableStream directly back to the frontend.

Streaming JSON Repair: The LLM streams back a strict JSON object token by token. Normally you'd wait for the complete JSON before showing anything, leaving the user staring at a blank screen. Instead, I wrote a partial JSON repair algorithm that runs on every incoming chunk. It closes open strings, balances braces and brackets, and tries to parse whatever it has so far. The UI updates in real time as the analysis streams in — you can literally watch the architectural summary build itself word by word.

This one I'm genuinely proud of.

When you click a file, CodeAutopsy does a BFS traversal on the reverse adjacency list of the dependency graph. Every file that imports the file you clicked — directly or transitively — lights up red.

So if you're about to refactor auth.ts, you instantly see that 14 other files depend on it. You know the blast radius before you write a single line.

I posted on Reddit. Someone in China found it, tweeted it in Chinese, and it got 7,400 views overnight. 59 people bookmarked it. Someone compared it to DeepWiki and said it looked more advanced.

I found out because my GitHub traffic spiked and I went looking for the source. 66 stars. 262 unique cloners in 14 days. All organic.

I'm a CS student. I built this because I was tired of being lost in codebases. Turns out a lot of other developers feel the same way.

Free to use — no credit card, no setup. New users get 3 instant

analyses, then a free account unlocks 10 per day.

Live App: [codeautopsy-lyart.vercel.app](https://codeautopsy-lyart.vercel.app)

GitHub: [github.com/Sidhant0707/codeautopsy](https://github.com/Sidhant0707/codeautopsy)

Would love feedback — especially on the blast radius algorithm. Currently doing BFS on the reverse adjacency list but I suspect there are smarter approaches for large monorepos. Drop a comment if you have ideas.

── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-an-open-sour…] indexed:0 read:3min 2026-05-29 ·