@@ -52,7 +52,7 @@ diffchunk/
5252``` python
5353def load_diff (
5454 absolute_file_path : str ,
55- max_chunk_lines : int = 4000 ,
55+ max_chunk_lines : int = 1000 ,
5656 skip_trivial : bool = True ,
5757 skip_generated : bool = True ,
5858 include_patterns : str = None ,
@@ -62,7 +62,7 @@ def load_diff(
6262
6363** Parameters:**
6464- `absolute_file_path` : Absolute path to diff file
65- - `max_chunk_lines` : Maximum lines per chunk (default: 4000 )
65+ - `max_chunk_lines` : Maximum lines per chunk (default: 1000 )
6666- `skip_trivial` : Skip whitespace- only changes (default: true)
6767- `skip_generated` : Skip build artifacts, lock files (default: true)
6868- `include_patterns` : Comma- separated file patterns to include
@@ -128,7 +128,7 @@ Diff File → Canonicalize Path → Hash Content → Cache Check → Parse → F
128128### Chunking Strategy
129129
130130- Prefer file boundaries to maintain context
131- - Respect max_chunk_lines limit (default 4000 )
131+ - Respect max_chunk_lines limit (default 1000 )
132132- Track file-to-chunk mapping for navigation
133133- Preserve diff headers and context lines
134134
@@ -204,7 +204,7 @@ get_chunk("/tmp/feature-auth.diff", 1) # First chunk of auth changes
204204### Auto-Loading Defaults
205205
206206When tools auto-load diffs, they use these defaults:
207- - ` max_chunk_lines ` : 4000 (LLM context optimized)
207+ - ` max_chunk_lines ` : 1000 (LLM context optimized)
208208- ` skip_trivial ` : true (skip whitespace-only changes)
209209- ` skip_generated ` : true (skip lock files, build artifacts)
210210- ` include_patterns ` : none (include all files)
0 commit comments