Expand description
File-backed knowledge base: append-only JSONL persistence.
Wraps MemoryKnowledgeBase with a durable log: on open, existing
records are loaded from the file (tolerating a torn trailing line
from a crash mid-write); every record
appends one JSON line and delegates. Queries delegate unchanged.
Because the log is strictly append-only, refresh can pick up
another process’s writes by reading from a byte offset instead of
re-parsing the file: a long-lived reader (the MCP server) sees runs
finishing in another terminal without reopening anything.
Structs§
- File
Knowledge Base - JSONL-backed
KnowledgeBase(oneExperimentRecordper line).