Manifest YAML
OpenLune reads a single YAML document from openlune/manifest.yaml (or the path passed to --manifest). Unknown fields are rejected rather than silently ignored, and all source paths resolve relative to the directory containing the manifest.
Full example
Section titled “Full example”version: "0.1"# commit: [claude-code, codex]
instructions: project: source: instructions.md go-style: source: instructions/go.md paths: ["**/*.go"]
agents: reviewer: name: Code Reviewer description: Review changes for correctness and maintainability. instructions: agents/reviewer.md capabilities: [files.read, files.find, files.search] skills: [release-notes] mcp: [codegraph] clients: claude-code: model: sonnet effort: high copilot: model: claude-sonnet-4.6 effort: high
skills: release-notes: source: skills/release-notes
mcp: codegraph: transport: stdio command: codegraph args: [serve, --mcp] install: tools: - tool: node version: "24.22.3" - tool: npm:@colbymchenry/codegraph version: "1.6.0" initialize: command: codegraph args: [init, --yes]
linear: transport: http url: https://mcp.linear.app/mcpTop-level fields
Section titled “Top-level fields”| Field | Type | Required | Description |
|---|---|---|---|
version |
string | Yes | Manifest format version. Must be "0.1". |
commit |
list of client IDs | No | Clients whose generated files are committed to Git. Omit to keep all generated files local. |
instructions |
map | No | Named repository-wide and path-scoped instruction entries. |
agents |
map | No | Named custom agent definitions. |
skills |
map | No | Named Agent Skills directories. |
mcp |
map | No | Named stdio and http MCP server definitions. |
Common rules
Section titled “Common rules”Resource IDs
Section titled “Resource IDs”Map keys under instructions, agents, skills, and mcp are resource IDs. OpenLune uses them as stable ownership keys and output filenames (for example, .claude/agents/<id>.md).
A valid resource ID must be:
- Non-empty, lowercase UTF-8 with no control characters
- Not
.or.., and not a Windows reserved device name (con,prn,aux,nul,com1–com9,lpt1–lpt9) - Free of
/,\,<,>,:,",|,?,* - Free of trailing dots or trailing spaces
Some clients add stricter naming rules on top (for example, Copilot agent filenames allow only [a-zA-Z0-9_.-]+, and Grok Build skills require ^[a-z0-9]+(?:-[a-z0-9]+)*$ up to 64 characters). Sticking to lowercase letters, digits, and single hyphens (code-reviewer) works everywhere.
Source paths
Section titled “Source paths”Paths in source and instructions resolve relative to the manifest directory (typically openlune/). They must:
- Be relative paths using
/separators (no leading/, no drive letters, no\, no..) - Stay inside the manifest directory (symlinks cannot escape it)
- Point to regular files containing nonblank UTF-8 text without NUL bytes (for instructions and agent prompts), or a directory containing
SKILL.md(for skills)
Client IDs
Section titled “Client IDs”Valid client IDs wherever a client is named (commit and agents.<id>.clients):
copilotclaude-codecodexantigravitygrok-build
version
Section titled “version”version: "0.1"Required string. Must be "0.1" (quoted so YAML does not parse it as a float).
commit
Section titled “commit”commit: [claude-code, codex]Optional list of unique client IDs whose generated files should be committed to Git.
- Omitted: Generated files stay local to each checkout. Local
stdioMCP servers run throughopenlune mcp run. - Non-empty list:
openlune apply(without--client) generates files for every listed client, andopenlune checkfails if any committed file is missing or stale. LocalstdioMCP servers are rendered as plain client entries (install,initialize, andsecret:sources have no effect). - Empty list (
commit: []): Rejected. Omitcommitinstead.
See To commit or not commit? for details.
instructions
Section titled “instructions”A map of <id> to instruction entries.
instructions: project: source: instructions.md frontend: source: instructions/frontend.md paths: ["web/**/*.ts", "web/**/*.tsx"]| Field | Type | Required | Description |
|---|---|---|---|
source |
string | Yes | Relative path to a nonblank UTF-8 Markdown file. Content is copied verbatim. |
paths |
list of strings | No | Non-empty list of glob patterns scoping these instructions to matching files. |
Rules:
- At most one entry may omit
paths; that entry becomes the repository-wide instruction file (CLAUDE.md,.github/copilot-instructions.md, orAGENTS.md). - An empty
paths: []is rejected. Omitpathsfor repository-wide instructions. - Avoid commas inside individual patterns (such as
{ts,tsx}), since Copilot, Grok Build, and Antigravity split patterns on commas.
agents
Section titled “agents”A map of <id> to custom agent definitions.
agents: reviewer: name: Code Reviewer description: Review changes for correctness and maintainability. instructions: agents/reviewer.md capabilities: [files.read, files.find, files.search] skills: [release-notes] mcp: [codegraph] clients: claude-code: model: sonnet effort: high| Field | Type | Required | Description |
|---|---|---|---|
name |
string | No | Native display name in the client. Defaults to <id>. Must be nonblank UTF-8 without NUL and unique across all agents. |
description |
string | Yes | Nonblank description of the agent’s role. |
instructions |
string | Yes | Relative path to a nonblank UTF-8 Markdown file containing the agent’s prompt. |
capabilities |
list of strings | No | Portable tool capabilities. Omit to inherit parent tools; [] requests no built-in tools. |
skills |
list of strings | No | Declared skill IDs the agent may use. Omit for client default; [] requests no skills. |
mcp |
list of strings | No | Declared MCP server IDs the agent may use. Omit for client default; [] requests no MCP servers. |
clients |
map | No | Per-client overrides keyed by client ID. |
Portable capabilities
Section titled “Portable capabilities”Duplicates are rejected. Allowed values:
| Capability | Description |
|---|---|
files.read |
Read file contents |
files.find |
List directories and find files by name/glob |
files.search |
Search file contents |
files.write |
Create and modify files |
web.fetch |
Fetch web URLs |
web.search |
Search the web |
shell.exec |
Execute shell commands |
agents.delegate |
Invoke or delegate to subagents |
agents.<id>.clients.<client-id>
Section titled “agents.<id>.clients.<client-id>”Per-client overrides applied only when rendering for that client:
| Field | Type | Required | Description |
|---|---|---|---|
capabilities |
list of strings | No | Replaces the agent’s top-level capabilities for this client. |
nativeTools |
list of strings | No | Client-native tool names appended to the mapped capability tools. |
model |
string | No | Native model identifier (or tier for Antigravity: inherit, flash_lite, flash, pro). |
effort |
string | No | Reasoning effort (for Claude Code: low, medium, high, xhigh, max; for Grok Build: requires an explicit non-inherit model). |
Rules for nativeTools:
- Non-empty
nativeToolsrequires explicitcapabilities(either top-level or on that client override; usecapabilities: []for native tools only). - The all-tool wildcard
*is rejected. - Raw MCP selectors (such as
mcp__*on Claude Code,server/*on Copilot, ormcp_*/call_mcp_toolon Antigravity) are rejected—declare MCP access viaagents.<id>.mcp. - On Claude Code, a restricted native selector like
Bash(git status)cannot be combined with a portable capability that already grants the unrestricted tool (shell.exec).
skills
Section titled “skills”A map of <id> to skill directories.
skills: release-notes: source: skills/release-notes| Field | Type | Required | Description |
|---|---|---|---|
source |
string | Yes | Relative path to a directory inside the manifest directory containing SKILL.md. |
SKILL.md frontmatter
Section titled “SKILL.md frontmatter”Every skill directory must contain a SKILL.md file beginning with --- YAML frontmatter on line 1. Unknown frontmatter keys are rejected.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Native skill name. Must be unique across declared skills. |
description |
string | Yes | Nonblank description of when and how to use the skill. |
license |
string | No | License identifier or note. |
compatibility |
string | No | Descriptive prerequisite note (at most 500 characters for Claude Code). |
allowed-tools |
string | No | Space-separated string of native tool names (for example, "Read Grep"). Must be a scalar string, not a YAML list. |
metadata |
map of string → string | No | Arbitrary descriptive key-value pairs. |
A map of <id> to MCP server definitions. Every server must set transport to either stdio or http.
Common fields
Section titled “Common fields”| Field | Type | Required | Description |
|---|---|---|---|
name |
string | No | Native server name written into client MCP config. Defaults to <id>. Must be nonblank UTF-8 without NUL and unique across servers. |
transport |
string | Yes | Either stdio or http. |
tools |
list of strings | No | Server-level tool exposure allowlist. Omit (or include "*") to expose all tools; [] requests no tools. |
transport: stdio fields
Section titled “transport: stdio fields”url, headers, and headersFrom are forbidden on stdio servers.
mcp: codegraph: transport: stdio command: codegraph args: [serve, --mcp] env: LOG_LEVEL: info envFrom: API_TOKEN: [secret:codegraph-token, env:CODEGRAPH_TOKEN] install: tools: - tool: node version: "24.22.3" - tool: npm:@colbymchenry/codegraph version: "1.6.0" env: NPM_CONFIG_REGISTRY: https://npm.internal.example envFrom: NPM_TOKEN: secret:npm-token initialize: command: codegraph args: [init, --yes] env: INIT_MODE: quiet| Field | Type | Required | Description |
|---|---|---|---|
command |
string | Yes | Executable to launch. When install is set, must name a bare executable provided by install.tools (no /, \, or :). Without install, may be a command on PATH, an absolute path, or a repository-relative path. |
args |
list of strings | No | Literal command arguments passed directly (no shell expansion). |
env |
map of string → string | No | Literal environment variables passed to the server. Cannot overlap with envFrom. |
envFrom |
map | No | Dynamic environment variables resolved at launch from secret:<name> or env:<VAR>. Values may be a single string or a non-empty ordered fallback list. |
install |
object | No | Declares tools to install into an isolated environment. |
initialize |
object | No | Declares a one-time command run in the repository root during openlune apply. |
mcp.<id>.install
Section titled “mcp.<id>.install”| Field | Type | Required | Description |
|---|---|---|---|
tools |
list of objects | Yes | Non-empty list of { tool, version } pairs (using mise tool/version syntax). Duplicate tool names are rejected. |
env |
map of string → string | No | Literal environment variables passed only during tool installation (not to the running server). |
envFrom |
map | No | Dynamic secret:<name> / env:<VAR> variables resolved only during tool installation. Cannot overlap with install.env. |
mcp.<id>.initialize
Section titled “mcp.<id>.initialize”| Field | Type | Required | Description |
|---|---|---|---|
command |
string | Yes | Initializer executable. When install is set, must be a bare executable name provided by install.tools. |
args |
list of strings | No | Literal arguments for the initializer. Does not inherit mcp.<id>.args. |
env |
map of string → string | No | Literal environment overrides layered on top of mcp.<id>.env. |
Reserved environment variables (managed servers)
Section titled “Reserved environment variables (managed servers)”When install is present, env, envFrom, install.env, install.envFrom, and initialize.env cannot override variables owned by OpenLune’s isolated environment:
HOME,PATH, and anything starting withMISE_- On Windows, also
USERPROFILE,HOMEDRIVE,HOMEPATH,APPDATA,LOCALAPPDATA,SYSTEMROOT, andWINDIR
transport: http fields
Section titled “transport: http fields”command, args, env, envFrom, install, and initialize are forbidden on http servers.
mcp: metrics: transport: http url: https://mcp.metrics.example/v1 headers: X-Team: platform headersFrom: Authorization: "Bearer ${env:METRICS_TOKEN}"| Field | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | Nonblank UTF-8 server URL. |
headers |
map of string → string | No | Literal HTTP request headers. Values cannot contain ${ or $NAME (use headersFrom for variables). |
headersFrom |
map of string → string | No | HTTP headers referencing client environment variables as ${env:NAME}. Each entry must contain at least one ${env:NAME} and no other ${ or $NAME sequence. |
Header names are compared case-insensitively across headers and headersFrom; declaring the same header twice (even with different casing) is rejected.