Skip to main content
Version: 0.1.26

X07 (x07lang)

X07 is an agent-first systems language: it’s designed so autonomous coding agents can generate, modify, test, and repair programs reliably—without needing a human to “massage” code.

Most languages optimize for human ergonomics (expressiveness, many equivalent ways to write the same thing). X07 optimizes for:

  • Canonical representations (bytes encodings, module layouts, request formats), so “the same intent” produces “the same shape”.
  • LLM-oriented diagnostics (structured, code-stable error IDs + machine-applicable fixes).
  • World-based capability modeling (especially for OS access), so agents can run safely with explicit intent.

The mental model

Think of X07 as two layers:

  1. A small, stable core (compiler + runtime substrate)
  2. A growing ecosystem of libraries (stdlib + external packages)

Programs are stored and exchanged in a structured AST format (x07AST JSON). Humans usually edit a pretty form (or generated templates), while agents operate on the structured form directly.

Start here

What makes X07 different?

1) One canonical way (agents don’t get “choice paralysis”)

Instead of 5 equivalent ways to read a file, split strings, build output, or handle errors, X07 aims for:

  • one canonical API surface per capability,
  • one canonical bytes encoding per data interchange,
  • one canonical failure model per module (stable error code space).

This reduces “LLM confusion” and makes programs and patches more uniform.

2) Policy-gated OS execution

When you need real OS resources (real network, real disk, real time), use run-os or run-os-sandboxed.

run-os-sandboxed is governed by explicit policy files; X07 defaults to a VM boundary on supported platforms, but it is still not a hardened sandbox if you mount secrets or enable networking.

3) Production worlds are opt-in

When you need real OS resources (real network, real disk, real time), you switch to OS-backed worlds. Those worlds are never used for deterministic evaluation, and are governed by explicit policies.

Documentation map (human)