Strip all real code from a file and keep only its comments as a skeleton.
Have an AI model regenerate a working program purely from your comments.
Experiment with how faithfully an LLM can reconstruct logic from natural-language notes alone.
Run whim on its own source file to regenerate a new copy of itself.
| thethumbler/whim-lang | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an OpenRouter API key to call the underlying language model.
Whim is a joke esoteric programming tool built on the idea that the actual code you write does not matter, only the comments do. It takes any source file you give it, deletes every line of real code, and keeps only the comments. Then it hands that stripped down skeleton to an AI language model and asks it to write a brand new program based solely on what the comments say the code should do. The result each time is unpredictable. Sometimes the regenerated program works better than the one you started with, sometimes worse, but it will not be the same code you wrote, since none of your original logic survives the process. The tool works with nearly any programming language, because it relies on a library called Pygments to recognize and strip out code in different languages, keeping only comment text intact. To use it you install a Python package manager called uv, set up an API key from a service called OpenRouter that gives access to various AI models, and then run the tool on any file, whether that file is written in Python, Go, Rust, or JavaScript. Whim sends the AI a version of your file with all the actual code blanked out and only the comments left in place, then saves whatever new program the AI writes back. As a demonstration of its own idea, whim's own source file is written so that every function is fully described in its comments, meaning you can run whim on its own main file and it will regenerate a new, working copy of itself purely from those comments, with no guarantee it matches the original. The project openly describes itself as entirely vibe coded, meaning built quickly and loosely with AI assistance rather than carefully engineered, and it comes with no guarantees about correctness. It is meant as a playful experiment about the idea that comments, not code, are what really describe a program.
A joke esoteric tool that deletes all your code, keeps only the comments, and has an AI rewrite the program from scratch based on what the comments say.
Mainly Python. The stack also includes Python, uv, OpenRouter.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.