Create a semantic index of your codebase for AI context.
Scan and analyze your project structure to create a codebase index that helps AI agents understand your architecture.
locus index
Scans your project directory structure
Analyzes file and folder organization
Uses AI to summarize large directories
Saves the index to .locus/codebase-index.json
.locus/codebase-index.json
The index is included in agent context during locus run and locus exec, helping agents navigate and understand your codebase before making changes.
locus run
locus exec
--dir <PATH>
Project directory
Current directory
--model <MODEL>
AI model for summarization
From config
--provider <PROVIDER>
AI provider
Re-run locus index when:
You've made significant structural changes (new folders, reorganized files)
You've added major new components or modules
Agents seem confused about where things are in your project
You don't need to re-index for every change. The index captures the high-level structure, not individual file contents.
Last updated 33 minutes ago