# hypha

A TypeScript framework that pairs an agent-reasoning core with a production harness of event-backed execution, checkpoints, recovery and audit, so an application's specific behavior is declared separately from the runtime.

hypha is built around two cooperating layers: an Agent Core that handles reasoning, planning, tool selection and memory access, and a Production Harness that turns those decisions into bounded, event-backed execution with finite-state-machine control, policy and approval steps, checkpoints, recovery, replay and audit.

Product-specific behavior is declared through a DomainPack rather than hard-coded into the runtime: a DomainPack compiles an application's tasks, workflows, capabilities, prompts, memory, policy, evaluation and output contracts into the shared Core and Harness. A cross-cutting Cache and Reuse Plane then reuses validated reasoning, tool and memory results across runs, while remaining a disposable projection that can never replace event, artifact, receipt or checkpoint evidence as the source of truth. It is published as a set of aligned npm packages.

Website: https://codesoul-co.github.io/Hypha/
