Skip to main content
AILANG 1.0 release candidate v1.0.0-rc.3 is out · What 1.0 means

The AI-First
Programming Language

AILANG makes AI-generated code cheaper to debug, replay, and fix. Explicit effects constrain what code can do. Structured traces make errors easy to localize.

hello.ail
-- hello.ail
module examples/hello

import std/io (println)

export pure func clampScore(n: int) -> int
  requires { n >= 0 }
  ensures  { result <= 100 }
= if n > 100 then 100 else n

export func main() -> () ! {IO} =
  42 |> clampScore |> show |> println

What 1.0 means

1.0 is a promise about what will not break. v1.0.0-rc.3 is in its final soak; 1.0.0 follows when no breaking change lands.

A stability promise

Programs written against the Stable surface keep checking and computing the same result across every 1.x release: the language syntax, 17 stdlib modules, 19 CLI commands, the package format and 24 hosted MCP tools.

Soundness first

If the checker accepts a program the rules forbid, that is a bug we fix in any 1.x release. A soundness fix only rejects programs, never changes what an accepted one computes, and ships with its error code and migration.

Checked against real code

Every soundness fix in the last two release candidates ran against eight downstream codebases, about 2,050 AILANG files, and merged with zero newly failing.

How AILANG works

Humans specify intent. Agents write .ail. AILANG constrains, runs, and explains.

1

Agent writes .ail

Plug AILANG into Claude Code, Codex, or any agent that follows the teaching prompt.

2

AILANG checks

Types, effects, capabilities, and inline contracts are verified before anything runs.

3

Run deterministically

Same input → same output. Capabilities (`--caps IO,FS`) constrain what code is allowed to do.

4

Traces explain failures

Structured per-effect traces feed back to the agent so the next iteration is targeted, not guessing.

Start in 30 Seconds

One command to install, or use your AI coding agent's plugin system

Claude Code
/plugin marketplace add sunholo-data/ailang_bootstrap
/plugin install ailang
Codex CLI
codex plugin add https://github.com/sunholo-data/ailang_bootstrap

Built on 12 Design Axioms

Every feature derives from non-negotiable principles that make AI-generated code easier to debug, replay, and fix.
Read the full axioms

Deterministic Execution

Same input, same output, every time. Replay any execution for debugging. No hidden nondeterminism.

Axiom 1

Effect Boundaries

Side effects are explicit in types. AI cannot hallucinate network calls in pure functions.

Axiom 3 & 4

Structured Traces

See exactly what happened. Slice traces by effect type. Get specific feedback, not "it crashed."

Axiom 2

Machine-First Design

Built for AI reasoning, not human ergonomics. Decidable structure and semantic compression.

Axiom 7

Explicit Authority

No implicit access to the world. Capabilities are statically visible and constrained by budget.

Axiom 4

Pure Functional Core

Lambda calculus, pattern matching, ADTs. Composable features that never break reasoning.

Axiom 10
Loading benchmarks...

Give your AI coding agent live AILANG knowledge

One click adds https://mcp.ailang.sunholo.com/mcp/ as a remote MCP server. Your agent then has typed tools for stdlib, examples, design docs, and benchmarks — no more scraping the docs site.

Or copy the config manually

For harnesses without a one-click deeplink, paste this into your MCP config file (e.g. ~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "ailang-docs": {
      "url": "https://mcp.ailang.sunholo.com/mcp/",
      "transport": "streamable-http"
    }
  }
}

See the agent-MCP guide for the full tool catalog and examples.

Ready to Build with AI?

Start writing AILANG today. Full documentation, examples, and an interactive playground await.