summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md28
1 files changed, 18 insertions, 10 deletions
diff --git a/README.md b/README.md
index f98e661..1b070e5 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,33 @@
1# agent686 1# agent686
2 2
3A small coding agent for a 32-bit Debian box: one binary, six tools, line mode. 3A small coding agent for Debian-class Linux: one binary, six tools, line mode.
4 4
5Built because the existing harnesses are TypeScript bundles that need a modern 5Built because the existing harnesses are TypeScript bundles that either need a
6CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB. 6modern CPU or a Node runtime. This one is pure Rust with no runtime dependency,
7and it builds for whatever machine you are on.
7 8
8``` 9```
93.5 MiB ELF 32-bit LSB pie, Intel i386 104.0 MiB x86_64 glibc build, GLIBC_2.34 required
10GLIBC_2.34 required (target has 2.36) 114.1 MiB x86_64 static musl build, no libc dependency
11startup ~0.8 ms 12~1 ms startup
12``` 13```
13 14
14## Build 15## Build
15 16
16```sh 17```sh
17cargo build --release --target i686-unknown-linux-gnu 18./comp.sh # detect this machine, print the exact build plan
18./scripts/check-glibc.sh target/i686-unknown-linux-gnu/release/agent686 19./comp.sh --run # build it, then run the glibc gate
20./comp.sh --musl --run # static build: runs on Debian 10 and anything newer
21./comp.sh --old-glibc # recipe for building against an older glibc
19``` 22```
20 23
21The gate matters: the dev host's 32-bit glibc is newer than the target's, so a 24`comp.sh` reports the distro, libc and glibc version, the CPU baseline, the
25target triple, and the `cfg` values the code will see. A native glibc build
26inherits this machine's glibc floor, which is why the portable paths are printed
27next to it: static musl removes the floor entirely, and building inside an older
28Debian image lowers it.
29
30The gate matters: the dev host's glibc is newer than the target's, so a
22dependency can silently raise the required symbol version. 31dependency can silently raise the required symbol version.
23 32
24## Run 33## Run
@@ -30,7 +39,6 @@ export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key
30./agent686 -c # continue the most recent session 39./agent686 -c # continue the most recent session
31./agent686 --session <id> # resume it, or create it if the id is new 40./agent686 --session <id> # resume it, or create it if the id is new
32./agent686 --list # id, model, message count, age 41./agent686 --list # id, model, message count, age
33./agent686 -c # continue; prints where you left off
34./agent686 --show [id] # render a transcript 42./agent686 --show [id] # render a transcript
35./agent686 --doctor # key, dirs, provider, model 43./agent686 --doctor # key, dirs, provider, model
36./agent686 --yolo "..." # approve every tool call 44./agent686 --yolo "..." # approve every tool call