@harness-kernel/core
@harness-kernel/core is the stable center of Harness Kernel. It has zero external runtime dependencies and exposes both agent-space and runtime-host contracts.
Use it for:
defineAgent,HarnessMode,HarnessTool,HarnessHook,HarnessRole,HarnessContextProvider, andHarnessEvent;createHarnessSessionStoreandcreateHarnessSession;- model provider contracts and registry helpers;
- storage and sandbox contracts plus
MemorySessionStorage, legacy run storage helpers, andNoopSandbox; - logging contracts plus
ConsoleLogSinkandMemoryLogSink; - official schema primitives from
@harness-kernel/core/schema.
Preferred imports:
import { defineAgent } from "@harness-kernel/core/agent";import { HarnessMode } from "@harness-kernel/core/agent/mode";import { createHarnessSessionStore } from "@harness-kernel/core/runner";import { s } from "@harness-kernel/core/schema";See Package Boundaries and API Reference.