Skip to main content

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

  1. Stop hook fires uvx dreamtime --enqueue at session close (async, non-blocking).
  2. A background worker processes the queue and calls your LLM to distill insights.
  3. Distilled memories land in ~/.claude/memory/ as Markdown files.
  4. 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

Metadata

Release files for dreamtime 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dreamtime 0.1.1
File Size Uploaded Provenance Actions
dreamtime-0.1.1.tar.gz 74.2 kB Without provenance Details for dreamtime-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dreamtime 0.1.1
File Interpreter ABI Platform Actions
dreamtime-0.1.1-py3-none-any.whl Python 3 none any Details for dreamtime-0.1.1-py3-none-any.whl

Total release size: 164.5 kB

Release files / dreamtime-0.1.1.tar.gz

Download URL dreamtime-0.1.1.tar.gz
Size 74.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fcaf3d1ff32c6996d1478965628f530376625e341dec2b02c80fa655672fc95a
BLAKE2b-256 checksum
How to use checksums
9d9d0360c43826945b49cb28fde5da19db211c33c404d435f4db5c25adba8011
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / dreamtime-0.1.1-py3-none-any.whl

Download URL dreamtime-0.1.1-py3-none-any.whl
Size 90.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
638e1c6360887495db187a3056cb7983637cdec385f02b35105ec3331ce96390
BLAKE2b-256 checksum
How to use checksums
441a017dd3aa6062dbd5e52adc005472a54cd91183d826424959b7a357eb7b7e
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for dreamtime 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page