01What it is
Layer 1
Agent Framework
Build agent behavior
Layer 2 · HazelJS
Agent OS
Operate agents in production
Framework primitives answer “how does this agent think and call tools?” Operating primitives answer “how does it stay Running, authorized, and recoverable?” HazelJS ships both in one TypeScript stack so backend teams are not forced to glue three products together.
02Problem it solves
- Demos that work in a notebook fail when tools need policy, HITL, and crash recovery
- Python-centric frameworks leave TypeScript API teams translating across languages
- Splitting “build” and “operate” across vendors creates inconsistent identity and audit
- Teams need Nest-familiar DI / HTTP next to agents — not a separate agent silo
03How you use it today
Define behavior with @Agent / @Tool, execute via AgentRuntime, then graduate to DNA packages, Skillgate, Gatekeeper, and hazel apply when you need packaging and a local node.
hazel new agent support-agent
cd support-agent && npm install
hazel dev # foreground AgentOS
hazel apply # hazeld keeps agents Running04Where it sits in the stack
- Build: @Agent / @Tool, AgentRuntime, confidence loops
- Govern: Skillgate capabilities + Gatekeeper authorization
- Survive: DurableRunStore, crash-safe HITL, hazeld
- Observe: timelines, inspector, optional OpenTelemetry
05Boundaries
- Not a critique of LangGraph, CrewAI, AutoGen, or Mastra — different category bets
- Distributed / Kubernetes control-plane backends remain experimental
- Hosted Cloud registry is optional Team SKU — local Store works without it
06FAQ
- Is HazelJS only an agentic framework?
- No. Framework APIs (@Agent / @Tool) sit under an Agent OS layer: DNA, Skillgate, Gatekeeper, durable HITL, and local apply.
- Do I need Hazel Cloud to start?
- No. hazel new agent → hazel apply on your laptop is the default path.
- Where should I go deeper?
- Category definition: What is an Agent OS?. Implementation: Agent OS guide.
07Minimal agent definition
import { Agent, Tool } from '@hazeljs/agent';
@Agent({
name: 'support-agent',
description: 'Local desk agent',
systemPrompt: 'Help with orders and refunds.',
maxSteps: 12,
})
export class SupportAgent {
@Tool({ name: 'pulse', description: 'Local node health pulse' })
async pulse() {
return { ok: true };
}
}