AgentSlangASL
ASLAgentSlang · agent-oriented · pre-release

The glue language for agent-built infrastructure.

Agents write the code, the checker verifies it, people read the receipts. AgentSlang (ASL) is one agent-oriented language for code, data and tool calls, compiled to native code and WebAssembly. Pre-release.

curl -fsSL https://aslang.dev/install.sh | sh

Preview · not released. The script has not been verified on a clean machine yet: status in the docs

asl '(:tools)'

Once installed, this lists every toolbelt operation.

  • MIT / Apache-2.0 an open ecosystem in one public repository
  • ( ) structure, names and argument counts are checked before the run
  • native + wasm one source compiles through LLVM to native code and WebAssembly
01Goals

Six goals, each with its status.

Six goals, in the order we work on them. Each is marked with what works today, what is partial and what is only planned, so you can check us against the repository.

01 · Safe

Mistakes stop before they run

No nil and no exceptions: a missing value or a failure is an ordinary value the program has to handle. Unbalanced brackets, unknown names and wrong argument counts are rejected by the checker, and integer overflow or division by zero stops the program.

Works today
02 · Frugal

Less model work per change

The asl toolbelt hands an agent one function instead of a whole file, applies exact edits and reports whether the file still parses. How much model usage this saves is not measured yet: the experiment is written down and has not been run.

Tools work · saving not measured
03 · Many runtimes

One language, several runtimes

The same source compiles through LLVM to native code and to WebAssembly, which is how this page runs. A JavaScript target is experimental; the Python and Go targets are prototypes.

Native and wasm work · others early
04 · Compiled

A compiler written in its own language

The ASL compiler is written in ASL and compiles itself through LLVM. It is verified on macOS; Linux seeds exist and are not verified yet, Windows is not started. We publish no speed comparison with other languages yet.

Partial · no benchmarks yet
05 · Web and systems

From a browser tab to a native tool

The site you are reading is an ASL program compiled to WebAssembly. Native programs have files, processes and network access. Calling libraries written in other languages is planned.

Partial · foreign calls planned
06 · Small footprint

With the standard library or without it

The WebAssembly build carries its own allocator and garbage collector and asks its host for four functions. Freestanding and embedded targets are planned.

Planned
02Protocol

Many tool calls in one round trip.

Requests and answers are ASN forms, the same notation the code is written in. One asl call carries a batch of forms: a query, a read, an edit and a check go out together, and the answer is one (:batch …) with a receipt for each form, in order. Where an agent would make four tool calls, it makes one, and each receipt is data it reads directly.

One call, four operations
asl '(:query :text "handleRequest")
     (:read :file "src/server.asl" :symbol "handleRequest")
     (:edit :file "src/server.asl" :old "…" :new "…")
     (:check :file "src/server.asl")'
The edit stays staged until (:flush) writes it.
One answer, four receipts
(:batch
  (:query :in :code :defs ("src/server.asl#handleRequest") …)
  (:read :file "src/server.asl" :symbol "handleRequest" :start 12 :end 31 …)
  (:edit :file "src/server.asl" :staged true :syntax :ok …)
  (:check :file "src/server.asl" :source :staged :valid true …))
Receipt fields shortened with …
03Language & ecosystem

Agent loops, memory, data and web, in one language.

A small core language with first-party packages for agent loops, memory, data, web UI and checks, all in one public repository. Maturity varies: some packages are a single module.

69First-party packages in the tree
1Notation for code, data and tool calls
MIT / Apache-2.0Dual licence
1Public repository
Agents & memory

Loops, code queries and ledgers

Agent loops, worker coordination, symbol-level call-graph queries and git-tracked ASN memory ledgers.

asl-agentasl-coordasl-memasl-knowasl-intel
Data & storage

SQL, Parquet and CSV

SQL construction for SQLite, Postgres, MySQL and ClickHouse, a Parquet reader and writer, a CSV reader and a content-addressed store.

asl-sqlasl-parquetasl-csvasl-cas
Web, UI & media

Typed HTML5, SVG and CSS

HTML5, SVG and CSS built as typed ASL data and escaped by construction, plus audio and image file processing.

asl-htmlasl-vdomasl-uiasl-media
Network & gateways

HTTP, model routing and S3

HTTP client primitives, LLM provider routing, S3 request signing and web extraction.

asl-gatewayasl-httpasl-s3asl-crawler
Compile targets

Native, WebAssembly and early ports

asl-target-llvm emits native code and wasm32 modules. The JavaScript target is experimental; the Python and Go targets are prototypes.

asl-target-llvmasl-target-jsasl-target-pyasl-target-go
Verification & CLI

Checks, contracts and process control

asl check and asl test, contract checks, process helpers and session replay.

asl-cliasl-gatesasl-contractsasl-procasl-replay
04The toolbelt

Read a function, not a file.

Inside a git repository an agent queries symbols, reads exact definitions, stages edits, checks them and writes them, several forms to a call.

  1. asl '(:query :text "handleRequest")'Find the definitions and uses of a symbol in code, with a count of mentions elsewhere.
  2. asl '(:read :file "src/server.asl" :symbol "handleRequest")'Read one function with its line range instead of the whole file.
  3. asl '(:edit :file "src/server.asl" :old "…" :new "…")'Stage an exact replacement; the receipt says whether the file still parses.
  4. asl '(:diff) (:check :file "src/server.asl")'Inspect the staged change and run the checker in one call.
  5. asl '(:flush)'Write the staged edits, each file atomically, or (:discard) to drop them.
05Community

An open ecosystem. Come build it.

The compiler, the packages, the tools and this site form one open ecosystem in a public repository under MIT or Apache-2.0, and the work is planned in the open.

01 · Read

Start with one page

The language fits on one page, and llms.txt gives the same to your agent.

/docs · /llms.txt
02 · Try

Run it and tell us what broke

This is a pre-release: there are no binaries and a clean clone does not build yet. A report of what failed on your machine is the most useful contribution right now.

github.com/GenSEAM/asl
03 · Build

Pick a package or a target

69 first-party packages at different levels of maturity, and targets that need work: Linux verification, the JavaScript target, calls into other languages.

ROADMAP.md
04 · Measure

Help us check our own claims

The experiment that compares ASL with Python and TypeScript on the same tasks is specified and has not been run. If it fails, we will say so and change course.

EXPERIMENT.md
06Infrastructure glue

One language for every part of the ecosystem.

ASL is the glue between the parts of an agent's infrastructure: the compiler, the packages, the tools and this site are written in it. Agents write and change the code; people review it through checks, receipts and audits, not line by line. This page is an example: its markup, styles and event handlers compile through asl-target-llvm to a wasm32 module. A JavaScript bridge of 102 lines loads it, forwards clicks and moves Leon.

wasm32 module309 KB
lines of ASL (site and asl-html)2077
lines of JS bridge102
page re-rendered in wasm—