Skip to content

mikeydotio/memlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memlayer

Persistent, searchable memory for Claude Code conversations.

Memlayer gives Claude Code perfect recall across sessions. Every conversation is automatically indexed and searchable — Claude can remember what you worked on, how you solved problems, and what decisions were made.

Start a Claude Code session and ask "Do you remember how we fixed the SSH tunnel issue last week?" — Claude searches your indexed conversation history and returns the exact session where you debugged it together.

How It Works

  Your Claude Code sessions             Memlayer server
  ~/.claude/projects/**/*.jsonl          (FastAPI + PostgreSQL)

         |                                      |
         v                                      v
   +-------------+      HTTP/JSON      +----------------------+
   |   daemon    | ------------------> |   PostgreSQL 16      |
   |   (Rust)    |    batch ingest     |   + pgvector         |
   |             |                     |                      |
   |  1. Watches |                     |  3. Stores entries   |
   |  2. Parses  |                     |     FTS + vectors    |
   +-------------+                     +----------+-----------+
                                                  |
   +-------------+     search API                 |
   |  Claude     | <------------------------------+
   |  Code       |    via `memlayer` CLI
   |  session    |    (TypeScript, Bash tool)
   +-------------+
                       4. Claude recalls
  1. Watch — The daemon tails Claude Code's JSONL logs in real time.
  2. Parse — Each line is parsed into structured entries and batched to the server over HTTP.
  3. Store — The server stores entries in PostgreSQL with full-text search vectors. Optionally, embeddings are generated asynchronously for semantic search. Search uses Reciprocal Rank Fusion (RRF) to combine both methods.
  4. Recall — Claude calls the memlayer CLI (memlayer search, memlayer session) to query the server and pull relevant history into the current session.

Quick Start: Self-Hosted

Two commands. The server sets up the database and API; the client installs the daemon and connects Claude Code.

Server (needs Docker):

git clone https://github.com/mikeydotio/memlayer.git
cd memlayer
./setup_server.sh

Client (on each machine, or the same one):

./setup_client.sh

Quick Start: Cloud-Hosted

Deploy to Supabase (database) + Fly.io (server) — no Docker or VPS needed:

git clone https://github.com/mikeydotio/memlayer.git
cd memlayer
./setup_cloud_hosted.sh

One-Liner Install

Client-only — downloads everything automatically:

curl -fsSL https://raw.githubusercontent.com/mikeydotio/memlayer/main/install.sh | bash

Test it. Start a new Claude Code session and ask:

Do you remember what we worked on last week?

Documentation

Installation & Deployment

Reference

Operations

Contributing

  • Development — Dev setup, project structure, API endpoints

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors