# Split Your Monorepo Per Path

{% hint style="warning" %}
If you are looking for a clearer overview within Aikido by dividing large repositories into smaller, more manageable parts, we recommend using [this alternative](/getting-started/manage-teams-and-applications/assign-team-responsibilities-by-specific-path-in-repo.md).
{% endhint %}

{% hint style="info" %}
This functionality is **only** available for GitLab (Cloud/On-Prem) and Azure DevOps (Git/TFVC).
{% endhint %}

{% hint style="info" %}
For **TFVC repos**, make sure to first set the specific branch you want to scan on the repo page (the default is 'All Branches')
{% endhint %}

Aikido allows you to split up your large repositories / monorepositories per path, improving the overall management of your security issues.

## Use Case <a href="#use-cases" id="use-cases"></a>

* Giant repos often take a lot of time to scan or can time out. This can improve scanning speed.
* **Not:** If you are looking for a clearer overview within Aikido by dividing large repositories into smaller, more manageable parts. In this case, we recommend using [this alternative](/getting-started/manage-teams-and-applications/assign-team-responsibilities-by-specific-path-in-repo.md).

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* Only available for **Pro Plans**. Contact Aikido in order to enable this functionality.
* You are using **GitLab** or **Azure DevOps**.
* Supports **SCA, SAST,** and **IaC** scans only. Secret scanning is not available for split repositories.

## How to split up your repositories <a href="#how-to-split-up-your-repositories" id="how-to-split-up-your-repositories"></a>

**Step 1:** Go to the repository detail page and add `/split` to the end of its URL in the browser's address bar (e.g., `https://app.aikido.dev/repositories/330080/split`*).* This will direct you to the page allowing you to split your repository.

![Interface for defining split points to divide a repository into subdirectories.](/files/8sKtFk8W7uipn8wWiqIT)

**Step 2:** Enter the split points. These are the paths within your repository that you wish to separate. Input all the paths you want to see as individual entities.\
​\
​

![Repository split points defined as: bad\_sast\_findings, secrets, and autofix.](/files/RaqVx7TMvYWNmdgZznsf)

**Step 3:** Select ***Split repo***. This action deactivates the original repository configuration and divides it into smaller repositories for scanning. You can view all these in the [**repository overview**](https://app.aikido.dev/repositories). All specified paths will be shown with a **tag** next to the original repo name.

![Repository dashboard displaying security scan results and severity for three active repositories.](/files/Q5JP50SY7mxvAxGCriKi)

**Step 4.** Assign different subpaths to different teams. More information on how to set up teams and assign responsibilities can be found [here](https://help.aikido.dev/en/articles/9005606-using-teams-for-repository-and-user-management).

> Notes: You can add new paths at a later stage. You can do this by going again to the base repo from where it was split. Do not add the already existing paths, new ones are sufficient.

***


---

# Agent Instructions: 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:

```
GET https://help.aikido.dev/code-scanning/miscellaneous/split-your-monorepo-per-path.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
