Packages

API reference for every consensus-tools package.

The consensus-tools monorepo is organized into five tiers (0 through 4). Dependencies flow strictly downward: a package in Tier 2 may depend on Tier 0 and Tier 1, but never on Tier 3 or 4. This layering is enforced in CI via dependency-cruiser.

Which package do I need?

I want to...

  • Add consensus to a function callwrapper
  • Run a full job board with agentscore + policies
  • Evaluate AI agent outputsevals
  • Gate risky AI actionsguards
  • Build DAG workflowsworkflows
  • Expose consensus via HTTP APIsdk-node
  • Use consensus in Claude Codemcp
  • Just need the typesschemas

Package table

TierPackageDescription
0schemasZod schemas and TypeScript types
0secretsAES-256-GCM credential encryption
1guardsGuard evaluation engine
1telemetryOpenTelemetry tracing and metrics
1evalsAI agent output evaluation framework
1integrationsThird-party service integrations
1notificationsEvent notification delivery
1sdk-clientLightweight client SDK
2coreJob engine and consensus ledger
2policies9 pluggable consensus resolution algorithms
3workflowsDAG workflow engine
3wrapperRuntime decision firewall for function calls
4sdk-nodeNode.js server SDK with HTTP API
4mcpModel Context Protocol server (29 tools)
4openclawOpen consensus protocol implementation
4cliCommand-line interface (CLI Reference)

For how these tiers are enforced, see Architecture.