Long-term memory for DeepSeek Harness

Cairn.

Leave durable markers; the next session finds its way.

Cairn is persistent cross-session memory for the DeepSeek Harness, packaged as the @chenhw7/dsh-memory profile bundle. Facts, preferences, corrections, and lessons survive across sessions and restarts — your agent starts every conversation already knowing what mattered last time.

Install
$dsh plugin add --profile web @chenhw7/dsh-memory
What it does
01 · Persistent memory

A durable KV store with audit logging

Facts, preferences, and conventions stored in a durable backend with a 200-row rolling audit log. Every write answers who, when, and why.

survives restarts
02 · Three-layer scoping

Global, project, and user scope

Global memories cross every project. Project memories are per-repo and auto-detected. User memories follow your profile across repos. No bleed, no loss.

auto-detected
03 · BM25 retrieval

CJK-aware, dependency-free Okapi BM25

Latin word tokens plus CJK unigrams and bigrams. Pinned entries surface ahead of equal-relevance matches. Evaluated in CI against a fixed golden set — success@5 = 100%, MRR = 0.902.

measured, not vibes
04 · Human-confirmed writes

Models suggest; humans promote

A background distillation pass extracts durable facts from explicit remember-intent, corrections, and verified failure streaks — but models only write suggested entries. Human confirmation makes them effective.

you stay in control
Development activity

How often does this project move? Judge from the repo itself. This panel reads the project's real history the moment you open the page — the latest commits on main, plus per-day commit counts and line churn across the whole project.

LIVE FROM THE REPO
○ SNAPSHOT
v0.8.0 @chenhw7/dsh-memory
// last 14 days · hover a day for churn & commits
Explore