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 the process running the session, not to a turn: once granted, it holds for the rest of that process. A new process asks again, even when the session is resumed, because the human at the keyboard is not assumed to be the same one.
