GEML (General Expressive Markup Language) is a lightweight markup language whose core design goal is to make plain-text documents both human-readable and machine-operable. In scenarios where AI agents participate in development and knowledge work, traditional plain text and Markdown lack deterministic block boundaries, causing programs or models to exchange entire files, with token costs growing with document length, and format and semantic drift easily occurring after multiple rounds of rewriting. GEML solves these problems through unified, addressable blocks and standard verbs.
Main capabilities include:
- Block-level addressing: each block has a name and internal coordinates (such as table cells, data block leaves, and metadata keys), supporting precise get and set operations.
- Low-token reading and writing: only the target block enters the context, while the rest does not participate, reducing token consumption.
- Deterministic parsing: the syntax maps to an AST, supporting programs and LLMs in creating, reading, updating, and deleting block by block; writes are performed by byte splicing and validated as a whole, with untouched bytes remaining unchanged.
- Single source of truth and references: supports cross-document and cross-fragment references; modify the source once and all references follow; embeds are dynamic lookups, and deleting the source causes the build to fail.
- Bidirectional read/write robustness: unified block shapes, and a strict validator provides precise error locations and repair feedback.
- Profile domain extension: declaring a profile in meta adds domain vocabulary (such as design styles, forms, code diagrams, and media timelines) without new syntax, and unknown environments safely fall back to standard blocks.
Usage:
- Commands such as geml list, geml find, and geml get can be used directly on existing Markdown files without conversion, and .md files remain unchanged.
- Use geml <file> --to md|html to project .geml into Markdown or HTML deliverables (projection is lossy; block IDs and table-bound charts are not preserved).
- An online Playground is provided for trying it out without installation.
- A browser extension is provided to view embeds and projection effects.
Format essentials: block syntax is === type [attributes] … ===, with three or more equals signs opening a block and an equal-length run of equals signs closing it; blocks with #id can be closed with === #id. The type determines how the body is read: raw (code, charts, math, tables), flow (parsed prose), data (key=val per line), embed (no body, src= specifies the target). Tables support visual authoring or numericdata authoring, can compute columns and summary rows, and can also pull data from external CSV. Charts can host a DSL or bind to a table view. Data blocks support json, jsonl, and a yaml subset.
Applicable scenarios: agent-driven development, multi-agent collaboration, knowledge management, and document workflows that require precise block-level editing.
Limitations: GEML is a relatively new format, and maturity and version information are not yet available; projection to Markdown is lossy; some features (such as code diagrams) are still being explored.