@odradekk/vera-memory
Structured memory system for Vera agent (SQLite + vector search)
Package details
Install @odradekk/vera-memory from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@odradekk/vera-memory- Package
@odradekk/vera-memory- Version
0.3.0- Published
- May 5, 2026
- Downloads
- 210/mo · 10/wk
- Author
- odradekk
- License
- MIT
- Types
- extension
- Size
- 91.8 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
vera-memory
A minimal structured memory layer for Vera.
Purpose
vera-memory stores and retrieves structured memories for Vera. It is intentionally small:
- active use only
- SQLite + FTS5
- structured records
- explicit CRUD tools
- no automatic retrieval injection
- no automatic writeback
- no maintenance / review / cleanup pipeline
- no vector database
- no embeddings
Registered surface
Tools
memory_remembermemory_searchmemory_updatememory_forgetmemory_status
Command
/memory_status
Hooks
session_startsession_shutdown
Data model
Core storage uses:
metamemoriesmemories_fts
See repository design docs for the exact V1 schema.
Config
Loaded from:
agent/config/memory.json- project
.pi/config/memory.json
Minimal example:
{
"enabled": true,
"database": {
"path": "../state/memory.sqlite"
},
"defaults": {
"shortTtlDays": 14
}
}
Notes:
- relative
database.pathvalues are resolved from the config file directory - if no config file exists, built-in defaults are used
memory_rememberdoes not do upsert
Behavior
The memory system is manual, not default.
- search only when memory may materially improve continuity or correctness
- store only stable, reusable information
- update only when the same stable object changed
- forget only on explicit request, confirmed error, or clear replacement
- files, runtime state, and docs override memory
Smoke
Run:
npm run smoke
The smoke test covers the minimal V1 path:
- tool registration
- remember
- search by query
- search by identity
- update
- forget
- status
Loaded through agent/settings.json as ./packages/vera-memory.