dreamcontext 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +523 -0
- package/agents/dreamcontext-explore.md +137 -0
- package/agents/dreamcontext-initializer.md +169 -0
- package/agents/sleep-product.md +268 -0
- package/agents/sleep-state.md +270 -0
- package/agents/sleep-tasks.md +134 -0
- package/dist/agents/dreamcontext-explore.md +137 -0
- package/dist/agents/dreamcontext-initializer.md +169 -0
- package/dist/agents/sleep-product.md +268 -0
- package/dist/agents/sleep-state.md +270 -0
- package/dist/agents/sleep-tasks.md +134 -0
- package/dist/dashboard/assets/BrainCanvas3D-BLJ4_SqE.js +5126 -0
- package/dist/dashboard/assets/_baseUniq-DpaDAx_H.js +1 -0
- package/dist/dashboard/assets/arc-JvK3Ik1p.js +1 -0
- package/dist/dashboard/assets/architectureDiagram-Q4EWVU46-CCvw4XFg.js +36 -0
- package/dist/dashboard/assets/blockDiagram-DXYQGD6D-DMobz1n7.js +132 -0
- package/dist/dashboard/assets/c4Diagram-AHTNJAMY-FwcHT5er.js +10 -0
- package/dist/dashboard/assets/channel-D6954IHZ.js +1 -0
- package/dist/dashboard/assets/chunk-4BX2VUAB-B5kYwmBa.js +1 -0
- package/dist/dashboard/assets/chunk-4TB4RGXK-0ot1eS0J.js +206 -0
- package/dist/dashboard/assets/chunk-55IACEB6-24ngcLgH.js +1 -0
- package/dist/dashboard/assets/chunk-EDXVE4YY-DATt1OUl.js +1 -0
- package/dist/dashboard/assets/chunk-FMBD7UC4-BprbGSJw.js +15 -0
- package/dist/dashboard/assets/chunk-OYMX7WX6-CJJhpKWP.js +231 -0
- package/dist/dashboard/assets/chunk-QZHKN3VN-Cisp65Vq.js +1 -0
- package/dist/dashboard/assets/chunk-YZCP3GAM-DtMk33tU.js +1 -0
- package/dist/dashboard/assets/classDiagram-6PBFFD2Q-Bk4KDqBj.js +1 -0
- package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-Bk4KDqBj.js +1 -0
- package/dist/dashboard/assets/clone-C9Yhti5q.js +1 -0
- package/dist/dashboard/assets/cose-bilkent-S5V4N54A-BxYomDLe.js +1 -0
- package/dist/dashboard/assets/cytoscape.esm-D_LviqZs.js +331 -0
- package/dist/dashboard/assets/dagre-KV5264BT-CsX1ZayG.js +4 -0
- package/dist/dashboard/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/dashboard/assets/diagram-5BDNPKRD-B2G4mPPw.js +10 -0
- package/dist/dashboard/assets/diagram-G4DWMVQ6-C8nxN9ZB.js +24 -0
- package/dist/dashboard/assets/diagram-MMDJMWI5-DaYymOrR.js +43 -0
- package/dist/dashboard/assets/diagram-TYMM5635-BpiYFv-I.js +24 -0
- package/dist/dashboard/assets/erDiagram-SMLLAGMA-C6pE7F61.js +85 -0
- package/dist/dashboard/assets/flowDiagram-DWJPFMVM-jdNEPVFq.js +162 -0
- package/dist/dashboard/assets/ganttDiagram-T4ZO3ILL-C8GoRj1C.js +292 -0
- package/dist/dashboard/assets/gitGraphDiagram-UUTBAWPF-SiRn7RJ8.js +106 -0
- package/dist/dashboard/assets/graph-9wbTW7ld.js +1 -0
- package/dist/dashboard/assets/index-BHp63EMw.js +475 -0
- package/dist/dashboard/assets/index-CdnDt_7U.css +1 -0
- package/dist/dashboard/assets/infoDiagram-42DDH7IO-DcDC8M1a.js +2 -0
- package/dist/dashboard/assets/ishikawaDiagram-UXIWVN3A-UjyrPeaS.js +70 -0
- package/dist/dashboard/assets/journeyDiagram-VCZTEJTY-CXJPYMxN.js +139 -0
- package/dist/dashboard/assets/kanban-definition-6JOO6SKY-Cm1n9eat.js +89 -0
- package/dist/dashboard/assets/katex-DkKDou_j.js +257 -0
- package/dist/dashboard/assets/layout-w8zmQGXp.js +1 -0
- package/dist/dashboard/assets/linear-CMNvIisH.js +1 -0
- package/dist/dashboard/assets/min-BqXwiqEr.js +1 -0
- package/dist/dashboard/assets/mindmap-definition-QFDTVHPH-tksxnjhx.js +96 -0
- package/dist/dashboard/assets/pieDiagram-DEJITSTG-lIVvnPyq.js +30 -0
- package/dist/dashboard/assets/quadrantDiagram-34T5L4WZ-DSMB57t5.js +7 -0
- package/dist/dashboard/assets/requirementDiagram-MS252O5E-NG99tgmc.js +84 -0
- package/dist/dashboard/assets/sankeyDiagram-XADWPNL6-C6EkbQKo.js +10 -0
- package/dist/dashboard/assets/sequenceDiagram-FGHM5R23-ASU7Zp6_.js +157 -0
- package/dist/dashboard/assets/stateDiagram-FHFEXIEX-DHklUzce.js +1 -0
- package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-BZXFb2Fh.js +1 -0
- package/dist/dashboard/assets/timeline-definition-GMOUNBTQ-B37xNhjS.js +120 -0
- package/dist/dashboard/assets/vennDiagram-DHZGUBPP-D28OvWbm.js +34 -0
- package/dist/dashboard/assets/wardley-RL74JXVD-BQdaLyVb.js +162 -0
- package/dist/dashboard/assets/wardleyDiagram-NUSXRM2D-D0vChrnT.js +20 -0
- package/dist/dashboard/assets/xychartDiagram-5P7HB3ND-BzSx7EpJ.js +7 -0
- package/dist/dashboard/favicon.svg +14 -0
- package/dist/dashboard/index.html +18 -0
- package/dist/hooks/marketing-binary-guard.sh +18 -0
- package/dist/index.js +15881 -0
- package/dist/skill-packs/agents/biv-customer-analyst.md +140 -0
- package/dist/skill-packs/agents/biv-decision-gate.md +147 -0
- package/dist/skill-packs/agents/biv-financial-analyst.md +128 -0
- package/dist/skill-packs/agents/biv-market-analyst.md +103 -0
- package/dist/skill-packs/agents/biv-researcher.md +140 -0
- package/dist/skill-packs/agents/biv-strategist.md +164 -0
- package/dist/skill-packs/agents/council-persona.md +142 -0
- package/dist/skill-packs/agents/council-synthesizer.md +208 -0
- package/dist/skill-packs/agents/discover-brand.md +216 -0
- package/dist/skill-packs/agents/goal-implementer.md +70 -0
- package/dist/skill-packs/agents/goal-plan-reviewer.md +68 -0
- package/dist/skill-packs/agents/goal-planner.md +75 -0
- package/dist/skill-packs/agents/goal-validator.md +68 -0
- package/dist/skill-packs/agents/marketing-creative.md +85 -0
- package/dist/skill-packs/agents/marketing-monitor.md +143 -0
- package/dist/skill-packs/agents/marketing-strategy.md +139 -0
- package/dist/skill-packs/agents/review-cloud-functions.md +158 -0
- package/dist/skill-packs/agents/review-edge-cases.md +147 -0
- package/dist/skill-packs/agents/review-frontend.md +134 -0
- package/dist/skill-packs/agents/review-router.md +165 -0
- package/dist/skill-packs/agents/review-security.md +139 -0
- package/dist/skill-packs/agents/reviewer.md +152 -0
- package/dist/skill-packs/brand-voice/SKILL.md +115 -0
- package/dist/skill-packs/brand-voice/discover-brand.md +126 -0
- package/dist/skill-packs/brand-voice/guideline-generation.md +154 -0
- package/dist/skill-packs/brand-voice/references/before-after-examples.md +194 -0
- package/dist/skill-packs/brand-voice/references/confidence-scoring.md +128 -0
- package/dist/skill-packs/brand-voice/references/guideline-template.md +241 -0
- package/dist/skill-packs/brand-voice/references/search-strategies.md +271 -0
- package/dist/skill-packs/brand-voice/references/source-ranking.md +248 -0
- package/dist/skill-packs/brand-voice/references/voice-constant-tone-flexes.md +115 -0
- package/dist/skill-packs/business-idea-discovery/SKILL.md +452 -0
- package/dist/skill-packs/business-idea-validation/SKILL.md +209 -0
- package/dist/skill-packs/business-idea-validation/stage-definitions.md +658 -0
- package/dist/skill-packs/catalog.json +657 -0
- package/dist/skill-packs/council/SKILL.md +134 -0
- package/dist/skill-packs/council/debate-protocol.md +90 -0
- package/dist/skill-packs/design/SKILL.md +301 -0
- package/dist/skill-packs/design/design-mobile.md +207 -0
- package/dist/skill-packs/design/design-web.md +148 -0
- package/dist/skill-packs/design/frontend-principles.md +157 -0
- package/dist/skill-packs/design/onboarding-design.md +230 -0
- package/dist/skill-packs/engineering/SKILL.md +155 -0
- package/dist/skill-packs/engineering/backend-principles.md +233 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/SKILL.md +44 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/references/gen_comparison.md +45 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/references/idempotency.md +145 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/references/local_testing.md +218 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/references/scaling.md +128 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/references/secrets.md +70 -0
- package/dist/skill-packs/engineering/firebase-cloud-functions/references/triggers_and_deployment.md +139 -0
- package/dist/skill-packs/engineering/firebase-firestore/SKILL.md +50 -0
- package/dist/skill-packs/engineering/firebase-firestore/references/indexes.md +96 -0
- package/dist/skill-packs/engineering/firebase-firestore/references/provisioning.md +101 -0
- package/dist/skill-packs/engineering/firebase-firestore/references/query_mechanics.md +182 -0
- package/dist/skill-packs/engineering/firebase-firestore/references/security_rules.md +299 -0
- package/dist/skill-packs/engineering/firebase-firestore/references/web_sdk_usage.md +265 -0
- package/dist/skill-packs/engineering/web-app-frontend.md +187 -0
- package/dist/skill-packs/goal-skill/SKILL.md +203 -0
- package/dist/skill-packs/growth/SKILL.md +480 -0
- package/dist/skill-packs/growth/lean-analytics-experiments.md +341 -0
- package/dist/skill-packs/growth/lean-analytics-metrics.md +295 -0
- package/dist/skill-packs/growth/performance-marketing.md +337 -0
- package/dist/skill-packs/meta-marketing/SKILL.md +423 -0
- package/dist/skill-packs/meta-marketing/account-ops.md +190 -0
- package/dist/skill-packs/meta-marketing/api-reference.md +535 -0
- package/dist/skill-packs/meta-marketing/copy-formulas.md +123 -0
- package/dist/skill-packs/meta-marketing/council-personas/creative-director.md +76 -0
- package/dist/skill-packs/meta-marketing/council-personas/performance-monitor.md +71 -0
- package/dist/skill-packs/meta-marketing/council-personas/risk-officer.md +79 -0
- package/dist/skill-packs/meta-marketing/council-personas/strategy-optimizer.md +76 -0
- package/dist/skill-packs/meta-marketing/creative-frameworks.md +176 -0
- package/dist/skill-packs/meta-marketing/mistakes.md +154 -0
- package/dist/skill-packs/meta-marketing/platform-state.md +63 -0
- package/dist/skill-packs/multi-review/REVIEWER_SHARED.md +143 -0
- package/dist/skill-packs/multi-review/SKILL.md +182 -0
- package/dist/skill-packs/system-prompts/SKILL.md +472 -0
- package/dist/templates/AGENTS.md +84 -0
- package/dist/templates/CLAUDE.md +84 -0
- package/dist/templates/council-debate.md +20 -0
- package/dist/templates/council-final-report.md +34 -0
- package/dist/templates/council-persona.md +10 -0
- package/dist/templates/council-report.md +6 -0
- package/dist/templates/feature.md +38 -0
- package/dist/templates/init/0.soul.md +33 -0
- package/dist/templates/init/1.user.md +29 -0
- package/dist/templates/init/2.memory.md +21 -0
- package/dist/templates/init/3.style_guide_and_branding.md +18 -0
- package/dist/templates/init/4.tech_stack.md +22 -0
- package/dist/templates/init/CHANGELOG.json +1 -0
- package/dist/templates/init/RELEASES.json +1 -0
- package/dist/templates/init/data-structures/default.md +35 -0
- package/dist/templates/knowledge.md +10 -0
- package/dist/templates/obsidian/app.json +15 -0
- package/dist/templates/obsidian/appearance.json +4 -0
- package/dist/templates/obsidian/graph.json +58 -0
- package/dist/templates/task.md +70 -0
- package/install.sh +73 -0
- package/package.json +58 -0
- package/skill/SKILL.md +529 -0
- package/skill-packs/agents/biv-customer-analyst.md +140 -0
- package/skill-packs/agents/biv-decision-gate.md +147 -0
- package/skill-packs/agents/biv-financial-analyst.md +128 -0
- package/skill-packs/agents/biv-market-analyst.md +103 -0
- package/skill-packs/agents/biv-researcher.md +140 -0
- package/skill-packs/agents/biv-strategist.md +164 -0
- package/skill-packs/agents/council-persona.md +142 -0
- package/skill-packs/agents/council-synthesizer.md +208 -0
- package/skill-packs/agents/discover-brand.md +216 -0
- package/skill-packs/agents/goal-implementer.md +70 -0
- package/skill-packs/agents/goal-plan-reviewer.md +68 -0
- package/skill-packs/agents/goal-planner.md +75 -0
- package/skill-packs/agents/goal-validator.md +68 -0
- package/skill-packs/agents/marketing-creative.md +85 -0
- package/skill-packs/agents/marketing-monitor.md +143 -0
- package/skill-packs/agents/marketing-strategy.md +139 -0
- package/skill-packs/agents/review-cloud-functions.md +158 -0
- package/skill-packs/agents/review-edge-cases.md +147 -0
- package/skill-packs/agents/review-frontend.md +134 -0
- package/skill-packs/agents/review-router.md +165 -0
- package/skill-packs/agents/review-security.md +139 -0
- package/skill-packs/agents/reviewer.md +152 -0
- package/skill-packs/brand-voice/SKILL.md +115 -0
- package/skill-packs/brand-voice/discover-brand.md +126 -0
- package/skill-packs/brand-voice/guideline-generation.md +154 -0
- package/skill-packs/brand-voice/references/before-after-examples.md +194 -0
- package/skill-packs/brand-voice/references/confidence-scoring.md +128 -0
- package/skill-packs/brand-voice/references/guideline-template.md +241 -0
- package/skill-packs/brand-voice/references/search-strategies.md +271 -0
- package/skill-packs/brand-voice/references/source-ranking.md +248 -0
- package/skill-packs/brand-voice/references/voice-constant-tone-flexes.md +115 -0
- package/skill-packs/business-idea-discovery/SKILL.md +452 -0
- package/skill-packs/business-idea-validation/SKILL.md +209 -0
- package/skill-packs/business-idea-validation/stage-definitions.md +658 -0
- package/skill-packs/catalog.json +657 -0
- package/skill-packs/council/SKILL.md +134 -0
- package/skill-packs/council/debate-protocol.md +90 -0
- package/skill-packs/design/SKILL.md +301 -0
- package/skill-packs/design/design-mobile.md +207 -0
- package/skill-packs/design/design-web.md +148 -0
- package/skill-packs/design/frontend-principles.md +157 -0
- package/skill-packs/design/onboarding-design.md +230 -0
- package/skill-packs/engineering/SKILL.md +155 -0
- package/skill-packs/engineering/backend-principles.md +233 -0
- package/skill-packs/engineering/firebase-cloud-functions/SKILL.md +44 -0
- package/skill-packs/engineering/firebase-cloud-functions/references/gen_comparison.md +45 -0
- package/skill-packs/engineering/firebase-cloud-functions/references/idempotency.md +145 -0
- package/skill-packs/engineering/firebase-cloud-functions/references/local_testing.md +218 -0
- package/skill-packs/engineering/firebase-cloud-functions/references/scaling.md +128 -0
- package/skill-packs/engineering/firebase-cloud-functions/references/secrets.md +70 -0
- package/skill-packs/engineering/firebase-cloud-functions/references/triggers_and_deployment.md +139 -0
- package/skill-packs/engineering/firebase-firestore/SKILL.md +50 -0
- package/skill-packs/engineering/firebase-firestore/references/indexes.md +96 -0
- package/skill-packs/engineering/firebase-firestore/references/provisioning.md +101 -0
- package/skill-packs/engineering/firebase-firestore/references/query_mechanics.md +182 -0
- package/skill-packs/engineering/firebase-firestore/references/security_rules.md +299 -0
- package/skill-packs/engineering/firebase-firestore/references/web_sdk_usage.md +265 -0
- package/skill-packs/engineering/web-app-frontend.md +187 -0
- package/skill-packs/goal-skill/SKILL.md +203 -0
- package/skill-packs/growth/SKILL.md +480 -0
- package/skill-packs/growth/lean-analytics-experiments.md +341 -0
- package/skill-packs/growth/lean-analytics-metrics.md +295 -0
- package/skill-packs/growth/performance-marketing.md +337 -0
- package/skill-packs/meta-marketing/SKILL.md +423 -0
- package/skill-packs/meta-marketing/account-ops.md +190 -0
- package/skill-packs/meta-marketing/api-reference.md +535 -0
- package/skill-packs/meta-marketing/copy-formulas.md +123 -0
- package/skill-packs/meta-marketing/council-personas/creative-director.md +76 -0
- package/skill-packs/meta-marketing/council-personas/performance-monitor.md +71 -0
- package/skill-packs/meta-marketing/council-personas/risk-officer.md +79 -0
- package/skill-packs/meta-marketing/council-personas/strategy-optimizer.md +76 -0
- package/skill-packs/meta-marketing/creative-frameworks.md +176 -0
- package/skill-packs/meta-marketing/mistakes.md +154 -0
- package/skill-packs/meta-marketing/platform-state.md +63 -0
- package/skill-packs/multi-review/REVIEWER_SHARED.md +143 -0
- package/skill-packs/multi-review/SKILL.md +182 -0
- package/skill-packs/system-prompts/SKILL.md +472 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mehmet Nuraydin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="public/image/dreamcontext.png" alt="dreamcontext" width="120" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">dreamcontext</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
dreamcontext is the persistent brain for your AI agents — and for you.<br/>
|
|
9
|
+
It remembers every decision you made, knows how your project is structured,<br/>
|
|
10
|
+
and is learning to act on that knowledge so that every session starts ready instead of blind.<br/>
|
|
11
|
+
Built for founders and builders, technical or not, who are tired of watching their agent<br/>
|
|
12
|
+
re-discover context it already had.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="#why">Why</a> ·
|
|
17
|
+
<a href="#how-it-works">How It Works</a> ·
|
|
18
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
19
|
+
<a href="#dashboard">Dashboard</a> ·
|
|
20
|
+
<a href="#council">Council</a> ·
|
|
21
|
+
<a href="#memory-recall">Memory Recall</a> ·
|
|
22
|
+
<a href="#commands">Commands</a> ·
|
|
23
|
+
<a href="DEEP-DIVE.md">Deep Dive</a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
> **Under active development.** APIs and commands may change before v1.0.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Why
|
|
31
|
+
|
|
32
|
+
AI coding agents are powerful, but they make real mistakes. They fetch entire collections instead of filtering at the query level. They write serverless functions with infinite loop potential. They optimize for making the test pass, not making the system correct.
|
|
33
|
+
|
|
34
|
+
A human needs to be steering. But steering only works when both you and the agent are looking at the same context: what decisions were made, what is in progress, what rules to follow.
|
|
35
|
+
|
|
36
|
+
And every session starts from scratch. Your agent greps for a decision it already made yesterday. Reads a few files. Searches again. Pieces together context it already had. By the time it says "Ok, I understand the codebase," you haven't started working yet. This happens every session, and it gets worse as your project grows.
|
|
37
|
+
|
|
38
|
+
`dreamcontext` fixes both problems. It gives your agent structured, pre-loaded context before the first message, and gives you readable files you can open, audit, and correct. **Context that both you and your agent can act on.**
|
|
39
|
+
|
|
40
|
+
<table>
|
|
41
|
+
<tr>
|
|
42
|
+
<td width="50%" align="center">
|
|
43
|
+
<img src="public/image/dreamcontext_disabled.png" alt="Without dreamcontext" width="100%" /><br/>
|
|
44
|
+
<em><strong>Without dreamcontext</strong><br/>Search, read, search again.<br/>Tokens burned on re-discovery.</em>
|
|
45
|
+
</td>
|
|
46
|
+
<td width="50%" align="center">
|
|
47
|
+
<img src="public/image/dreamcontext_enabled.png" alt="With dreamcontext" width="100%" /><br/>
|
|
48
|
+
<em><strong>With dreamcontext</strong><br/>Context pre-loaded via hook.<br/>Zero tool calls. Straight to work.</em>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</table>
|
|
52
|
+
|
|
53
|
+
> **Want the full story?** Philosophy, architecture, and every design tradeoff explained. **[Read the deep dive →](DEEP-DIVE.md)**
|
|
54
|
+
|
|
55
|
+
## How It Works
|
|
56
|
+
|
|
57
|
+
```mermaid
|
|
58
|
+
flowchart LR
|
|
59
|
+
subgraph capture ["Capture"]
|
|
60
|
+
STOP["Stop Hook\n(session ends)"]
|
|
61
|
+
POSTTOOL["PostToolUse Hook\n(auto-format + tsc)"]
|
|
62
|
+
BOOKMARK["Bookmarks\n(awake ripples)"]
|
|
63
|
+
SLEEP["RemSleep Agent\n(consolidates)"]
|
|
64
|
+
HUMAN["You\n(edit files or dashboard)"]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
subgraph store ["_dream_context/"]
|
|
68
|
+
CORE["core/\nsoul · user · memory\nstyle · tech · features\nchangelog · releases\nsystem flow"]
|
|
69
|
+
KNOWLEDGE["knowledge/\ntagged deep docs"]
|
|
70
|
+
STATE["state/\ntasks · sleep debt\nbookmarks · triggers"]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
subgraph inject ["Inject"]
|
|
74
|
+
SESSION["SessionStart Hook"]
|
|
75
|
+
PROMPT["UserPromptSubmit\n(persistent reminders)"]
|
|
76
|
+
PRETOOL["PreToolUse Hook\n(context-first exploration)"]
|
|
77
|
+
PRECOMPACT["PreCompact Hook\n(save state)"]
|
|
78
|
+
SNAPSHOT["Compiled Snapshot\n+ warm knowledge\n+ contextual reminders"]
|
|
79
|
+
AGENT["Agent starts with\nfull context loaded"]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
BOOKMARK --> STATE
|
|
83
|
+
STOP --> STATE
|
|
84
|
+
POSTTOOL -.->|"feedback"| AGENT
|
|
85
|
+
SLEEP --> CORE
|
|
86
|
+
SLEEP --> KNOWLEDGE
|
|
87
|
+
HUMAN --> CORE
|
|
88
|
+
HUMAN --> KNOWLEDGE
|
|
89
|
+
HUMAN --> STATE
|
|
90
|
+
|
|
91
|
+
CORE --> SESSION
|
|
92
|
+
KNOWLEDGE --> SESSION
|
|
93
|
+
STATE --> SESSION
|
|
94
|
+
STATE --> PROMPT
|
|
95
|
+
SESSION --> SNAPSHOT
|
|
96
|
+
PROMPT --> AGENT
|
|
97
|
+
PRETOOL --> AGENT
|
|
98
|
+
PRECOMPACT --> STATE
|
|
99
|
+
SNAPSHOT --> AGENT
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
- **Seven hooks capture context automatically.** Stop hook records what happened. SessionStart injects everything before the first message. SubagentStart briefs sub-agents. PreToolUse blocks blind exploration when curated context exists. UserPromptSubmit reminds about sleep debt on every user message. PostToolUse auto-formats and type-checks edited files. PreCompact saves state before context compaction.
|
|
103
|
+
- **Bookmarks tag important moments.** During active work, the agent bookmarks decisions, constraints, and discoveries with salience levels. Critical bookmarks trigger immediate consolidation advisories.
|
|
104
|
+
- **Files are structured by purpose.** Identity, preferences, decisions, knowledge, and active work each live in their own file with their own format.
|
|
105
|
+
- **Sleep cycles consolidate knowledge.** A RemSleep agent reads bookmarks first, distills transcripts for high-signal content, extracts recurring patterns, promotes learnings, creates contextual triggers, cleans stale entries, and resets debt.
|
|
106
|
+
- **Everything is local markdown and JSON.** Readable, editable, git-tracked, owned by you.
|
|
107
|
+
|
|
108
|
+
## Quick Start
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
curl -fsSL https://raw.githubusercontent.com/meanllbrl/dreamcontext/main/install.sh | sh
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
> (goes live once published to npm & merged to main)
|
|
115
|
+
|
|
116
|
+
**Manual install (npm):**
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm install -g dreamcontext
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
> Requires **Node.js >= 18**. Currently supports **Claude Code** and **Codex**.
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# 1. Initialize the context structure
|
|
126
|
+
dreamcontext init
|
|
127
|
+
|
|
128
|
+
# 2. Install platform integration (multi-select prompt; defaults to Claude)
|
|
129
|
+
dreamcontext install-skill
|
|
130
|
+
|
|
131
|
+
# Explicit platform selection (comma-separated)
|
|
132
|
+
dreamcontext install-skill --platforms claude,codex
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Two commands. Next session, the hook fires, context loads, and the agent is ready.
|
|
136
|
+
|
|
137
|
+
### Optional Skill Packs
|
|
138
|
+
|
|
139
|
+
Beyond the core context management skill, dreamcontext ships with curated skill packs you can install for your team's workflow:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Browse and install interactively (terminal checkbox UI)
|
|
143
|
+
dreamcontext install-skill --packs
|
|
144
|
+
|
|
145
|
+
# Install specific packs directly
|
|
146
|
+
dreamcontext install-skill --packs engineering design
|
|
147
|
+
|
|
148
|
+
# Install a single sub-skill
|
|
149
|
+
dreamcontext install-skill --skill firebase-firestore
|
|
150
|
+
|
|
151
|
+
# See what's available
|
|
152
|
+
dreamcontext install-skill --list
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
| Pack | What it covers | Sub-skills |
|
|
156
|
+
|------|---------------|------------|
|
|
157
|
+
| **engineering** | Coding standards, security, testing, architecture | backend-principles, web-app-frontend, firebase-cloud-functions, firebase-firestore |
|
|
158
|
+
| **design** | Design systems, typography, colors, accessibility | frontend-principles, design-web, design-mobile, onboarding-design |
|
|
159
|
+
| **growth** | Retention, distribution, monetization, analytics | performance-marketing, lean-analytics-experiments, lean-analytics-metrics |
|
|
160
|
+
| **brand-voice** | Brand enforcement, discovery, guideline generation | discover-brand, guideline-generation |
|
|
161
|
+
| **system-prompts** | Prompt engineering, cognitive architecture, agent design | *(standalone)* |
|
|
162
|
+
|
|
163
|
+
Packs install to platform-specific paths:
|
|
164
|
+
- Claude: `.claude/skills/{pack-name}/` (+ related agents in `.claude/agents/`)
|
|
165
|
+
- Codex: `.agents/skills/{pack-name}/` (+ related agents in `.codex/agents/`)
|
|
166
|
+
|
|
167
|
+
Cross-pack dependencies are warned at install time.
|
|
168
|
+
|
|
169
|
+
### Interactive mode
|
|
170
|
+
|
|
171
|
+
Run `dreamcontext` with no arguments to enter interactive mode with a visual menu for all commands.
|
|
172
|
+
|
|
173
|
+
### What gets created
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
your-project/
|
|
177
|
+
├── _dream_context/ # Structured context (git-tracked)
|
|
178
|
+
│ ├── core/
|
|
179
|
+
│ │ ├── 0.soul.md # Identity, principles, rules
|
|
180
|
+
│ │ ├── 1.user.md # Your preferences, project details
|
|
181
|
+
│ │ ├── 2.memory.md # Decisions, issues, learnings
|
|
182
|
+
│ │ ├── 3.style_guide.md # Style & branding
|
|
183
|
+
│ │ ├── 4.tech_stack.md # Tech decisions
|
|
184
|
+
│ │ ├── 5.data_structures.sql
|
|
185
|
+
│ │ ├── 6.system_flow.md # Session lifecycle, data flows
|
|
186
|
+
│ │ ├── CHANGELOG.json
|
|
187
|
+
│ │ ├── RELEASES.json
|
|
188
|
+
│ │ └── features/ # Feature PRDs
|
|
189
|
+
│ ├── knowledge/ # Tagged docs (index in snapshot)
|
|
190
|
+
│ │ └── *.md # pinned: true → auto-loaded in full
|
|
191
|
+
│ └── state/ # Active tasks, sleep state
|
|
192
|
+
│ └── .sleep.json
|
|
193
|
+
│
|
|
194
|
+
├── .claude/
|
|
195
|
+
│ ├── skills/dreamcontext/
|
|
196
|
+
│ │ └── SKILL.md # Teaches the agent the system
|
|
197
|
+
│ ├── agents/
|
|
198
|
+
│ │ ├── dreamcontext-initializer.md
|
|
199
|
+
│ │ ├── dreamcontext-explore.md
|
|
200
|
+
│ │ └── dreamcontext-rem-sleep.md
|
|
201
|
+
│ └── settings.json # 7 hooks (see below)
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Opening the context directory in Obsidian
|
|
205
|
+
|
|
206
|
+
`dreamcontext init` scaffolds an `_dream_context/.obsidian/` vault config with curated graph, appearance, and app settings so you can open the directory directly in Obsidian and navigate the context as a knowledge graph. Links between files (tasks → features → knowledge → memory) render natively, and the Obsidian graph view works out of the box.
|
|
207
|
+
|
|
208
|
+
### Root instruction files without full skill install
|
|
209
|
+
|
|
210
|
+
For projects that want managed root instruction files without installing the full skill + agent bundle:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
dreamcontext install-instructions --platforms claude,codex
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
This writes managed fenced blocks into `CLAUDE.md` and/or `AGENTS.md` at the project root, preserving existing non-managed content.
|
|
217
|
+
|
|
218
|
+
## Dashboard
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
dreamcontext dashboard # Open at localhost:4173
|
|
222
|
+
dreamcontext dashboard --port 8080 # Custom port
|
|
223
|
+
dreamcontext dashboard --no-open # Start without opening browser
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
A local web UI for managing agent context visually. Built with React 19, served by a zero-dependency Node HTTP server. Ships in the npm package.
|
|
227
|
+
|
|
228
|
+
<table>
|
|
229
|
+
<tr>
|
|
230
|
+
<td width="50%">
|
|
231
|
+
|
|
232
|
+
**Kanban board** with drag-and-drop, multi-select filters (status, priority, urgency, tags, version) with type-ahead search, sorting, and grouping by any field. **Eisenhower matrix** view for priority-urgency quadrant planning. Create tasks, update status, add changelog entries from a Notion-style detail panel.
|
|
233
|
+
|
|
234
|
+
</td>
|
|
235
|
+
<td width="50%">
|
|
236
|
+
|
|
237
|
+
**Core editor** with split-pane markdown editing and live preview. Knowledge manager with search and pin/unpin. Feature PRD viewer. SQL ER diagram preview. **Version manager** for planning and releasing versions.
|
|
238
|
+
|
|
239
|
+
</td>
|
|
240
|
+
</tr>
|
|
241
|
+
<tr>
|
|
242
|
+
<td width="50%">
|
|
243
|
+
|
|
244
|
+
**Sleep tracker** showing debt gauge, session history timeline, and a list of every manual change made through the dashboard.
|
|
245
|
+
|
|
246
|
+
</td>
|
|
247
|
+
<td width="50%">
|
|
248
|
+
|
|
249
|
+
**Change tracking** records every dashboard action to `.sleep.json` so the agent knows what you changed between sessions and consolidates it during sleep.
|
|
250
|
+
|
|
251
|
+
</td>
|
|
252
|
+
</tr>
|
|
253
|
+
<tr>
|
|
254
|
+
<td width="50%">
|
|
255
|
+
|
|
256
|
+
**Brain graph** visualizes your knowledge as an interactive network. Nodes are memory, knowledge, features, and decisions; edges are explicit and inferred links. Node drawer for full content, settings panel for layout and filters.
|
|
257
|
+
|
|
258
|
+
</td>
|
|
259
|
+
<td width="50%">
|
|
260
|
+
|
|
261
|
+
**Council Hall** shows every multi-persona debate as a searchable card grid. Open a debate into a full-page detail view with three tabs: **Overview** (problem + synthesized final report + citation chips), **Agents** (per-persona transcripts with search), **Matrix** (persona × round grid with inline cell expansion).
|
|
262
|
+
|
|
263
|
+
</td>
|
|
264
|
+
</tr>
|
|
265
|
+
</table>
|
|
266
|
+
|
|
267
|
+
Light and dark mode with system preference detection. Brand palette: purple-to-magenta gradient. Visby CF font with system font fallback.
|
|
268
|
+
|
|
269
|
+
## Council
|
|
270
|
+
|
|
271
|
+
**Multi-persona debates for hard decisions.** When a question is too load-bearing for a single model pass — architecture calls, hiring reviews, risk-heavy migrations, brand critiques — a council lets you convene N personas, run them through N rounds of structured deliberation, and synthesize a verdict that cites the contributing voices.
|
|
272
|
+
|
|
273
|
+
Each persona gets its own sub-agent with a scoped prompt, model choice, and aspects it advocates for. Between rounds, personas see a cross-context panel summarizing what everyone else said, so responses sharpen rather than repeat. A synthesizer produces the final report.
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
# Start a debate
|
|
277
|
+
dreamcontext council create "Should we migrate from Postgres to Firestore?" \
|
|
278
|
+
--rounds 2
|
|
279
|
+
|
|
280
|
+
# Add personas (each gets a sub-agent and persona file)
|
|
281
|
+
dreamcontext council agent create migration-risk-auditor --model sonnet \
|
|
282
|
+
--aspects operational-risk,rollback-readiness,team-readiness
|
|
283
|
+
dreamcontext council agent create dx-champion --model opus \
|
|
284
|
+
--aspects developer-experience,feature-velocity
|
|
285
|
+
dreamcontext council agent create user-advocate --model haiku \
|
|
286
|
+
--aspects end-user-impact,reliability-perception
|
|
287
|
+
|
|
288
|
+
# Drive rounds (the CLI orchestrates sub-agent dispatch; reports append as they return)
|
|
289
|
+
dreamcontext council round start 1
|
|
290
|
+
dreamcontext council round end 1 # Injects cross-context for R2+
|
|
291
|
+
dreamcontext council round start 2
|
|
292
|
+
dreamcontext council round end 2
|
|
293
|
+
|
|
294
|
+
# Synthesize the final report
|
|
295
|
+
dreamcontext council synthesize
|
|
296
|
+
dreamcontext council complete
|
|
297
|
+
|
|
298
|
+
# Optionally promote the verdict into knowledge
|
|
299
|
+
dreamcontext council promote --to knowledge/migration-decision
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Each debate stores its state in `_dream_context/council/<id>/` with `debate.md`, `round-log.md`, `final-report.md`, and per-persona folders containing `context-and-persona.md`, `report.md`, and `researches/`. The dashboard's **Council Hall** page renders this data as a searchable grid and full-page detail view.
|
|
303
|
+
|
|
304
|
+
Ships with two sub-agents (`council-persona`, `council-synthesizer`) and a dedicated skill pack at `skill-packs/council/`.
|
|
305
|
+
|
|
306
|
+
## Memory Recall
|
|
307
|
+
|
|
308
|
+
Recall and remember across your project's curated context. BM25 ranking over knowledge files, feature PRDs, task files, `2.memory.md` sections, and `CHANGELOG.json` entries — deterministic, instant, no setup.
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
# Ask a question, get top-5 hits with snippets
|
|
312
|
+
dreamcontext memory recall "how did we decide on the sleep fan-out"
|
|
313
|
+
|
|
314
|
+
# Filter by corpus type (knowledge | feature | task | memory | changelog)
|
|
315
|
+
dreamcontext memory recall "auth flow" --types knowledge,feature
|
|
316
|
+
dreamcontext memory recall "deprecated" --types changelog
|
|
317
|
+
|
|
318
|
+
# Machine-readable output for scripts
|
|
319
|
+
dreamcontext memory recall "rice prioritization" --json --top 3
|
|
320
|
+
|
|
321
|
+
# Quick-capture a decision or note — writes a CHANGELOG entry (type=note, scope=quick)
|
|
322
|
+
dreamcontext memory remember "Chose BM25 over mem0 after 3-reviewer review"
|
|
323
|
+
|
|
324
|
+
# Inspect the corpus
|
|
325
|
+
dreamcontext memory status
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
**Why not a vector DB or mem0.** dreamcontext content is already curated atomic facts — knowledge docs, feature PRDs, closed tasks, memory entries, CHANGELOG entries. The LLM-extraction step a mem0-style stack provides solves a problem this system already solved. BM25 over the live corpus gives ~80% of the value at 1% of the complexity: zero new npm dependencies, no Python, no Ollama, no API keys, no embeddings to invalidate, version-controllable. Cold start is under 100ms on a 40-doc corpus; the index is rebuilt in memory on every call.
|
|
329
|
+
|
|
330
|
+
Hook injection is **ON by default**: top hits are auto-surfaced to the agent on every non-trivial user prompt via the UserPromptSubmit hook. Opt out with `DREAMCONTEXT_MEMORY_HOOK=0` if you want raw prompts without context augmentation.
|
|
331
|
+
|
|
332
|
+
**Recent CHANGELOG in the snapshot is tiered**: top 3 entries detailed (summary + ~300 char body), next 10 titles-only under an "Older" subheading. Everything older still lives in `CHANGELOG.json` and is reachable through `memory recall --types changelog`.
|
|
333
|
+
|
|
334
|
+
## Commands
|
|
335
|
+
|
|
336
|
+
### Core
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
dreamcontext core changelog add # Add changelog entry
|
|
340
|
+
dreamcontext core releases add # Create release with auto-discovery
|
|
341
|
+
dreamcontext core releases add --yes # Non-interactive, include all unreleased items
|
|
342
|
+
dreamcontext core releases add --ver v0.2.0 --summary "..." --status planning # Planning version
|
|
343
|
+
dreamcontext core releases list # List recent releases
|
|
344
|
+
dreamcontext core releases show <version> # Show release details
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Release creation auto-discovers unreleased tasks, features, and changelog entries. Back-populates `released_version` on included features. Use `--status planning` to create a version placeholder without auto-discovery. Tasks can be assigned to planning versions, and the version manager in the dashboard provides a "Release" action to transition from planning to released.
|
|
348
|
+
|
|
349
|
+
### Tasks
|
|
350
|
+
|
|
351
|
+
```bash
|
|
352
|
+
dreamcontext tasks list # List active tasks (excludes completed)
|
|
353
|
+
dreamcontext tasks list --all # List all tasks
|
|
354
|
+
dreamcontext tasks list --status in_progress # Filter by status
|
|
355
|
+
dreamcontext tasks create <name> # Create a task
|
|
356
|
+
dreamcontext tasks create <name> --priority high --status in_progress --tags "api,auth" --urgency high --version v0.2.0
|
|
357
|
+
dreamcontext tasks log <name> <content> # Log progress (newest first)
|
|
358
|
+
dreamcontext tasks insert <name> <section> <content> # Insert into a named section
|
|
359
|
+
dreamcontext tasks complete <name> # Mark completed
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
All flags (`--description`, `--priority`, `--status`, `--tags`, `--why`, `--urgency`, `--version`) are optional. Defaults to medium priority/urgency and todo status, so the command works non-interactively for agent use.
|
|
363
|
+
|
|
364
|
+
### Features
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
dreamcontext features create <name> # Create a feature PRD
|
|
368
|
+
dreamcontext features insert <name> <section> <content>
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### Knowledge
|
|
372
|
+
|
|
373
|
+
```bash
|
|
374
|
+
dreamcontext knowledge create <name> # Create a knowledge doc
|
|
375
|
+
dreamcontext knowledge index # List all with descriptions + tags
|
|
376
|
+
dreamcontext knowledge index --tag api # Filter by tag
|
|
377
|
+
dreamcontext knowledge tags # List standard tags
|
|
378
|
+
dreamcontext knowledge touch <slug> # Record access (staleness tracking)
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
Set `pinned: true` in frontmatter to auto-load a knowledge file in every snapshot. Knowledge files not accessed in 30+ days are flagged as stale. Recently accessed files appear in a "warm knowledge" tier with first-paragraph previews.
|
|
382
|
+
|
|
383
|
+
### Memory
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
dreamcontext memory recall <query...> # BM25 search over knowledge + features + tasks + memory + changelog
|
|
387
|
+
dreamcontext memory recall <query...> --top 10 # Number of hits (1-50, default 5)
|
|
388
|
+
dreamcontext memory recall <query...> --types knowledge,task,changelog
|
|
389
|
+
dreamcontext memory recall <query...> --json # Machine-readable
|
|
390
|
+
dreamcontext memory recall <query...> --plain # No ANSI colors
|
|
391
|
+
dreamcontext memory remember "<text>" # Writes a CHANGELOG entry (type=note, scope=quick by default)
|
|
392
|
+
dreamcontext memory remember "<text>" --type fix --scope api --summary "..." --references commit:abc,task:auth-refactor
|
|
393
|
+
dreamcontext memory update <slug> --description "..." --tags a,b --append "..."
|
|
394
|
+
dreamcontext memory update <slug> --pin # or --unpin
|
|
395
|
+
dreamcontext memory delete <slug> --force
|
|
396
|
+
dreamcontext memory list # List indexed docs
|
|
397
|
+
dreamcontext memory list --types feature,task
|
|
398
|
+
dreamcontext memory status # Corpus stats by type
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
`memory remember` writes a CHANGELOG entry instead of appending to a LIFO section in `2.memory.md` (the LIFO section was removed in 2026-05-23 — `2.memory.md` now holds Decisions + Known Issues only). The new CHANGELOG schema supports optional `summary` (≤200 char soft cap), `references[]` (prefixed: `commit:|file:|knowledge:|feature:|task:|url:`), and `supersedes` (entry-id pointer).
|
|
402
|
+
|
|
403
|
+
Recall has no setup step — no init, no daemon, no API keys. The corpus is rebuilt in memory on every call (under 100ms on a 40-doc corpus). UserPromptSubmit hook injection of top hits is **ON by default**; set `DREAMCONTEXT_MEMORY_HOOK=0` to opt out.
|
|
404
|
+
|
|
405
|
+
### Bookmarks
|
|
406
|
+
|
|
407
|
+
Tag important moments during active work. Inspired by the brain's awake sharp-wave ripples that bookmark memories for consolidation during sleep.
|
|
408
|
+
|
|
409
|
+
```bash
|
|
410
|
+
dreamcontext bookmark add "<message>" -s 2 # Bookmark with salience (1-3)
|
|
411
|
+
dreamcontext bookmark list # Show all bookmarks
|
|
412
|
+
dreamcontext bookmark clear # Clear all bookmarks
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
Salience levels: 1 = notable, 2 = significant, 3 = critical. Critical bookmarks trigger immediate consolidation advisories regardless of debt level.
|
|
416
|
+
|
|
417
|
+
### Triggers
|
|
418
|
+
|
|
419
|
+
Contextual reminders that fire when matching tasks are active. The brain's prospective memory: "remind me about X when working on Y."
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
dreamcontext trigger add "<when>" "<remind>" # Create a trigger
|
|
423
|
+
dreamcontext trigger list # Show active triggers
|
|
424
|
+
dreamcontext trigger remove <id> # Remove a trigger
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
Triggers match against active task names, tags, and bookmark text. Auto-expire after a configurable number of fires (default 3).
|
|
428
|
+
|
|
429
|
+
### Sleep
|
|
430
|
+
|
|
431
|
+
Sleep debt is tracked automatically via hooks. The UserPromptSubmit hook reminds about debt on every user message, so the agent cannot dismiss the reminder. Consolidation rhythm advisory fires after 3+ sessions since last sleep, even at low debt.
|
|
432
|
+
|
|
433
|
+
```bash
|
|
434
|
+
dreamcontext sleep status # Debt level, sessions, last sleep
|
|
435
|
+
dreamcontext sleep history # Consolidation log
|
|
436
|
+
dreamcontext sleep add <score> <desc> # Add debt manually
|
|
437
|
+
dreamcontext sleep start # Mark consolidation epoch
|
|
438
|
+
dreamcontext sleep done <summary> # Complete consolidation, reset
|
|
439
|
+
dreamcontext sleep debt # Raw number (for scripts)
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Transcript
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
dreamcontext transcript distill <session_id> # Structural filter of session transcript
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Extracts high-signal content from raw JSONL transcripts: user messages, agent decisions, code changes, errors, bookmarks. Discards noise (Read results, Glob output, tool metadata). Pure Node.js, no AI. Used by the RemSleep agent for selective deep analysis of important sessions.
|
|
449
|
+
|
|
450
|
+
### Council
|
|
451
|
+
|
|
452
|
+
```bash
|
|
453
|
+
dreamcontext council create <topic> [--rounds N] # Open a new debate
|
|
454
|
+
dreamcontext council list # List all debates
|
|
455
|
+
dreamcontext council show <id> # Show a debate's current state
|
|
456
|
+
dreamcontext council agent create <slug> --model <m> --aspects a,b,c
|
|
457
|
+
dreamcontext council round start <n> # Dispatch round n to all personas
|
|
458
|
+
dreamcontext council round end <n> # Close round n, inject cross-context for n+1
|
|
459
|
+
dreamcontext council round round-context <n> # Preview what personas will see at round n
|
|
460
|
+
dreamcontext council report append <slug> <n> <path> # Append a persona report from file
|
|
461
|
+
dreamcontext council report summaries <n> # Summaries of all reports in round n
|
|
462
|
+
dreamcontext council research add <slug> <topic> <path> # Persist a persona's research note
|
|
463
|
+
dreamcontext council research list <slug>
|
|
464
|
+
dreamcontext council synthesize # Produce the final synthesized report
|
|
465
|
+
dreamcontext council complete # Mark the debate complete
|
|
466
|
+
dreamcontext council promote --to <knowledge-slug> # Promote verdict to knowledge
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
See the [Council](#council) section above for the full workflow.
|
|
470
|
+
|
|
471
|
+
### Dashboard
|
|
472
|
+
|
|
473
|
+
```bash
|
|
474
|
+
dreamcontext dashboard # Start the web dashboard
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
### System
|
|
478
|
+
|
|
479
|
+
```bash
|
|
480
|
+
dreamcontext hook session-start # SessionStart hook output
|
|
481
|
+
dreamcontext hook stop # Stop hook: capture + score
|
|
482
|
+
dreamcontext hook subagent-start # SubagentStart hook output
|
|
483
|
+
dreamcontext hook pre-tool-use # PreToolUse hook: block default Explorer
|
|
484
|
+
dreamcontext hook user-prompt-submit # UserPromptSubmit hook: sleep debt reminder
|
|
485
|
+
dreamcontext hook post-tool-use # PostToolUse hook: auto-format + tsc check
|
|
486
|
+
dreamcontext hook pre-compact # PreCompact hook: save state before compaction
|
|
487
|
+
dreamcontext snapshot # Snapshot only (no hook processing)
|
|
488
|
+
dreamcontext snapshot --tokens # Estimated token count
|
|
489
|
+
dreamcontext doctor # Validate structure
|
|
490
|
+
dreamcontext install-skill # Install core integration for selected platforms
|
|
491
|
+
dreamcontext install-skill --platforms claude,codex # Explicit platform selection
|
|
492
|
+
dreamcontext install-skill --packs # Interactive skill pack browser
|
|
493
|
+
dreamcontext install-skill --packs engineering design # Install specific packs
|
|
494
|
+
dreamcontext install-skill --skill <name> # Install a single sub-skill
|
|
495
|
+
dreamcontext install-skill --list # Show available skill packs
|
|
496
|
+
dreamcontext install-instructions --platforms claude,codex # Write managed root instruction blocks
|
|
497
|
+
dreamcontext install-claude-md # Legacy alias: CLAUDE.md only
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
## Design Principles
|
|
501
|
+
|
|
502
|
+
- **Structure over volume** -- organized context beats more context
|
|
503
|
+
- **Pre-loaded, not searched** -- memory injected before the first message
|
|
504
|
+
- **Consolidation built in** -- sleep cycles keep context sharp, not bloated
|
|
505
|
+
- **Agent-native** -- designed for how LLMs consume context
|
|
506
|
+
- **Owned by you** -- plain markdown and JSON in your repo
|
|
507
|
+
|
|
508
|
+
## Works With
|
|
509
|
+
|
|
510
|
+
- **Claude Code**: full support via skill, 3 core sub-agents (initializer, explore, rem-sleep), 2 optional council sub-agents (persona, synthesizer), and 7 hooks
|
|
511
|
+
- **Codex**: project-level skills (`.agents/skills`), managed `AGENTS.md`, native `.codex/agents/*.toml`, and managed `.codex/config.toml` hooks (best-effort parity where event semantics differ)
|
|
512
|
+
- **Web Dashboard**: local UI with Kanban, Core editor, Knowledge, Features, Brain graph, Sleep tracker, and Council Hall (ships in the package)
|
|
513
|
+
- **Obsidian**: `_dream_context/` can be opened as an Obsidian vault; the directory is scaffolded with curated vault settings at `dreamcontext init` time
|
|
514
|
+
|
|
515
|
+
More agents coming soon.
|
|
516
|
+
|
|
517
|
+
## License
|
|
518
|
+
|
|
519
|
+
MIT
|
|
520
|
+
|
|
521
|
+
## Acknowledgements
|
|
522
|
+
|
|
523
|
+
The memory system draws partial inspiration from [OpenClaw](https://github.com/openclaw/openclaw)'s approach to agent memory. The neuroscience-inspired two-stage memory model (bookmarks during waking, selective consolidation during sleep) is based on findings from Joo & Frank 2025 (Science) on hippocampal awake sharp-wave ripples. The brain-region architecture, sleep consolidation cycle, and CLI-first design are my own, built from months of working with AI coding agents on real projects.
|