Use this if you want the shortest path.

1. Install

git clone https://github.com/Hulupeep/pastchats-memory.git
cd pastchats-memory
python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]

2. Initialize memory DB

pastchats-memory init --db .swarm/prompt_memory.db

3. Index your chat history

pastchats-memory index --db .swarm/prompt_memory.db --input ~/projects

You can pass multiple paths:

pastchats-memory index --db .swarm/prompt_memory.db --input ~/projects ~/Downloads/chat_exports

4. Recall before coding

pastchats-memory recall --db .swarm/prompt_memory.db --query "idempotent webhook retry strategy"

5. Use that output as context for your new task

That’s it.


This site uses Just the Docs, a documentation theme for Jekyll.