Skip to content

Add a persistent SQLite backend alongside InMemoryBackend #3

@MukundaKatta

Description

@MukundaKatta

Summary

agentmem already has a clean in-memory backend and backend abstraction, but it still lacks a simple persistent storage option. A SQLite backend would be the best next step because it keeps the library lightweight while making it useful across sessions.

Why this matters

Right now the package is good for experimentation, but not for any workflow that needs memory continuity. SQLite is a practical middle ground before adding heavier databases.

Proposed scope

  • add a SQLiteBackend implementation using the existing backend interface
  • support storing, listing, deleting, and simple content search
  • persist core MemoryEntry fields and metadata cleanly
  • document setup and usage in the README
  • add tests that cover persistence across backend re-instantiation

Acceptance criteria

  • developers can store memories and read them back after process restart
  • the backend follows the same core interface as InMemoryBackend
  • tests verify CRUD behavior and persistence
  • README includes a minimal example using SQLite

Notes

This should prioritize a small, dependable implementation over premature abstractions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions