diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-15 15:07:45 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-15 15:07:45 +0100 |
| commit | 37184044609997604bfa1ab08be356d8b4e5e19d (patch) | |
| tree | b6e33c9b3d8d8fa0b51ecced4d154f4d63bf4534 /README.md | |
| parent | docs: correct the context-window assumption in ADR 0002 (diff) | |
| download | agent686-37184044609997604bfa1ab08be356d8b4e5e19d.tar.gz agent686-37184044609997604bfa1ab08be356d8b4e5e19d.zip | |
Input editor: history, bracketed paste, in-line editing
- crossterm raw mode only for the duration of a prompt, so SIGINT keeps
working during a turn
- persisted history with prompt commands excluded and newlines escaped
- bracketed paste inserts one multi-line buffer instead of firing N turns
- ctrl-a/e/u/k/w editing, ctrl-c abandons the line, ctrl-d exits
- ctrl-j submits, so pipes and pty harnesses work
- width fallback: a 0-column pty is 80 columns, not 1
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 7 insertions, 4 deletions
| @@ -25,7 +25,7 @@ dependency can silently raise the required symbol version. | |||
| 25 | ```sh | 25 | ```sh |
| 26 | export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key | 26 | export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key |
| 27 | ./agent686 "make a calculator in C" # one turn, then exit | 27 | ./agent686 "make a calculator in C" # one turn, then exit |
| 28 | ./agent686 # interactive, one prompt per line | 28 | ./agent686 # interactive |
| 29 | ./agent686 -c # continue the most recent session | 29 | ./agent686 -c # continue the most recent session |
| 30 | ./agent686 --session <id> # resume it, or create it if the id is new | 30 | ./agent686 --session <id> # resume it, or create it if the id is new |
| 31 | ./agent686 --list # id, model, message count, age | 31 | ./agent686 --list # id, model, message count, age |
| @@ -36,6 +36,9 @@ Provider is OpenCode Go, `chat/completions`, model `deepseek-v4.1-flash` by | |||
| 36 | default. Every request carries a stable `x-opencode-session` header, which the | 36 | default. Every request carries a stable `x-opencode-session` header, which the |
| 37 | service uses for routing and prompt caching. | 37 | service uses for routing and prompt caching. |
| 38 | 38 | ||
| 39 | In a terminal: up/down walks history, bracketed paste arrives as one block | ||
| 40 | (multi-line is fine), ctrl-c abandons the line, ctrl-d exits. | ||
| 41 | |||
| 39 | Rate limits and transient failures retry with backoff (four attempts, `Retry-After` | 42 | Rate limits and transient failures retry with backoff (four attempts, `Retry-After` |
| 40 | honoured); a 429 that survives them explains itself instead of dumping JSON. | 43 | honoured); a 429 that survives them explains itself instead of dumping JSON. |
| 41 | 44 | ||
| @@ -52,7 +55,7 @@ that is where `rm -rf` lives. | |||
| 52 | ## Tests | 55 | ## Tests |
| 53 | 56 | ||
| 54 | ```sh | 57 | ```sh |
| 55 | cargo test # 24 tests, no network | 58 | cargo test # 29 tests, no network |
| 56 | python3 scripts/mock-provider.py & # canned SSE provider | 59 | python3 scripts/mock-provider.py & # canned SSE provider |
| 57 | docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate | 60 | docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate |
| 58 | ``` | 61 | ``` |
| @@ -71,5 +74,5 @@ executed, recorded, and that a denial is returned to the model as data. | |||
| 71 | rewritten: cached prompt reads are ~50× cheaper, and they require a | 74 | rewritten: cached prompt reads are ~50× cheaper, and they require a |
| 72 | byte-identical prefix. | 75 | byte-identical prefix. |
| 73 | 76 | ||
| 74 | No async runtime, no TUI, no MCP, no subagents, no compaction. Those are | 77 | No async runtime, no full-screen TUI, no MCP, no subagents, no compaction. Those |
| 75 | choices, not gaps: see the non-goals. | 78 | are choices, not gaps: see the non-goals. |
