harness-multitool

0002 — A plugin is a crate, built in, selected in config

Decision

Interface crates live in this repository. A user implements an interface as a crate, adds it to their local build, and selects it by name in the configuration. The registry resolves names to the implementations linked into the binary.

Why

Zero overhead on the hot path (streaming, tool calls), full type safety, and exactly the workflow the project wants for sensitive parts such as authentication: an implementation that exists only in the build of the person who wrote it.

Rejected

Amended by ADR 0015: plugins stay crates linked into the binary, and they hot-reload: the local build is rebuilt and the running binary swaps itself in the same terminal at a safe point, handing its in-memory view over to the new process, so sessions are not restarted.

This page's source