diff options
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 | ``` |
