> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/deep-review/link-repositories.md).

# Linked Repositories

Link related repositories when Deep Review needs context that lives outside the pull request's repository. This is useful when your services, shared libraries, or APIs are split across repositories.

{% stepper %}
{% step %}

### Open the repository

Open [**Repositories**](https://app.aikido.dev/repositories) and select the repository you want to configure.
{% endstep %}

{% step %}

### Open the Deep Review settings

Open **Repository Settings**, find the **Deep PR Review** card, and click **"Edit"** next to **Linked Repositories**.
{% endstep %}

{% step %}

### Add a repository

In the **Linked Repositories** dialog, click **"Link Repository"**.

<div data-with-frame="true"><figure><img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-06ae8cf5d2f8a88ed01f5eb882d9d1d6890cb673%2Fdeep-review-linked-repositories.png?alt=media" alt="Linked Repositories dialog listing one linked repository and a Link Repository button."><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Select the repository and add context

Search for the repository Deep Review should use as additional context. Optionally use the **Instruction** field to explain how the repository is related, for example that it holds the backend API your frontend calls. Then click **"Link Repository"**.

<div data-with-frame="true"><figure><img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-6ab1f70f7e2d654a0a29ee2def153fe2d1976082%2Fdeep-review-link-repository.png?alt=media" alt="Link Repository dialog with a repository search field and an optional instruction field."><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

Each repository can link the following number of repositories, depending on your Aikido plan:

| Plan       | Linked repositories per repository |
| ---------- | ---------------------------------- |
| Developer  | 0                                  |
| Basic      | 1                                  |
| Pro        | 1                                  |
| Advanced   | 5                                  |
| Enterprise | 10                                 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/deep-review/link-repositories.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
