Learn how to manage and optimize codebase indexing for better AI assistance
When you open a project in Alex Sidebar, it automatically analyzes and indexes your code files to better understand your codebase.Think of this like creating a smart map of your code - Alex reads through each file and then can utilize this information to provide more accurate and relevant suggestions when going through your queries.
Building on top of basic indexing, Alex now automatically parses your Swift project and constructs a “Code Map” for the files you are chatting about. This means Alex has an understanding of how files interact with each other, resulting in better code generation.When you start a chat, Alex:
Analyzes file dependencies and imports
Maps class and type relationships
Understands protocol conformances
Tracks function calls between files
This deeper understanding helps Alex:
Generate more accurate code suggestions
Provide better refactoring recommendations
Maintain consistency across related files
Respect your project’s architecture
Code Maps are enabled by default for all chats, so you don’t need to do anything extra to get these benefits!