Skip to main content

Module fork

Module fork 

Source
Expand description

Fork engine — lightweight concurrent multi-perspective execution.

Each “lens” shares the parent session’s provider, tools, and messages but gets its own system prompt + task. All lenses run concurrently via a tokio [Semaphore]-bounded Synapse.

Fork is NOT a subprocess. It is an in-process concurrent provider call.

Structs§

ForkExecution
Result of a complete fork execution.
ForkLens
A single lens — one perspective on the shared context.
ForkShared
Shared state across all fork lenses — cheap to clone.
Synapse
Lightweight concurrency limiter for fork lens execution.

Enums§

ForkResult
Result from a single lens execution.