.gram syntax
GA Availability and sources
- Status
- GA
- Component
- .gram format / Gram Core
- Deployment
- n/a (format spec)
- Applies to version
- Latest
- Sources checked
- 2026-10-25
- Owner
- thegram-one/thegram-format
- Public evidence
- Basis
- The public .gram overview documents the plain-text file format and its retained history; no separate syntax-spec release version was found.
All pages: version and status matrix
Source review is not a provider installation, device test or live service guarantee.
Current source
Section titled “Current source”A current document begins with @gram 2, a doc <id> owner, and zero or more typed records. Current writer files end in a Core-owned @gram-history 6 trailer. The trailer is not authored article content.
@gram 1 remains a readable legacy source version; it is not the current writer format. IDs are stable document-local identifiers using letters, digits, hyphens or underscores. A record begins with a type code and ID, such as K local-search or T review-index. IDs are not derived from titles.
Fields and values
Section titled “Fields and values”A field is one line: key value. The value is the rest of that line and remains text; the format does not coerce a date, number, status or color. Common keys include t (title), d (description), x (status), s (scope), p (priority), owner, tag, source, ref, view and motion. t is required on the document and known records. Singleton fields cannot repeat; tag and source may repeat.
Blocks
Section titled “Blocks”A literal block starts with ::kind and ends at a line exactly equal to ::end. Payload is data, not executable code; block bodies do not nest. Unknown block kinds are retained. When a payload line itself equals ::end, escape it as \::end; the reader removes the escape.
Minimal valid source
Section titled “Minimal valid source”@gram 2doc index-notest Index notesK lookupt Keep query boundaries explicit::reasonThe index is a derived view, not canonical document content.\\\\\\::endAn escaped terminator line remains literal payload.::endA payload line equal to a terminator must be escaped, and the block still needs its own closing ::end.
See Records for type/field conventions and Relations for edge direction. Source grammar and validation are defined by the linked Core format specification.
Source
Section titled “Source”Source: .gram language specification
Reference: https://github.com/clab-one/thegram-format/blob/main/spec/language.md
Source: Current rich document specification
Reference: https://github.com/clab-one/thegram-format/blob/main/spec/rich-document.md
Source: Current History/6 specification
Reference: https://github.com/clab-one/thegram-format/blob/main/spec/source-history-render.md
Source and renderer evidence
- Canonical source SHA-256
8443977830c651d7784d91bdd61fee6ae2f76935a85554b60d90bc35221d532f- Selected revision
r5 · sha256:ea389f0d8defd071208f4d889781a58995aa696f15680ea28652a2928d9a0394- Local renderer
configured local Thegram renderer · API thegram-web-render/1- Core source
git+https://github.com/clab-one/thegram-format.git?rev=b16489e1d0d77d38f82d2f61776524737aa31557#b16489e1d0d77d38f82d2f61776524737aa31557
Canonical source: syntax-guide.gram
Something different from this guide? Report a docs issue · Troubleshooting
Review and send the email yourself. Do not include API keys or private document content.