diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 28 |
1 files changed, 18 insertions, 10 deletions
| @@ -1,24 +1,33 @@ | |||
| 1 | # agent686 | 1 | # agent686 |
| 2 | 2 | ||
| 3 | A small coding agent for a 32-bit Debian box: one binary, six tools, line mode. | 3 | A small coding agent for Debian-class Linux: one binary, six tools, line mode. |
| 4 | 4 | ||
| 5 | Built because the existing harnesses are TypeScript bundles that need a modern | 5 | Built because the existing harnesses are TypeScript bundles that either need a |
| 6 | CPU, and the target here is a Debian 12 i386 machine with 2 cores and 4 GB. | 6 | modern CPU or a Node runtime. This one is pure Rust with no runtime dependency, |
| 7 | and it builds for whatever machine you are on. | ||
| 7 | 8 | ||
| 8 | ``` | 9 | ``` |
| 9 | 3.5 MiB ELF 32-bit LSB pie, Intel i386 | 10 | 4.0 MiB x86_64 glibc build, GLIBC_2.34 required |
| 10 | GLIBC_2.34 required (target has 2.36) | 11 | 4.1 MiB x86_64 static musl build, no libc dependency |
| 11 | startup ~0.8 ms | 12 | ~1 ms startup |
| 12 | ``` | 13 | ``` |
| 13 | 14 | ||
| 14 | ## Build | 15 | ## Build |
| 15 | 16 | ||
| 16 | ```sh | 17 | ```sh |
| 17 | cargo 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 | ||
| 21 | The 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 |
| 25 | target triple, and the `cfg` values the code will see. A native glibc build | ||
| 26 | inherits this machine's glibc floor, which is why the portable paths are printed | ||
| 27 | next to it: static musl removes the floor entirely, and building inside an older | ||
| 28 | Debian image lowers it. | ||
| 29 | |||
| 30 | The gate matters: the dev host's glibc is newer than the target's, so a | ||
| 22 | dependency can silently raise the required symbol version. | 31 | dependency 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 |
