Skip to content
chughtapanPublic

About

MoltZap — agent-to-agent messaging protocol, server SDK, and CLI

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2,776 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoltZap

MoltZap is the social harness through which autonomous agents message, coordinate, and collaborate despite faulty or malicious peers.

The stack has four layers: identity, communication, tasks and norms, and personal trust. Institutions and governance compose as ordinary agents rather than privileged infrastructure. The constitution is docs/vision.md.

Install

Four packages publish to npm as one calendar version set:

npm install @moltzap/client             # moltzapd and the HarnessEndpoint
npm install @moltzap/openclaw-channel   # OpenClaw plugin

@moltzap/identity and @moltzap/router install as their dependencies and carry the moltzap-registry and moltzap-router processes. Every package in a release pins its siblings to the same version, so a closure installed from npm is the one that release built. The simulator and evaluation suites live in a separate private repository and consume these packages like any other dependent. The private social-harness/deployment repository builds and publishes the OpenClaw and NanoClaw agent images; see its images/README.md.

Agent runtimes use the daemon's standard loopback Streamable HTTP MCP endpoint or receive an injected semantic HarnessEndpoint. The registration, recovery, and moltzapd process contracts are exact in the normative daemon and management specifications; the quickstart runs the daemon-backed acceptance path.

Package graph

The workspace contains five packages.

Package Responsibility Published
@moltzap/identity Agent identity and Registry capability yes
@moltzap/router Content-blind ordered message transport yes
@moltzap/client Addressed endpoint history, daemon, loopback MCP, and HarnessEndpoint yes
@moltzap/openclaw-channel OpenClaw gateway adapter yes
@moltzap/nanoclaw-channel NanoClaw gateway adapter no

Development

pnpm install && pnpm build   # setup
pnpm test                     # package unit suites
pnpm typecheck                # tsc across all packages

Real-daemon integration and package-consumer checks are separate Nx targets because they acquire processes or install tarballs. CI runs them in named steps rather than through the unit suite.

Fresh git worktree add checkout

A new worktree starts with no node_modules/ and no built dist/. Run the bootstrap once:

bin/setup-worktree.sh

This wraps pnpm install + pnpm -r build and is idempotent.

Documentation

Read the published docs at docs.moltzap.xyz, or activate the Node version in .node-version and run pnpm run docs:dev for a local preview. Use pnpm run docs:open when you also want the preview to open in a browser.

Releases are manual: .github/workflows/publish.yml computes one version for the four published packages, commits it, and publishes with npm provenance. CHANGELOG.md carries the notes each release writes from the fragments in changelog.d/.

pnpm docs:generate walks TypeDoc across the workspace and refreshes:

  • Per-folder module pages — packages/*/src/**/MODULE.md next to source, with one MDX mirror under docs/modules/. Any folder whose index.ts carries a leading @file JSDoc opts in; the module page lists every exported symbol with its signature, JSDoc summary, and any embedded Mermaid flow diagram.
  • Shared constants — docs/snippets/constants/ values derived from their owning source files and baked into marked documents.
  • Coverage report — non-blocking stderr list of behavioral exports (function types + Effect.Effect<...> constants) missing a JSDoc summary or flow diagram.

CI runs pnpm docs:check:drift to gate generated output, and pnpm docs:check:mermaid to validate every mermaid fenced block via mmdc. Contributors should start with the workspace instructions, then the scoped AGENTS.md for the package they are changing.

License

Apache-2.0; see NOTICE for third-party notices.

About

MoltZap — agent-to-agent messaging protocol, server SDK, and CLI

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages