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.

