From 53c85c99647ded9fab199c97b9383744e2524364 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 18:54:00 +0100 Subject: 0.8.0: comp.sh reports how to build for the machine it runs on Detects distro, arch, libc/glibc, CPU baseline and toolchain, prints the target triple, build command, cfg values, and the portable paths (static musl, older glibc image, cargo-zigbuild). --run builds and checks; --musl and --old-glibc select the other plans. Verified: native gnu build needs GLIBC_2.34; static musl build runs on Debian 10 and reaches the live API. --- README.md | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f98e661..1b070e5 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,33 @@ # agent686 -A small coding agent for a 32-bit Debian box: one binary, six tools, line mode. +A small coding agent for Debian-class Linux: one binary, six tools, line mode. -Built because the existing harnesses are TypeScript bundles that need a modern -CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB. +Built because the existing harnesses are TypeScript bundles that either need a +modern CPU or a Node runtime. This one is pure Rust with no runtime dependency, +and it builds for whatever machine you are on. ``` -3.5 MiB ELF 32-bit LSB pie, Intel i386 -GLIBC_2.34 required (target has 2.36) -startup ~0.8 ms +4.0 MiB x86_64 glibc build, GLIBC_2.34 required +4.1 MiB x86_64 static musl build, no libc dependency +~1 ms startup ``` ## Build ```sh -cargo build --release --target i686-unknown-linux-gnu -./scripts/check-glibc.sh target/i686-unknown-linux-gnu/release/agent686 +./comp.sh # detect this machine, print the exact build plan +./comp.sh --run # build it, then run the glibc gate +./comp.sh --musl --run # static build: runs on Debian 10 and anything newer +./comp.sh --old-glibc # recipe for building against an older glibc ``` -The gate matters: the dev host's 32-bit glibc is newer than the target's, so a +`comp.sh` reports the distro, libc and glibc version, the CPU baseline, the +target triple, and the `cfg` values the code will see. A native glibc build +inherits this machine's glibc floor, which is why the portable paths are printed +next to it: static musl removes the floor entirely, and building inside an older +Debian image lowers it. + +The gate matters: the dev host's glibc is newer than the target's, so a dependency can silently raise the required symbol version. ## Run @@ -30,7 +39,6 @@ export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key ./agent686 -c # continue the most recent session ./agent686 --session # resume it, or create it if the id is new ./agent686 --list # id, model, message count, age -./agent686 -c # continue; prints where you left off ./agent686 --show [id] # render a transcript ./agent686 --doctor # key, dirs, provider, model ./agent686 --yolo "..." # approve every tool call -- cgit v1.2.3