databaseMemory System

Local memory storage, extraction rules, retrieval, and privacy model.

DragonClaw has persistent memory across channels and sessions.

It remembers useful facts you tell it and reuses them later.

Storage

Memory is stored in SQLite at ~/.dragonclaw/memory.db.

If SQLite bindings are unavailable, DragonClaw falls back to ~/.dragonclaw/memory.json.

What gets stored

  • Preferences

  • Stated facts

  • Explicit remember requests

  • Simple agent observations

Examples:

  • 我喜欢追踪 Solana meme

  • My risk tolerance is low

  • 记住我只看 BSC 链上的项目

How retrieval works

  1. Extract keywords from the new message

  2. Query matching memory entries

  3. Inject the top recent matches into the prompt

  4. Let the LLM answer with that context

Limits

  • 10,000 entry cap

  • Automatic pruning of the oldest entries

  • WAL mode for better concurrent behavior

Privacy

All memory stays local unless you explicitly export or sync it.

Delete the memory database to wipe stored facts.

Last updated