AI Code Prep Tool
power-user code chunker
1
Input
Paste
Clear
2
Configure
Remove line comments
Removes // comments
Remove block comments
Removes /* … */ blocks
Smart minify
Collapses extra spaces/tabs
Smart Mode
Auto-detect language & best settings
Detect datasets
Finds and trims large arrays
Keep N items
Keep first item only
Overrides keep N
Explain trimming
Adds /* Trimmed N items */ comment
Trim sets only
Keep full content of each kept set
AI instructions
Adds paste instructions around chunks
Mode
Strict
Debug
Diff
Advanced Pre-process (AST Mode)
optional
1
Pre-parse file
Analyse code structure before processing
2
Include in output
Functions
Variables
Imports
Classes
Comments
Datasets / Arrays
Chunk size
Process ▶
✕ Cancel
Worker
Export TXT
Export JSON
Export ZIP
Ready
Copy All
Collapse All
Expand All
Before/After
Generate Diff
⬆ Top