summaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
blob: e48cb1add30068f058a4eb5c28c4125574ced221 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Context

## Language

**Provider** — a service that serves models over HTTP, with its own credential and
request/response shape. v1 supports exactly one: **OpenCode Go** (called
`opencode-go` in OpenCode's vocabulary), an OpenAI-compatible gateway.

**Model** — a model id served by a provider, e.g. `deepseek-v4.1-flash`. A model
is not a provider, and not a config profile. The same model may be reachable
through more than one wire protocol.

**Session** — one conversation, identified by an id that is stable for the life of
that conversation and survives the process exiting. Continuing a session reuses
its id; starting a new conversation gets a new one. A session is not a run, not a
process, and not a file.

**Turn** — one user message plus every step the agent takes until the model
answers without tool calls. A turn is the unit of interruption: aborting a turn
leaves the session and its history intact.

**Step** — one request/response cycle with the model within a turn. A turn is one
or more steps.

**Tool call** — the model asking the harness to run one tool with arguments. A
tool call that fails, is denied, or produces no output is still a completed tool
call; its outcome is returned to the model as a result, not raised as an error.

**Approval** — the human's permission for a tool call to run. An approval is
scoped to a session, not to a turn: once granted, it holds until the session ends.