Document-native programming language

Make knowledge
executable

A document-native programming language for human–AI collaboration and executable knowledge.

Start with one document

One Markdown document keeps the reasoning and exposes a callable function.

geometry.mq.md
# @knowledge Geometry

## 圆的面积 / Area of a circle

圆的面积与半径的平方成正比。The area of a circle is proportional to the square of its radius.

$$
S = \pi r^2
$$

前置条件 / Precondition: the radius is finite and non-negative.

## @exec circle_area

`params(r: Float)`

`return 3.141592653589793 * r * r`
@knowledge · Geometry

Area of a circle

The area of a circle is proportional to the square of its radius. The radius is a finite, non-negative real number.

S = πr2
r
A circle and its radius r · demo range 0–10

Calculate the area

See the CLI commands and execution evidence
Example file
examples/geometry.mq.md · SHA256 d48d4c065db43e0c9bacadc4b71a2a257c2171ae20d2f5af3ee5157eff9b2ebe
Commands
marqdo check examples/geometry.mq.md
marqdo call examples/geometry.mq.md Geometry.circle_area --arg r=3.0 --mode pure
CLI version
v3.0.0-rc.7 · prerelease · 63562d8ff5b40334366761ff4d3644d0dd5b458d
Recorded results
r=0 → 0 · r=1 → 3.141592653589793 · r=3 → 28.274333882308138
Not verified
r=10 has no recorded run for this build and is not shown as evidence.
Record
docs/BASELINE.md · The browser demo uses the fixed formula and is independent of the CLI record.

Reproduce this in Quick Start

A shared knowledge medium for people and AI

Shared expression
Read and audit the work in one document.
Guided execution
Models handle the parts that need judgement, while the program constrains the computation so results stay reproducible.
Lasting reuse
Verified methods and domain knowledge become assets with explicit provenance, preconditions, and call entry points.

From a language to a knowledge ecosystem

The CLI, standard libraries, optional extensions, tools, and applications each own a clear responsibility.

Grouped by responsibilityExplore the ecosystem
Language core
  • Marqdo CLI
Ecosystem components
  • Standard libraries
  • Extensions
  • Tools
Application entry
  • MQDH

Start your first document

Install for your platform, run a real example, then continue in the Wiki.

Quick start