Skip to main content
Original: Geoffrey Huntley · 01/03/2025

Summary

These LLMs are shockingly good at deobfuscation, transpilation and structure to structure conversions. These LLMs are shockingly good at deobfuscation, transpilation and structure to structure conversions. I discovered this back around Christmas where I asked an LLM to make me an Haskell audio library by transpiling a rust implementation.

Key Insights

“These LLMs are shockingly good at deobfuscation, transpilation and structure to structure conversions.” — Discussing the capabilities of LLMs in code conversion tasks.
“I’m not going to bury the lede, so let’s dig right into the real reason why you clicked on this post, here’s the source code…” — Introducing the main focus of the article, which is the sharing of Claude Code’s source code.

Topics


Full Article

# Yes, Claude Code can decompile itself. Here's the source code.
Author: Geoffrey Huntley
Published: 2025-03-01
Source: https://ghuntley.com/tradecraft/

These LLMs are shockingly good at deobfuscation, transpilation and structure to structure conversions. I discovered this back around Christmas where I asked an LLM to make me an Haskell audio library by transpiling a rust implementation.
An “oh fuck” moment in time Over the Christmas break I’ve been critically looking at my own software development loop, learning a new programming language and re-learning a language I haven’t professionally used in over seven ye… — Geoffrey Huntley
and here’s me using the technique (bellow) to convert an application to a z/80 spectrum tape
Can a LLM convert C, to ASM to specs and then to a working Z/80 Speccy tape? Yes. Damien Guard nerd sniped me and and other folks wanted more proof that it is now cheap, easy and possible to cheaply rewrite software or clone existing “source available” businesses (see bottom of the… — Geoffrey Huntley
I’m not going to bury the lede, so let’s dig right into the real reason why you clicked on this post, here’s the source code…
GitHub - ghuntley/claude-code-source-code-transpilation: This is a cleanroom transpilation of the official Claude Code npm package. This is a cleanroom transpilation of the official Claude Code npm package. - ghuntley/claude-code-source-code-transpilation — GitHub
What follows in this post is how you can do it yourself and a special surprise insight at the bottom…

Key Takeaways

Notable Quotes

These LLMs are shockingly good at deobfuscation, transpilation and structure to structure conversions.
Context: Discussing the capabilities of LLMs in code conversion tasks.
I’m not going to bury the lede, so let’s dig right into the real reason why you clicked on this post, here’s the source code…
Context: Introducing the main focus of the article, which is the sharing of Claude Code’s source code.
  • [[topics/claude-code]]
  • [[topics/open-source]]
  • [[topics/llms]]
  • [[topics/transpilation]]

Can a LLM convert C, to ASM to specs and then to a working Z/80 Speccy tape? Yes.

Geoffrey Huntley · explanation · 78% similar

Building a C compiler with a team of parallel Claudes

Anthropic Engineering · explanation · 71% similar

i ran Claude in a loop for three months, and it created a genz programming language called cursed

Geoffrey Huntley · explanation · 71% similar

Originally published at https://ghuntley.com/tradecraft/.