dsh-dream-reflect-lite

Lightweight cross-session reflection: at the end of each turn it writes 3-5 reusable facts (tool chain, file paths, config items, pitfalls) as a card in .dsh/reflections/{date}.md, and on a new session it injects the last 3 cards at the end of the system prompt. Extraction uses the real ctx.llm.stream; when no model route is available it falls back to a heuristic built only from the session log and labels the source honestly on the card. No timers, no quarantine, no approval flow; cards are plain Markdown you can edit or delete.

Overview

Lightweight cross-session reflection: at the end of each turn it writes 3-5 reusable facts (tool chain, file paths, config items, pitfalls) as a card in .dsh/reflections/{date}.md, and on a new session it injects the last 3 cards at the end of the system prompt. Extraction uses the real ctx.llm.stream; when no model route is available it falls back to a heuristic built only from the session log and labels the source honestly on the card. No timers, no quarantine, no approval flow; cards are plain Markdown you can edit or delete.

Installation

Install from GitHub

dsh plugin --profile web add github:liuhange789/dsh-dream-reflect-lite

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.