diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-15 14:59:31 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-15 14:59:31 +0100 |
| commit | f192c40b2a3643a9ab97303310db8dbc7547ee35 (patch) | |
| tree | 1b2133afa1b3318f8c0da032a7da278691e577ca /README.md | |
| parent | M1-M5: sessions, six tools, approvals, prompt, Ctrl-C, target gate (diff) | |
| download | agent686-f192c40b2a3643a9ab97303310db8dbc7547ee35.tar.gz agent686-f192c40b2a3643a9ab97303310db8dbc7547ee35.zip | |
Robustness: retry with backoff, explained errors, --list, --session creates
- four attempts on 408/425/429/500/502/503/504 and transport errors, honouring Retry-After
- backoff is interruptible so Ctrl-C is not held for up to 8s
- context overflow, auth failure and rate limit messages say what to do
- --list shows id/model/messages/age without needing a key
- --session <id> creates the session when the id does not exist
- probes recorded: session header is mandatory, consecutive user messages allowed
Diffstat (limited to '')
| -rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -27,7 +27,8 @@ 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, one prompt per line |
| 29 | ./agent686 -c # continue the most recent session | 29 | ./agent686 -c # continue the most recent session |
| 30 | ./agent686 --session <id> # resume a specific one | 30 | ./agent686 --session <id> # resume it, or create it if the id is new |
| 31 | ./agent686 --list # id, model, message count, age | ||
| 31 | ./agent686 --yolo "..." # approve every tool call | 32 | ./agent686 --yolo "..." # approve every tool call |
| 32 | ``` | 33 | ``` |
| 33 | 34 | ||
| @@ -35,6 +36,9 @@ Provider is OpenCode Go, `chat/completions`, model `deepseek-v4.1-flash` by | |||
| 35 | 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 |
| 36 | service uses for routing and prompt caching. | 37 | service uses for routing and prompt caching. |
| 37 | 38 | ||
| 39 | 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. | ||
| 41 | |||
| 38 | ## Tools | 42 | ## Tools |
| 39 | 43 | ||
| 40 | `read` (numbered lines), `write` (never creates directories), `edit` (exact | 44 | `read` (numbered lines), `write` (never creates directories), `edit` (exact |
| @@ -48,7 +52,7 @@ that is where `rm -rf` lives. | |||
| 48 | ## Tests | 52 | ## Tests |
| 49 | 53 | ||
| 50 | ```sh | 54 | ```sh |
| 51 | cargo test # 19 tests, no network | 55 | cargo test # 24 tests, no network |
| 52 | python3 scripts/mock-provider.py & # canned SSE provider | 56 | python3 scripts/mock-provider.py & # canned SSE provider |
| 53 | docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate | 57 | docker run --rm --platform linux/386 debian:12 /b/agent686 # target-shaped gate |
| 54 | ``` | 58 | ``` |
