OPEN SOURCE · APACHE 2.0 · TYPESCRIPT

Hypha combines an Agent Core with a Production Harness so domain agents can reason, act, recover, replay and improve inside explicit boundaries.

CLONE THE OFFICIAL REPOSITORY
git clone https://github.com/CodeSoul-co/Hypha.git
cd Hypha
npm ci
cp .env.example .env
Orange particle runtime lattice representing Hypha execution
DOMAINPACKAGENT COREHARNESSEVENT EVIDENCE
01Agent Core + Production Harness02DomainPack-native03Event-first runtime04Governed capabilities

LATEST NEWS

Hypha v1.0.1 is live.

The first stable npm line is published, documented and ready to consume from an application.

Read v1.0.1 release notes ↗

TWO COOPERATING LAYERS

Reason freely. Execute with evidence.

The Agent Core decides what to do. The Production Harness turns that decision into bounded, recoverable, event-backed work.

Read the architecture →
01

Agent Core

Reasoning/ReAct, planning, tool selection, Memory access, model routing and context orchestration.

02

Production Harness

FSM execution, policy and approval, checkpoints, recovery, replay, audit and regression.

03

DomainPack

Product behavior lives in versioned task, workflow, capability, Memory, policy, evaluation and output contracts—not in framework core.

EVENT-FIRST RUNTIME

Every step leaves usable evidence.

A Run advances only when current event-derived state supports the transition. Tools, MCP, Memory and external writes pass through policy, trace and harness hooks.

EVT_01Observe
EVT_02Reason
EVT_03Policy
EVT_04Act
EVT_05Verify
EVT_06Memory
EVT_07Recover
EVT_08Complete

CODESOUL / EVENT-FIRST STACK

One event-first path—from execution to durable evidence.

Hypha turns decisions and side effects into governed, recoverable events. Plasmod persists those events as queryable memory, state, artifacts, relations and structured evidence.

Explore Plasmod Database ↗

INCLUDED CAPABILITIES

One runtime. Explicit boundaries.

Hypha ships the contracts and reference components required to build real agent products without hiding authority in a provider SDK or an unbounded loop.

01

Runtime

ReAct + FSM, durable commands, continuation, timers, leases, cancellation, human review and replay.

02

Domain

Validated YAML, JSON or TypeScript Domain Packs, overlays, deterministic compilation and dependency snapshots.

03

Memory

Native, local and external Memory providers behind one governed, scoped and traceable contract.

04

Tools & MCP

Local, HTTP, plugin and MCP adapters through the same governed invocation path.

05

Execution

Provider-neutral workspace, sandbox, command, Artifact, store, recovery and cache contracts.

06

Cache & reuse

Serving Cache, Thinking Cache, WorkCache, semantic trees and prefix reuse without authority.

CACHE & REUSE PLANE

Reuse work. Never reuse authority.

Validated model work, reasoning structures, tool results, Memory projections and prompt prefixes can be reused. Event, Artifact, receipts and checkpoints remain the source of truth.

  • A hit cannot authorize a side effect
  • A hit cannot advance the FSM
  • A hit cannot replace evidence
  • Cache can always be bypassed or rebuilt
Runtime →
Official Hypha typed cache tree management diagram
OFFICIAL REPOSITORY DIAGRAM / CACHE TREE MANAGEMENT

TWO WAYS TO START

Choose packages or source.

Install the versioned npm libraries inside an application, or clone the repository when you need the bundled server, complete examples and framework source.

NODE.JS 22+NPM v1.0.1TYPESCRIPTAPACHE 2.0
INSTALL THE VERSIONED PACKAGES
npm install \
  @codesoul-co/hypha-core@1.0.1 \
  @codesoul-co/hypha-fsm@1.0.1 \
  @codesoul-co/hypha-domain@1.0.1 \
  @codesoul-co/hypha-kernel@1.0.1 \
  @codesoul-co/hypha-harness@1.0.1

Start an application with the five foundational v1.0.1 packages. Add capability and provider packages only when your composition needs them.

Read the getting-started guide ↗

A GENTLER ON-RAMP

Start with two guided Skills.

If you want help moving from a product idea to a working Hypha agent, CodeSoul Skill Garden provides a continuous two-step path.

01 / DISCOVER

agent-native-requirements

Turns real scenarios, inputs, outputs, risks and quality expectations into an engineering-ready specification.

02 / BUILD

hypha-domain-builder

Reads the approved requirements and builds, tests, fixes and documents a complete product on the latest Hypha source.

Open Skill Garden ↗

Experienced developers can skip the Skills and clone Hypha directly.

READ THE SOURCE, NOT A PITCH

Official docs, maintained with the source.

The website summarizes the repository; field contracts, current behavior and implementation details remain in the official source and docs.

Docs →
Official Hypha framework architecture diagram from the repository README
OFFICIAL REPOSITORY DIAGRAM / HYPHA FRAMEWORK