@@ -46,6 +46,46 @@ code2llm ./ -f all --max-memory 500
4646code2llm ./ -f all --no-png
4747```
4848
49+ ### Large Repository Analysis (Chunking)
50+ For repositories >100 files, automatic chunking splits analysis into smaller subprojects:
51+
52+ ``` bash
53+ # Auto-chunking when >100 files detected
54+ code2llm ./ -f toon,evolution,code2logic --verbose
55+
56+ # Force chunking with custom size limit
57+ code2llm ./ -f toon --chunk --chunk-size 256
58+
59+ # Analyze only specific subproject
60+ code2llm ./ -f toon --only-subproject src
61+
62+ # Skip tests and examples
63+ code2llm ./ -f toon --skip-subprojects tests examples
64+
65+ # Customize file limit per chunk
66+ code2llm ./ -f toon --chunk --max-files-per-chunk 50
67+ ```
68+
69+ ** Chunking Benefits:**
70+ - Each subproject analyzed separately (examples/, tests/, src/, etc.)
71+ - Output limited to ~ 256KB per file (configurable)
72+ - Parallel processing of chunks possible
73+ - Reduced memory usage for large repos
74+
75+ ** Output Structure:**
76+ ```
77+ ./project/
78+ ├── src/ # Core code analysis
79+ │ ├── analysis.toon
80+ │ └── evolution.toon
81+ ├── tests/ # Test code analysis
82+ │ └── analysis.toon
83+ ├── examples/ # Examples analysis
84+ │ └── analysis.toon
85+ ├── analysis.toon # Merged summary
86+ └── evolution.toon # Full refactoring queue
87+ ```
88+
4989### Refactoring Focus
5090``` bash
5191# Get refactoring recommendations
0 commit comments