> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Index a Repository

> Index your repositories from the DeepWiki settings page so Devin can power Ask Devin and DeepWiki with an up-to-date understanding of your code.

Indexing your repositories allows Devin to understand your codebase and enables powerful features like [Ask Devin](/work-with-devin/ask-devin) and [DeepWiki](/work-with-devin/deepwiki). This quick guide walks you through the indexing process.

<Info>
  Repository indexing is separate from [environment configuration](/onboard-devin/environment). Indexing enables code search and understanding features, while environment configuration sets up Devin's development environment.
</Info>

## Index Your Repository

<Note>
  Repositories you add to [Devin's environment](/onboard-devin/environment), during onboarding or by creating a blueprint for them, are indexed automatically. Follow the steps below to index a repository that is connected but not part of your environment, or to index additional branches.
</Note>

1. Go to [app.devin.ai](https://app.devin.ai) and ensure you're logged into your organization
2. Click on **Settings** in the sidebar to access your organization settings
3. Select **DeepWiki** and scroll to the **Repositories** section, which lists the repositories your organization has already indexed
4. Click **Add**

<Frame>
  <img src="https://mintcdn.com/cognitionai/q6UtfWkPOjxD5XwB/images/quickstart/Org-Repositories-List.png?fit=max&auto=format&n=q6UtfWkPOjxD5XwB&q=85&s=93b8143498cea43d50c954cf19eea73d" alt="DeepWiki Repositories section with the Add button" width="1432" height="560" data-path="images/quickstart/Org-Repositories-List.png" />
</Frame>

5. In the **Add repositories** dialog, check every repository you want Devin to index, then click **Add repositories**

<Frame>
  <img src="https://mintcdn.com/cognitionai/q6UtfWkPOjxD5XwB/images/quickstart/Index-Branch.png?fit=max&auto=format&n=q6UtfWkPOjxD5XwB&q=85&s=6ad4f2fb7be59ca959667723d149be64" alt="Add repositories dialog with multiple repositories selected" width="1040" height="1200" data-path="images/quickstart/Index-Branch.png" />
</Frame>

6. Wait for indexing to complete — newly added repositories show **Indexing…** until they're ready, which may take a few minutes depending on repository size

<Frame>
  <img src="https://mintcdn.com/cognitionai/q6UtfWkPOjxD5XwB/images/quickstart/Index-In-Progress.png?fit=max&auto=format&n=q6UtfWkPOjxD5XwB&q=85&s=c1c2b183f079ced828872604fcd46179" alt="Repositories list showing repositories that are indexing and repositories that are indexed" width="1432" height="808" data-path="images/quickstart/Index-In-Progress.png" />
</Frame>

Devin indexes each repository's default branch. To index additional branches, click a repository in the list to open its **Indexed branches** page, then use the **Add branch** dropdown to pick a branch.

<Frame>
  <img src="https://mintcdn.com/cognitionai/q6UtfWkPOjxD5XwB/images/quickstart/Index-Manage-Branches.png?fit=max&auto=format&n=q6UtfWkPOjxD5XwB&q=85&s=ae6aae90f5acdcc862a73591487bfd02" alt="Indexed branches page for a repository with the Add branch dropdown" width="1432" height="608" data-path="images/quickstart/Index-Manage-Branches.png" />
</Frame>

Once complete, you'll have access to:

* **[Ask Devin](/work-with-devin/ask-devin)** - Ask questions about your codebase and get detailed, accurate answers powered by advanced code search. You can also use Ask Devin to scope and plan tasks.
* **[DeepWiki](/work-with-devin/deepwiki)** - Explore auto-generated documentation for your repositories

<Tip>
  For best results, index the branches your team actively develops on. This ensures Ask Devin and DeepWiki have the most up-to-date understanding of your code.
</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.