You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -516,7 +516,10 @@ Zero-config by default (uses `auto` mode). Customize in `.opencode/codebase-inde
516
516
"autoGc": true, // Auto garbage collection
517
517
"gcIntervalDays": 7, // GC interval (days)
518
518
"gcOrphanThreshold": 100, // GC trigger threshold
519
-
"requireProjectMarker": true// Require .git/package.json to index
519
+
"requireProjectMarker": true, // Require .git/package.json to index
520
+
"maxDepth": 5, // Max directory depth (-1=unlimited, 0=root only)
521
+
"maxFilesPerDirectory": 100, // Max files per directory (smallest first)
522
+
"fallbackToTextOnMaxChunks": true// Fallback to text chunking on maxChunksPerFile
520
523
},
521
524
522
525
// === Search ===
@@ -590,6 +593,9 @@ String values in `codebase-index.json` can reference environment variables with
590
593
|`gcIntervalDays`|`7`| Run GC on initialization if last GC was more than N days ago |
591
594
|`gcOrphanThreshold`|`100`| Run GC after indexing if orphan count exceeds this threshold |
592
595
|`requireProjectMarker`|`true`| Require a project marker (`.git`, `package.json`, etc.) to enable file watching and auto-indexing. Prevents accidentally indexing large directories like home. Set to `false` to index any directory. |
596
+
|`maxDepth`|`5`| Max directory traversal depth. `-1` = unlimited, `0` = only files in root dir, `1` = one level of subdirectories, etc. |
597
+
|`maxFilesPerDirectory`|`100`| Max files to index per directory. Always picks the smallest files first. |
598
+
|`fallbackToTextOnMaxChunks`|`true`| When a file exceeds `maxChunksPerFile`, fallback to text-based (line-by-line) chunking instead of skipping the rest of the file. |
593
599
|**search**|||
594
600
|`maxResults`|`20`| Maximum results to return |
595
601
|`minScore`|`0.1`| Minimum similarity score (0-1). Lower = more results |
0 commit comments