One Agentsfile declares the skills, agents, custom commands, MCP servers and plugins of a project, grouped into named profiles. Write each one in full inside the file, or point to external files. Parse it from Python, Rust, Java, Go or TypeScript, and validate it with agentsfile-lint.

one format, five parsers
what goes in a profile
Each item is either written in full with content, or points to a path, a URL or a published plugin with source. Setting both, or neither, is an error.
The whole SKILL.md body in content, plus nested file blocks for scripts and references.
The full system prompt inline, with its model, tools and description next to it.
The prompt inline, with argument-hint, model and the tools the command may use.
A full stdio, http or sse server definition, or a source pointing to one.
Version, author and its own skills, agents, commands and MCP servers, or a published plugin by source.
Multi-line prompts and scripts without escaping. The shared indentation is stripped, and ${NAME} stays literal.
syntax
Strings, heredocs, lists and maps. Every SDK reports the first error with the same message and position.
version = "1"
profile "dev" {
description = "Working on the Agentsfile spec and its SDKs"
skill "agentsfile-lint" {
description = "Lints every Agentsfile in the repo and fixes the errors"
content = <<SKILL
Run scripts/lint.sh.
Fix every error[...] line, then run it again until it prints 0 error(s).
Treat warning[...] lines as suggestions.
SKILL
file "scripts/lint.sh" {
content = <<SH
#!/usr/bin/env bash
set -euo pipefail
cargo run -q --manifest-path linter/Cargo.toml -- Agentsfile spec/fixtures/valid/*.agentsfile
SH
}
}
...
}
from agentsfile import load
file = load("Agentsfile")
dev = file.profiles[0]
for skill in dev.skills:
print(skill.name, skill.content or skill.source)
for file in skill.files:
print(" ", file.path)
line 6, col 5: attribute "tools" must be a list
line 4, col 3: command "ship" requires "source" or "content"
line 4, col 3: skill "a" cannot set both "source" and "content"
sdks
Each SDK has a lexer, a parser and a schema validator, with no runtime dependencies. Every one runs the same 54 conformance fixtures.
gallery


scripts/test-all.sh runs the five SDK suites, the linter suite and a lint of the Agentsfile.agentsfile-lint
Written in Rust on top of the Rust SDK. It reports every schema error, not only the first, and adds warnings a parser should not reject.
version, or neither source nor the inline definitionsource and the inline definitionsource starting with . or / does not exist next to the Agentsfileenv or headers value looks like a hardcoded secret; use ${NAME}content is emptystack
The spec lives in spec/SPEC.md. The fixtures in spec/fixtures pin every error message, so a new SDK can prove it conforms.