Snap open-sourced a declarative spec that lets you define agents once and run them anywhere. Here's how it works and why it matters.

Ten months ago, three engineering teams at Snap were building AI agents. One used LangChain. Another used Google ADK. A third wrote custom Python. All three agents did similar things. All three worked. And all three were solving the same problems in isolation.

Wiring tools. Implementing retry logic. Tracking token budgets. Building output parsers. Every new agent meant rebuilding the same components. Every platform upgrade meant touching every agent's code.

The pattern was familiar. Infrastructure before containers. Deployments before CI/CD. Configuration before Infrastructure-as-Code. The agent ecosystem was in its imperative scripts era.

Snap's answer is Agent Format. An open, vendor-neutral YAML standard for defining AI agents. Think of it as Kubernetes for agents. Or an Interface Definition Language for agent systems. One file declares what the agent is. Any compliant runtime runs it.

This article covers what Agent Format is, how it works, and what it means for the agent ecosystem.


The Problem: Fragmentation

Agent development today looks like this.

Same concept. Three completely incompatible implementations. The agent's definition — what it does, what tools it can access, what limits it has — is tangled up with its implementation. You cannot extract one without the other.

This creates real pain for platform teams.

No portability. An agent prototyped in a Python notebook cannot be deployed to a production Java service without a full rewrite. There is no way to move an agent between runtimes.

No shared tooling. Every framework has its own validators, linters, and debugging tools. There is no universal way to inspect, diff, or compare agents.

No standardized governance. Guardrails are implemented per framework. The intent is the same. Enforcing a consistent policy means understanding each team's bespoke implementation.

Snap faced this directly. Three teams. Three frameworks. One problem.


The Kubernetes Analogy

Before Kubernetes, infrastructure was managed with imperative scripts. SSH into this box. Install nginx. Open port 80. Fragile. Non-portable. Difficult to govern at scale.

Kubernetes changed everything by introducing a clean separation. Declare the desired state. The system continuously reconciles reality toward it.

Agent Format applies the same principle to agents. The cognitive blueprint — tools, constraints, input-output contracts, execution strategy — was trapped inside imperative code. Agent Format pulls it out into a declarative schema.

The result is a clean contract between agent owners and platform owners. Agent definitions never change just because the infrastructure underneath changed.


What Goes in the Declaration

Agent Format is based on the Partially Observable Markov Decision Process (POMDP). This is the established mathematical framework for agents that observe partial information, maintain beliefs, take actions, and receive feedback.

A POMDP defines the core structure. Action space. Observations. Policy. Reward model. Every modern agent framework — ReAct loops, sequential pipelines, parallel tool calls — is a specialization of this model.

Agent Format extends the POMDP formalism with practical production concerns. Identity. Versioning. Governance. Approval gates. The result is a schema where each section maps to a well-defined concern.

Every field in the schema must pass three questions.

Can it be set at authoring time without knowing which runtime will execute it?

Is it portable? Does it mean the same thing on every runtime?

Does it describe WHAT, not HOW? Does it declare a need, not an implementation?

If any answer is no, the field belongs in the runtime, not the definition.


The File Format

An .agf.yaml file has a top-level structure with four required sections and several optional ones.

schema_version. Required. Semver string.

metadata. Required. Identity, labels, data classification.

interface. Required. Input-output contracts. What the agent accepts and returns.

execution_policy. Required. How the agent reasons and acts.

Optional sections include actionspace, constraints, governancepolicies, memory, and approval_gates.

The spec is backed by a JSON Schema. Definitions can be expressed as YAML, JSON, stored in a database, or generated programmatically.


Six Built-In Execution Policies

Agent Format defines six composable execution policies that cover most real-world patterns.

agf.react. The standard ReAct loop. Reason, act, observe, repeat.

agf.sequential. Fixed step sequence with deterministic ordering.

agf.parallel. Concurrent tool calls with result aggregation.

agf.planner_actor. Separate planning and execution phases.

agf.humaninthe_loop. Pauses for human approval at specified checkpoints.

agf.autonomous. Full agent autonomy within declared constraints.

Production systems hit edge cases. Agent Format supports vendor-specific policies via the x-vendor namespace. Custom policies are first-class citizens. They go through the same validation and governance layer as built-in policies.


Governance by Construction

When agent definitions are declarative, constraints become part of the definition itself. Easy to review. Easy to enforce uniformly.

The constraints section of an .agf.yaml declares exactly what the agent is allowed to do. Budget limits. Tool allowlists. Rate limits. Data classification boundaries. Because these constraints live in a structured, machine-readable file, the runtime can enforce them before the agent acts. This is governance by construction, not by inspection.

Agent Format uses a two-layer governance model.

Agent owner layer. Base constraints declared in the .agf.yaml.

Organization layer. Platform-wide governance policies defined independently.

Neither touches the other's config. At runtime, the system composes both layers and always takes the stricter of the two. This lets governance teams enforce invisible, organization-wide policies on top of agent-level declarations.

A key invariant is the tighten-only rule. When an orchestrator agent delegates to a sub-agent, the sub-agent cannot exceed the orchestrator's constraints. Governance boundaries can only become more restrictive as delegation goes deeper.


Human-in-the-Loop

Approval requirements are first-class in Agent Format. Per-tool. Conditional. Composable.

A trading agent might have this pattern. Small trades go through automatically. Large trades pause for human review. The definition declares what needs approval. The runtime decides how — Slack notification, email, CLI prompt, custom UI. Same definition. Any delivery mechanism.

This separates the policy from the implementation. The agent owner declares what requires approval. The platform team decides how to deliver it.


Cross-Framework Portability

The portability question is how you make LangChain, Google ADK, PydanticAI, and every other framework understand the same .agf.yaml file.

The answer is adapters. Any framework can implement an adapter that parses an .agf.yaml and converts it into its native agent type. The Agent Format parser has zero dependency on any runtime SDK. The adapter is the bridge.

At Snap, teams already running agents on Google ADK or LangChain do not have to migrate. They add an Agent Format adapter to their existing framework and immediately get standardized definitions and governance without changing a line of agent code.

The agent definition stays the same. Only the adapter changes.


MCP and A2A Integration

Agent Format does not compete with existing standards. It complements them.

MCP standardizes how agents connect to tools. Agent Format references MCP tool servers in the action_space section.

A2A standardizes how agents communicate with each other. Agent Format supports remote agents via the A2A protocol in multi-agent orchestration.

Agent Format standardizes the agent itself. Its identity, capabilities, constraints, and execution strategy.

Together, they form a complete, vendor-neutral stack for production AI agents.


Snap's Internal Stack

Snap uses Agent Format in two ways.

First, adapters with open-source frameworks. Teams add an adapter and get standardization without migration.

Second, Snap built the Auton Agentic AI Platform. Three layers. Agent Format is the foundation. The Auton SDK is a policy-driven runtime that recognizes .agf.yaml natively. It handles tool wiring via MCP, model provider connections, and the execution loop. A built-in interceptor pipeline enforces budget limits, guardrails, circuit breaking, retry logic, and execution tracing.

The Agentic Console is a visualization and debugging tool. Load any .agf.yaml, send a prompt, and watch the agent work in real time. Every reasoning step, tool call, and decision. An interactive execution graph shows the agent's DAG lighting up node by node. A chat interface supports streaming responses and human-in-the-loop approval.

The console connects through a unified WebSocket protocol. It is not tied to the Auton SDK. Snap built internal adapters for Google ADK, LangChain, and PydanticAI. Any team can plug their preferred framework into the same observability layer.

Auton SDK and Agentic Console are internal. Only the Agent Format specification is public.


How It Compares

Agent Format is not the only declarative agent framework. But its design choices differ from existing options in important ways.

Versus graph-based definitions. Many platforms use graph models of nodes and edges. These are powerful for complex execution flows. But they emphasize how steps connect, not what the agent is. Agent Format starts from the agent's identity and capabilities. Execution is a property, not the primary structure.

Versus framework-native configs. LangChain, Google ADK, and PydanticAI each have their own configuration formats. These are tied to their runtimes. Agent Format is runtime-agnostic. The same file runs on any compliant runtime.

Versus prompts-as-code. The prompts-as-code movement — AGENTS.md, WORKFLOW.md, COMPRESSION.md — treats agent behavior as version-controlled artifacts. Agent Format is complementary. It provides the structured schema that these conventions can reference.


Practical Getting Started

The easiest way to start is the minimal agent pattern.

schema_version: "1.0.0"
metadata:
  id: hello-world
  name: Hello World Agent
interface:
  input: text
  output: text
execution_policy: agf.react

This is the smallest valid definition. It declares an agent that takes text input, produces text output, and uses the ReAct execution policy.

From there, add sections as needed.

Add actionspace to declare tool access. Add constraints for budget limits and rate limiting. Add governancepolicies for organization-wide rules. Add approval_gates for human-in-the-loop requirements.

The format is designed for graduated complexity. Hobby projects might use ten lines. Enterprise deployments might use one hundred. You only pay for what you need.

Validation is built in. Every .agf.yaml is validated against the JSON Schema. Misconfigurations are caught at authoring time, not at runtime.


What It Means for the Ecosystem

Agent Format is a signal that the agent ecosystem is maturing from artisan scripts to standardized infrastructure.

The comparison to Kubernetes is apt. Kubernetes did not replace Docker. It standardized how containers are declared, scheduled, and governed. Agent Format does not replace LangChain or Google ADK. It standardizes how agents are declared, governed, and moved between runtimes.

For practitioners, the benefits are concrete.

Portability. Define once. Run on any compliant runtime.

Governance. Constraints are machine-readable and enforced by construction.

Collaboration. Teams can share agent definitions without sharing implementation details.

Tooling. A common schema enables shared validators, linters, diff tools, and registries.

For the ecosystem, the benefit is interoperability. Agents built in different frameworks can be understood, compared, and composed if they share a common definition language.


The Open Questions

Agent Format is new. The specification is at version 1.0.0. Several questions remain open.

Adoption. Will major frameworks implement adapters? The value depends on network effects. If only Snap uses it, the portability benefit is limited.

Standardization body. Agent Format is hosted at agentformat.org with open governance. But it is not yet backed by a formal standards body like the Linux Foundation or W3C. Long-term stability depends on governance structure.

Complexity ceiling. The POMDP-based schema is clean for simple agents. Does it scale to agents with hundreds of tools, complex multi-agent orchestration, or dynamic tool discovery? The field reference suggests it does, but real-world validation is early.

Overlap with existing standards. MCP and A2A are already gaining traction. Agent Format complements them. But practitioners may resist adding a third standard to their stack.


Summary

Agent Format YAML is Snap's open-source answer to agent fragmentation. A declarative, runtime-agnostic standard for defining AI agents.

The .agf.yaml file captures identity, interface contract, action space, safety constraints, approval requirements, and execution strategy in a single portable document. Six built-in execution policies cover common patterns. Custom policies extend the standard. First-class MCP integration. A2A support for multi-agent systems.

The governance model is two-layer. Agent owners declare base constraints. Organizations enforce platform-wide policies. The tighten-only invariant ensures sub-agents never exceed orchestrator limits.

Cross-framework portability comes through adapters. The agent definition stays the same. Only the adapter changes.

For practitioners, the immediate benefit is standardization. For the ecosystem, the long-term benefit is interoperability.

The agent ecosystem is having its Kubernetes moment. Agent Format is the manifest.


Published May 16, 2026