diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-15 02:54:21 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-15 02:54:21 +0100 |
| commit | 7175543e00caa9ce35487fa7f8b1b479c1ba00a2 (patch) | |
| tree | 10f89f85ca35d6ac7515bbe88518255788d6dc22 /CONTEXT.md | |
| download | agent686-7175543e00caa9ce35487fa7f8b1b479c1ba00a2.tar.gz agent686-7175543e00caa9ce35487fa7f8b1b479c1ba00a2.zip | |
M0: streaming provider, SSE decoder, mock provider, i686 build gate
Diffstat (limited to '')
| -rw-r--r-- | CONTEXT.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/CONTEXT.md b/CONTEXT.md new file mode 100644 index 0000000..e48cb1a --- /dev/null +++ b/CONTEXT.md | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # Context | ||
| 2 | |||
| 3 | ## Language | ||
| 4 | |||
| 5 | **Provider** — a service that serves models over HTTP, with its own credential and | ||
| 6 | request/response shape. v1 supports exactly one: **OpenCode Go** (called | ||
| 7 | `opencode-go` in OpenCode's vocabulary), an OpenAI-compatible gateway. | ||
| 8 | |||
| 9 | **Model** — a model id served by a provider, e.g. `deepseek-v4.1-flash`. A model | ||
| 10 | is not a provider, and not a config profile. The same model may be reachable | ||
| 11 | through more than one wire protocol. | ||
| 12 | |||
| 13 | **Session** — one conversation, identified by an id that is stable for the life of | ||
| 14 | that conversation and survives the process exiting. Continuing a session reuses | ||
| 15 | its id; starting a new conversation gets a new one. A session is not a run, not a | ||
| 16 | process, and not a file. | ||
| 17 | |||
| 18 | **Turn** — one user message plus every step the agent takes until the model | ||
| 19 | answers without tool calls. A turn is the unit of interruption: aborting a turn | ||
| 20 | leaves the session and its history intact. | ||
| 21 | |||
| 22 | **Step** — one request/response cycle with the model within a turn. A turn is one | ||
| 23 | or more steps. | ||
| 24 | |||
| 25 | **Tool call** — the model asking the harness to run one tool with arguments. A | ||
| 26 | tool call that fails, is denied, or produces no output is still a completed tool | ||
| 27 | call; its outcome is returned to the model as a result, not raised as an error. | ||
| 28 | |||
| 29 | **Approval** — the human's permission for a tool call to run. An approval is | ||
| 30 | scoped to a session, not to a turn: once granted, it holds until the session ends. | ||
