PocketFlow-Tutorial-Codebase-Knowledge
This project is a tutorial built on Pocket Flow, a 100-line LLM framework. It crawls a GitHub repository or a local directory, analyses the whole codebase to identify core abstractions and how they interact, and generates a beginner-friendly tutorial explaining how the code works. The README says it reached the Hacker News front page in April 2025, and an online version, code2tutorial.com, lets you paste a GitHub link with no installation.
To run it yourself you clone the repository, install the Python requirements and set up an LLM client in utils/call_llm.py with your own credentials (the README recommends models with strong thinking capabilities). Then `python main.py --repo <url>` or `--dir <path>` generates the tutorial, with options for GitHub token, output directory, include and exclude patterns, a maximum file size and an output language such as Chinese. The README links example tutorials generated entirely by AI for popular projects including AutoGen Core, Browser Use, Celery, Click, Codex and Crawl4AI. It is MIT licensed.