YAML-based specifications for AI agents, MCP servers, skills and more...
This repository is the source of truth for declarative specs consumed by Agent Runtimes code generation.
The YAML files in agentspecs/agentspecs are compiled into Python and TypeScript catalogs used by runtime and UI layers.
agentspecs/
βββ agents/ # Agentspecs
βββ teams/ # Team orchestration specs
βββ frames/ # Frame specs: owned, scoped context a Cog works under
βββ cogs/ # Cog specs: an agent, equipped with Frames
βββ harnesses/ # Harness specs: an agent program driven over ACP, and its register
βββ runtime-engines/ # Runtime engine specs: what runs and hosts an agent (Datalayer, Kagent, AWS AgentCore)
βββ ops/ # Op specs: Cogs, orchestrated, with a validation strategy
βββ guards/ # Guard specs: a check, extending a Policy
βββ gates/ # Gate specs: what happens on what the Guards found
βββ tracks/ # Track specs: the evidence kept, and for how long
βββ battles/ # Battle specs: scenes composed against each other, a clock, a referee
βββ identities/ # Identity specs: who acts, issued by whom, proven how
βββ stages/ # Stage specs: a scene, an app or a Battle on stage, and where it plays
βββ apps/ # Application specs (Appspec): a chat, a widget, a decision, a worker
βββ fragments/ # Capability fragments an agent includes
βββ mcp-servers/ # MCP server specs
βββ skills/ # Skill specs
βββ tools/ # Runtime tool specs
βββ frontend-tools/ # Frontend tool specs
βββ env-vars/ # Environment variable specs
βββ models/ # Model specs
βββ model-providers/ # Model provider specs
βββ memory/ # Memory backend specs
βββ decisions/ # Decisions specs: the model an agent asks typed decisions of
βββ evals/ # Evaluator specs
βββ benchmarks/ # Benchmark suite specs
βββ strategies/ # Strategy specs (control-loop reasoning)
βββ triggers/ # Trigger specs
βββ events/ # Event specs
βββ outputs/ # Output format specs
βββ notifications/ # Notification channel specs
βββ ui/ # UI specs
Current YAML file counts:
- Agents: 179
- Teams: 11
- Frames: 6
- Cogs: 3
- Ops: 1
- Guards: 13
- Gates: 8
- Tracks: 4
- Battles: 5
- Stages: 13
- Identities: 12
- Applications: 37
- Fragments: 1
- MCP servers: 19
- Skills: 20
- Tools: 18
- Frontend tools: 6
- Env vars: 23
- Models: 40
- Model providers: 8
- Memory backends: 4
- Decisions: 1
- Evals: 9
- Benchmarks: 8
- Strategies: 4
- Triggers: 3
- Events: 6
- Outputs: 9
- Notifications: 5
- UI specs: 3
All specs are versioned.
Each spec includes:
id: logical identifierversion: semantic version string (currently0.0.1for all shipped specs)
Example:
id: data-acquisition
version: 0.0.1
name: Data Acquisition AgentCross-spec references should use id:version format.
Examples:
mcp_servers:
- tavily:0.0.1
skills:
- github:0.0.1
envvars:
- TAVILY_API_KEY:0.0.1
agent_spec_id: comprehensive-sales-analytics:0.0.1Generated catalogs are keyed by unversioned id only (e.g. data-acquisition).
The get_* / get*Spec accessor functions accept both bare ids and versioned refs (data-acquisition:0.0.1), stripping the version suffix automatically.
Iterating catalog values (.values() / Object.values()) returns each spec exactly once β no deduplication is needed.
Code generation enforces a default spec version of 0.0.1 if omitted (scripts/codegen/versioning.py).
In practice, specs in this repository should always declare version explicitly.
Defines agent behavior and runtime defaults.
Common fields:
id,version,name,description,enabledmodel,sandbox_variant,memory,decisionsmcp_servers,skills,backend_tools,frontend_toolsenvironment_nameicon,emoji,colorsuggestions,welcome_message,welcome_notebook,welcome_documentsystem_prompt,system_prompt_codemode_addons- Optional workflow fields such as
goal,trigger,guardrails,evals,output,notifications,advanced
Defines multi-agent orchestration over an underlying agent spec.
Common fields:
id,version,name,description,enabledagent_spec_id(versioned)orchestration_protocol,execution_mode,supervisoragents(team members),reaction_rules,health_monitoringnotifications,output
Defines the context work happens in β the rules, the vocabulary, the goals, the style and the norms of an organization, a department, a team, a project, a role or a relationship β and the Guards an output has to pass. The concept is the Intelligence Hub whitepaper's.
Common fields:
id,version,name,description,enabledscope(organization,department,team,project,role,relationship) andownerβ both requiredextends(the parent Frame, versioned)rules,terminology,goals,style,norms,process,architecture,promptsskills,backend_tools,mcp_servers(versioned references)guards(id,category,description,required)
from agentspecs.frames import compose_frames, render_frames
context = compose_frames(["sales-pipeline", "board-reporting"])
print(render_frames(context))Defines an AI worker you can hold to account: a Cog extends an agent spec and is equipped with Frames.
Common fields:
id,version,name,description,enabledextends(the agent spec, versioned) β requiredframes(the Frames it works under, in order, versioned) β requiredkind(context,model,combined)- any agent field, overriding or appending to the agent's
id: cog-crawler
version: 0.0.1
name: Crawler Cog
extends: worker-crawler:0.0.1
frames:
- web-research:0.0.1from agentspecs.cogs import get_resolved_cog
cog = get_resolved_cog("cog-crawler") # the agent, the Cog's changes and its Frames, flat
cog["frame_context"]["guards"] # what its output answers toDefines an agent program driven over the Agent Client Protocol β a coding agent such as Claude Code or Codex, or any agent a framework
exposes over ACP β and the terms it is served under. An agent spec names one
with harness: claude-code where it says harness: pydantic-ai; what the
harness cannot honour of the spec (model: it does not take, subagents:
when it has its own, skills: in a format it cannot read) is refused at load,
in a sentence. register.yaml is the register: every harness with its
adapter, the version pinned, its licence, the agent's terms, the credential it
takes and whether serving it to third parties is permitted, each with where it
was read; a harness without an entry does not load.
Common fields:
id,version,name,description,enabled,docsacp(command,argswith the version pinned,protocol_version,load_session,mcp:lend,ownornone,modes,env) β absent only oncustomrequires(secrets, ids ofenv-vars/;binaries)terms(served_to_third_parties:api_key_only,permitted,refusedororganizations_own;licence;tier_restrictions)skills(format:skill-mdornone;dir),honours(model,subagents),instructions_file
from agentspecs.harnesses import HARNESS_CATALOGUE, agent_harness_problems
print(HARNESS_CATALOGUE["claude-code"].acp.args)
print(agent_harness_problems({"harness": "claude-code", "subagents": [{"id": "x"}]}))What runs and hosts an agent: datalayer (a Datalayer agent runtime, the
default), kagent (Kagent, a Kubernetes control plane for agents) and
agentcore (AWS AgentCore, in the AWS account of the organization that
launches the agent). An agent spec names one with runtime_engine:, on the
line after harness:; a spec that names none, or another, or asks an engine
for a harness it does not run, is refused at load, in a sentence.
RUNTIME_ENGINES and ENGINE_HARNESSES are read from these specs.
Common fields:
id,version,name,description,docs_url,enabledposition(where it is offered, 1 the default),harnesses(the harness ids it runs, null for any)
from agentspecs.runtime_engines import RUNTIME_ENGINE_CATALOGUE, agent_runtime_engine_problems
print(RUNTIME_ENGINE_CATALOGUE["kagent"].name)
print(agent_runtime_engine_problems({"id": "a", "harness": "codex", "runtime_engine": "kagent"}))The execution and accountability model of the whitepaper: Frames guide the work. Cogs perform the work. Ops orchestrate the work. Guards verify the work. Gates decide whether the work proceeds. Tracks make the work accountable.
-
Ops (
agentspecs/ops):owner,cogs,frames,supervisor, and a validation strategy βguardsby stage (preflight,in_flight,post_run,continuous),gates,track. An Op without one is refused. -
Guards (
agentspecs/guards): a Guardextendsa Policy β the rules it verifies, named bypolicyonce resolved and read withpolicy_ofβ and addscategory(the seven of the whitepaper),stages,method,checkand thesignalsit reports. -
Gates (
agentspecs/gates):guards,when(a condition on their signals, oralways),thenandotherwise(proceed, pause, retry, human review or approval, expert review, stop),reviewers. -
Tracks (
agentspecs/tracks):retain_for,include,readers,redact; neverexchangeable. -
Battles (
agentspecs/battles): scenes composed against each other β avariant(race,game,challenge), agoalsaid to every contestant, aclock_seconds, two or morecontestants(asceneof the catalogue played whole, or anapp), areferee(first_done,scoreor the Guard thatmeasures), and for a game itsarena(pong,invaders). A referee that does not decide as its variant does is refused. -
Stages (
agentspecs/stages): something of the catalogue put on stage and where it plays β exactly one of asceneplayed whole, anappor abattle;deployments, each member on a runtime to the slug of the deployment that answers for it (none for a scripted scene or a Battle);public, whether it has a page that needs no account. Its name, face and description are what it stages says unless it says otherwise.
ops/op-sales-pipeline-board-report.yaml is the comprehensive example: one
Cog with its Frames, twelve Guards of all seven categories at all four stages,
eight Gates and a seven-year Track.
from agentspecs.ops import get_resolved_op
op = get_resolved_op("op-sales-pipeline-board-report")
op["guards"]["post_run"] # each Guard, naming the Policy it extends
op["gates"], op["track"]An application is what a person uses: an agent with an interface, rules, tests
and a place to run. One spec β the Appspec, schema: agent.app/v1 β for a
chat, a widget, a decision and a worker. It stands alone: agent,
connections, rules, interface, tests, record and deployment in
plain fields; Guards, Gates and a Track optional, under checks.
A rule is written in a person's words and enforced on what a tool does:
applies_to is an action class β read, write, send, buy, delete,
publish β or named tools, and behaviour is do_it, if_asked, ask_first
or leave_to_me. Every tool of tools/ carries its class (action:), and
every MCP server says the class of each tool it serves (actions:); a tool
nobody classed is unknown, and unknown is the most restricted.
from agentspecs.apps import behaviour_for, get_app
triage = get_app("inbox-triage")
behaviour_for(triage, "google-workspace.send_gmail_message") # ask_firstDefines MCP integrations and process startup configuration.
Common fields:
id,version,name,descriptioncommand,args,transport;urlandheadersfor a remote serverenv,envvars(usually versioned),sandbox_envvars;optional_envvars: given to the runtime when the account has them, never required (LinkedIn'sLINKEDIN_LI_AT, the person's session pasted in Settings βΊ LinkedIn, 15 November 2026)documentation_url,signup_url,api_key_url,setup: where to read about it, sign up and make the key it needs, and how, in a sentence of Markdown β its links render as links on the server's page (7 November 2026)actions: what each tool does to the world (read,write, β¦), when it was checked, and a notetags,icon,emoji
Defines reusable skill modules.
Common fields:
id,version,name,description,moduleenvvars(each required),optional_env_vars(given when the account has them),any_of_env_vars(one at least, or the skill is not activated),dependenciestags,icon,emoji
Defines the tools that run on the runtime, in Python: their metadata and implementation
binding. An agent names them under backend_tools, as it names the page's under
frontend_tools; the old tools field is refused.
Common fields:
id,version,name,description,enabledapprovalruntime.language,runtime.package,runtime.methodtags,icon,emoji
Names tools that run on the page rather than on the runtime (frontend_tools of an agent), a set at a time: the
notebook's, the Lexical document's, the decks'.
Common fields:
id,version,name,description,enabledtoolset(the names of the tools of the set)streams(the tools of the set that stream: called once, each keeps pushing events the harness tells the model as turns it did not ask for β the Pong arena'sarena_watch)tags,icon,emoji
An MCP server, a skill, a backend tool and a frontend tool set each have an icon and an emoji
(agentspecs.marks, its JSON Schema MARKS_SCHEMA, checked by tests/test_marks.py).
The icon says the package it is in: <package>:<name>, the package one of
@datalayer/icons-react and @primer/octicons-react, the name in kebab case as that
package names it β @datalayer/icons-react:odoo, @primer/octicons-react:mark-github.
A page draws the icon, the emoji where there is no icon, and nothing where there is
neither.
Defines environment variable metadata.
Common fields:
id,version,name,descriptionregistrationUrl,tags,icon,emoji
Defines model options available to specs.
Common fields:
id,version,name,description,providerdefaultrequired_env_vars
memory: memory backend optionsdecisions: how an agent decides (the model asked typed decisions, the question types, the limits); an agent decides only when its spec names one, which brings thedecidebackend toolevals: evaluator definitionsbenchmarks: benchmark suites (with evaluator dependencies)triggers: reusable trigger templatesoutputs: output format templates/capabilitiesnotifications: notification channel templates
A spec is built out of other specs rather than copied from them: extends
(one parent, at most three deep, cycles refused) and includes (fragments).
An agent extends an agent, a Frame extends a Frame, a Cog extends an agent,
and a Guard extends a Policy. Lists append and are deduplicated, a child's scalar wins, and
!remove / !replace cover the rest. The rules are in
the documentation and applied
by agentspecs.compose.
- Add or edit YAML in the relevant folder under agentspecs/agentspecs.
- Always set
idandversion. - Use versioned cross-references (
name:version) in fields that reference other specs. - Keep IDs stable; bump
versionwhen introducing breaking changes. - Regenerate catalogs in Agent Runtimes (
make specs) and validate consumers.
Agentspecs support a parameters field using JSON Schema. This lets one spec
be reused across multiple launches while keeping runtime inputs validated and
explicit.
- Validation: enforce
type,enum,required, and defaults. - Templating: inject values into text fields using
{{parameter_name}}. - Reusability: same agent spec, different runtime contexts.
system_promptwelcome_messagepre_hooks.sandbox- other template-aware text fields
id: demo-parameters
version: 0.0.1
parameters:
type: object
properties:
project:
type: string
default: Orbit
role:
type: string
enum:
- product analyst
- engineering lead
- support specialist
default: product analyst
required:
- project
welcome_message: >
This runtime was launched for project {{project}}.
system_prompt: >
You are an assistant dedicated to {{project}}.
pre_hooks:
sandbox:
- |
project_name = """{{project}}"""- Missing required parameters fail validation.
- Invalid enum values fail validation.
- Optional parameters use defaults when available.
- Use kebab-case IDs for most specs (
analyze-support-tickets). - Use UPPER_SNAKE_CASE for env var IDs (
TAVILY_API_KEY). - Keep descriptions concise and action-oriented.
- Prefer explicit versioned references, even when alias lookup works.
- Maintain backward compatibility by preserving old versions when possible.
Copyright (c) 2025-2026 Datalayer, Inc.
Distributed under the terms of the Modified BSD License.