Session-close memory distillation for Claude Code
Project description
dreamtime
Session-close memory distillation for Claude Code.
When a Claude Code session ends, dreamtime automatically reads the files you accessed and uses an LLM to distill key insights into your persistent memory store. No more re-explaining context at the start of every session.
Why
Claude Code has no memory between sessions. Every conversation starts blank.
dreamtime fixes this: at session close, it runs a distillation pass and writes structured memories to ~/.claude/memory/. The next session starts with context.
Quick start
uvx dreamtime --install-hook
Requires uv and an API key in ~/.claude/memory-store/config.yaml.
Configuration
cp config.yaml.example ~/.claude/memory-store/config.yaml
# Edit: set api.api_key to your key
# Any OpenAI-compatible endpoint works (Anthropic, OpenAI, local relay)
How it works
- Stop hook fires
uvx dreamtime --enqueueat session close (async, non-blocking). - A background worker processes the queue and calls your LLM to distill insights.
- Distilled memories land in
~/.claude/memory/as Markdown files. - Future sessions load these memories automatically via
MEMORY.md.
Commands
uvx dreamtime --install-hook # wire up the Stop hook
uvx dreamtime --enqueue # manually trigger distillation
uvx dreamtime --status # show queue and last run
Requirements
- Python 3.10+
- uv installed
- Claude Code (or any tool that runs Stop hooks)
- An OpenAI-compatible API key
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dreamtime-0.1.1.tar.gz.
File metadata
- Download URL: dreamtime-0.1.1.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcaf3d1ff32c6996d1478965628f530376625e341dec2b02c80fa655672fc95a
|
|
| MD5 |
78991eba794344a1ac24dd6dbc09b8f7
|
|
| BLAKE2b-256 |
9d9d0360c43826945b49cb28fde5da19db211c33c404d435f4db5c25adba8011
|
File details
Details for the file dreamtime-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dreamtime-0.1.1-py3-none-any.whl
- Upload date:
- Size: 90.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
638e1c6360887495db187a3056cb7983637cdec385f02b35105ec3331ce96390
|
|
| MD5 |
30c7be72c142aec832a4123130dc868c
|
|
| BLAKE2b-256 |
441a017dd3aa6062dbd5e52adc005472a54cd91183d826424959b7a357eb7b7e
|