Skip to main content
A repository keeps OuterLayer’s own files in .outerlayer/. Its agent instructions, skills and MCP servers are outside that folder. See Set up agent instructions and skills.

Who reads what

A change to a judge file takes effect when it merges to the base branch. A push to a feature branch changes nothing.

config.json

The gateway reads agent and model from the default branch when it records a build request. A change on another branch changes nothing. A model id has 1 to 100 characters. It starts with a letter or digit, and holds only letters, digits, ., _, -, :, / and @. A value that builds cannot use refuses the build request, and the message names .outerlayer/config.json and the value. A file that is not a JSON object, or that is larger than 65536 bytes, also refuses it. A file that GitHub cannot give the gateway for now refuses it too, for example during a rate limit or an outage. Send the request again later. A file that GitHub does not let the OuterLayer GitHub App read counts as no file. See Choose the agent and the model.

The judges folder

Write a judge describes the format of a file in judges/. Judges and the merge gate says how the judges make the verdict. OuterLayer does not read policy.yaml. A repository that still has the file gets no error. Whether a flagged verdict blocks the merge is a factory setting: see The OuterLayer evidence check.

setup.sh

See Prepare builds with a setup script.

setup-root.sh

A container build and a sandbox build run this script as root before any step of the build. The runner reads it from the repository’s default branch. A microVM build does not run it. See Install system packages with a root setup script.

commands/

Each Markdown file is a slash command. outerlayer context emit compiles it for Claude Code: Claude Code gets the file as written, frontmatter included. The opencode and codex targets get no slash commands.

What each target gets

In the AGENTS.md layout, outerlayer context emit writes only slash commands. A repository in the earlier layout keeps its instructions in .outerlayer/AGENTS.md, its skills in .outerlayer/skills/ and its MCP servers in .outerlayer/mcp.json. There, emit also writes these files: emit writes AGENTS.md whatever the targets are. To move such a repository to the AGENTS.md layout, see Move a repository to this layout.

Governed repositories

A governed repository gets its judges from the control plane. OuterLayer still reads setup.sh from the governed repository itself. See Share instructions across repositories.