From 37184044609997604bfa1ab08be356d8b4e5e19d Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 15 Nov 2026 15:07:45 +0100 Subject: 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 --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'README.md') 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. ```sh export OPENCODE_API_KEY=... # or write it to ~/.config/agent686/key ./agent686 "make a calculator in C" # one turn, then exit -./agent686 # interactive, one prompt per line +./agent686 # interactive ./agent686 -c # continue the most recent session ./agent686 --session # resume it, or create it if the id is new ./agent686 --list # id, model, message count, age @@ -36,6 +36,9 @@ Provider is OpenCode Go, `chat/completions`, model `deepseek-v4.1-flash` by default. Every request carries a stable `x-opencode-session` header, which the service uses for routing and prompt caching. +In a terminal: up/down walks history, bracketed paste arrives as one block +(multi-line is fine), ctrl-c abandons the line, ctrl-d exits. + Rate limits and transient failures retry with backoff (four attempts, `Retry-After` honoured); a 429 that survives them explains itself instead of dumping JSON. @@ -52,7 +55,7 @@ that is where `rm -rf` lives. ## Tests ```sh -cargo test # 24 tests, no network +cargo test # 29 tests, no network python3 scripts/mock-provider.py & # canned SSE provider docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate ``` @@ -71,5 +74,5 @@ executed, recorded, and that a denial is returned to the model as data. rewritten: cached prompt reads are ~50× cheaper, and they require a byte-identical prefix. -No async runtime, no TUI, no MCP, no subagents, no compaction. Those are -choices, not gaps: see the non-goals. +No async runtime, no full-screen TUI, no MCP, no subagents, no compaction. Those +are choices, not gaps: see the non-goals. -- cgit v1.2.3