Ladybug Memory

lbm — agent memory CLI

Rust CLI that uses sqlite, ladybug and gliner 2.5(no python, no pytorch) for graph extraction. Plugs into pidotdev — shouldn't be hard to integrate with other agents.

curl -fsSL https://install.ladybugmem.ai | bash

## Add memories to ladybugmem

Real session, verbatim: provision the model, store two preferences, browse them. Each remember runs extract → resolve → decide → write — both land as new, active memories.

$ 
# first run only — model + runtime, no env setup
model  gliner2.5-base-v1-nico-onnx ~780 MB ✓
ort    libonnxruntime 1.31.0 ~35 MB ✓
$ 
extract: nike[1.00]
resolve: nike
decision: new
stored #3 [preferences|active]: I like nike
$ 
extract: adidas[0.99]
resolve: adidas
decision: new
stored #4 [preferences|active]: I like adidas now
$ 
# jq keeps the full JSON readable
{
  "id": 3,
  "content": "I like nike"
}
{
  "id": 4,
  "content": "I like adidas now"
}
/ / /

ladybug-memory-rs on GitHub →· visual? run lbm demo for chat-left / live-graph-right

sqlite-first — intake logWAL · node_* / rel_* staging

Every remember lands first as a SQLite row, then stages distilled facts and syncs them into the graph. Crash-safe, replayable.

ladybug — entity graphMemory · Entity · MentionedIn

Distilled facts plus provenance live in the native graph — memories, entities, co-occurrence and conflict edges.

gliner 2.5 — onnx-only extractionno python · no torch at inference

Entity extraction runs on the single-graph ONNX export via the bundled ORT dylib — ~780 MB snapshot auto-downloaded on first use.

pi-native — agent pluginpi-plugin · lb_memory tool

Ships a thin pi extension — lb_memory tool, /lb-* commands, message-end auto-capture. Other agents: it's just JSON over a CLI.

harness + model — natural-language queriespidotdev

Keep lbm on PATH as context (remember/search JSON) and let the model do the asking — natural-language queries over your memories.

lb-graph-curation — skillskill

Graph curation via harness + model — dedups entity nodes, fills missing RelatesTo edges.