Dreamcontext
Persistent brain for AI coding agents — remembers what you built, knows how your project works.

Dreamcontext is a TypeScript CLI, published to npm, that gives AI coding agents a structured, persistent brain across sessions.
The real problem isn't that agents "forget" — it's the token-burning search spiral: every new session, the agent reads a flat memory file, finds it insufficient for a real codebase, and burns 20K+ tokens re-exploring structure it already knew.
Dreamcontext kills that spiral by pre-loading curated context through a SessionStart hook — zero agent tool calls — and organizing knowledge across purpose-built files that mirror the brain's regions:
- Soul — identity & principles
- Memory — semantic knowledge
- Knowledge — procedural how-tos
- State — working memory / active tasks
- User — episodic history
Highlights
- 🧠 RemSleep consolidation — a sleep-cycle that distills and compresses knowledge the way the brain processes memory during sleep, keeping context sharp instead of bloated.
- ⚡ Zero-token context loading — structured brain injected at session start via hook.
- 🗂️ Task, feature & knowledge lifecycle — full CRUD with statuses, versions, and PRDs.
- 🔗 Cross-project federation — connected vaults share consent-gated digests.
- 📊 Local dashboard — browse the brain, roadmap, and agent sessions in a web UI.
- 🔄 ClickUp / GitHub sync and cross-session continuity.
Built for the agentic era: instead of re-teaching your AI the same project every session, you build a brain once and it compounds.

