Qwen3-0.6B inference (12 KB), bare-metal bootable OS (22 KB), and from-scratch Mini-GPT trainer with live Braille TUI (32 KB) in 100% pure x86-64 NASM assembly. Zero C, zero libc, zero dependencies.
#!/bin/bash
set -euo pipefail
out=$(sed -n 's/.* jev_run=\([a-zA-Z0-9_-]*\).*/runs\/\1/p' /proc/cmdline)
test -d "${out:?missing demo run}"
fix=/tmp/ebpf-jev-demo
mkdir -m 700 "$fix"
printf 'DEMO_MODE=fixture\n' > "$fix/dummy_secret.env"
printf 'service: demo\n' > "$fix/config.yaml"
python3 -c 'from pathlib import Path; p=bytearray(Path("ml/out/ebpf_jev_model.bin").read_bytes()); assert int.from_bytes(p[4:8],"little")==1; p[4:8]=(2).to_bytes(4,"little"); Path("/tmp/ebpf-jev-demo/generation-2.bin").write_bytes(p)'
src/parity_check ml/out/ebpf_jev_model.bin ml/out/parity_vectors.json | tee "$out/parity.txt"
python3 demo/listeners.py "$out/counters.json" &
listener=$!
src/warden --json --mode 4 --config "$fix/config.yaml" --protected "$fix/dummy_secret.env" --weights ml/out/ebpf_jev_model.bin --verifier-report "$out/verifier.txt" >"$out/events.jsonl" 2>"$out/warden.log" &
warden=$!
cleanup() {
kill "$warden" "$listener" 2>/dev/null || true
wait "$warden" || true
wait "$listener" || true
}
trap cleanup EXIT
for ((t=0;t<1200;t++)); do
kill -0 "$warden"
kill -0 "$listener"
if test -e "$out/warden.log" && grep -q '^READY mode=4' "$out/warden.log" && test -f "$out/counters.json"; then break; fi
sleep .05
done
grep -q '^READY mode=4' "$out/warden.log"
test -f "$out/counters.json"
export TERM=xterm-256color JEV_DEMO_RUN="$out" LANG=C.UTF-8
read -r rows cols left_cols left_rows < "$out/geometry"
stty -F /dev/ttyS1 rows "$rows" cols "$cols"
setsid -c python3 demo/tui_hud.py "$out" </dev/ttyS1 >/dev/ttyS1 2>"$out/hud.log" &
hud=$!
stty -F /dev/ttyS0 rows "$left_rows" cols "$left_cols"
setsid -c bash --rcfile testbed/demo.bashrc -i </dev/ttyS0 >/dev/ttyS0 2>&1 &
shell=$!
size="$left_cols $left_rows"
while kill -0 "$shell" && test ! -f "$out/stop"; do
kill -0 "$hud"
kill -0 "$warden"
kill -0 "$listener"
read -r rows cols left_cols left_rows < "$out/geometry"
if [[ "$size" != "$left_cols $left_rows" ]]; then
stty -F /dev/ttyS0 rows "$left_rows" cols "$left_cols"
size="$left_cols $left_rows"
fi
sleep .3
done