Syntax
Arguments
Optional project name to reindex. If omitted, reindexes the current project.
Options
Reindex all projects instead of just one.
Generate LLM summaries for files during indexing.Note: This will incur API costs based on codebase size.
Behavior
Block-Based Indexing
The reindex command uses intelligent block-based indexing that:- Parses files into semantic blocks (functions, classes, sections)
- Extracts metadata (titles, line numbers, types)
- Creates searchable embeddings for each block
- Preserves code structure and context
Summarization
When--summarize is used:
- Generates AI summaries for each file
- Creates an overall project summary
- Stores summaries for use in search results
- Improves context for AI queries
Examples
Reindex current project
Reindex with summaries
Reindex specific project
Reindex specific project with summaries
Reindex all projects
Reindex all projects with summaries
When to Reindex
Reindex your project when:- You’ve added new files
- Code has been significantly modified
- Search results seem outdated
- You want to add summaries to an existing project
- Switching from legacy to block-based indexing
Output
Shows:- Indexing progress
- Number of files processed
- Success/error status
- Summary generation status (if enabled)
Environment Variables
Required when using
--summarize flag.Performance Notes
- Block-based indexing is more thorough than legacy indexing
- Summarization significantly increases processing time
- Large codebases may take several minutes to index
- Progress is shown during the indexing process
Related Commands
- adist init - Initialize a new project (includes initial indexing)
- adist summary - View generated summaries
- adist get - Search indexed content