LIVE · Product

K₄ Agent Hubs

Four hubs. One mesh.
LIVE Cloudflare WorkersDurable ObjectsEd25519

What it is

Four cooperating Cloudflare Workers — Forge (make), Counsel (protect), Scholar (understand), Scribe (remember) — forming a complete K₄ graph (six edges). Four hubs. One mesh. is a core component of the P31 Labs sovereign cognitive infrastructure stack — built to run offline, deployed to the edge, and designed without dark patterns.

Worker package: packages/k4-agent-hub/ (schema p31.k4AgentHub/1.1.0). Operator client: packages/k4-agent-hub-client/. Simplex-v7 adapter: simplex-v7/src/skills/k4-dispatch.ts (POST /api/k4/dispatch). Canon manifest: p31-k4-agent-hub.json. Verify gate: npm run verify:k4-agent-hub.

Core features

Four cooperating Cloudflare Workers — Forge (make), Counsel (protect), Scholar (understand), Scribe (remember) — forming a complete K₄ graph (six edges)

Every dock and every call is signed with Ed25519: the operator holds one keypair (~/.p31/agent-hub-key.json); the hub never stores a credential

Dispatch chain: local Ollama fleet → simplex-v7 Anthropic fallback → structured echo — zero-downtime skill routing at any connectivity level

Personal tetrahedron docks via a bipartite K₄,₄ cover (structure↔Forge, connection↔Counsel, rhythm↔Scholar, creation↔Scribe)

Operator CLI: p31 agent-hub keypair / dock / call / cross / topology / federation

How to use

1Run: p31 agent-hub keypair — generates or reads ~/.p31/agent-hub-key.json
2Run: p31 agent-hub topology --base — inspect the K₄ vertex and edge map
3Run: p31 agent-hub call forge ts-worker --prompt "scaffold a /healthz route" — signed dock + call in one step

Architecture

Worker package: packages/k4-agent-hub/ (schema p31.k4AgentHub/1.1.0). Operator client: packages/k4-agent-hub-client/. Simplex-v7 adapter: simplex-v7/src/skills/k4-dispatch.ts (POST /api/k4/dispatch). Canon manifest: p31-k4-agent-hub.json. Verify gate: npm run verify:k4-agent-hub.
P31 Labs, Inc. (Georgia nonprofit, EIN 42-1888158) builds open tools for cognitive sovereignty, communication clarity, and family coordination. This page is technical documentation, not medical or legal advice. Mission and support: phosphorus31.org.
⬡ Launch K₄ Agent Hubs ← Back to Hub