.agent icon

AI agents deserve a file format.

.agent is an open specification for writing, distributing, and running autonomous agents across any hardware or model, locally or in the cloud. One file. Your rules.

Read the SpecGitHub →
THE PROBLEM

Every AI platform speaks a different dialect.

Building an agent on Gemini locks you into Gemini. Porting it to Claude requires a rewrite. Deploying on-device versus cloud requires another. Every vendor has its own prompt schema, its own tool-calling convention, its own governance model. The result is M×N integrations: custom glue for every combination of framework and runtime.

This is the same fragmentation that defined the browser wars. Docker solved it for software distribution. .agent proposes the same separation for AI agents: decouple the agent from the runtime that executes it. Write the behavior once. The spec handles the rest.

.agentLangGraphAutoGenApple IntentsGemini Ext.CustomiOS / macOSAndroidCloudEdge / IoTEnterpriseM + N INSTEAD OF M × N
ARCHITECTURE

Two files. One contract.

The .agent format separates deterministic governance from probabilistic reasoning: the part a machine can guarantee from the part only a model can infer.

PORTABILITY

.behavior and WebAssembly

Human-readable orchestration in .behavior: flat state machines, explicit intent routing, auditable by anyone. Compiled WebAssembly modules handle deterministic logic for performance-sensitive or IP-protected operations. The spec transpiles to LangGraph, Apple Intents, or Azure Agents without touching the intelligence layer.

CAPABILITY CONTRACT

Consume · Capability · Output

Every agent declares upfront what it needs (data access), what it can do (named capabilities backed by tools, scripts, or MCP calls), and what it returns (typed outputs). Capabilities are explicit, named, and callable by other agents. The runtime enforces these contracts before execution starts, not after something goes wrong. Smart routing selects the appropriate model tier based on declared effort: local SLM for lightweight tasks, frontier model for complex reasoning.

GOVERNANCE

Isolation by Design

Credentials never reach the agent. The host runtime mediates all tool and script calls, and no resource is accessed without explicit declaration in the Consume contract and user approval. All logic runs in WASI-compliant sandboxed environments with no implicit host access.

ECOSYSTEM

The spec in practice.

A .agent file bundles the definition and the behavior: the public contract and its implementation, state by state, auditable and portable.

DEFINITION
1agent Doctor
2 domain health.example.com
3 license MIT
4 terms https://health.example.com/terms
5 privacy https://health.example.com/privacy
6
7description
8 A clinical specialist for diagnostics and prescriptions
9
10behavior doctor.behavior
11requires Prontuario
12input Patient, MedicalCondition
13capabilities DiagnoseAction
14output Prescription
.agent
DOCTOR.DEFINITION
The manifest declares the public contract — what the agent is, consumes, and exposes.
SECURITY

Isolation by default.

Zero-Trust Sandboxing

All logic runs in WASI-compliant isolated environments with no implicit host access.

Explicit Permission Mediation

No resource is accessed unless declared in the Consume contract and approved by the user. Headless devices delegate approval to a linked trusted device.

Isolated State

Agent state is scoped to its sandbox with no access to the host filesystem.

Proxied Networking

All HTTP traffic routes through the host runtime. Agent code has no direct outbound access.

MCP Integration

Tool and script calls route through the host runtime. The agent never handles credentials directly.

Namespace Governance

Primitive types are anchored to Wikidata and schema.org categories, keeping contracts semantically stable across runtimes.