hexa-lang CLAUDE.md

hexa-lang CLAUDE.md is an instructions file for Claude Code from dancinlab/hexa-lang. It costs 3,067 tokens per session, scanned A, original, MIT.

A project guide for hexa-lang, a self-hosted compiler that turns its own source language into native programs and includes a theorem atlas and package manager. It states the project’s release and self-hosting requirements.

In plain words
What is it for?
Use it when working on the compiler toolchain, native code generation and linking, self-hosting, build paths, or release-integrity checks.
Why use it?
It keeps development aligned with the project’s finish criteria, including removing reliance on generated C code and external C compilers.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions subagents.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dancinlab/hexa-lang/claude-md
Clone the repo
git clone --depth 1 https://github.com/dancinlab/hexa-lang

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hexa-lang CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dancinlab/hexa-lang/claude-md.svg)](https://agentmods.dev/instructions/dancinlab/hexa-lang/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dancinlab/hexa-lang/claude-md"><img src="https://agentmods.dev/badge/instructions/dancinlab/hexa-lang/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,067 This file is loaded in full into every session.
When invoked 3,067 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03067 $0.03067
Opus 5 $0.01533 $0.01533
Sonnet 5 $0.00613 $0.00613
Haiku 4.5 $0.00307 $0.00307

Measured 6d ago against content hash 3f99cb2bf8f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

hexa-lang CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

hexa-lang

Project

Native .hexa compiler with an embedded theorem atlas + hx package manager. No LLVM anywhere: source→own-IR→native, linked by hexa_ld — byte-identical self-host fixpoint (gen3 ≡ gen4).

⭐ SELF-HOST DONE CRITERION (user standing · the finish line): self-host is "done" only when the toolchain needs ① no hexa_cc.c (the emitted hexa→C transpile fallback at self/native/hexa_cc.chexa build/run lowers every flow through the native source→own-IR→native path, never the C-transpile delegate) · ② no runtime.c (the ~5.5k-LOC emitted-C runtime/libc-syscall substrate — ported to native .hexa/.s/own-emit so nothing compiles a generated .c) · ③ no clang (nor any external C compiler) to build OR use hexa (install/build/run never shell out to clang/gcc — the own object-emit backend + hexa_ld do the whole compile+link). All three are emitted (gitignored) artifacts today, not hand-written source — the self/*.c hand-source floor is already ∅ (git ls-files self/**/*.c == ∅, #4356 cuda + #4352 timegm), but file-∅ of hand-written C is NOT the DONE line; the DONE line is eliminating all three ①②③. ⚡ ACTIVE GOAL (user standing · 2026-07): drive all three ①②③ to DONE via a perpetual 3-lane fleet (selfhost-done-3axis-fleet — lane1=①hexa_cc, lane2=②runtime_c, lane3=③clang-flip, fire-on-arrival until each crosses; per-axis status SSOT = ARCHITECTURE.json activeGoal + convergence.records[]). Latest: axis-③'s LINK half is demonstrated — the own ELF linker links own .o + runtime.a → static ET_EXEC (exit 42, ZERO binutils, data-seg/bss covered, opt-in --linker=hexa, #4711–#4718); the COMPILE half (--backend=native --emit=obj) already exists, so the axis-③ frontier is the default-flip. Guardrail: release integrity > self-host progress — every flip opt-in-first → byteeq 3-target GREEN + shipping smoke → default-ON; the sole inviolable = no-LLVM.

Progress toward that line (measured tracks): the emitted-C substrate is a reducible RUNTIME-PORT target whose authoritative nm-UND libc floor is exposed per-CI (advisory dump in nobaseline-gate.yml, #4360); flips drop libc UNDs one family at a time — strtod-tail native default-ON (#4651, T_mis=0 vs glibc) · own-start default-ON drops atexit/environ/__libc_start_main (FLIP-7) · MULTIOBJ print-family native redirect default-ON (HEXA_RT_STDIO_NATIVE, #4856) drops printf/fprintf/perror/snprintf glibc-stdio UND from the ship runtime.a (own raw write(2), 3-target byteeq + ON-path GREEN; opt-out =0). fortify __*_chk dropped via -D_FORTIFY_SOURCE=0 (#4361) · perf-neutral syscall leaves routed to raw-svc (getpid #4358 · setpgid #4364) · compiler-synth memcpy/memset — a reference-matched glibc-style overlapping-load-dispatch native body measures 1.3–2.0× faster than libc for the small-copy (struct) regime + parity at large (summer, clang-18; the naive-byte-loop "perf-wall" is FALSIFIED), so the -fno-builtin-memcpy flip is a measured-viable next round gated on byteeq 3-target + real-workload perf, not a permanent wall. The clang-dependency (③) is the native-emit/self-assemble endgame — own object emit + hexa_ld replacing the clang compile+link, so a consumer needs only the hexa binary. Every formula-bearing fn must cite an atlas law (@cite)/@verify/@grace, else the build refuses to emit (HX8004). Domain tracking is retired.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 91 lines · 3,067 tokens per session scan A 3f99cb2bf8f7

Subscribe to this mod's changes

hexa-lang CLAUDE.md is an instructions file published in the GitHub repository dancinlab/hexa-lang (196 stars, last pushed 1mo ago), licensed MIT. It adds 3,067 tokens to every session, about $0.0153 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.