What is AML (Agent Machine Language), and what does its compiler do?

DIRECT ANSWER

AML (Agent Machine Language) describes agent work as declarative blocks such as mission, intent, capability and memory, with typed steps piped by →. The AML v1 compiler in this repo parses and validates source, builds a deterministic intent graph and hashes the source. It never executes AML or calls tools. Token savings over Python or JavaScript have not been measured, so none are claimed.

What does the live preview below measure?

It sends your source to POST /api/aml/compile and shows the result, including a simple lexer token count of the input you typed. That number counts AML lexer tokens; it is not an LLM tokenizer count and is not compared with any other language.

AML · STATIC COMPILE PREVIEW

Compile & sign receipts not executed

Open AML Studio
185/4000 chars · uses this repo's compiler at /api/aml/compile

What exists in the repo

  • IMPLEMENTEDAML compileStatic parse, intent graph, source hash./api/aml/compile
  • IMPLEMENTEDAML validateDiagnostics without a graph./api/aml/validate
  • IMPLEMENTEDAML StudioEditor UI for the compiler./aml-studio
  • VISIONAML execution runtimeAML is never executed today.
All docs pages