diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/PLAN.md | 12 |
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 | ``` |
| 172 | src/lib.rs module root | ||
| 172 | src/main.rs args, mode selection, exit codes, /paste | 173 | src/main.rs args, mode selection, exit codes, /paste |
| 173 | src/config.rs precedence CLI > env > file; key source | 174 | src/config.rs precedence CLI > env > file; key source |
| 174 | src/provider.rs request construction, retry, SSE parsing, model list | 175 | src/provider.rs request construction, retry, SSE parsing, model list |
| @@ -177,8 +178,11 @@ src/agent.rs turn/step loop, tool dispatch, approval hooks, prompt | |||
| 177 | src/line.rs raw-mode line editor, history | 178 | src/line.rs raw-mode line editor, history |
| 178 | src/signal.rs SIGINT -> cancel flag | 179 | src/signal.rs SIGINT -> cancel flag |
| 179 | src/doctor.rs --doctor checks | 180 | src/doctor.rs --doctor checks |
| 180 | src/tools/ read, write, edit, bash, grep, glob | 181 | src/tools/mod.rs schemas, validation, dispatch |
| 182 | src/tools/fs.rs read, write, edit, grep, glob | ||
| 183 | src/tools/shell.rs bash, timeouts, output caps | ||
| 181 | src/ui.rs streaming render, diffs, approval prompt, status line | 184 | src/ui.rs streaming render, diffs, approval prompt, status line |
| 185 | scripts/ux-check.sh drives tmux to assert the rendered screen | ||
| 182 | tests/mock.rs provider over std TcpListener (SSE, retry, truncation) | 186 | tests/mock.rs provider over std TcpListener (SSE, retry, truncation) |
| 183 | tests/loop.rs agent loop, abort and repair invariants | 187 | tests/loop.rs agent loop, abort and repair invariants |
| 184 | tests/tools.rs tool semantics and edge cases | 188 | tests/tools.rs tool semantics and edge cases |
