CodeSoul-co/Hypha

View on GitHub ↗

Harness-oriented agent system framework for production-grade LLM agent applications

425 ★123 forksTypeScriptUpdated 19d ago

What you need to know

A production-oriented TypeScript framework for governed, durable, and extensible AI agents — combines a ReAct loop with explicit FSM execution, durable events, policy-controlled side effects, replay, recovery, and evaluation via DomainPack declarations.

Install

git clone ... && npm ci && cp .env.example .env; needs Node 22+, MongoDB and Redis for the bundled API server

Usage

  • npm run dev to start the API server; npm run cli -- chat '...' --stream; define a DomainPack in configs/domain-packs to declare tasks, workflows, MCP, memory, policies

Key features

  • DomainPack declares tasks, workflows, output contracts, skills, tools, MCP, memory, context, policy, evaluation
  • framework-owned Harness FSM + bounded ReAct quanta with durable Event + Artifact evidence
  • no cache hit or provider response can authorize a side effect or advance the FSM
  • memory adapters: Hypha native, Mem0 OSS/Platform, Vertex AI Memory Bank
  • tools/MCP/skills via one governed invocation path with capability snapshots and drift control
  • execution adapters: local process, Docker, remote HTTP, SQLite, PostgreSQL, S3-compatible
  • Express API server + CLI sharing one runtime; /health and /ready traffic gate

Best for

Teams building governed, auditable agent products that must survive and recover across model calls.

Caveats

  • heavier framework than a simple MCP server
  • requires MongoDB + Redis for the full server
  • Node.js 22+
  • single-user default deployment mode
Platforms: macOS · Linux · Windows

Reviewed 2026-08-11

Topics

agent-frameworkagent-harnessagent-memoryagent-runtimeai-agentscacheevaluationevent-sourcingfinite-state-machinehuman-in-the-loopllmlocal-firstmcpmodel-context-protocolpolicy-enginereact-agentreplaytool-usetypescriptworkflow-engine
Stars
425★
Forks
123
Language
TypeScript
License
Apache-2.0
Created
2026-07-01
Last push
2026-08-16