Skip to content

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.

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/mcp

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.

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.

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)

Valid client IDs wherever a client is named (commit and agents.<id>.clients):

  • copilot
  • claude-code
  • codex
  • antigravity
  • grok-build

version: "0.1"

Required string. Must be "0.1" (quoted so YAML does not parse it as a float).


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 stdio MCP servers run through openlune mcp run.
  • Non-empty list: openlune apply (without --client) generates files for every listed client, and openlune check fails if any committed file is missing or stale. Local stdio MCP servers are rendered as plain client entries (install, initialize, and secret: sources have no effect).
  • Empty list (commit: []): Rejected. Omit commit instead.

See To commit or not commit? for details.


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, or AGENTS.md).
  • An empty paths: [] is rejected. Omit paths for repository-wide instructions.
  • Avoid commas inside individual patterns (such as {ts,tsx}), since Copilot, Grok Build, and Antigravity split patterns on commas.

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.

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

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 nativeTools requires explicit capabilities (either top-level or on that client override; use capabilities: [] for native tools only).
  • The all-tool wildcard * is rejected.
  • Raw MCP selectors (such as mcp__* on Claude Code, server/* on Copilot, or mcp_* / call_mcp_tool on Antigravity) are rejected—declare MCP access via agents.<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).

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.

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.

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.

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.
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.
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 with MISE_
  • On Windows, also USERPROFILE, HOMEDRIVE, HOMEPATH, APPDATA, LOCALAPPDATA, SYSTEMROOT, and WINDIR

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.