Skip to content

@usine/durable/live

const childBackendLayer: Layer.Layer<ChildBackend, never, ChildProcessSpawner>

Claude Code, Codex, and Pi children, chosen per Agent harness.


const harnessLayer: (instanceDirectory) => Layer.Layer<DurableHarness, DurableHarnessError, never>

The durable harness on the instance’s .usine/durable.sqlite, with Pi’s configured models and credentials.

Parameter Type
instanceDirectory InstanceDirectory

Layer.Layer<DurableHarness, DurableHarnessError, never>


const layer: (instanceDirectory) => Layer.Layer<AttemptRuntime | DurableHarness, DurableHarnessError, ChildProcessSpawner>

The Node durable Attempt runtime: the harness on the instance’s storage and the real child backends. Building it resumes every unfinished Attempt.

Parameter Type
instanceDirectory InstanceDirectory

Layer.Layer<AttemptRuntime | DurableHarness, DurableHarnessError, ChildProcessSpawner>