> 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="/files/VlI8YQZpdelbMjbQ7r3z" 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="/files/AkwMTaiVWHtxYDGVk5zH" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
