Skip to content

Repositories

Repositories lists every codebase Aegis recognises. When a developer runs aegis init, Aegis matches their checkout to a registered repository by its git address. A repository that isn't registered here gets none of the repository, team, role or personal rules.

Collaborators can see the list. Changing it, or importing files, needs editor on that repository.

Registering a repository

Choose + Add repository and fill in:

  • Remote URL: the address developers clone from, in any form git accepts, such as https://github.com/acme/app.git or git@github.com:acme/app.git. Every form of one address matches the same repository.
  • Name: what the repository is called in Aegis, in lowercase letters, numbers and dashes. Leave it empty and Aegis makes one from the URL: acme/app becomes acme-app.
  • Access: how Aegis can read the repository to import files from it. See Access. You can leave this as None; developers receive their rules either way.

If the same codebase lives at a second address, such as a mirror or a fork on another host, register that address under the same name.

Bringing in a repository's existing files

If a repository already has context and configuration committed, such as a CLAUDE.md or .claude/settings.json, there are three ways to get them into Aegis:

  1. Ask your AI assistant. With the Aegis MCP server, it brings the files in and sorts them into the right layers: what everyone in the repository needs, what only one role needs, and what's already said elsewhere. See the example.
  2. Import them. Give Aegis read access to the repository and it copies the files in. This is quicker when there's more than a file or two. See Importing files from a repository.
  3. Add them by hand. Open the repository on Context & Config and paste each file into the matching part: CLAUDE.md into Instructions, .claude/settings.json into Settings and permissions, .mcp.json into MCP servers, and each skill or agent as a new one. Use this when Aegis can't reach your git host, or when you only want some of a file.

An import or a by-hand copy goes into the repository's own layer. Developers get the files on their next sync.

Once the files are in Aegis, the copies committed to the repository are no longer needed. When a developer runs aegis init or aegis sync in the repository, the CLI lists the delivered files that git still tracks and asks whether to stop tracking them. One developer answering yes and committing the result is enough for everyone.

Importing files from a repository

When Aegis can read a repository, it looks for these files on the default branch:

In the repository Becomes
CLAUDE.md the repository's instructions
.claude/skills/<name>/SKILL.md a skill
.claude/agents/<name>.md an agent
.claude/settings.json the repository's settings and permissions
.mcp.json the repository's MCP servers

Imported files go to the repository's own layer, which every role working in it receives. You can move one to a role afterwards. Aegis ignores everything else in the repository.

Right after you register a repository, Aegis reads it in the background. If it finds files, a notice appears at the top of the page, such as acme-app has 3 files Aegis can import. Choose Review import to see them. If Aegis can't read the repository, the notice says why, and Set up access lets you give it a token or a deploy key.

You can import again at any time with Import on the repository's row, for example after the files in the repository have changed.

The import dialog lists each file Aegis found and what will happen to it:

  • New: it will be imported.
  • Replace the copy in Aegis: Aegis already has this file. It's left alone unless you tick the box.
  • Not imported: it's left out, with the reason. The other files are still imported.

Choose Import N files to go ahead. The import is saved as one change under your name, and appears in Activity. Developers get the files on their next sync.

Files arrive as they are, with one exception. A line in a CLAUDE.md that pulls in another file, such as @docs/style.md, is replaced by that file's contents, one level deep.

If the repository changes between opening the dialog and importing, nothing is imported. Choose Scan again to see the new version.

Access

Aegis only reads a repository to import from it. Choose one of:

  • None: the repository is public.
  • HTTPS token: a read-only access token or deploy token from your git host. Aegis stores it encrypted and never shows it again. When you edit access later, leave the field empty to keep the saved token.
  • SSH deploy key: Aegis creates a key pair and shows you the public key. Add it to the repository as a read-only deploy key, then choose Check for files. The private key never leaves Aegis.

Aegis reads from the repository's clone URL. It starts as the address you registered, and you can change it with Edit access in the repository's details, for example to use an https:// address with a token. It has to point at the same repository. A deploy key needs an SSH address (git@host:path or ssh://), and a token needs an https:// one.

Your git host has to be reachable from the internet, or through your organisation's connector if it's on a private network.

Access settings are included in backups.

A repository's details

Select a row to see its details:

  • Edit context & config, which opens the repository's instructions, skills, agents, settings and MCP servers
  • the remote: the clone URL when one is set, otherwise the address developers' checkouts are matched against
  • the last import: when, and from which commit, with Import now
  • access: Public, Private with its method, or Not checked yet before the first import, with Set up access or Edit access

Below these are the roles set up specially for this repository and the files each one has. Each role row can show what that role receives in this repository.

On a repository's page, the roles are listed under its name. Choose everyone for what the whole repository receives, or a role for what only that role receives there.

Removing a repository

Open the ⋯ menu on the row and choose Remove. This removes one address. When a repository's last address goes, any permission levels granted on it are removed too. Its files stay in Aegis, and registering it again brings them back.