New: Decision Runtime — closed-set judgments for Agent OS. Read the guide →
HazelJS LogoHazelJS

Agent Control Plane

The HazelJS Agent Control Plane is local-first: AgentOS (facade), LocalPlatform (definitions/deployments/reconcile), and hazeld (supervisor node). Distributed and Kubernetes backends remain experimental — not the default product path.

01What it is

Three cooperating pieces you actually run today:

  • AgentOS — app-facing facade over AgentRuntime + local platform + durable HITL
  • LocalPlatform — definitions, deployments, and reconcile loop
  • hazeld — long-lived supervisor node started by hazel apply (or run directly)

Together they store, deploy, reconcile, and observe agents on your machine — agents behave like local services, not one-off demo scripts.

02Problem it solves

  • Closing the terminal should not kill production-bound agents
  • DNA/YAML apply should return while the node keeps Running
  • Operators need ps / inspect / logs / approvals without a cloud account
  • App code needs one facade for deploy, Skillgate handlers, and HITL APIs

03How you use it today

Fastest path (~5 minutes): install the CLI, scaffold, apply, close the terminal, still Running.

npm install -g @hazeljs/cli
hazel new agent hello-bot
cd hello-bot && npm install
hazel apply agent.yaml
hazel inspect hello_bot
hazel ps

Foreground vs daemon:

  • hazel apply — ensure hazeld, apply DNA/YAML, return; agents keep Running
  • hazel dev — foreground AgentOS + reconcile (dies with the TTY)
  • hazeld — long-lived node (also started by apply)

Day-2 ops: hazel ps, inspect, start / stop, logs, approvals / approve, secret set, doctor, hazel ui (127.0.0.1 status page). Local DNA registry: hazel store publish | install | list.

04Where it sits in the stack

Control Plane sits above Agent DNA packages and the Agent Runtime kernel. It does not replace Skillgate / Gatekeeper / Decision — those govern what agents may do; the control plane governs how definitions become Running services.

05Boundaries

  • Local node is the default product path — stable for single-user laptop / workstation
  • Distributed and Kubernetes backends remain experimental — not required to ship
  • Not multi-tenant auth on the control socket today
  • Hosted registry / managed apply are optional Team SKUs — never required for local Agent OS

06FAQ

Do I need Docker or Kubernetes?
No for the default path. hazel apply + hazeld on Node 18+ is enough.
What survives terminal close?
Agents applied with hazel apply stay Running under hazeld. hazel dev dies with the TTY.
Where is the step-by-step?
Follow the Local Agent OS guide, then the broader Agent OS guide.

07AgentOS facade (app wiring)

typescript
import { AgentOS } from '@hazeljs/agent';
import { Skillgate } from '@hazeljs/skillgate';
import {
  createAgentGatekeeperBundle,
  bindGatekeeper,
} from '@hazeljs/agent-gatekeeper';

const gate = Skillgate.fromOpenApi(spec, {
  include: { tags: ['agent'] },
  invoke: { baseUrl: process.env.API_BASE_URL! },
});

const os = new AgentOS({
  projectRoot: process.cwd(),
  skillHandlers: gate.toHandlers(),
});

const bundle = createAgentGatekeeperBundle({
  policies,
  humanTasks: os.store.humanTaskService,
  tenantId: 'acme',
  environment: 'production',
});
os.runtime.authorizationGate = bundle.authorizationGate;
bindGatekeeper(os.runtime, bundle);

await os.deploy(/* AgentDefinition or DNA */);