aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-18 12:34:33 +0100
committersalmonik <salmonik@tuta.io>2026-11-18 12:34:33 +0100
commit45d0d3c5f431688aa9dfbd6a4214256d6fe64122 (patch)
tree862ca7949b0e6c1c8084f2fe7431bfa56364d8fc /docs
parent0.9.1: correctness fixes from the audit (diff)
downloadagent686-45d0d3c5f431688aa9dfbd6a4214256d6fe64122.tar.gz
agent686-45d0d3c5f431688aa9dfbd6a4214256d6fe64122.zip
0.9.2: doc accuracy and UX fixes from the review
- missing key exits 1, consistent with --doctor - HTML error bodies get a one-line message - no unapprovable diff printed on a non-terminal - weak GLIBC_2.39 fix covers x86_64 gnu as well as i686 - README/PLAN/CHANGELOG brought in line with the actual binary
Diffstat (limited to '')
-rw-r--r--docs/PLAN.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/PLAN.md b/docs/PLAN.md
index f22b230..559c6ab 100644
--- a/docs/PLAN.md
+++ b/docs/PLAN.md
@@ -7,8 +7,8 @@ line-mode, six tools. Built for understanding, not parity with anything.
7 7
8| | | 8| | |
9|---|---| 9|---|---|
10| Target | Debian 12 i386, glibc 2.36, 2 cores, 4 GB | 10| Target | Debian-class Linux; x86-64 primary, i686 still supported |
11| Build | `i686-unknown-linux-gnu`, dynamic glibc (see ADR 0001) | 11| Build | `./comp.sh` — detects the machine and prints the build plan |
12| Dev host | x86-64, `gcc-multilib`, `i686` + `i686-unknown-linux-musl` targets | 12| Dev host | x86-64, `gcc-multilib`, `i686` + `i686-unknown-linux-musl` targets |
13| Provider | OpenCode Go — `https://opencode.ai/inference/go/openai/v1`, `chat/completions` | 13| Provider | OpenCode Go — `https://opencode.ai/inference/go/openai/v1`, `chat/completions` |
14| Auth | `OPENCODE_API_KEY`, else `~/.config/agent686/key` (600 perms) | 14| Auth | `OPENCODE_API_KEY`, else `~/.config/agent686/key` (600 perms) |
@@ -27,7 +27,7 @@ line-mode, six tools. Built for understanding, not parity with anything.
27 timeout, capped output, exit code), `grep`, `glob`. All native — no dependence 27 timeout, capped output, exit code), `grep`, `glob`. All native — no dependence
28 on `rg` being installed. 28 on `rg` being installed.
29- **Approval.** Reads free. First `write`/`edit` of a session prompts with a 29- **Approval.** Reads free. First `write`/`edit` of a session prompts with a
30 unified diff and offers "always" (session-scoped). Every `bash` call prompts 30 unified diff and offers "always" (process-scoped: a new process asks again on resume). Every `bash` call prompts
31 unless `--yolo`. Prompts happen after the stream ends, never mid-token. 31 unless `--yolo`. Prompts happen after the stream ends, never mid-token.
32- **Turn/step.** A turn ends when the model answers with no tool calls, on user 32- **Turn/step.** A turn ends when the model answers with no tool calls, on user
33 abort, or on a non-retryable provider error. **No step cap** — the brake is the 33 abort, or on a non-retryable provider error. **No step cap** — the brake is the
@@ -169,6 +169,7 @@ Independently rebuilt and re-run outside the agent both times.
169## Layout 169## Layout
170 170
171``` 171```
172src/lib.rs module root
172src/main.rs args, mode selection, exit codes, /paste 173src/main.rs args, mode selection, exit codes, /paste
173src/config.rs precedence CLI > env > file; key source 174src/config.rs precedence CLI > env > file; key source
174src/provider.rs request construction, retry, SSE parsing, model list 175src/provider.rs request construction, retry, SSE parsing, model list
@@ -177,8 +178,11 @@ src/agent.rs turn/step loop, tool dispatch, approval hooks, prompt
177src/line.rs raw-mode line editor, history 178src/line.rs raw-mode line editor, history
178src/signal.rs SIGINT -> cancel flag 179src/signal.rs SIGINT -> cancel flag
179src/doctor.rs --doctor checks 180src/doctor.rs --doctor checks
180src/tools/ read, write, edit, bash, grep, glob 181src/tools/mod.rs schemas, validation, dispatch
182src/tools/fs.rs read, write, edit, grep, glob
183src/tools/shell.rs bash, timeouts, output caps
181src/ui.rs streaming render, diffs, approval prompt, status line 184src/ui.rs streaming render, diffs, approval prompt, status line
185scripts/ux-check.sh drives tmux to assert the rendered screen
182tests/mock.rs provider over std TcpListener (SSE, retry, truncation) 186tests/mock.rs provider over std TcpListener (SSE, retry, truncation)
183tests/loop.rs agent loop, abort and repair invariants 187tests/loop.rs agent loop, abort and repair invariants
184tests/tools.rs tool semantics and edge cases 188tests/tools.rs tool semantics and edge cases