Write agents in a typed DSL.
Compile to production.

AXON is a programming language where agents, tools, memory, RAG, and flows are first-class constructs — not framework boilerplate.

5
Compile Targets
8+
Built-in Examples
MIT
Licensed
0
Install Required

How it works

1

Write .ax files

Define agents with typed tools, memory, RAG, and multi-agent flows in a clean DSL. No framework boilerplate.

2

Compile

Parse, validate, and type-check. Generate Python, TypeScript, Go, Rust, or MCP server code from one source.

3

Deploy

Run compiled agents anywhere. Submit to AgentOps Mesh for governance review before production.

Everything you need to build agents

Native Agent Primitives

spawn, pause, resume, terminate are first-class language constructs, not library calls.

Type-Safe Tooling

Define tools with typed inputs and outputs. The compiler validates tool-agent compatibility before runtime.

Multi-Target Compilation

One .ax file compiles to TypeScript, Python, Go, Rust, and MCP servers. One source, multiple runtimes.

RAG Built In

First-class rag declarations with chunking, embedding, and vector search — no external glue code.

Flows & Pools

Define multi-stage pipelines with flow and parallel agent pools with pool. Orchestration as code.

Governance Ready

Submit agents to AgentOps Mesh for 9-gate governance review — directly from the playground.

See it in action

research_pipeline.ax
/// Multi-agent research pipeline in AXON
agent ResearchCoordinator {
    model: @anthropic/claude-4
    tools: [WebSearch, ResearchDocs.retrieve]

    fn run(query: ResearchQuery) -> Result<ResearchReport, AgentError> {
        let planner = spawn QueryPlanner()
        let plan = await planner.plan(query)?

        let pool = pool(size: 3, target: ResearchAgent)
        let results = []
        for sub in plan {
            results = results + (await pool.investigate(sub)?)
        }

        let summary = await spawn SummarizerAgent().summarize(results)?
        Ok(ResearchReport { topic: query.topic, summary })
    }
}

Start in 30 seconds — no install

Open the playground in your browser. Parse, validate, and generate code from AXON agents.

⚡ Try Playground Read Docs AXON + Mesh Demo