The deterministic, certifiable execution substrate for agent-written software.
As code generation gets cheap, trust becomes the bottleneck: someone still has to decide whether generated code is safe to run. X07 is a language and toolchain built around that decision. Programs execute in deterministic solve worlds with record/replay, under explicit resource budgets and capability sandboxing. Diagnostics are structured, with quickfix coverage enforced over a 646-code catalog. Testing is spec-first (XTAL), and x07 verify / x07 trust certify bind proof, test, and runtime evidence into certificates a reviewer can check instead of re-reading source. The C backend gives native speed, fast compiles, and small binaries; a WASM target covers portable sandboxed execution.
X07 is under active development. Tooling and APIs still move.
Start here: Agent Quickstart · Installer · Docs · Roadmap · Governance · FAQ · Package Registry · Releases · Support · Discord
This is the core X07 repo. It contains:
- the language CLI and compiler
- the standard library and schemas
- the package manager, test harness, and repair loop
- public verification and certification tooling
- the canonical docs source for
x07lang.org
If you want to understand X07 itself, install the toolchain, or build software in X07, this is the repo to start with.
The trust surface comes first:
- Deterministic execution. Correctness loops run in
solve-*worlds; real OS interactions can be recorded into cassettes and replayed deterministically (std.rr). - Resource budgets. Fuel, memory, and output budgets are explicit (
budget.scope_v1, arch-driven profiles), so a small generated change cannot silently blow up costs. - Capability sandboxing. Side effects are opt-in through explicit OS worlds and policy files;
run-os-sandboxeddefaults to a VM boundary on supported platforms. - Structured diagnostics. A 646-code diagnostic catalog with quickfix coverage enforced as a CI gate, machine-readable failure reports, and did-you-mean suggestions on unknown symbols.
- Spec-first testing. XTAL drives verify/repair/certify loops from pinned specs, and
x07 gen verifygates generated artifacts. - Proof-backed certification.
x07 verifyproduces proof and coverage artifacts;x07 trust certifybinds proof, test, boundary, and runtime evidence into a reviewable certificate. - Native performance. X07 compiles via C to optimized native code with fast compiles and small binaries; the WASM target covers portable sandboxed execution. See
x07lang/x07-perf-comparefor benchmark snapshots.
On authoring: agents and humans can write X07 directly, and the 2026-06 toolchain made that easier — the x07text lossless text projection (x07 ast to-text|from-text, RFC 0001), behavioral summaries in x07 doc, and did-you-mean diagnostics. Direct authoring is still an explicitly gated bet, not a settled claim: the comparative eval in labs/agent-eval/ (pilot complete; scaled protocol and predeclared decision rule in its RUNBOOK) decides whether deeper language investment (RFC 0002: records, enums + match, string, f64) proceeds. The results will be published either way.
macOS / Linux:
curl -fsSL https://x07lang.org/install.sh | sh -s -- --yes --channel stableWindows is supported through WSL2. Full installer docs live at x07lang.org/docs/getting-started/installer.
mkdir myapp
cd myapp
x07 init
x07 runFor offline-first workflows, forbid network access during dependency hydration with x07 run --offline or X07_OFFLINE=1 (and use x07 pkg tree to inspect the resolved lockfile closure).
x07 run is the canonical entrypoint for the agent loop. When you need explicit control over individual steps, the core commands are:
x07 fmt --input program.x07.json --write
x07 lint --input program.x07.json
x07 fix --input program.x07.json --write
x07 check --project x07.json --ast
x07 check --project x07.json
x07 ast apply-patch --in program.x07.json --patch patch.json --out program.x07.json --validateXTAL and the x07 gen gate support spec-first and generated-artifact workflows. These flows assume you already have spec inputs and checked-in generated artifacts.
Docs:
docs/toolchain/xtal.mddocs/toolchain/generated-artifacts.md
Canonical gates:
x07 xtal dev
x07 xtal certify
x07 xtal ingest --input target/xtal/violations/<id>
x07 gen verify --index arch/gen/index.x07gen.jsonBuilding blocks (advanced; used when you need to isolate a step):
x07 xtal verify
x07 xtal repair
x07 xtal improve
x07 xtal tasks run --input target/xtal/violations/<id>/violation.jsonStart with the Agent Quickstart. The authoring surface is agent-oriented end to end:
- canonical source is
x07ASTJSON, patched structurally (JSON Patch / quickfixes) - x07text is a lossless text projection for reading and authoring (
x07 ast to-text/x07 ast from-text; conversion back emits canonical bytes) x07 docreturns behavioral summaries for stdlib exports, with fuzzy lookup- unknown-symbol diagnostics carry did-you-mean suggestions, and
x07 runfailure reports embed structured diagnostics
If your runtime supports MCP, install the official io.x07/x07lang-mcp server from x07lang/x07-mcp. It exposes token-efficient editing, package, and WASM tooling through structured contracts instead of shell scraping.
The core toolchain stays in this repo. The active companion repos (2026-06 scope) are:
x07lang/x07-mcpfor the MCP kit and the official X07 MCP serverx07lang/x07-registryfor the package registry backendx07lang/x07-wasm-backendfor WASM modules and WASI componentsx07lang/hardprooffor standalone MCP server verification
X07 exposes formal verification as a public toolchain surface, not a private experiment. The main commands are:
x07 verifyfor coverage and proof generationx07 prove checkfor replaying proof objects against current source and obligationsx07 trust certifyfor binding proof, test, boundary, capsule, and runtime evidence into a certificate
Start with docs/toolchain/formal-verification.md for the current proof model, constraints, and example flows.
If you want a first project in this area, use one of the built-in templates:
x07 init --template verified-core-purex07 init --template trusted-sandbox-programx07 init --template trusted-network-servicex07 init --template certified-capsulex07 init --template certified-network-capsule
The ecosystem was narrowed in 2026-06 to concentrate on the substrate bet (see docs/roadmap.md).
Active repos:
x07lang/x07: language, CLI, compiler, stdlib, schemas, verification/certification tooling, and canonical docs sourcex07lang/x07-mcp: MCP kit, templates, reference servers, and the officialio.x07/x07lang-mcpserverx07lang/x07-registry: package registry backendx07lang/x07-wasm-backend: WASM toolchain (modules and WASI components)x07lang/hardproof: standalone verifier CLI for MCP server quality and trust checks
Supporting repos:
x07lang/x07-rfcs: RFC process and design records (RFC 0001 x07text, RFC 0002 expressiveness floor)x07lang/x07-website: public docs site at x07lang.orgx07lang/x07-perf-compare: reproducible cross-language benchmark snapshots
Maintenance mode (2026-06 scope cut; security and compatibility fixes only): x07-studio, x07-forge, x07-crewops, x07-tactics, x07-device-host, x07-web-ui, x07-sentinel-reference-stack, and the platform repos (x07-platform, x07-platform-contracts, x07-platform-cloud). The rationale and the conditions for reactivating them are in the roadmap.
Project governance is documented in GOVERNANCE.md and
OWNERS.md. The public 12-month plan lives in
docs/roadmap.md.
x07/
├── docs/ # Canonical docs source for x07lang.org
├── crates/ # Rust workspace
│ ├── x07c/ # Compiler (X07 -> C)
│ ├── x07-host-runner # Deterministic native runner
│ └── x07-os-runner # OS-world runner backend
├── stdlib/ # Standard library
├── tests/ # Toolchain fixtures and harness suites
├── labs/ # Optional benchmarks, perf, fuzz, and eval tooling (incl. labs/agent-eval)
└── scripts/ # Tooling and CI helpers
Prerequisites: Rust toolchain, C compiler (cc), clang, and Python 3.
Full gate:
./scripts/ci/check_all.shCommon individual commands:
cargo fmt --check
cargo test
cargo clippy --all-targets -- -D warnings
cargo run -p x07 -- test --manifest tests/tests.jsonLicensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)