@amends-dev/harness
Runs an agent, such as opencode or one in your own process over an Effect AI language model, and streams every agent’s turns in one format.
Each module’s page lists its exports by category, with their signatures and examples. The guide shows how the parts fit together.
- Agent: An agent is what a harness runs.
- Bridge: A bridge is the program through which hosts reach an agent that works in a sandbox, such as opencode, Codex, or Claude Code.
- BridgeClient: The host’s side of
Bridge.Rpcs, for an agent that works in a sandbox and is reached through a bridge there. - BridgeServer: The bridge’s side of
Bridge.Rpcs, which runs in the sandbox and serves a driver’s sessions to hosts. - GenerateResult: What
generatereturns. - Harness: A harness runs one agent.
- HarnessError: Errors a harness reports when it cannot do what it was asked.
- HostToolRelay: How an agent that works in a sandbox calls the host’s tools.
- ModelEndpoint: A model endpoint is how an agent reaches a model.
- Session: A session is one conversation with an agent, run a turn at a time.
- StreamPart: The parts a harness streams for a turn.