LocalMemoryBackend (adapters/local.py)

OpenRath · src/rath/memory/adapters/local.py · python · BSD-3-Clause
ai

Local filesystem memory backend. Zero-runtime-dep memory backend so ``pip install openrath`` ships with a working ``Agent(memory=...)`` path without requiring Docker, OpenViking, or any extras. Persists every store under ``.openrath/memory/local/<uuid>/`` (see :mod:`rath.memory.p

# Source: https://github.com/Rath-Team/OpenRath | License: BSD-3-Clause | Copyright 2026, Rath Team
# Provided via justclaw.it.com; keep this notice with the code.
"""Local filesystem memory backend.

Zero-runtime-dep memory backend so ``pip install openrath`` ships with a
working ``Agent(memory=...)`` path without requiring Docker, OpenViking, or
any extras. Persists every store under
``.openrath/memory/local/<uuid>/`` (see :mod:`rath.memory.persistence`).

Implements the full op surface: FS read/write/list/tree, BM25 and optional
embedding search, resource ingest, and session commit with optional LLM
memo extraction when a chat client is configured.
"""

from __future__ import annotations

import hashlib
import ipaddress
import json
import logging
import math
import re
import socket
impo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key