T81 Foundation

T81 CLI User Manual

This is the operator manual for the t81 CLI. Everything in this document is intended to match the current shipped binary behavior.

Last Updated: March 9, 2026

1. Quick Start

Build:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel

Show top-level help:

./build/t81 --help # docs-smoke

Minimal compile/run flow:

./build/t81 code check examples/hello_world.t81
./build/t81 code build examples/hello_world.t81 -o hello.tisc
./build/t81 code run hello.tisc

1.1 Reviewer Notes

This manual is the support contract for the shipped t81 binary. If a command, flag, or output shape is not documented here or in docs/product/CLI_JSON_SCHEMA_CONTRACTS.md, it is not part of the stable public automation contract.

Support boundary:

Determinism scope:

Machine-readable contract:

2. Global Options

These options are accepted before or after the command token:

Examples:

./build/t81 -q version # docs-smoke
./build/t81 version -q # docs-smoke
./build/t81 help code # docs-smoke
./build/t81 help project # docs-smoke
./build/t81 help env # docs-smoke
./build/t81 help internal # docs-smoke
./build/t81 help completion # docs-smoke
./build/t81 help man # docs-smoke
./build/t81 help feedback # docs-smoke
./build/t81 code test --json --list # docs-smoke
./build/t81 env doctor --json # docs-smoke
./build/t81 completion bash # docs-smoke
./build/t81 man # docs-smoke
./build/t81 help advanced # docs-smoke
./build/t81 help labs # docs-smoke

3. Command Tiers

t81 --help shows the core workflow commands. Domain-first command families:

Additional curated help topics are available via:

Current Labs commands include pkg, benchmark, repro-hash, canonize-tensor, canonize-file, memory-stats, and llama-run. code is the preferred general workflow surface. lang exposes the same frontend workflow plus direct IR-oriented helpers, and tensor is a narrow artifact utility family for canonicalization and inspection.

4. Commands

4.1 Domain-First Groups

t81 code <action> [args]
t81 project <action> [args]
t81 env <action> [args]
t81 internal <action> [args]
t81 canonfs <action> [args]
t81 determinism <action> [args]
t81 vm <action> [args]
t81 tisc <action> [args]
t81 ir <action> [args]
t81 c <action> [args]
t81 llvm <action> [args]
t81 mlir <action> [args]
t81 tier <action> [args]
t81 weights <action> [args]
t81 policy <action> [args]
t81 axion <action> [args]
t81 trace <action> [args]
t81 completion <bash|zsh|fish>
t81 man [--install-dir <dir>]
t81 feedback <submit|report> [options]

Primary workflow actions:

t81 lang check <file.t81>
t81 lang build <file.t81|file.t81w> [-o <file.tisc>] [--weights-model <model.t81w>]
t81 lang validate <file.t81> [--json]
t81 lang export <file.t81> [--json] [-o <file>]
t81 code check <file.t81>
t81 code fmt [options] <file...>
t81 code build <file.t81|file.t81w> [-o <file.tisc>] [--weights-model <model.t81w>]
t81 code run <file.t81|file.tisc> [--policy <policy.apl>] [--trace] [-o <file>|--output <file>] [--weights-model <model.t81w>]
t81 code profile <file.t81|file.tisc> [--policy <policy.apl>] [--json]
t81 code test [options] [-- <ctest args...>]
t81 code disasm <file.tisc>
t81 code debug <file.t81|file.tisc> [--policy <policy.apl>] [--weights-model <model.t81w>]
t81 code repl [--weights-model <model.t81w>] [--policy <policy.apl>]
t81 canonfs put-file <file> [--canonfs-root <path>]
t81 canonfs put-tensor <file> [--canonfs-root <path>]
t81 canonfs ls [--json] [--canonfs-root <path>]
t81 canonfs get <sha3-256:hash> [-o <file>] [--json] [--canonfs-root <path>]
t81 canonfs stat <sha3-256:hash> [--json] [--canonfs-root <path>]
t81 canonfs verify <sha3-256:hash> [--json] [--canonfs-root <path>]
t81 canonfs snapshot [--json] [--canonfs-root <path>]
t81 canonfs snapshot-diff <lhs> <rhs> [--json] [--canonfs-root <path>]
t81 canonfs rollback --to <hash> [--dry-run] [--json] [--canonfs-root <path>]
t81 canonfs gc [--dry-run] [--json] [--canonfs-root <path>]
t81 canonfs repair [--dry-run] [--json] [--canonfs-root <path>]
t81 determinism verify [dir]
t81 determinism verify-run <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism compare-run <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism certify <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism explain <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism hash <file> [--json]
t81 determinism trace-hash <trace.txt> [--json]
t81 determinism diff <lhs> <rhs> [--json]
t81 determinism diff-trace <lhs> <rhs> [--json]
t81 determinism multi-run <file.tisc> --count <n> [--policy <policy.apl>] [--json]
t81 determinism baseline <dir> [--source-dir <src>] [--json]
t81 determinism bisect <dir> [--json]
t81 vm run <file.tisc> [--policy <policy.apl>] [-o <trace.txt>]
t81 vm debug <file.tisc> [--policy <policy.apl>]
t81 vm trace <file.tisc> [--policy <policy.apl>] [-o <trace.txt>]
t81 vm until <file.tisc> --pc <n> [--policy <policy.apl>] [--steps <n>] [--json]
t81 vm step <file.tisc> [--policy <policy.apl>] [--count <n>] [--json]
t81 vm regs <file.tisc> [--policy <policy.apl>] [--steps <n>] [--json]
t81 vm stack <file.tisc> [--policy <policy.apl>] [--steps <n>] [--limit <n>] [--json]
t81 vm mem <file.tisc> --addr <n> [--policy <policy.apl>] [--steps <n>] [--json]
t81 vm state <file.tisc> [--policy <policy.apl>] [--json]
t81 vm profile <file.tisc> [--policy <policy.apl>] [--json]
t81 vm explain-trap <file.tisc> [--policy <policy.apl>] [--json]
t81 tisc disasm <file.tisc>
t81 tisc validate <file.tisc> [--json]
t81 tisc stats <file.tisc> [--json]
t81 tisc encode <file.base81> [-o <out.tisc>] [--json]
t81 tisc decode <file.tisc> [-o <out.base81>] [--json]
t81 tisc diff <a.tisc> <b.tisc> [--json]
t81 ir show <file.t81>
t81 ir dump <file.t81>
t81 ir validate <file.t81> [--json]
t81 ir export <file.t81> [--json] [-o <file>]
t81 c compile <file.c> [-o <file.mlir>] [--emit mlir] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]
t81 rust compile <file.rs> [-o <file.mlir>] [--emit mlir] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]
t81 llvm compile <file.t81|file.tisc> [-o <file.ll|file.bc>] [--bitcode] [--no-comments]
t81 mlir compile <file.t81|file.tisc> [-o <file.mlir>] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]
t81 mlir lower <file.mlir> [-o <file.ll>]
t81 mlir pipeline <file.t81|file.tisc> [-o <file.ll>] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]
t81 tier info [--json]
t81 tier check <file.tisc> [--json]
t81 tier gate <file.tisc> --max-tier <n> [--json]
t81 tensor canonize <file>
t81 tensor hash <file> [--json]
t81 tensor inspect <model.t81w> [--json]
t81 weights import <file> [-o <out>] [--format <fmt>]
t81 weights info <model.t81w> [--json]
t81 weights verify <model.t81w> [--json]
t81 weights export <model.t81w> --to-safetensors <out> [--json]
t81 weights quantize <input> --to-gguf <out>
t81 policy compile <file.apl> [-o <out>]
t81 policy validate <file.apl|file.axionb> [--json]
t81 policy run <file.apl|file.axionb> [--json]
t81 policy test <file.apl|file.axionb> --model-hash <hash> [--json]
t81 policy list [--json] [--dir <path>]
t81 axion status [--json]
t81 axion optimize [--tier N] [--json]
t81 axion simulate <file.tisc> [--json]
t81 axion explain <file.apl|file.axionb> [--json]
t81 axion snapshot [--json]
t81 axion snapshot-diff <lhs> <rhs> [--json]
t81 axion rollback --to <hash> [--json]
t81 axion log [--json] [--tail <n>]
t81 axion audit [--from <hash>] [--to <hash>] [--json]
t81 trace show <trace.txt> [--no-color]
t81 trace diff <trace1.txt> <trace2.txt> [--no-color]
t81 trace replay <file.tisc> <trace.txt> [--json]
t81 trace summary <trace.txt> [--json]
t81 trace stats <trace.txt> [--json]
t81 trace filter <trace.txt> [--opcode <name>] [--trap <name>] [--pc-start <n>] [--pc-end <n>] [--json]
t81 trace canonicalize <trace.txt> [-o <file>]
t81 trace export <trace.txt> [--format <json|csv>] [-o <file>]
t81 project init <project_name>
t81 project build [file.t81]
t81 project run [file.t81] [--policy <p>]
t81 project test [options]
t81 repl
t81 env check [--json]
t81 env doctor [toolchain|canonfs|vm] [--json]
t81 env paths [--json]
t81 env diag [--json]
t81 env toolchain [--json]
t81 env clean [--build-dir <path>] [--force] [--json]
t81 env feedback <submit|report> [options]
t81 internal pkg <subcommand> [args]
t81 internal benchmark [benchmark_runner_flags...]
t81 internal repro-hash [fixtures_dir]
t81 internal canonize-tensor <file>
t81 internal canonize-file <file> [--canonfs-root <path>]
t81 internal memory-stats [file]
t81 internal llama-run <model.gguf|sha3-256:hash> <prompt> --policy <policy.apl> [options]
t81 completion bash|zsh|fish
t81 man [--install-dir <dir>]
t81 feedback submit --rating <1-5> [--note <text>] [--path <file>]
t81 feedback report [--path <file>]

4.2 project

t81 project init <project_name>
t81 project build [file.t81]
t81 project run [file.t81] [--policy <policy.apl>]
t81 project test [options]

project init creates a project directory with main.t81 and README.md. project build compiles the project’s T81 source to TISC bytecode via code build; if no file is supplied it defaults to main.t81 in the current working directory. project run compiles (if needed) and executes via code run; if no file is supplied it defaults to main.t81 in the current working directory. It accepts --policy to attach an Axion policy file. project test delegates to code test and runs the project test suite through CTest.

4.10a memory-stats

t81 internal memory-stats [file]

Shows memory pool configuration. If a file is supplied, the current implementation reports runtime memory footprint, allocation counters, and peak pool usage after execution.

4.11 test

t81 code test [options] [-- <ctest args...>]
t81 code test --build-dir <path>
t81 code test --filter <regex>
t81 code test --json
t81 code test --list

Runs project tests through CTest. --json uses schema t81.test.v1 and includes a summary block.

4.12 doctor

t81 env doctor [toolchain|canonfs|vm] [--json]

Runs environment/toolchain readiness checks and prints actionable fixes. Optional scopes narrow the checks to toolchain availability, CanonFS readiness, or VM/build readiness. --json uses schema t81.doctor.v1.

4.12a env check / env paths / env diag / env toolchain

t81 env check [--json]
t81 env paths [--json]
t81 env diag [--json]
t81 env toolchain [--json]

env check is a quick pass/fail readiness probe: exits 0 if the build environment is ready, 1 if not. Minimal output by default; --json uses schema t81.env-check.v1. env paths reports important working directories. env diag aggregates repo/build discovery, toolchain readiness, CanonFS readiness, and Axion state with schema t81.env-diag.v1. env toolchain probes common developer tools with schema t81.env-toolchain.v1.

4.13 fmt

t81 code fmt [options] <file...>
t81 code fmt --check <file...>
t81 code fmt --json <file...>
t81 code fmt --version

Normalizes whitespace and applies parser-aware .t81 indentation formatting. For .t81, formatting runs syntax validation before and after rewrite and enforces idempotence. --json uses schema t81.fmt.v1.

4.14 pkg (labs)

t81 internal pkg <subcommand> [args]
t81 internal pkg init [package_name]
t81 internal pkg check [package.t81] [--json]

Creates/validates package.t81. This surface is currently experimental and not part of the default core help view. pkg check --json uses schema t81.pkg-check.v1.

4.15 benchmark

t81 internal benchmark [vm|canonfs|weights|determinism] [benchmark_runner_flags...]

Runs benchmark runner with forwarded benchmark flags. Optional subsystem selectors expand to benchmark filters for common suites: vm, canonfs, weights, and determinism.

4.16 weights

t81 weights <subcommand> [options]
t81 weights import <file> [-o <out>] [--format <fmt>]
t81 weights info <model.t81w> [--json]
t81 weights verify <model.t81w> [--json]
t81 weights export <model.t81w> --to-safetensors <out> [--json]
t81 weights quantize <input> --to-gguf <out>

Weight import/info/export/quantization helpers. weights info --json uses schema t81.weights-info.v1 and returns ok: false with an error field on load failures. weights verify --json uses schema t81.weights-verify.v1. weights export --json uses schema t81.weights-export.v1.

4.17 policy

t81 policy <subcommand> [options]
t81 policy compile <file.apl> [-o <out>]
t81 policy run <file.apl|file.axionb> [--json]
t81 policy test <file.apl|file.axionb> --model-hash <hash> [--json]
t81 policy list [--json] [--dir <path>]

Policy compile/validation helpers. Policies are written in APL (Axion Policy Language), an s-expression dialect — e.g. (allow-all), (deny opcode TLOADHASH).

policy compile compiles an .apl source file to a binary .axionb artifact. policy list recursively scans <dir> (default: current directory) for .apl policy files and prints their paths. --json uses schema t81.policy-list.v1. policy run --json uses schema t81.policy-run.v1. policy test --json uses schema t81.policy-test.v1.

4.17a axion

t81 axion status [--json]
t81 axion optimize [--tier N] [--json]
t81 axion simulate <file.tisc> [--json]
t81 axion explain <file.apl|file.axionb> [--json]
t81 axion snapshot [--json]
t81 axion snapshot-diff <lhs> <rhs> [--json]
t81 axion rollback --to <hash> [--json]
t81 axion log [--json] [--tail <n>]
t81 axion audit [--from <hash>] [--to <hash>] [--json]

Axion governor and policy-diagnostics helpers. axion status reports current governor state plus any detected issues such as a missing state file or a recorded active snapshot that no longer exists. axion optimize captures a fresh snapshot, records the requested tier, and reports manifest delta counts against the previous active snapshot. axion log reads the persisted Axion state from <canonfs-root>/axion/state.json and prints the current tier, active snapshot, and recent snapshot receipts. --tail <n> limits output to the last n entries. --json uses schema t81.axion-log.v1. axion audit defaults to diffing the recorded active snapshot against the latest snapshot, which makes it useful as a quick “what changed since last governor state” check. axion explain --json uses schema t81.axion-explain.v1. axion status --json uses schema t81.axion-status.v1. axion optimize --json uses schema t81.axion-optimize.v1. axion simulate --json uses schema t81.axion-simulate.v1. axion audit --json uses schema t81.axion-audit.v1. axion snapshot-diff --json reuses schema t81.canonfs-snapshot-diff.v1.

4.18 trace

t81 trace <subcommand> [args]
t81 trace show <trace.txt> [--no-color]
t81 trace diff <trace1.txt> <trace2.txt> [--no-color]
t81 trace replay <file.tisc> <trace.txt> [--json]
t81 trace summary <trace.txt> [--json]
t81 trace stats <trace.txt> [--json]
t81 trace filter <trace.txt> [--opcode <name>] [--trap <name>] [--pc-start <n>] [--pc-end <n>] [--json]
t81 trace canonicalize <trace.txt> [-o <file>]
t81 trace export <trace.txt> [--format <json|csv>] [-o <file>]

Trace inspection and export utilities. trace export --format json emits entries with schema t81.trace-export-entry.v1. trace replay expects a clean trace file; t81 code run <file.tisc> -o <trace> produces the intended input. If the trace file cannot be opened, trace replay --json returns kind: "open_error" without extra human-readable stderr noise. trace summary --json uses schema t81.trace-summary.v1. trace filter --json uses schema t81.trace-filter.v1. trace canonicalize normalizes ad hoc traces into replay-safe canonical form.

4.18a canonfs

t81 canonfs put-file <file> [--canonfs-root <path>]
t81 canonfs put-tensor <file> [--canonfs-root <path>]
t81 canonfs ls [--json] [--canonfs-root <path>]
t81 canonfs get <sha3-256:hash> [-o <file>] [--json] [--canonfs-root <path>]
t81 canonfs stat <sha3-256:hash> [--json] [--canonfs-root <path>]
t81 canonfs verify <sha3-256:hash> [--json] [--canonfs-root <path>]
t81 canonfs snapshot [--json] [--canonfs-root <path>]
t81 canonfs snapshot-diff <lhs> <rhs> [--json] [--canonfs-root <path>]
t81 canonfs rollback --to <hash> [--dry-run] [--json] [--canonfs-root <path>]
t81 canonfs gc [--dry-run] [--json] [--canonfs-root <path>]
t81 canonfs fsck [--json] [--canonfs-root <path>]
t81 canonfs repair [--dry-run] [--json] [--canonfs-root <path>]

CanonFS inspection and snapshot tooling. canonfs ls --json uses schema t81.canonfs-list.v1. canonfs get --json uses schema t81.canonfs-get.v1. canonfs stat --json uses schema t81.canonfs-stat.v1. canonfs verify --json uses schema t81.canonfs-verify.v1. canonfs snapshot-diff --json uses schema t81.canonfs-snapshot-diff.v1. canonfs snapshot records canonical manifest state and mutable metadata without duplicating the immutable object store. Symlinked paths under the CanonFS root are rejected by snapshot, rollback, and related audit flows. canonfs rollback --dry-run previews the target snapshot without mutating HEAD. canonfs gc --dry-run previews removable objects; --json uses schema t81.canonfs-gc.v1. canonfs fsck --json uses schema t81.canonfs-fsck.v1 and validates object/blob readability plus snapshot manifests. canonfs repair --json uses schema t81.canonfs-repair.v1 and removes legacy snapshot-local objects/ trees created by older snapshot implementations.

4.18b determinism

t81 determinism verify [dir]
t81 determinism verify-run <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism certify <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism explain <file.tisc> [--policy <policy.apl>] [--json]
t81 determinism hash <file> [--json]
t81 determinism trace-hash <trace.txt> [--json]
t81 determinism diff <lhs> <rhs> [--json]
t81 determinism diff-trace <lhs> <rhs> [--json]
t81 determinism multi-run <file.tisc> --count <n> [--policy <policy.apl>] [--json]

Determinism verification and artifact hashing tools. determinism verify-run --json uses schema t81.determinism-verify-run.v1. determinism certify --json uses schema t81.determinism-certificate.v1. determinism explain --json uses schema t81.determinism-explain.v1. determinism hash --json uses schema t81.determinism-hash.v1. determinism trace-hash --json uses schema t81.determinism-trace-hash.v1. determinism diff --json uses schema t81.determinism-diff.v1. determinism diff-trace --json uses schema t81.determinism-trace-diff.v1. determinism multi-run --json uses schema t81.determinism-multi-run.v1. determinism verify checks a baseline.json directory when one is supplied; otherwise it falls back to the existing reproducibility fixture gate.

determinism baseline scans a directory for .tisc files, executes each artifact once, and writes artifact/output/trace SHA3-512 hashes to baseline.json; --json uses schema t81.determinism-baseline.v1.

4.18c vm

t81 vm run <file.tisc> [--policy <policy.apl>] [-o <trace.txt>]
t81 vm debug <file.tisc> [--policy <policy.apl>]
t81 vm trace <file.tisc> [--policy <policy.apl>] [-o <trace.txt>]
t81 vm step <file.tisc> [--policy <policy.apl>] [--count <n>] [--json]
t81 vm regs <file.tisc> [--policy <policy.apl>] [--steps <n>] [--json]
t81 vm stack <file.tisc> [--policy <policy.apl>] [--steps <n>] [--limit <n>] [--json]
t81 vm mem <file.tisc> --addr <n> [--policy <policy.apl>] [--steps <n>] [--json]
t81 vm state <file.tisc> [--policy <policy.apl>] [--json]
t81 vm profile <file.tisc> [--policy <policy.apl>] [--json]
t81 vm explain-trap <file.tisc> [--policy <policy.apl>] [--json]

VM-oriented entry points for execution, replay-safe trace capture, debugging, and final-state reporting. vm step --json uses schema t81.vm-step.v1. vm regs --json uses schema t81.vm-regs.v1. vm stack --json uses schema t81.vm-stack.v1. vm mem --json uses schema t81.vm-mem.v1. vm state --json uses schema t81.vm-state.v1. vm profile --json uses schema t81.vm-profile.v1. vm explain-trap --json uses schema t81.vm-trap-explain.v1.

4.18d tisc

t81 tisc disasm <file.tisc>
t81 tisc validate <file.tisc> [--json]
t81 tisc stats <file.tisc> [--json]
t81 tisc encode <file.base81> [-o <out.tisc>] [--json]
t81 tisc decode <file.tisc> [-o <out.base81>] [--json]
t81 tisc diff <a.tisc> <b.tisc> [--json]

TISC-oriented artifact inspection commands. tisc validate --json uses schema t81.tisc-validate.v1. tisc stats --json uses schema t81.tisc-stats.v1. tisc encode --json uses schema t81.tisc-encode.v1. tisc decode --json uses schema t81.tisc-decode.v1. tisc diff compares two TISC artifacts at the instruction level; exits 0 if identical, 1 if they differ. tisc diff --json uses schema t81.tisc-diff.v1.

4.18e ir

t81 ir show <file.t81>
t81 ir dump <file.t81>
t81 ir validate <file.t81> [--json]
t81 ir export <file.t81> [--json] [-o <file>]

Prints or exports frontend IR after parse + semantic analysis and before final bytecode emission. ir validate --json uses schema t81.ir-validate.v1. ir export --json uses schema t81.ir-export.v1.

4.18f tier

t81 tier info [--json]
t81 tier check <file.tisc> [--json]
t81 tier gate <file.tisc> --max-tier <n> [--json]

Cognitive tier inspection and policy-gating helpers. tier info --json uses schema t81.tier-info.v1. tier check --json uses schema t81.tier-check.v1. tier gate --json uses schema t81.tier-gate.v1.

4.19 llama-run (experimental)

t81 internal llama-run <model.gguf|sha3-256:hash> <prompt> --policy <policy.apl> [options]

Options:

4.20 completion

t81 completion <bash|zsh|fish>

Prints shell completion script to stdout.

4.21 c

t81 c compile <file.c> [-o <file.mlir>] [--emit mlir] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]

Experimental C-subset frontend.

Current subset v0:

Behavior notes:

4.22 llvm

t81 llvm compile <file.t81|file.tisc> [-o <file.ll|file.bc>] [--bitcode] [--no-comments]

Compiles TISC input to LLVM IR text by default, or LLVM bitcode when --bitcode is present.

Options:

4.23 mlir

t81 mlir compile <file.t81|file.tisc> [-o <file.mlir>] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]
t81 mlir lower <file.mlir> [-o <file.ll>]
t81 mlir pipeline <file.t81|file.tisc> [-o <file.ll>] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]

MLIR frontend and lowering surface.

Options:

Behavior notes:

4.24 man

t81 man [--install-dir <dir>]

Shows embedded manpage text or installs t81.1.

4.25 feedback

t81 feedback submit --rating <1-5> [--note <text>] [--path <file>]
t81 feedback report [--path <file>]

Local CLI UX feedback loop. Submit writes JSONL entries with schema t81.feedback.v1. Report emits schema t81.feedback-report.v1.

5. Help Contract

Supported help forms. Help text is written to stdout, so piping works as expected:

./build/t81 --help # docs-smoke
./build/t81 help # docs-smoke
./build/t81 help code # docs-smoke
./build/t81 help code build # docs-smoke
./build/t81 code build --help # docs-smoke
./build/t81 help internal benchmark # docs-smoke
./build/t81 help code test # docs-smoke
./build/t81 help env doctor # docs-smoke
./build/t81 help code fmt # docs-smoke
./build/t81 help llvm # docs-smoke
./build/t81 help mlir # docs-smoke
./build/t81 help completion # docs-smoke
./build/t81 help man # docs-smoke
./build/t81 help feedback # docs-smoke
./build/t81 help advanced # docs-smoke
./build/t81 help labs # docs-smoke

Unknown help topics return non-zero.

6. Exit and Output Behavior

Command-specific non-zero exits:

Command Exit Code Meaning
code test 2 ctest not available, build metadata missing, or tests failed
env doctor 2 one or more readiness checks failed
code fmt --check 2 formatting drift detected
code fmt 1 invalid input or formatter write/read failures
internal pkg check 2 manifest invalid
trace export 1 invalid args/format/path
weights info 1 usage or file-loading failure
policy run 1 usage or policy parse/load failure
env check 1 one or more environment checks failed
tisc diff 1 programs differ (instruction-level mismatch)
canonfs gc 1 store not initialized or I/O failure
completion 1 unsupported shell or usage error
man 2 install directory/file write failure
feedback 2 feedback file read/write failure

Runtime trap exit codes used by t81 code run / t81 code debug:

Code Meaning
10 Division fault
12 Bounds fault
13 Security fault
14 Decode fault
15 Explicit trap instruction
16 Type fault
17 Stack fault
18 Shape fault
19 Tier fault

7. Known Command Validation Rules

8. Notes on Documentation Scope

This manual intentionally excludes deprecated or non-shipping flags. If behavior changes, update this file in the same change set as the CLI implementation.

4.22 rust

t81 rust compile <file.rs> [-o <file.mlir>] [--emit mlir] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]

Experimental Rust-subset frontend.

Current status:

4.23 llvm

4.23 python

t81 python compile <file.py> [-o <file.mlir>] [--emit mlir] [--mode <compat|dcp>] [--dialect <standard|t81>] [--no-comments]

Experimental Python-subset frontend.

Current status:

4.24 llvm