aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-15 15:07:45 +0100
committersalmonik <salmonik@tuta.io>2026-11-15 15:07:45 +0100
commit37184044609997604bfa1ab08be356d8b4e5e19d (patch)
treeb6e33c9b3d8d8fa0b51ecced4d154f4d63bf4534 /README.md
parentdocs: correct the context-window assumption in ADR 0002 (diff)
downloadagent686-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 '')
-rw-r--r--README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 4ec5d64..19d9585 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ dependency can silently raise the required symbol version.
25```sh 25```sh
26export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key 26export 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
36default. Every request carries a stable `x-opencode-session` header, which the 36default. Every request carries a stable `x-opencode-session` header, which the
37service uses for routing and prompt caching. 37service uses for routing and prompt caching.
38 38
39In 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
39Rate limits and transient failures retry with backoff (four attempts, `Retry-After` 42Rate limits and transient failures retry with backoff (four attempts, `Retry-After`
40honoured); a 429 that survives them explains itself instead of dumping JSON. 43honoured); 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
55cargo test # 24 tests, no network 58cargo test # 29 tests, no network
56python3 scripts/mock-provider.py & # canned SSE provider 59python3 scripts/mock-provider.py & # canned SSE provider
57docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate 60docker 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
74No async runtime, no TUI, no MCP, no subagents, no compaction. Those are 77No async runtime, no full-screen TUI, no MCP, no subagents, no compaction. Those
75choices, not gaps: see the non-goals. 78are choices, not gaps: see the non-goals.