@agentium/harness and 5 from @agentium/harness/testing. This reference includes their full public declarations, including every configuration field and public method.
Start with the package quickstart. The runtime guide explains defaults and failure behavior. This reference targets @agentium/harness@4.11.0; see release and upgrade guidance.
Definitions and abilities
Compose definitions, implement abilities, and validate portable manifests.AbilityAbilityDefinitionAbilityDescriptiondefineAbilitydefineHarnessdescribeHarnessexportManifestextendHarnesshashManifestloadManifestAbilityBindingAbilityFactoryAbilitySelectionBoundHarnessHarnessContextBudgetHarnessContextEntryHarnessContextSourceHarnessDefaultsHarnessDefinitionHarnessDescriptionHarnessDiagnosticHarnessExtensionHarnessManifestHarnessMiddlewareJsonObjectJsonValueLocalAbilityUsePromptFragmentResolvedHarness
Presets and context
Built-in abilities, research presets, file context, and MCP resource connections.MCPResourceClientMCPResourceGrantMCPResourcesOptionsmcpResourcesBaseOptionsFileContextOptionsResearchOptionsSuppliedToolsOptionsTextContextOptionsbasefileContextresearchsuppliedToolstextContext
Runtime and run handles
Runtime construction, grants, budgets, execution services, results, and controls.requestInputToolHarnessBudgetSnapshotHarnessBudgetStateHarnessResourceSnapshotInputTokenEstimatorparseHarnessBudgetStateExecutionDriverHarnessBudgetsHarnessDriverOutputHarnessExecutionServicesHarnessGrantsHarnessNativeJournalHarnessNativeRecoveryOptionsHarnessRecoveryBoundaryHarnessRecoveryLifecycleOptionsHarnessRecoveryStateHarnessRecoveryStateAdapterHarnessRunRequestHarnessRunStateHarnessRuntimeConfigHarnessSendModeHarnessStartOptionsRunHandlecreateHarnessRecoveryLifecycleHarnessBudgetErrorHarnessNativeInputPendingHarnessRecoveryLifecycleErrorHarnessRuntimeHarnessUnsupportedErrorisHarnessNativeInputPendingHarnessInputErrorCodeHarnessInputErrorparseRunInputRUN_INPUT_LIMITSvalidateRunInput
Recall and task continuity
Bounded evidence recall, archival task summaries, resident history, and source provenance.ContinuityContextPolicyOptionsIncrementalTaskSummaryPolicyOptionscontinuityContextPolicycurrentSessionRecallPolicyincrementalTaskSummaryPolicyHistoryArchiveHistoryArchiveReferenceHistoryArchiveScopeResidentHistoryPolicyHistoryRetentionErrorEvidenceExcerptEvidenceReferenceRecallBudgetRecallCandidateRecallDecisionRecallDiagnosticRecallOperationLimitsRecallPolicyRecallReadResultRecallResultRecallScopeRecallSessionRecallStoreTaskSummaryConfigTaskSummaryCoverageTaskSummaryDraftTaskSummaryPolicyTaskSummaryRecord
Recoverable execution graphs
Versioned host catalogs, JSON DAG plans, root limits, recovery, and bounded planning.ExecutionGraphResultExecutionGraphRuntimeOptionsExecutionGraphTaskOptionsExecutionGraphRuntimeExecutionPlanValidationErrorgraphCatalogDescriptorgraphCatalogDigestvalidateExecutionPlanExecutionGraphLimitsExecutionGraphPlannerOptionsExecutionGraphProgramExecutionPlanExecutionPlanNodeGraphAgentBindingGraphBindingGraphNestedBindingGraphRepeatBindingGraphToolBindingGraphValueSchemaPlanCommitFramePlanReferenceRequirementPlanStreamLimitsPlanValidationLimitsValidatedExecutionPlan
Execution drivers
Adapt an Agent, Team, or Workflow and implement controlled execution.Controllers and policies
Step overrides, model roles, context projection, and completion decisions.CompletionCandidateCompletionVerificationCompletionVerifierReflectionPolicyOptionsSummaryContextPolicyOptionsVerifiedCompletionPolicyOptionsreflectionPolicysummaryContextPolicyverifiedCompletionPolicyCompletionDecisionCompletionPolicyContextPolicyContextProjectionModelRoleBindingStepControllerStepOverrides
Sessions and resources
Identity-scoped session leases, snapshots, stores, and resource ownership.HarnessIdentityHarnessSessionLeaseHarnessSessionSnapshotHarnessSessionStoreScopedResourceSessionResourceLeaseHarnessResourcePoolHarnessSessionConflictInMemoryHarnessSessionStore
Events and results
Versioned events, terminal results, replay cursors, and bounded event retention.HarnessEventHarnessEventPayloadHarnessReasonHarnessResultHarnessStatusHarnessEventGapErrorInMemoryHarnessEventStore
Runtime registries
Resolve versioned driver and policy references against host-approved implementations.HarnessRegistryEntryHarnessRegistryReferenceHarnessRuntimeBindingsHarnessRuntimeReferencesHarnessRuntimeRegistryresolveHarnessRuntime
Durable watches
Watch definitions, lifecycle methods, scheduler contracts, limits, and state.defineWatchdescribeWatchDurableWatchWatchIdentityWatchQuietHoursWatchLimitsWatchDefinitionWatchDefinitionInputWatchEventWatchSubscriptionWatchSourceBatchVerifiedWatchTriggerWatchSourceWatchScheduleKindWatchScheduleWatchSchedulerWatchOperationWatchAuthorizationWatchServicesWatchOutboxWatchState