Skip to content

Commit babccb8

Browse files
jgravelleclaude
andcommitted
feat: default incremental=True for index_folder and index_repo
Full re-index on every call is wasteful for active development. Incremental mode uses SHA-256 content hashing and safely falls back to a full index when no existing index is found. Closes #33. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7a397f3 commit babccb8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/jcodemunch_mcp/tools/index_folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def index_folder(
230230
storage_path: Optional[str] = None,
231231
extra_ignore_patterns: Optional[list[str]] = None,
232232
follow_symlinks: bool = False,
233-
incremental: bool = False,
233+
incremental: bool = True,
234234
) -> dict:
235235
"""Index a local folder containing source code.
236236

src/jcodemunch_mcp/tools/index_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ async def index_repo(
211211
use_ai_summaries: bool = True,
212212
github_token: Optional[str] = None,
213213
storage_path: Optional[str] = None,
214-
incremental: bool = False,
214+
incremental: bool = True,
215215
) -> dict:
216216
"""Index a GitHub repository.
217217

0 commit comments

Comments
 (0)