Harness
The context, state, tools, control, and interaction substrate that turns a model into an operating product.
Terms create a shared language; source anchors constrain interpretation. Every explanation is pinned to an auditable snapshot.
47f943859bef60e4160492346772ded9b24f765a2026-08-13 · 324 docs · 3746 package filesThe context, state, tools, control, and interaction substrate that turns a model into an operating product.
Cordis's scoped container for services, events, config, and reversible effects.
A plugin-owned resource plus its disposer, making setup and teardown symmetric.
An async work unit with parentage, cancellation, and cleanup semantics.
A named product composition that selects bundles and carries user patches.
The complete snapshot of model, tools, prompt, and limits seen by one model request.
A settlement unit that claims one input and may contain multiple steps.
One model request and stream; a tool loop starts another step.
Append-only, replayable, model-visible session truth—not the same as UI display order.
The model-context view projected from the log; compaction changes the surface, not history.
A replacement boundary formed by a service definition, providers, consumers, and policy consumers.
The obligation to return a matching result after a model emits a tool call.
An event-derived read model using watermarks to avoid duplicate or out-of-order consumption.
Moving oversized content out of context and leaving an opaque locator for later retrieval.
One implementation of a capability contract, owning its config, SDK, and resource lifecycle.
Each file appears beside the question it answers best. Read the chapter, then verify the source.
Explain the boundary between model, agent, and harness
Read why a real plugin tree can mount, replace, and unwind
Explain a complete model request event by event
Judge whether the system stays trustworthy under denial, crashes, cancellation, and long context
Separate state, delegation, orchestration, and long-running work
Ship a capability without patching the agent loop
DeepSeek Harness remains in developer preview. For contract, event-name, or default changes, use the current official commit.