AbsoluteJS

@absolutejs/agent-memory

@absolutejs/agent-memoryv0.1.7betaAI

Scoped durable provenance-aware memory with authorization, retention, erasure, encryption seams, and pluggable retrieval for AI agents.

#Installation

BASH
bun add @absolutejs/agent-memory

#Capabilities

Overview

Durable, provider-neutral memory for agents with tenant/user/agent/run scopes, mandatory provenance digests, taint-compatible metadata, per-operation policy, expiration, deletion, subject erasure, optimistic versions, and idempotent writes.

Values pass through an injected codec so production deployments can use KMS or envelope encryption. Retrieval indexes are adapters: pgvector, a vector service, or custom search can rank IDs without becoming the source of record. Retrieved records remain labeled memory data; this package never promotes them to trusted instructions. Use validateWrite with @absolutejs/agent-trust to reject poisoned or inappropriately sensitive memories before persistence.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/agent-memory through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/agent-memory version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/agent-memory example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Public entry points

Supported entry points declared by this package manifest.

Package entry point declared in package.json.

@absolutejs/agent-memory@absolutejs/agent-memory/manifest@absolutejs/agent-memory/manifest.json

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --target=bun --external @absolutejs/manifest --external @sinclair/typebox --external drizzle-orm --external 'drizzle-orm/*' && tsc -p tsconfig.build.json && absolute-manifest emit
bun run check:packagebun run typecheck && bun run test && bun run build
bun run formatprettier --write "./**/*.{ts,json,md,yml}"
bun run testbun test
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

19 symbols
AgentMemoryScopetypePermalinkSource
TS
type AgentMemoryScope = {
    tenantId: string;
    namespace: string;
    userId?: string;
    agentId?: string;
    runId?: string;
};
Exported from @absolutejs/agent-memory