Code and repositories / Monorepos
Add and remove members
Your team starts work on one more repository, or stops work on one. Add a member to the monorepo at any time, and remove a member that no longer belongs.
2 min read
You can also make an existing repository a monorepo. Use an empty repository, or one that holds only root files, such as an AGENTS.md for the whole monorepo. The monorepo's own files are the root of the checkout, so keep the code in the members.
You need the admin role on the monorepo and on the member.
1. Open the monorepo settings
Open the repository, then Settings, then Monorepo under Code. Only admins see this section.
2. Add the member
- Under Add a member, type the Repository as
owner/name, for exampleacme/web. - Leave Folder empty to use the name of the repository. Type a folder to use another name.
- Click Add member.
The member must follow the rules for members and the rules for folders.
From a terminal, src monorepo member add does the same:
src monorepo member add acme/docs -R acme/platform
src monorepo member add acme/billing --folder pay -R acme/platform
Over REST, send POST /api/v1/repos/acme/platform/members with {"member": "acme/docs"}. Over MCP, the tool is add_monorepo_member.
Done
The member shows in the list, with its folder, its visibility and its default branch. In a checkout, src monorepo sync clones it: see Sync the checkout.
Remove a member
- Open Settings, then Monorepo under Code.
- Click Remove on the member.
- Click Remove member.
From a terminal, run src monorepo member remove acme/docs -R acme/platform.
The repository itself stays as it is. Its folder in existing checkouts stays too. You can add it again.
Note
When a member moves to another owner, it leaves the monorepo. When a member is deleted, it leaves too.