The zero-dependency native programming language built for AI agents — not humans.
Try the AI engineering demo. Run the same Markdown through the original and fixed h0-md binaries, then follow the H0 code change through review, CI, and automatic merge. Demo source and reproduction
For an agent-readable starting point, see llms.txt. It links the verified native install, the Tape editing guide, and the contribution workflow.
Looking for a local tool for an existing agent workflow? Choose an H0 tool by task: MCP, JSON processing, log search, Markdown reports, RESP2 fixtures, HTTP and SQL.
The H0 Tape skill gives coding agents the native editing and verification workflow for .h0 files. Choose the install commands for your client.
Codex CLI
With Git and Codex CLI installed, add the Project H0 marketplace and install the plugin.
codex plugin marketplace add h0lang/h0 --sparse .claude-plugin --sparse skills
codex plugin add h0@h0lang
codex plugin list --marketplace h0langStart a new Codex session in your project. Use /skills to select H0 Tape and give Codex the file or change you want to work on.
Claude Code plugin
With Git and Claude Code installed, add the Project H0 marketplace and install the plugin.
claude plugin marketplace add h0lang/h0 --sparse .claude-plugin skills
claude plugin install h0@h0lang
claude plugin listOpen a Claude Code session in your project and invoke /h0:h0-tape with the file or change you want the agent to work on.
GitHub Copilot CLI
Install the instructions from the versioned skill release, then check the skill list.
copilot skill add https://raw.githubusercontent.com/h0lang/h0/h0-tape-v0.1.1/skills/h0-tape/SKILL.md
copilot skill listOn GitHub CLI versions with gh skill, the equivalent install from the same tag is:
gh skill install h0lang/h0 [email protected] --agent github-copilot --scope userGemini CLI
Install the skill from the current default branch. Review the source shown by Gemini CLI and confirm when prompted.
gemini skills install https://github.com/h0lang/h0.git --path skills/h0-tape
gemini skills listCopilot and Gemini list the skill as h0-tape. Install the native toolchain below to run its compiler commands.
Agent Skills CLI
npx skills add h0lang/h0 --skill h0-tapeFor agent tasks using released utilities, install the H0 Native Tools skill:
npx skills add h0lang/h0 --skill h0-native-toolsThe skill routes local tool tasks to the task guide and verification recipes. It preserves the user's chosen tools and uses each utility's documented behavior.
Get the native toolchain for Windows x64 (ZIP) or Linux x64 (tar.gz). Each archive includes the CLI, native seed compiler, source and runnable examples. The 2026-12-03 r2 archives include the corpus JSON escaping fix and POSIX path handling fix; the native seed compiler is unchanged. A Git checkout or separate compiler toolchain is optional.
Extract the archive and open a terminal in its h0 directory.
Windows PowerShell
.\h0.cmd run examples\calendar.h0 -- 2026Linux x64
./h0 run examples/calendar.h0 -- 2026The calendar starts with 2026-01. Download integrity hashes are published in native r2 SHA256SUMS. Both distribution archives are tested after extraction on their target operating system. Release details
Windows x64 with Scoop
With Scoop installed, run these commands in PowerShell to add the H0 bucket and install the compiler.
scoop bucket add h0 https://github.com/h0lang/scoop-h0
scoop install h0/h0
h0 --helpThe H0 Scoop bucket also contains the five standalone H0 tools. If you encounter a problem with installation or your first run, report it here.
H0 uses positional registers, flat 1-line-per-section Tape, and Unicode's 11,172-syllable Hangul block (U+AC00–U+D7A3, 19 × 21 × 28) as an instruction and macro encoding space. Each Hangul syllable occupies 3 UTF-8 bytes. Token counts depend on the tokenizer and surrounding text; a glyph is not guaranteed to be one token. Its self-hosted native compiler requires zero external toolchains (no LLVM, GCC, Rust, Node.js, or Python) and emits standalone Windows x64 PE, Linux x64 ELF, and bare-metal RV64 machine code directly.
H0 Byte Lab runs the two byte-processing functions below. Source and build instructions
The source-token comparison below covers the two displayed kernels. It does not measure a complete coding-agent session, including prompts, reasoning, tool calls and retries. Runtime and memory results describe the listed workloads and test environment. They do not establish general application performance, full API compatibility or improved accuracy for small on-device models.
The source-token row recounts the displayed H0, Rust and C++17 snippets. The timing harness used a multi-line Rust sum function and an extra blank line, which counted 75 tokens. The Python and Go counts come from the harness.
The timing benchmark used the same sum and sad byte-reduction tasks across seven languages. The native Windows x64 timings used DLLs built for the harness, including H0's library backend. The suite used 6 warmups and 9 samples with Clang 20.1.2, rustc 1.100, Go 1.27, Java 21, Node.js 24 and Python 3.10. Clang used -O3 -march=native. Rust used -O3 -C target-cpu=native.
| Metric | H0 (Native) | Python 3 | Rust (-O3) |
Go | C++17 (-O3) |
|---|---|---|---|---|---|
Code tokens (o200k_base) (sum + sad) |
23 (1.0×) | 34 (1.5×) | 74 (3.2×) | 120 (5.2×) | 135 (5.9×) |
Steady-state sum_4096 (4 KiB) |
416 ns | 15,395 ns (37× slower) | 574 ns | 944 ns | 578 ns |
Steady-state sad_1048576 (1 MiB) |
34.2 µs | 54,936 µs (1,608×) | 106.3 µs (3.1×) | 585.2 µs (17.1×) | 105.3 µs (3.1×) |
| Native MCP Server binary (4 tools, JSON-RPC 2.0) | 45.7 KB static ELF | ~50+ MB runtime | ~2–5 MB binary | ~6–12 MB binary | External compiler/libs |
MCP cold-start + 9 requests (Linux vfork median) |
0.51 ms, 564 KB RSS | 90.61 ms (178×, 10.7 MB) | Fast | Fast | Fast |
| External toolchain dependencies | 0 | Python + venv/pip | rustc + LLVM + linker | Go toolchain | clang/gcc + libc dev |
Recount the H0, Rust and C++17 source examples
With Python 3 available, install the pinned tokenizer and run the verifier from this checkout. It counts the source inside the three code fences, using UTF-8 with LF line endings and including the final line feed. It prints a SHA-256 digest for each input.
python -m pip install tiktoken==0.14.0
python -B .github/scripts/measure-kernel-tokens.py1sum'a Q'a
2sad'ab Q는다>리Bbc-리Bbc-Bbc리
fn sum(a: &[u8]) -> u64 { a.iter().map(|&x| u64::from(x)).sum() }
fn sad(a: &[u8], b: &[u8]) -> u64 {
a.iter().zip(b).map(|(&x, &y)| u64::from(x.abs_diff(y))).sum()
}uint64_t sum(const uint8_t* a, uint64_t n) {
uint64_t total = 0;
for (uint64_t i = 0; i < n; ++i) total += a[i];
return total;
}
uint64_t sad(const uint8_t* a, uint64_t n, const uint8_t* b, uint64_t m) {
uint64_t total = 0;
for (uint64_t i = 0; i < std::min(n, m); ++i)
total += std::abs(int(a[i]) - int(b[i]));
return total;
}- Zero-Dependency Native MCP Servers & Agent Micro-Tools
Instead of shipping 100–150 MB Node.js/Python runtimes just to expose a few local tools to Claude Desktop, Cursor, Codex, or Antigravity, compile
examples/mcp-server.h0into a single 45.7 KB static ELF / 47.0 KB PE binary with 0.51 ms cold-start session latency and 564 KB peak RSS. - Parallel Multi-Agent Swarm Editing Without Merge Hell
Every H0 function is a self-contained physical line (
1 line = 1 section). Agents hash every section with Merkle-Tape (no AST parser) and submit optimistic-concurrency patches via Proof-Patch OCC — stale multi-agent conflicts are cryptographically rejected atomically (exit 3). - Verifiable, Self-Auditable AI-Generated Binaries
With Self-Carrying Executables (
examples/self-carrier.h0), a 27 KB native binary embeds its own 125-byte H0 source, attests its SHA-256 live (--h0-hash), and emits source (--h0-source) that directly recompiles into an identical executable.
Build a standalone JSON-RPC 2.0 MCP server (h0_sha256, h0_base64, h0_merkle_root, h0_cabi_layout) with zero external dependencies:
# Linux x64 (produces a 45.7 KB static ELF binary)
./h0 mcp --build -o h0-mcp
# Windows x64 (produces a 47.0 KB PE executable)
.\h0.cmd mcp --build -o h0-mcp.exeConnect the built executable as a local stdio MCP server. The configuration format depends on the client. For clients using the mcpServers JSON format, merge this fragment into their existing server settings:
{
"mcpServers": {
"h0-native": {
"command": "/absolute/path/to/h0-mcp"
}
}
}On Windows, use an absolute, JSON-escaped executable path such as "D:\\Tools\\h0\\h0-mcp.exe".
For Codex CLI, register the executable with its MCP command instead of using the JSON fragment:
# Linux x64: replace the path with the executable you built above.
codex mcp add h0-native -- /absolute/path/to/h0-mcp
codex mcp get h0-native# Windows x64: run from the directory containing h0-mcp.exe.
codex mcp add h0-native -- (Resolve-Path .\h0-mcp.exe).Path
codex mcp get h0-nativeThese commands save and inspect the launch configuration; they do not prove a client session has connected. In a connected client, confirm that all four tools are listed. Starting the executable in a terminal waits for MCP messages on stdin; it does not open a browser or listen on a network port. See Codex MCP configuration and the standalone server's release installation instructions.
Clone the repository and run immediately — the bundled seed compilers are bit-for-bit verified (seed == stage3 == stage4):
Linux x64
./h0 run examples/calendar.h0 -- 2026
./h0 run examples/ffi-linux.h0 # Live dynamic ELF64 libc/libm FFI (0 gcc/ld)
./h0 test # Pure-H0 unit test suite (std/test.h0)
./h0 verify # 4-stage fixed point + 106/106 examples + live suiteWindows x64
.\h0.cmd run examples\calendar.h0 -- 2026
.\h0.cmd run examples\ffi-cabi.h0 :: Live Win64 DLL FFI + Float64 + H0 callback in qsort
.\h0.cmd test :: Pure-H0 unit test suite (std/test.h0)
.\h0.cmd verify :: 4-stage fixed point + 106/106 examples + live suite- Zero-Dependency Native MCP Server (std/mcp.h0, examples/mcp-server.h0): RFC-8259 JSON-RPC 2.0 over stdio (
initialize,ping,tools/list,tools/call) compiling to a 45.7 KB Linux ELF / 47.0 KB Windows PE binary with 0.51 ms cold-start session latency and 564 KB peak RSS. - Section-CAS / Merkle-Tape (std/merkle-tape.h0, examples/merkle-tape.h0): Content-addressed SHA-256 Merkle graph over every H0 section (
root+ per-section hash & byte span) with zero AST parser. - Self-Carrying Executable Binaries (std/self-carrier.h0, examples/self-carrier.h0): Native 27 KB PE/ELF binaries embedding their own ~125-byte H0 source for live
--h0-hashself-attestation and--h0-sourcerecompilation. - Proof-Carrying Atomic Section Patcher (std/proof-patch.h0, examples/proof-patch.h0): OCC patch engine verifying cryptographic pre-root + target section SHA-256 before splicing edits, rejecting stale conflicts atomically (
exit 3). - Cross-Platform Native C ABI FFI + Float64 + Callbacks (std/ffi-win.h0, std/ffi-linux.h0, std/c-abi.h0, examples/ffi-cabi.h0, examples/ffi-linux.h0): Dynamic Windows DLL (
LoadLibraryA) and Linux shared-object (dlopen/dlsymvia 6-PHDR dynamic ELF64) calls with integer, pointer, and IEEE-754double(XMM0–XMM5) arguments plus native H0 callbacks (\@fn). - Pure-H0 Unit Testing & Auto-Bundled CLI (std/test.h0, examples/test-suite.h0): Built-in assertion harness (
h0 test) plus automatic# Append/# Bundleand--withresolution so multi-module systems (lox.h0,sql-subset.h0,git-repository.h0,markdown.h0) run in one command. - Agent Protocol, Diagnostic Hints & Pure-H0 SFT Corpus (std/corpus-gen.h0, examples/corpus-gen.h0): Actionable
[hint: ...]diagnostics (E101..E136), one-shoth0 coach, scopedh0 guide, call-graph queries, andh0 corpusexporting section-level JSONL records with source text, signatures and hashes using zero Python. Export does not check source validity or create prompt/response training pairs; validate source in its original module context before preparing a training dataset. - Native x64 Backend Optimizations (examples/opt-bench.h0): SSE2 vectorization, 1-cycle
LEAstrength reduction (*3/*5/*9),xor eax, eaxzero-idioms, 3-byteinc/dec rax, and macro-fusedtest rax, rax— verified across 4-stage bit-for-bit fixed-point convergence.
Start with CONTRIBUTING.md, choose a compiler fix, example, tool improvement or reproducible benchmark, and open a runnable PR targeting main.
The Codex review-and-merge controller reviews immutable changes and records an approval or actionable rejection. Approved changes can merge automatically after Windows and Linux CI and a separate check of the exact merge snapshot pass. A rejection leaves the PR open for a revised commit. Review timing depends on the connected worker and available Codex quota.
The controller's own source completed this path in PR #9. PR #15 also demonstrates an AI-authored branch refresh followed by CI and automatic integration.
For local MCP tools, the standalone h0-mcp release includes Windows and Linux x64 binaries and an experimental MCPB bundle. It is listed in the official MCP Registry. The bundle's schema and extracted Windows command have been tested; desktop extension installation remains unverified.
Five standalone tools written in H0 ship prebuilt executables. The table shows exact download sizes for the linked releases. Each repository documents its own benchmark workloads and results.
Try the tool bundle on Linux or Windows. The example takes a CI job summary and a log, then generates an HTML report using h0-jq, h0-grep, and h0-md.
| Project | Release | Linux x64 bytes | Windows x64 bytes | What it does |
|---|---|---|---|---|
| h0-jq | v0.2.0 | 348,122 | 345,088 | JSON filters, recursive functions and regular expressions |
| h0-redis | v0.1.1 | 44,811 | 59,392 | RESP2 key-value server |
| h0-mcp | v0.1.1 | 47,647 | 49,152 | Four local tools over MCP stdio |
| h0-grep | v0.1.1 | 19,290 | 30,720 | Fixed-string search CLI |
| h0-md | v0.1.2 | 148,316 | 160,256 | Markdown-to-HTML conversion |
Find direct downloads, checksums and the optional MCP packages in the release inventory, verified on 2026-12-02.
- Bootstrap & CI: bootstrap/modules.txt, bootstrap/rebuild.ps1, bootstrap/rebuild.sh, .github/workflows/ci.yml
- Agent References: EDIT.md, CORE.md, AGENTS.md, h0lang.com Agent Spec
- Libraries & Examples: Standard library (131 modules), Examples (106 programs)
Created and maintained by Hyeonwoo Kim ([email protected]). Licensed under Apache 2.0.