AI-powered tool to transform any code repository into easy-to-understand interactive documentation | 通过 AI 将任何代码仓库转换为通俗易懂的交互式文档
HTML
30
55 commits
updated Dec 20, 2025

Transform any code repository into easy-to-understand interactive documentation through Git history and AI analysis.
🌐 Project Website | ⚡ flash-linear-attention Demo | 📖 verl Demo | 🔥 Megatron-LM Demo | 🦙 LLaMA-Factory Demo | ✏️ EasyEdit Demo | 🚀 nano-vllm Demo | 🎯 mini-sglang Demo
English | 简体中文
A toolchain for deeply understanding code repositories. It analyzes Git history, uses AI to interpret code, generates hierarchical documentation, and creates an interactive website that helps you easily understand any complex codebase.
understand-everything/
├── scripts/ # Core scripts (named by execution order)
│ ├── s0_find_snapshots.py # Find curriculum learning snapshots
│ ├── s1_curriculum_pipeline.py # Curriculum learning pipeline
│ ├── s2_explain_files.py # AI interprets code files
│ ├── s3_generate_readme.py # Generate hierarchical READMEs
│ └── s4_website.py # Generate interactive website
├── utils/ # Utility scripts
│ ├── s0_add_timestamps.py # Add timestamps
│ ├── s1_repo_heatmap_tree.py # Generate repo structure heatmap
│ ├── s2_analyze_stats.py # Analyze statistics
│ └── utils.py # Common utility functions
├── repo/ # Repositories to analyze (.gitignore ignored)
├── output/ # All generated output (.gitignore ignored)
│ └── <repo_name>/
│ ├── explain/ # AI interpretation markdown
│ └── website/ # Static website
└── pyproject.toml # Project configuration
# Create virtual environment
uv venv --seed .venv --python 3.12
source .venv/bin/activate
uv pip install -e .
Set environment variables (for Gemini API):
export OPENAI_API_KEY="your-api-key"
export OPENAI_BASE_URL="your-openai-base-url"
Assuming you want to analyze repo/your-project:
# Step 1: AI interprets files (generates explanations)
python scripts/s2_explain_files.py repo/your-project --workers 8 --percent 100
# Step 2: Generate hierarchical READMEs (bottom-up summarization)
python scripts/s3_generate_readme.py repo/your-project
# Step 3: Generate interactive website (final output)
python scripts/s4_website.py repo/your-project
Optional utility scripts:
# Generate repo heatmap (visualize modification frequency)
python utils/s1_repo_heatmap_tree.py repo/your-project
# Analyze statistics (understand code scale)
python utils/s2_analyze_stats.py repo/your-project
Start a local server to view the website:
cd output/your-project/website-<date>
python -m http.server 8000
# Open http://localhost:8000 in browser
Function: Use Gemini 3 Pro Preview to generate easy-to-understand explanations for each file
Features:
--workers N to set concurrency (default 16)--top N or --percent N to select files to interpret--force to regenerate)tqdm to show real-time progress barUsage:
python scripts/s2_explain_files.py <repo_path> [options]
# Interpret all files with 8 workers
python scripts/s2_explain_files.py repo/your-project --workers 8 --percent 100
# Interpret top 50% of files
python scripts/s2_explain_files.py repo/your-project --percent 50
# Force regenerate
python scripts/s2_explain_files.py repo/your-project --percent 100 --force
Output: output/<repo_name>/explain-<date>/*.md
Function: Recursively generate summary READMEs for each folder (bottom-up)
Features:
Usage:
python scripts/s3_generate_readme.py <repo_path> [options]
# Example
python scripts/s3_generate_readme.py repo/your-project
# Force regenerate
python scripts/s3_generate_readme.py repo/your-project --force
Output: Generates README.md in each folder of the interpretation directory
Function: Generate Read the Docs style static website
Features:
Usage:
python scripts/s4_website.py <repo_path> [options]
# Example
python scripts/s4_website.py repo/your-project
Output:
output/<repo_name>/website/index.htmloutput/<repo_name>/website/styles.cssoutput/<repo_name>/website/app.jsoutput/<repo_name>/website/sources/ - Source codeoutput/<repo_name>/website/explanations/ - Interpretations (HTML)Successfully analyzed open source projects:
MIT License
55 commits
HTML
49.2%
Python
37.5%
Jupyter Notebook
10.7%
Shell
1.7%
AI-powered tool to transform any code repository into easy-to-understand interactive documentation | 通过 AI 将任何代码仓库转换为通俗易懂的交互式文档
HTML
30
55 commits
updated Dec 20, 2025

Transform any code repository into easy-to-understand interactive documentation through Git history and AI analysis.
🌐 Project Website | ⚡ flash-linear-attention Demo | 📖 verl Demo | 🔥 Megatron-LM Demo | 🦙 LLaMA-Factory Demo | ✏️ EasyEdit Demo | 🚀 nano-vllm Demo | 🎯 mini-sglang Demo
English | 简体中文
A toolchain for deeply understanding code repositories. It analyzes Git history, uses AI to interpret code, generates hierarchical documentation, and creates an interactive website that helps you easily understand any complex codebase.
understand-everything/
├── scripts/ # Core scripts (named by execution order)
│ ├── s0_find_snapshots.py # Find curriculum learning snapshots
│ ├── s1_curriculum_pipeline.py # Curriculum learning pipeline
│ ├── s2_explain_files.py # AI interprets code files
│ ├── s3_generate_readme.py # Generate hierarchical READMEs
│ └── s4_website.py # Generate interactive website
├── utils/ # Utility scripts
│ ├── s0_add_timestamps.py # Add timestamps
│ ├── s1_repo_heatmap_tree.py # Generate repo structure heatmap
│ ├── s2_analyze_stats.py # Analyze statistics
│ └── utils.py # Common utility functions
├── repo/ # Repositories to analyze (.gitignore ignored)
├── output/ # All generated output (.gitignore ignored)
│ └── <repo_name>/
│ ├── explain/ # AI interpretation markdown
│ └── website/ # Static website
└── pyproject.toml # Project configuration
# Create virtual environment
uv venv --seed .venv --python 3.12
source .venv/bin/activate
uv pip install -e .
Set environment variables (for Gemini API):
export OPENAI_API_KEY="your-api-key"
export OPENAI_BASE_URL="your-openai-base-url"
Assuming you want to analyze repo/your-project:
# Step 1: AI interprets files (generates explanations)
python scripts/s2_explain_files.py repo/your-project --workers 8 --percent 100
# Step 2: Generate hierarchical READMEs (bottom-up summarization)
python scripts/s3_generate_readme.py repo/your-project
# Step 3: Generate interactive website (final output)
python scripts/s4_website.py repo/your-project
Optional utility scripts:
# Generate repo heatmap (visualize modification frequency)
python utils/s1_repo_heatmap_tree.py repo/your-project
# Analyze statistics (understand code scale)
python utils/s2_analyze_stats.py repo/your-project
Start a local server to view the website:
cd output/your-project/website-<date>
python -m http.server 8000
# Open http://localhost:8000 in browser
Function: Use Gemini 3 Pro Preview to generate easy-to-understand explanations for each file
Features:
--workers N to set concurrency (default 16)--top N or --percent N to select files to interpret--force to regenerate)tqdm to show real-time progress barUsage:
python scripts/s2_explain_files.py <repo_path> [options]
# Interpret all files with 8 workers
python scripts/s2_explain_files.py repo/your-project --workers 8 --percent 100
# Interpret top 50% of files
python scripts/s2_explain_files.py repo/your-project --percent 50
# Force regenerate
python scripts/s2_explain_files.py repo/your-project --percent 100 --force
Output: output/<repo_name>/explain-<date>/*.md
Function: Recursively generate summary READMEs for each folder (bottom-up)
Features:
Usage:
python scripts/s3_generate_readme.py <repo_path> [options]
# Example
python scripts/s3_generate_readme.py repo/your-project
# Force regenerate
python scripts/s3_generate_readme.py repo/your-project --force
Output: Generates README.md in each folder of the interpretation directory
Function: Generate Read the Docs style static website
Features:
Usage:
python scripts/s4_website.py <repo_path> [options]
# Example
python scripts/s4_website.py repo/your-project
Output:
output/<repo_name>/website/index.htmloutput/<repo_name>/website/styles.cssoutput/<repo_name>/website/app.jsoutput/<repo_name>/website/sources/ - Source codeoutput/<repo_name>/website/explanations/ - Interpretations (HTML)Successfully analyzed open source projects:
MIT License
55 commits
HTML
49.2%
Python
37.5%
Jupyter Notebook
10.7%
Shell
1.7%