Skip to main content

Agent Memory

Two memory layers serve different jobs: topic context resumes current work, while the durable KB carries reusable lessons across sessions.

NeedSystemSurfaceDetails
Resume the current workHook memory/tmp/specs/... + ,agent-memoryHook memory
Reuse a verified lessonDurable KB~/.local/share/ai-kb/ + ,ai-kbAI knowledge base
Understand automatic recallRuntime wiringshared KB + harness hooks and pluginsRuntime recall wiring

Quickstart

# Session topic (ephemeral — not durable lessons)
,agent-memory status --session-id <id>
,agent-memory select <topic> --session-id <id> # bind session to bucket
,agent-memory note gotcha "..." --ref scripts/foo.py:42 # task-scoped; harvest later

# Durable KB (verified reusable insights only)
,ai-kb search "<actual task query>" --limit 5 --json
,ai-kb remember --title "..." --body "..." --kind gotcha --scope project \
--workspace "$(pwd)" --source "path:line" --confidence 0.9 --domain chezmoi
,ai-kb harvest --session-id <id> # read-only candidates from worklog

Boundaries

SystemUse forNot for
,agent-memorysession topic, worklog/evidence tracedurable lessons
,ai-kbverified facts, gotchas, recipestransient scratch
SCSI / semantic-code-searchrepository codeagent memory

Proof receipts are separate: ,proof tracks criteria, evidence, assessments, and blockers in repo-external agent-proof state only for a requested, auditable, or named-handoff receipt.