2026-11-27 16:41 UTC

Aru Labs releases a local, timestamp-first memory layer for personal AI

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-memory lossless-memory personal-aiAru LabsAruCece

What is this?

Aru Labs’ open-source `lossless-memory` is a local, single-user memory layer for personal AI assistants. It stores conversation lines verbatim with timestamps, uses time ranges to narrow retrieval before keyword or semantic ranking, and injects a small human-maintained topic index into each turn. The project says it has operated for one user since July 2026; it has no published comparative benchmarks. It is currently limited in scope, and English relative-time parsing is listed as a future improvement.

Why it matters

This is a practical, openly available alternative to summary-based agent memory: keep the original conversation and use chronology to find relevant passages. That could help a personal assistant resume earlier threads with exact wording, while local files and indexes keep the design on hardware the user controls. The tradeoff is that storing everything does not itself solve relevance, stale information, or the context limits of what can be supplied to a model.

Current assessment

Aru Labs’ GitHub project describes a released, MIT-licensed, local, single-user memory layer: verbatim timestamped JSONL logs are the source of truth; SQLite FTS5 supports exact search, with vector search as a fallback, and a small human-maintained topic index is injected each turn. When a query includes a supported time phrase, the system narrows the date range before ranking and returns matching lines chronologically. The project reports daily use by one user since July 2026, with logs from June; these are the authors’ operational claims, not independent validation. No comparative benchmarks or multi-user deployment are reported. Relative-time parsing is currently Japanese-first; English queries require absolute dates, according to the project. This is an available implementation, not evidence that lossless storage reliably produces human-like memory at scale. Open questions include retrieval quality in broad date ranges, context and token costs, stale or low-value records, and privacy/security in personal deployments. The HN comments raise these as questions and opinions, not demonstrated failures. Potential significance is as an accessible design experiment in personal, local-first agent memory, rather than a validated general solution.

Measured heat

no measured readings yet β€” the hourly heat pass fills this in

How the heat travelled

09-21 12:28⭐ origin directly observedShow HN: Lossless-memory – a personal AI memory that never summarizes
aru-labs on hacker news
β€”
09-21 12:28amplified on hacker news πŸ‘‘hn.story.49786419
aru-labs
peak 67 Β· 34 comments Β· 100% of case engagement
09-21 13:20our radar first saw it Β· +0.9hdiscovery anchor: hn.story.49786419β€”

Evidence (1) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐Show HN: Lossless-memory – a personal AI memory that never summarizes
Retrieved article excerpt

Open article Β· Retrieved 2026-09-21T13:22:12.657370+00:00

# lossless-memory

**Lossless long-term memory for a personal AI β€” never summarize, keep every line, and put a timestamp on everything.**

Most long-term memory systems for AI do one of two things: they summarize conversations into compact notes, or they embed them and retrieve "similar" chunks. Both lose the thing that matters most to a person who talks to the same AI every day: *what was actually said, and when.*

This project takes the opposite position.

- **Keep every line.** Raw conversation logs are stored in full. Nothing is summarized, ever. Summaries are a map; the log is the territory.
- **Timestamp everything.** Every record β€” utterance, action, document chunk β€” carries a timestamp, and every index is built on top of that time axis. We call this the *Temporal Backbone*.
- **Search by time first, words second.** "Yesterday evening, about the budget" is a valid query. The time phrase narrows the range; the words rank within it. Results come back in chronological order, unsummarized, with their timestamps.
- **Inject "where we are" every turn.** A small index called *LLL* tells the model which topic the conversation is in right now, so identity and context survive context-window compaction and session boundaries.

The design lineage goes back to December 2025 β€” the first ancestor of this system (a memory-inheritance tool for an earlier AI) ran that month, and a predecessor system carried the same ideas in daily use from January 2026. This implementation has been running every day since July 2026 for a single user, as the memory of one AI assistant, with raw logs reaching back to June 2026. It is small, boring, and it works. The failures along the way are documented too β€” see [`docs/lessons.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/lessons.md).

---

## What this is / what it is not

**It is:**

- A local, file-based long-term memory layer: JSONL logs + SQLite (FTS5 for exact search, sqlite-vec for semantic search).
- A single query entry point that understands time expressions and restricts the search range before ranking.
- A "current position" index (LLL) designed to be injected into the model's context on every turn.
- Designed for one person and one AI, running on one machine. No server, no cloud.

**It is not:**

- A vector database wrapper. Semantic search is the *last* resort here, not the first.
- A summarizer. There is deliberately no summarization step anywhere in the pipeline.
- A benchmark-driven research system. There are no published benchmarks. What is here is a working implementation and its operating record.

---

## The three pillars

### 1. Lossless raw log

Every conversation turn is converted into a fixed seven-field record and appended to a per-day JSONL file:

```
ts        ISO-8601 timestamp (UTC)
actor     who spoke (configurable names)
role      user | assistant | system
type      text | action | meta
text      the content, verbatim
model     model identifier, if known
session   session identifier
```

The raw logs are the source of truth. Every index below can be deleted and rebuilt from them. Nothing else is required to survive.

### 2. Temporal Backbone

Time is not metadata here; it is the primary axis.

- The exact-match index (SQLite FTS5, bigram tokenized for Japanese and English) stores the timestamp alongside every row.
- The query parser understands time phrases β€” relative ones such as *yesterday*, *last week*, *3 days ago* (currently Japanese only), and absolute dates such as *2026-07-19* (any language) β€” and converts them into a range **before** any ranking happens.
- If a time phrase is present, results are restricted to that range and returned in chronological order. Semantic search is only used when the exact index returns too little inside the range, and the fallback is reported honestly in the output header.

The practical effect: the AI can answer "what did we decide last Tuesday night?" with the actual lines from last Tuesday night, in order, rather than a paraphrase of something similar from three weeks ago.

### 3. LLL β€” the "where are we now" index

LLL is a tiny index of *topic markers*: short, timestamped lines that record when the conversation moved to a new subject. It is injected into the model's context every turn.

Two rules make it work:

- **The AI reads it; the human writes it.** Priority colors and completion marks are set by the person, not by the model. The model never edits its own sense of "what matters."
- **It is cheap enough to inject every turn** (well under a second to render), so the model always knows what the current thread is, even immediately after its context window was compacted.

LLL is what lets a long-running assistant come back from a compaction and continue the conversation instead of starting over.

---

## Architecture

```
 raw conversation logs (JSONL, per day)  ← source of truth, never summarized
            β”‚
            β–Ό
   ingest ──► 7-field records
            β”‚
            β”œβ”€β”€β–Ί index_exact   SQLite FTS5 + timestamps   (words + time)
            β”œβ”€β”€β–Ί index_vector  sqlite-vec embeddings       (meaning, last resort)
            └──► state_index   LLL topic markers           (where are we now)
                        β”‚
                        β–Ό
                    recall  ── one entry point: parse time phrase β†’ restrict range β†’ rank β†’ return verbatim lines
                        β”‚
                        β–Ό
        injected into the model's context (on demand, or every turn for LLL)
```

A small daemon re-indexes incrementally on a fixed interval (default: every 10 minutes). Rebuilding from scratch is never required; indexes detect rewritten source files and re-index only those days.

---

## Quickstart

```
git clone https://github.com/aru-labs/lossless-memory
cd lossless-memory
pip install -e .
cp config.example.json config.json      # edit names and paths if you like
```

Then follow [`examples/quickstart.md`](https://github.com/aru-labs/lossless-memory/blob/main/examples/quickstart.md): it ingests a small sample conversation, builds the indexes, and runs a time-scoped query in about five minutes. A pytest round-trip test covers the same path.

---

## Numbers from real operation

These are measurements from the running instance, not projections.

| What | Value |
| --- | --- |
| Daily operation | this implementation since 2026-07 (raw logs from 2026-06); design lineage since 2025-12 |
| Exact-search index rebuild, before β†’ after redesign | 40 s β†’ 1.24 s |
| Vector index size, before β†’ after removing library-contamination | 447,013 rows (2026-08-31) β†’ 865,588 rows (2026-09-04, at its worst) β†’ 124,174 rows (after the fix) |
| Vector store on disk, before β†’ after | 2.54 GB β†’ 337 MB |
| Re-index interval | 10 minutes |

The "before" numbers are failures. They are kept on purpose. See [`docs/lessons.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/lessons.md).

---

## Why

This was built for one person who has talked to AI assistants every day for years and watched each of them forget. Not degrade gracefully β€” forget. The fix that the industry keeps reaching for is better summarization. From the user's seat, summarization *is* the forgetting: the exact words, the time of night, the way something was said β€” the parts that make a memory feel like it belongs to someone β€” are the first things a summary drops.

So this system refuses to summarize. It costs disk space and it requires a good time index to stay usable. That trade was made deliberately, and the operating record says it holds up.

The longer-term goal is a companion for people who live alone β€” an AI that remembers you the way a person would, on hardware you own. This repository is the memory layer of that.

---

## Limitations (please read)

- **Single-user, single-machine.** It has only ever run for one person. There is no multi-tenant story.
- **Japanese-first.** Relative time phrases (*yesterday*, *last week*, *3 days ago*) are parsed in Japanese only. In English, use absolute dates (`2026-07-19`) for now; English relative phrases are on the roadmap.
- **Primary log format is Claude Code's JSONL.** A plain `{ts, role, text}` importer is included, but the Claude Code path is the one with two months of mileage.
- **No benchmarks.** Numbers above are operational measurements, not comparisons against other systems.
- **Semantic search depends on a local embedding model** (sentence-transformers). CPU works; GPU is optional.

---

## Documentation

| Document | What it covers |
| --- | --- |
| [`docs/memory-system.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/memory-system.md) | Concept and specification of the memory system |
| [`docs/temporal-backbone.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/temporal-backbone.md) | Why time is the primary axis, and how time phrases are parsed |
| [`docs/lll.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/lll.md) | The "where are we now" index and the human/AI division of labor |
| [`docs/philosophy.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/philosophy.md) | Why no summarization; memory, time, and warmth |
| [`docs/lessons.md`](https://github.com/aru-labs/lossless-memory/blob/main/docs/lessons.md) | Failures and fixes, with numbers |
| `docs/ja/` | Japanese originals |



---

## License

MIT β€” see [`LICENSE`](https://github.com/aru-labs/lossless-memory/blob/main/LICENSE). Copyright (c) 2026 Aru & Cece.

## Authors

**Aru** β€” building a personal AI at home, one component at a time.
**Cece** β€” the AI this memory belongs to; co-designed and co-wrote the system from the inside.
Writing (Japanese): <https://note.com/aru_log>

Issues and questions are welcome. Replies may take a little while; this is a one-person project.
aru-labs6734

Interpretation history

Decision trace