Compile-time tensor shapes and built-in AI agents in one language.

Mora (.mr) catches matrix dimension mismatches before execution, validates structured LLM outputs and MCP tools without external SDKs, and compiles to standalone ~50 KiB C99 native binaries or 1.62 MiB runtime bundles.

Linux & macOS quick install (v0.4.0)
curl -fsSL https://raw.githubusercontent.com/MuaraAI/Mora/main/install.sh | sh
Symbolic Batch dim checked statically across @ matmul
$ mora check linear_relu.mr OK: examples/linear_relu.mr

One source language, three compiled execution targets

Every target shares the same parser, package resolver, and static shape checker. Features that rely on the async agent runtime fail explicitly at IR lowering with diagnostic E0501 rather than failing silently at runtime.

Mora execution backend comparison
Mode Output Supported workload
mora run / build --slim 1.62 MiB slim / 4.16 MiB full stub Full language: llm.*, mcp.*, db.*, http.*, toml.parse, chan[T]/select, proc.spawn, unix.*, py.*
mora build --hybrid Bundle + C99 IPC worker Mixed AI agents offloading pure tensor functions automatically over stdin/stdout IPC
mora build --native ~49.4 KiB C99 binary / .so Tensors, GGUF, autograd, enum/match/?, impl methods, list/map, POSIX pthread & Win32, --gpu=vulkan

OpenAI-compatible LLM and tool calls without external SDKs

Call llm.ask(prompt, Schema), llm.chat, llm.stream, and llm.embed directly in .mr code. Responses validate against your Mora schema and retry automatically via MORA_LLM_BASE_URL (OpenAI, Ollama, OpenRouter, Groq, DeepSeek).

Embedded MCP server and SQLite vector retrieval

Expose mcp.tool handlers over mcp.serve_stdio or multi-worker mcp.serve_http with JSON inputSchema generated directly from Mora schemas, backed by bundled WAL SQLite and raw f32 vector blobs via db.*, cosine_sim, and topk.

impl methods, sum types, and daemon orchestration

Attach Type::fn constructors, self, and var self methods onto schema and enum types in v0.4.0, alongside exhaustive match, ? propagation, typed chan[T] + select multiplexing, proc.spawn, and unix.* domain sockets.

Offline GGUF, autograd, and 13-module self-hosting morac

Load and save F32, F16, BF16, Q8_0, Q4_0, Q4_K, and Q6_K GGUF tensors, train with reverse-mode autograd.*, or compile pure Mora programs via the 13-module morac compiler passing 3-stage fixed-point bootstrap.

Measured benchmarks on v0.4.0

Every figure below is recorded directly on Linux x86_64 (Intel Core i5-6300U, 2 cores / 4 threads, AVX2/FMA, GCC 16.2.1) using a C posix_spawnp + wait4 timing harness.

View full methodology

How fast does a real SQLite + vector stdio MCP server cold-start and complete a 33-message session?

Lower is faster (ms, 5 runs avg)

Native MLP ELF (--native) 50,600 B ~49.4 KiB (libc / libm / pthread)
Slim Runtime (mora-rt-slim) 1,699,552 B ~1.62 MiB (--no-default-features)
Full Runtime (mora-rt) 4,363,840 B ~4.16 MiB (TLS + SQLite)
Full Toolchain CLI (mora) 5,515,072 B ~5.26 MiB (Compiler + LSP + GPU + morac)

Install Mora v0.4.0

Install prebuilt binaries with SHA-256 verification on Linux, macOS, or Windows, or install via Homebrew.

Downloads verified release archives for x86_64 & ARM64.
curl -fsSL https://raw.githubusercontent.com/MuaraAI/Mora/main/install.sh | sh

All 12 v0.4.0 release artifacts & SHA256SUMS.txt on GitHub

Scaffold a project by workload

Use mora init --template to generate a formatted mora.toml manifest, entry module, and runnable tests.

Structured LLM schema extraction starter with unit tests.
mora init my-agent --template agent

Includes pre-configured editors/ support for VS Code, Antigravity, Zed, Neovim, Helix, Sublime, and Emacs via mora lsp.