Skip to content

Halofy

Halofy is the open access and governance layer for AI agents across your organization. Identity, policy, provenance, audit, and signed erasure.

Install

$npx tsx src/cli.ts conformance baseline
Claude Code
claude mcp add halofy -- npx tsx src/cli.ts conformance baseline
Cursor / Claude Desktop (mcp.json)
{
  "mcpServers": {
    "halofy": {
      "command": "npx",
      "args": [
        "tsx",
        "src/cli.ts",
        "conformance",
        "baseline"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

Halofy

The open access and governance layer for AI agents across your organization. Give every agent the right organizational context through one identity and policy model, with provenance, audit, and signed erasure.


As AI spreads across an organization, every agent needs access to shared context without becoming its own identity system, policy engine, or audit silo. Halofy sits between organizational knowledge and the agents that use it. It resolves identity, enforces access, governs change, records every outcome, and makes erasure independently verifiable.

Underneath that governance boundary, Halofy maintains durable context and keeps retrieval replaceable. The result is infrastructure you can inspect, self-host, run offline, and connect to any agent over MCP or HTTP.

Why Halofy

Organization-wide access Governed context Open infrastructure
Agents, applications, and operators use the same server-resolved identity, namespace ACL, roles, and policy boundary over MCP or HTTP. Every change follows one auditable path with provenance, supersedence, append-only history, and signed erasure. Postgres remains the authority while retrieval engines plug in through an ACL-scoped, read-only driver interface.

What ships in this repository

  • One governed access surface over MCP and HTTP: mem_write, mem_read, mem_search, mem_assemble, mem_fault, mem_stats, mem_forget, policy, sharing, pinning, export, and manifest operations.
  • Organization-wide identity and access control: credentials resolve actor, role, namespace, and source scope server-side before any read or write.
  • A governed context lifecycle: provenance, entity resolution, exact and semantic dedupe, supersedence chains, and append-only audit.
  • One organizational authority across two tiers: Postgres/pgvector for operational context and encrypted, Git-versioned knowledge for the cold tier. Embedded PGlite is the zero-setup local default.
  • A frameworkless control room: access, teams, sources, policies, conflicts, retrieval quality, audit, alerts, skills, connected apps, and export.
  • Four public connectors: filesystem, Postgres, Obsidian, and manual CSV import. All feed the same governed write path.
  • A hermetic test lane: embedded PGlite, deterministic StubLlm, HashEmbedder, and zero network access.

Quickstart

Run the complete offline story

git clone https://github.com/halofyai/halofy.git
cd halofy/kernel
npm ci
npm run demo

No API key. No database server. No model download. No network call. The demo boots the real kernel on embedded PGlite, then exercises pinning, assembly, writes, hybrid search, an L3 context fault, audit, import, fragmentation, and signed erasure.

== T0 ·· boot in-memory, pin the refund policy, assemble the working set
booted: embedder=hash(dim=256) llm=stub

== T3 ·· mem_fault - page missing context in from L3
fault: hit=true source=L3 injected=2

== T7 ·· mem.forget - erase the customer and mint a signed certificate
certificate 01... verifyCertificate === true
after forget: mem_search surfaces 0 matching facts

demo complete - kernel closed.

Then prove the kernel and its retrieval boundary:

npm test
npx tsx src/cli.ts conformance baseline

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…