All connectors
Memory

Mem0

Mem0 memory writer guard.

Wraps the Mem0 client. Inspects every memory-write call to catch poisoning attempts (rules that would activate on later turns) before they persist.

Install

pnpm add @blackunicorn/bonklm-mem0

Minimal example

import { Memory } from 'mem0ai'
import { wrapMem0 } from '@blackunicorn/bonklm-mem0'

const mem = wrapMem0(new Memory(), { guards: ['memory-write'] })
Related connectors