Navigation
Syntax Guide
Learn Logic
StudioCratesRoadmapContactNewsBenchmarks
GitHub

Code we can all read. Logic and mathematics built in. Bring your own agent.

Copy the prompt for your system into your coding agent. It installs largo and puts a LOGOS website on your screen.

Install largo yourself
macOS and Linuxcurl -fsSL https://logicaffeine.com/install.sh | sh
Windowsirm https://logicaffeine.com/install.ps1 | iex

Code Editor
# A Website in a Website This card is a whole website, and the program beside it is all of it. Change a line and the page rebuilds as you type: the words, the list, the button, the colours. ## Page / State: Let hellos be 0. Let dark be false. Let reasons be ["You can read every line.", "Logic and mathematics are built in.", "Your agent writes it with you."]. Actions: To wave: Set hellos to hellos + 1. To switchLights: Set dark to not dark. View: <section id="site" class="site" class:dark={dark}> <p class="kicker">Made with LOGOS</p> <h1 id="title">A website in a website</h1> <p>Everything on this card is the English program beside it.</p> <ul> {for each reason in reasons:} <li>{reason}</li> {end} </ul> <div class="row"> <button id="wave" on-click={wave}>Say hello</button> <button id="lights" class="secondary" on-click={switchLights}>Switch the lights</button> </div> <p id="hellos" class="count">{hellos | plural "hello" "hellos"} so far</p> </section> Style: .kicker { color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; } .row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0.75rem; } .count { color: var(--muted); margin: 0; } .site.dark { background: #1f1e1d; color: #f5f4ef; border-color: #3a3936; } .site.dark .count { color: #a3a29e; } .site.dark .secondary { color: #f5f4ef; border-color: #3a3936; } ## Test: every hello is counted Click "#wave". Click "#wave". Expect that the text of "#hellos" is equal to "2 hellos so far". ## Test: the lights switch off and on Click "#lights". Expect that the count of ".dark" is equal to 1. Click "#lights". Expect that the count of ".dark" is equal to 0.
Preview
00
Ln 1, Col 1Spaces: 4LOGOS

How LOGOS compares

Eight kinds of work, what each usually takes, and what LOGOS does there.

General purpose

Usually: Python, Rust, C

English programs, checked before they run, built through Rust, C or WebAssembly.

In largo

Proof assistants

Usually: Lean 4, Rocq

Theorems in English, checked by a kernel whose integers are Lean's.

In the Studio

Verification

Usually: Dafny, TLA+

Refinements and assertions checked as the program is built.

In largo

Logic and controlled English

Usually: Prolog, Attempto Controlled English

Sentences become first-order logic, with scope and every reading.

In the Studio

Hardware

Usually: SystemVerilog, Chisel

English specs become SystemVerilog assertions, programs become circuits.

In the Studio

GPU

Usually: CUDA

Transformers written as tensor sentences, lowered to CUDA, FPGAs and Tenstorrent.

In largo

Web

Usually: TypeScript, JavaScript

Pages, components and typed routes in English, tested where they run.

In the Studio

Concurrency and distributed

Usually: Elixir, Erlang, Automerge

Tasks and channels in English, collections that merge without conflict.

In largo

What comes with LOGOS

46 modules written in LOGOS, auto-imported as a program uses them.

548 of 548 capabilities of the C, Python, Rust, Go and Java standard libraries, checked against their sources.

  • Tests, properties and replays, written in the language.
  • A failing run replays, and the debugger steps backward.
  • Import joins files. The type checker runs on every join.
  • Infinitesimals, hyperreals and exact reals, compiled to Rust.
  • Theorems check in a kernel whose integers are Lean's.
  • HTTP served natively, with verified TLS.
  • One scheduler runs tasks on C, RISC-V and GPU.

FAQ

Is it really free?
Yes. LOGOS is open source under the MIT License. Use it for anything, for anyone, at any size.
Do I need to know logic already?
No. Learn teaches it step by step, in 18 modules and 483 exercises, free in the browser.
Which coding agents can use the instructions?
Any agent that can read a web page and run commands in a terminal, such as Claude Code, Cursor or Codex. The instructions are plain text, so they paste into any of them.
Where is the source?
On GitHub: github.com/Brahmastra-Labs/logicaffeine