interplane.Get Omega
Read in your language

vscode-omega

aien-dev/vscode-omega

Brought by drakestapleton

branch main Branches Tags History

vscode-omega / README.md

155 lines · 8544 bytes Raw Blame History Source

Omega for VS Code

Syntax highlighting, snippets, and optional omc diagnostics and formatting for Omega (.om), the language of aien-dev/omega-mv.

extension

Connected repos: aien-dev/omega-mv (the language and omc, pinned in omega.ref) ยท aien-dev/tree-sitter-omega (the tree-sitter grammar my TextMate grammar is checked against, pinned in tree-sitter-omega.ref).

Install

I publish each version as a GitHub Release with its sha256. Download omega-<version>.vsix and omega-<version>.vsix.sha256 from the Releases page, then:

sha256sum -c omega-0.1.0.vsix.sha256
code --install-extension omega-0.1.0.vsix

Or build it yourself:

git clone https://github.com/aien-dev/vscode-omega && cd vscode-omega
npm ci
npx --no-install vsce package --no-dependencies -o omega-0.1.0.vsix

The extension is not on the Visual Studio Marketplace or Open VSX yet.

What it does

Diagnostics and formatting run only when the extension finds an omc: the omega.omcPath setting, else the first omc on PATH. Without one, the extension highlights and stays quiet.

Getting omc

omc is a static AArch64 Linux program. On an AArch64 Linux machine:

git clone https://github.com/aien-dev/omega-mv && cd omega-mv
sh seed/omega-from-seed.sh      # writes seed/out/omc

then set omega.omcPath to the full path of seed/out/omc. The script births omc from a 408-byte seed. Its limits, in full: the 408 bytes are a binary written as 7,903 bytes of commented hex text and turned into bytes by a 1,048-byte POSIX shell script (load0.sh); the shell's printf is the one outside tool, and the chain runs only on AArch64 Linux. Matching the published omc hash is a fixed-output reproducibility match along one build path from a pinned commit (369dbc96); it is not diverse double compilation, does not prove omc correct, and off AArch64 Linux it reports NOT_RUN.

On x86_64 Linux, macOS or Windows there is no native omc. On x86_64 Linux you can point omega.omcPath at a small wrapper script that runs qemu-aarch64 /path/to/omc; I have not tested that path.

Settings

settingdefaultmeaning
omega.omcPathemptypath to omc; empty means the first omc on PATH
omega.diagnostics.onSavetruecompile the file with omc on save and show its error
omega.omcTimeoutMs10000stop omc after this many milliseconds

How I test it

All of this runs in CI on GitHub's ubuntu-24.04-arm runner, with omc born from the seed at omega.ref:

MEASURED at omega-mv e5b32567 with the TextMate grammar of this commit and the tree-sitter-omega commit in tree-sitter-omega.ref (local run on a DGX Spark, 2026-10-28; CI has not run on these commits yet):

filestokens comparedTextMate and tree-sitter agree
393 omega-mv files omc accepts118,468118,468 (100%)
all 811 omega-mv *.om files211,404211,358 (99.978%)
3 files in test/fixtures/108108 (100%)

The 46 disagreements are all in files omc refuses: malformed hex numbers, which the two grammars split differently, and deliberately malformed test fixtures.

The same check over every public aien-dev repository with Omega in it (948 files omc accepts, in 17 of the 26 repositories measured, omega-rosetta at its corpus/200 commit a5b7330a; list and commits in tree-sitter-omega's README): 423,864 of 423,864 tokens agree. Over all 357 omega-rosetta files, exercise stubs and test.om files included, 100,651 of 100,651 agree. With the previous grammars (TextMate here at 885db1b, tree-sitter-omega 9b63612) it was 423,733 of 423,797 on the accepted files: a function named field outside a layout (aienos.com om/hive-render/render.om) and a note inside text (babel build/babel.om). With the previous grammars test/fixtures/ agreed on 108 of 117 tokens. test/agree.js now converts tree-sitter's byte columns to the editor's UTF-16 columns, so a line with a non-ASCII character no longer compares the wrong tokens.

Not tested: the extension on Windows or macOS, the qemu-aarch64 wrapper path, and VS Code versions other than 1.90.0.

Foreign dependencies

These are editor and packaging glue, not part of Omega:

dependencyversionwhat it does here
VS Code extension APIengine ^1.90.0hosts the extension; extension.js and omc.js are plain JavaScript run by VS Code
TextMate grammar formatn/asyntaxes/omega.tmLanguage.json, read by VS Code's tokenizer
@vscode/vsce4.0.0packages the .vsix (dev only)
@vscode/test-electron3.1.0downloads VS Code 1.90.0 and runs the in-editor test (dev only)
vscode-textmate, vscode-oniguruma9.3.2, 2.0.1run the TextMate grammar outside VS Code for test/agree.js (dev only)
Node.js24runs the tests and vsce
tree-sitter-cli0.27.1, via tree-sitter-omegathe other side of the agreement check (CI only)

An Omega-native editor protocol (a language server written in .om) would be the first-party replacement for extension.js; it does not exist yet.

Licence

Apache-2.0 WITH LLVM-exception. See LICENSE and NOTICE.

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions. This describes the development method, not a change to runtime autonomy or historical evidence.

For the documented method and a systems-software case study, see Gregory M. Kurtzer (2026), *Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering*, technical report, v1, Zenodo, https://doi.org/10.5281/zenodo.23682548.