agents
Five small Effect agents
Each is one file. Open one and read it.
- 01 parallel-research Structured concurrency + retry + deadlines + structured output, in one Effect program.
- 02 streaming-tools Stream<StreamPart, …> + fiber interruption: the consumer owns the lifecycle.
- 03 approval-gated First-class human-in-the-loop. Tool.make({ needsApproval: true }) — and that's the whole API.
- 04 typed-errors The agent's error channel is a tagged union of AiError classes. The handler matches them exhaustively. No try/catch. No any.
- 05 mcp-from-toolkit One Toolkit value. Two surfaces. Same source of truth.