Skip to content

Context & Config

Context & Config is where you write the rules developers receive. It has two tabs: By scope, where you write and organise rules, and All files, which lists every file in one tree.

By scope has a section for each layer Aegis stacks:

Section Who receives it What it can hold
Global Everyone Instructions, skills, agents, settings, MCP servers
Teams Members of the team Instructions
Roles People with that role Instructions, skills, agents, settings, MCP servers
Roles in repositories People with that role, in that repository Instructions, skills, agents, settings, MCP servers
Users One person Instructions

A repository's own rules are edited from Repositories.

Adding a team or role

+ Add team and + Add role each ask for a name, such as backend or backend-eng. Names use lowercase letters, numbers and dashes. You then assign people to them on Users.

+ Add role in a repository picks a role and a repository. Use it when a role needs something different in one codebase, such as letting backend-eng run database migrations only in payments-api.

Editing rules

Select an entry to open it. The page is split into two parts.

Instructions, skills & agents:

  • Instructions: Markdown text that becomes part of the developer's CLAUDE.md.
  • Skills: procedures Claude Code can follow, such as "how we write a database migration". A skill is a folder holding a SKILL.md and any scripts or notes it needs.
  • Agents: specialised helpers Claude Code can hand a task to, such as a code reviewer.

Settings & tools:

  • Settings and permissions: Claude Code's settings.json, for example which commands it may run without asking.
  • MCP servers: tools Claude Code can connect to, such as a database or an issue tracker.

Press Save to keep a change. Each save is recorded in Activity under your name. Developers get it on their next sync.

If someone else saves the same file while you're editing it, Aegis keeps their version and shows you both. You can carry on editing, or choose Discard mine & reload.

The Aegis MCP server can write these for you. Tell your AI assistant what you want and it picks the layer, checks what's already there, and keeps each file short.

To put a value such as a URL or a token into a file without writing it out, use a variable, for example {{ aegis.STAGING_URL }}.

When layers disagree

Instructions, skills and agents add up: a developer gets the global ones, their teams', their role's and so on, together. If two layers have a skill or agent with the same name, the more specific one is delivered: a repository's beats a role's, and a role-in-repository's beats both.

Settings are combined in this order: global, then role, then repository, then role in repository. Each layer changes only what it mentions, and a later layer wins. So a repository can allow a command the global settings deny, or deny one they allow.

MCP servers from every layer are available together. If two layers define a server with the same name, the more specific one is used.

To see the combined result for one person, preview what they receive.

An example

Acme wants every backend developer to run the tests before a commit:

  1. Open Context & Config, then Teams, then backend.
  2. Under Instructions, add: Run "make test" before every commit.
  3. Press Save.

After their next sync, every member of backend has that line in their CLAUDE.md. To check, open a member on Users and look at what they receive.