dreamcontext 0.8.8 → 0.9.1

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.
Files changed (146) hide show
  1. package/README.md +31 -7
  2. package/agents/curator-auditor.md +114 -0
  3. package/agents/curator-verifier.md +86 -0
  4. package/agents/curator-worker.md +81 -0
  5. package/agents/initializer-ingestor.md +84 -0
  6. package/agents/initializer-scout.md +87 -0
  7. package/agents/initializer-verifier.md +75 -0
  8. package/agents/sleep-product.md +1 -1
  9. package/dist/agents/curator-auditor.md +114 -0
  10. package/dist/agents/curator-verifier.md +86 -0
  11. package/dist/agents/curator-worker.md +81 -0
  12. package/dist/agents/initializer-ingestor.md +84 -0
  13. package/dist/agents/initializer-scout.md +87 -0
  14. package/dist/agents/initializer-verifier.md +75 -0
  15. package/dist/agents/sleep-product.md +1 -1
  16. package/dist/dashboard/assets/{BrainCanvas3D-CyuMh6vC.js → BrainCanvas3D-BvuUW-Ij.js} +1 -1
  17. package/dist/dashboard/assets/{_baseUniq-TeXEp9Tn.js → _baseUniq-BNAWiBFl.js} +1 -1
  18. package/dist/dashboard/assets/{ar-SA-G6X2FPQ2-Da5wNUeW.js → ar-SA-G6X2FPQ2-rNEb6-jN.js} +1 -1
  19. package/dist/dashboard/assets/{arc-NQuoeYrp.js → arc-DDLjNpXk.js} +1 -1
  20. package/dist/dashboard/assets/{architectureDiagram-Q4EWVU46-B108azq_.js → architectureDiagram-Q4EWVU46-P208qO4N.js} +1 -1
  21. package/dist/dashboard/assets/{az-AZ-76LH7QW2-cJYSsraO.js → az-AZ-76LH7QW2-Dwql62JX.js} +1 -1
  22. package/dist/dashboard/assets/{bg-BG-XCXSNQG7-Dt4_IvAk.js → bg-BG-XCXSNQG7-BgteTNp8.js} +1 -1
  23. package/dist/dashboard/assets/{blockDiagram-DXYQGD6D-HAo6Tqxd.js → blockDiagram-DXYQGD6D-BDSceoPt.js} +1 -1
  24. package/dist/dashboard/assets/{bn-BD-2XOGV67Q-DE20hZpG.js → bn-BD-2XOGV67Q-BYJ6_efF.js} +1 -1
  25. package/dist/dashboard/assets/{c4Diagram-AHTNJAMY-SHRA5Nk_.js → c4Diagram-AHTNJAMY-CRbiwdrM.js} +1 -1
  26. package/dist/dashboard/assets/{ca-ES-6MX7JW3Y-9ZUzuDs-.js → ca-ES-6MX7JW3Y-CtFrXfas.js} +1 -1
  27. package/dist/dashboard/assets/channel-CJWWthUO.js +1 -0
  28. package/dist/dashboard/assets/{chunk-4BX2VUAB-BlLy4y9z.js → chunk-4BX2VUAB-kqN0Cg_r.js} +1 -1
  29. package/dist/dashboard/assets/{chunk-4TB4RGXK-cDLog-pk.js → chunk-4TB4RGXK-CpwYPUdR.js} +1 -1
  30. package/dist/dashboard/assets/{chunk-55IACEB6-BfLlL9Jv.js → chunk-55IACEB6-CQ_4M3g4.js} +1 -1
  31. package/dist/dashboard/assets/{chunk-EDXVE4YY-BjKTlHye.js → chunk-EDXVE4YY--HdVil0f.js} +1 -1
  32. package/dist/dashboard/assets/{chunk-FMBD7UC4-CoMoOB69.js → chunk-FMBD7UC4-CrbfOH-q.js} +1 -1
  33. package/dist/dashboard/assets/{chunk-OYMX7WX6-DSYZ4BzO.js → chunk-OYMX7WX6-BrcCZnqx.js} +1 -1
  34. package/dist/dashboard/assets/{chunk-QZHKN3VN-hsCUyt37.js → chunk-QZHKN3VN-Cby58gGN.js} +1 -1
  35. package/dist/dashboard/assets/{chunk-YZCP3GAM-CMBEUThQ.js → chunk-YZCP3GAM-tvOjDART.js} +1 -1
  36. package/dist/dashboard/assets/classDiagram-6PBFFD2Q-D8yKg5c-.js +1 -0
  37. package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-D8yKg5c-.js +1 -0
  38. package/dist/dashboard/assets/clone-DkTWs9rv.js +1 -0
  39. package/dist/dashboard/assets/{cose-bilkent-S5V4N54A-Ds3A4r-y.js → cose-bilkent-S5V4N54A-CuwbWQzD.js} +1 -1
  40. package/dist/dashboard/assets/{cs-CZ-2BRQDIVT-WgNPbRaT.js → cs-CZ-2BRQDIVT-DfVAwqqU.js} +1 -1
  41. package/dist/dashboard/assets/{da-DK-5WZEPLOC-BQPVoqBy.js → da-DK-5WZEPLOC-D1QJqNxG.js} +1 -1
  42. package/dist/dashboard/assets/{dagre-KV5264BT-D3AamC0s.js → dagre-KV5264BT-Bbf-wMho.js} +1 -1
  43. package/dist/dashboard/assets/{de-DE-XR44H4JA-FOMlLeg-.js → de-DE-XR44H4JA-CbCdH8Mp.js} +1 -1
  44. package/dist/dashboard/assets/{diagram-5BDNPKRD-DeAuY_LW.js → diagram-5BDNPKRD-CvMJJUvv.js} +1 -1
  45. package/dist/dashboard/assets/{diagram-G4DWMVQ6-CsPuBl6m.js → diagram-G4DWMVQ6-BBz7ebE8.js} +1 -1
  46. package/dist/dashboard/assets/{diagram-MMDJMWI5-Celrp7iZ.js → diagram-MMDJMWI5-U7IcL5ZQ.js} +1 -1
  47. package/dist/dashboard/assets/{diagram-TYMM5635-D-Y8kdqj.js → diagram-TYMM5635-BfTLwlSm.js} +1 -1
  48. package/dist/dashboard/assets/{el-GR-BZB4AONW-DdhrZvUu.js → el-GR-BZB4AONW-DvGrscY6.js} +1 -1
  49. package/dist/dashboard/assets/{erDiagram-SMLLAGMA-CyPB81Ul.js → erDiagram-SMLLAGMA-C1ncTn9B.js} +1 -1
  50. package/dist/dashboard/assets/{es-ES-U4NZUMDT-B-Hbpc6c.js → es-ES-U4NZUMDT-BlawPkmw.js} +1 -1
  51. package/dist/dashboard/assets/{eu-ES-A7QVB2H4-CIeXN6PD.js → eu-ES-A7QVB2H4-p5lXDFKY.js} +1 -1
  52. package/dist/dashboard/assets/{fa-IR-HGAKTJCU-BojqXzkR.js → fa-IR-HGAKTJCU-DbY6Wzu9.js} +1 -1
  53. package/dist/dashboard/assets/{fi-FI-Z5N7JZ37-Dix2X0V9.js → fi-FI-Z5N7JZ37-HyRJneut.js} +1 -1
  54. package/dist/dashboard/assets/{flowDiagram-DWJPFMVM-D7IX0DxI.js → flowDiagram-DWJPFMVM-tySa4G4z.js} +1 -1
  55. package/dist/dashboard/assets/{fr-FR-RHASNOE6-B-jqOA6L.js → fr-FR-RHASNOE6-C0ElnhzM.js} +1 -1
  56. package/dist/dashboard/assets/{ganttDiagram-T4ZO3ILL-CbK6p7_G.js → ganttDiagram-T4ZO3ILL-BQsJPxAU.js} +1 -1
  57. package/dist/dashboard/assets/{gitGraphDiagram-UUTBAWPF-DWDwNpLK.js → gitGraphDiagram-UUTBAWPF-B2jHjMzI.js} +1 -1
  58. package/dist/dashboard/assets/{gl-ES-HMX3MZ6V-B6zmZpsw.js → gl-ES-HMX3MZ6V-D5qSPU7d.js} +1 -1
  59. package/dist/dashboard/assets/{graph-CrDZc6w0.js → graph-deVQIt7H.js} +1 -1
  60. package/dist/dashboard/assets/{he-IL-6SHJWFNN-CaSPpOxb.js → he-IL-6SHJWFNN-CNsRxzJL.js} +1 -1
  61. package/dist/dashboard/assets/{hi-IN-IWLTKZ5I-n86mXoF4.js → hi-IN-IWLTKZ5I-CCLXIBWK.js} +1 -1
  62. package/dist/dashboard/assets/{hu-HU-A5ZG7DT2-MqIG43UE.js → hu-HU-A5ZG7DT2-Dq17BfYB.js} +1 -1
  63. package/dist/dashboard/assets/{id-ID-SAP4L64H-DbrGiOFJ.js → id-ID-SAP4L64H-CRL19WJa.js} +1 -1
  64. package/dist/dashboard/assets/{index-zJ2-S49k.js → index-BO_pjfQA.js} +1 -1
  65. package/dist/dashboard/assets/index-CQkBs_Vm.js +484 -0
  66. package/dist/dashboard/assets/index-aCkhI_aO.css +1 -0
  67. package/dist/dashboard/assets/{infoDiagram-42DDH7IO-CpAQyAyt.js → infoDiagram-42DDH7IO-DKXhFQx1.js} +1 -1
  68. package/dist/dashboard/assets/{ishikawaDiagram-UXIWVN3A-DXIwINgb.js → ishikawaDiagram-UXIWVN3A-ixuXBV9q.js} +1 -1
  69. package/dist/dashboard/assets/{it-IT-JPQ66NNP-IX1Td9Wl.js → it-IT-JPQ66NNP-B-3gnXYZ.js} +1 -1
  70. package/dist/dashboard/assets/{ja-JP-DBVTYXUO-Bd8nX8VR.js → ja-JP-DBVTYXUO-GCqLTdC-.js} +1 -1
  71. package/dist/dashboard/assets/{journeyDiagram-VCZTEJTY-DZlgujgy.js → journeyDiagram-VCZTEJTY-Cda6rfE1.js} +1 -1
  72. package/dist/dashboard/assets/{kaa-6HZHGXH3-D5xD9fsf.js → kaa-6HZHGXH3-DUr4YiJc.js} +1 -1
  73. package/dist/dashboard/assets/{kab-KAB-ZGHBKWFO-xBaAbT-9.js → kab-KAB-ZGHBKWFO-DGcoDq7_.js} +1 -1
  74. package/dist/dashboard/assets/{kanban-definition-6JOO6SKY-0klC865z.js → kanban-definition-6JOO6SKY-8II0TptL.js} +1 -1
  75. package/dist/dashboard/assets/{kk-KZ-P5N5QNE5-CboXRRre.js → kk-KZ-P5N5QNE5-OnQ3fZQr.js} +1 -1
  76. package/dist/dashboard/assets/{km-KH-HSX4SM5Z-Clsilmtp.js → km-KH-HSX4SM5Z-BgLH2RAX.js} +1 -1
  77. package/dist/dashboard/assets/{ko-KR-MTYHY66A-CIjzZcRO.js → ko-KR-MTYHY66A-BFRlVzp3.js} +1 -1
  78. package/dist/dashboard/assets/{ku-TR-6OUDTVRD-Bs1RU4e9.js → ku-TR-6OUDTVRD-KXxCpHg7.js} +1 -1
  79. package/dist/dashboard/assets/{layout-fipBctpD.js → layout-Bk1_SQxF.js} +1 -1
  80. package/dist/dashboard/assets/{linear-DVXXJr0u.js → linear-NBVeSfQr.js} +1 -1
  81. package/dist/dashboard/assets/{lt-LT-XHIRWOB4-CQ-xLU_o.js → lt-LT-XHIRWOB4-zYih94tH.js} +1 -1
  82. package/dist/dashboard/assets/{lv-LV-5QDEKY6T-C0inT4d9.js → lv-LV-5QDEKY6T-BfR2lGJU.js} +1 -1
  83. package/dist/dashboard/assets/{min-B_cNy5kS.js → min-Czsp1-lf.js} +1 -1
  84. package/dist/dashboard/assets/{mindmap-definition-QFDTVHPH-Cioz1NOY.js → mindmap-definition-QFDTVHPH-B7iHNGK3.js} +1 -1
  85. package/dist/dashboard/assets/{mr-IN-CRQNXWMA-DhEHYUYK.js → mr-IN-CRQNXWMA-CbecgcF-.js} +1 -1
  86. package/dist/dashboard/assets/{my-MM-5M5IBNSE-Dj4Iwdrf.js → my-MM-5M5IBNSE-CsdHXw4v.js} +1 -1
  87. package/dist/dashboard/assets/{nb-NO-T6EIAALU-CvAPy7iN.js → nb-NO-T6EIAALU-r8FpCRvQ.js} +1 -1
  88. package/dist/dashboard/assets/{nl-NL-IS3SIHDZ-DgQc3gPO.js → nl-NL-IS3SIHDZ-Dp3Z4P6_.js} +1 -1
  89. package/dist/dashboard/assets/{nn-NO-6E72VCQL-DORPUv8K.js → nn-NO-6E72VCQL-CQcuUlUa.js} +1 -1
  90. package/dist/dashboard/assets/{oc-FR-POXYY2M6-Cym9O8Me.js → oc-FR-POXYY2M6-Dz9rwf28.js} +1 -1
  91. package/dist/dashboard/assets/{pa-IN-N4M65BXN-BiE5SCOy.js → pa-IN-N4M65BXN-AuAonL3w.js} +1 -1
  92. package/dist/dashboard/assets/{percentages-BXMCSKIN-B-_e8Y6s.js → percentages-BXMCSKIN-D9EnbREi.js} +7 -7
  93. package/dist/dashboard/assets/{pica-C5ISA_oR.js → pica---loOZLP.js} +1 -1
  94. package/dist/dashboard/assets/{pieDiagram-DEJITSTG-CD7iu1Mo.js → pieDiagram-DEJITSTG-CiDTXifX.js} +1 -1
  95. package/dist/dashboard/assets/{pl-PL-T2D74RX3-C-29ZIfD.js → pl-PL-T2D74RX3-4k9qJgDf.js} +1 -1
  96. package/dist/dashboard/assets/{pt-BR-5N22H2LF-CIQq615m.js → pt-BR-5N22H2LF-DvKuT6kK.js} +1 -1
  97. package/dist/dashboard/assets/{pt-PT-UZXXM6DQ-CN7xbXrH.js → pt-PT-UZXXM6DQ-ijbr_1VI.js} +1 -1
  98. package/dist/dashboard/assets/{quadrantDiagram-34T5L4WZ-DEPkZ_lv.js → quadrantDiagram-34T5L4WZ-Bu9Comci.js} +1 -1
  99. package/dist/dashboard/assets/{requirementDiagram-MS252O5E-BpAjr03x.js → requirementDiagram-MS252O5E-D62TW6xA.js} +1 -1
  100. package/dist/dashboard/assets/{ro-RO-JPDTUUEW-DBtenXzw.js → ro-RO-JPDTUUEW-C0llzWmG.js} +1 -1
  101. package/dist/dashboard/assets/{ru-RU-B4JR7IUQ-CA_iHOeh.js → ru-RU-B4JR7IUQ-BeSwVB2r.js} +1 -1
  102. package/dist/dashboard/assets/{sankeyDiagram-XADWPNL6-B1zLPVle.js → sankeyDiagram-XADWPNL6-TlSEi12K.js} +1 -1
  103. package/dist/dashboard/assets/{sequenceDiagram-FGHM5R23-pEX8i9B5.js → sequenceDiagram-FGHM5R23-ScKG2Xsm.js} +1 -1
  104. package/dist/dashboard/assets/{si-LK-N5RQ5JYF-BTsFn4Rn.js → si-LK-N5RQ5JYF-DWeue3dw.js} +1 -1
  105. package/dist/dashboard/assets/{sk-SK-C5VTKIMK-DGoN-I5B.js → sk-SK-C5VTKIMK-C2sh3w4f.js} +1 -1
  106. package/dist/dashboard/assets/{sl-SI-NN7IZMDC-CwiRr92B.js → sl-SI-NN7IZMDC-CeXk9ucf.js} +1 -1
  107. package/dist/dashboard/assets/{stateDiagram-FHFEXIEX-W_EdYNVF.js → stateDiagram-FHFEXIEX-BB1JoyXM.js} +1 -1
  108. package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-BqR3Ofhf.js +1 -0
  109. package/dist/dashboard/assets/{subset-shared.chunk-CAlKIepB.js → subset-shared.chunk-CWvpWWsn.js} +1 -1
  110. package/dist/dashboard/assets/{subset-worker.chunk-YIXEPnjQ.js → subset-worker.chunk-D7Ec71V-.js} +1 -1
  111. package/dist/dashboard/assets/{sv-SE-XGPEYMSR-7SNur8Fe.js → sv-SE-XGPEYMSR-8YPrynz7.js} +1 -1
  112. package/dist/dashboard/assets/{ta-IN-2NMHFXQM-DqQBCB2J.js → ta-IN-2NMHFXQM-CmMKeEZv.js} +1 -1
  113. package/dist/dashboard/assets/{th-TH-HPSO5L25-ClwEsAak.js → th-TH-HPSO5L25-BIxym374.js} +1 -1
  114. package/dist/dashboard/assets/{timeline-definition-GMOUNBTQ-uPtwwnY7.js → timeline-definition-GMOUNBTQ-Cx1z6jhx.js} +1 -1
  115. package/dist/dashboard/assets/{tr-TR-DEFEU3FU-DmCg5qbG.js → tr-TR-DEFEU3FU-BZUk--nT.js} +1 -1
  116. package/dist/dashboard/assets/{uk-UA-QMV73CPH-DixKG8eB.js → uk-UA-QMV73CPH-DKP6R9nZ.js} +1 -1
  117. package/dist/dashboard/assets/{vennDiagram-DHZGUBPP-CAggDlIj.js → vennDiagram-DHZGUBPP-CHrTxlSz.js} +1 -1
  118. package/dist/dashboard/assets/{vi-VN-M7AON7JQ-C15Za2rn.js → vi-VN-M7AON7JQ-D1tkx3Op.js} +1 -1
  119. package/dist/dashboard/assets/{wardley-RL74JXVD-D5C_gWsf.js → wardley-RL74JXVD-DuzpwUu5.js} +1 -1
  120. package/dist/dashboard/assets/{wardleyDiagram-NUSXRM2D-tqYHOmfO.js → wardleyDiagram-NUSXRM2D-x03tOVd0.js} +1 -1
  121. package/dist/dashboard/assets/{xychartDiagram-5P7HB3ND-CsxZKm-V.js → xychartDiagram-5P7HB3ND-CufD9zuW.js} +1 -1
  122. package/dist/dashboard/assets/{zh-CN-LNUGB5OW-BhlF39b5.js → zh-CN-LNUGB5OW-CpicUYEV.js} +1 -1
  123. package/dist/dashboard/assets/{zh-HK-E62DVLB3-P2FWmB4w.js → zh-HK-E62DVLB3-DyNkpg-N.js} +1 -1
  124. package/dist/dashboard/assets/{zh-TW-RAJ6MFWO-B0yB1dNp.js → zh-TW-RAJ6MFWO-Cg30MEjI.js} +1 -1
  125. package/dist/dashboard/index.html +2 -2
  126. package/dist/index.js +3900 -1549
  127. package/dist/templates/AGENTS.md +1 -1
  128. package/dist/templates/CLAUDE.md +1 -1
  129. package/package.json +3 -1
  130. package/skill/SKILL.md +12 -8
  131. package/skill/references/cli-reference.md +5 -2
  132. package/skill/references/integrations.md +46 -10
  133. package/skill/references/knowledge-and-recall.md +7 -1
  134. package/skill/references/sleep.md +1 -1
  135. package/skill/references/tasks-and-features.md +1 -1
  136. package/skill-curator/SKILL.md +234 -0
  137. package/skill-initializer/SKILL.md +243 -0
  138. package/agents/dreamcontext-initializer.md +0 -317
  139. package/dist/agents/dreamcontext-initializer.md +0 -317
  140. package/dist/dashboard/assets/channel-CIQg6WkP.js +0 -1
  141. package/dist/dashboard/assets/classDiagram-6PBFFD2Q-kJkUaIqm.js +0 -1
  142. package/dist/dashboard/assets/classDiagram-v2-HSJHXN6E-kJkUaIqm.js +0 -1
  143. package/dist/dashboard/assets/clone-COSoK5_M.js +0 -1
  144. package/dist/dashboard/assets/index-D1nedbBU.css +0 -1
  145. package/dist/dashboard/assets/index-DjaqCcd7.js +0 -482
  146. package/dist/dashboard/assets/stateDiagram-v2-QKLJ7IA2-BsdphuJ6.js +0 -1
@@ -0,0 +1,243 @@
1
+ ---
2
+ name: initializer
3
+ description: >
4
+ Load when a project's dreamcontext brain is missing or sparse and needs to be
5
+ bootstrapped from real material — or the user invokes `/initializer`. Triggers:
6
+ "initialize my brain", "set up dreamcontext from my docs", "ingest my notes /
7
+ wiki / Obsidian / Notion export", "there's no _dream_context yet", "bootstrap
8
+ the context from this folder", or any time you detect no/empty `_dream_context/`
9
+ and the user has existing project material to ingest. This is the interactive,
10
+ sub-agent-driven bootstrap — it migrates whatever the user has into the proper
11
+ knowledge / feature / task hierarchy. It is the single bootstrap surface for
12
+ dreamcontext; it also handles codebase-only repos (a light scout + ingest pass)
13
+ and scales down to a trivial scaffold when there's nothing to ingest.
14
+ user-invocable: true
15
+ alwaysApply: false
16
+ tags: [initializer, bootstrap, onboarding, ingestion, orchestration, sub-agents, dreamcontext]
17
+ ---
18
+
19
+ # Initializer — interactive, sub-agent-driven brain bootstrap
20
+
21
+ You are the **orchestrator**. Like `goal-skill`, `multi-review`, and `council`, **you
22
+ do not hand-author the bulk of the corpus yourself** — you dispatch sub-agents, read
23
+ their results, gate the transitions, and drive convergence loops until the brain is
24
+ genuinely initialized. Your value is judgment at the gates and the conversation with the
25
+ user about *their* desired structure — not typing every knowledge file by hand.
26
+
27
+ A brain is **initialized** when the verifier passes against the corpus: real content
28
+ across soul/user/memory + tech-stack + data-structures, the user's material ingested
29
+ into the hierarchy *they confirmed*, candidate features and people seeded, knowledge
30
+ distilled (not dumped), bookmarks laid for the first sleep — and **zero template
31
+ placeholders**. Not when `dreamcontext init` finished. That's just the empty shell.
32
+
33
+ ## When to invoke
34
+
35
+ - `/initializer` (primary entry).
36
+ - You detect **no `_dream_context/`**, or a **sparse** one (only template stubs, empty
37
+ `knowledge/`, zero features) — and there is material worth ingesting.
38
+ - "Initialize my brain", "set up dreamcontext from my docs/wiki/export", "ingest this folder".
39
+
40
+ **The interactive trigger you must not miss:** when you notice the brain is missing or
41
+ sparse, **do not silently scaffold and move on, and do not wait to be asked.** Offer:
42
+
43
+ > *"I don't have a brain for this project yet — there's no/just-an-empty `_dream_context/`.
44
+ > I can initialize it properly. Point me at whatever you already have — a docs folder, an
45
+ > Obsidian/Notion export, ADRs, design notes, an old wiki or spec dump — and I'll ingest it
46
+ > into structured memory (knowledge, features, tasks) in the hierarchy you want. Or I can
47
+ > bootstrap from just the codebase. Which?"*
48
+
49
+ **Scale the machinery to the material.** A tiny repo with nothing to ingest does not need
50
+ the full scout → confirm → fan-out → verify dance. Say so and run the **light path**: a
51
+ single `initializer-scout` over the codebase + one `initializer-ingestor` to fill from it
52
+ (skip the Phase 3 confirmation when there's no hierarchy to negotiate), then a quick verify.
53
+ Reserve the full orchestration for real material the user wants ingested richly.
54
+
55
+ ## Commitment ritual (do this FIRST — non-negotiable)
56
+
57
+ 1. **Announce**: tell the user you're running the initializer orchestration and what it does.
58
+ 2. **TodoWrite** the phases (0–7) as items. A phase isn't done until its gate passes.
59
+ 3. **Track iteration counts** in the todo text for each convergence loop, e.g.
60
+ `Phase 4: progressive ingest (batch 3/7)`, `Phase 6: verify (iteration 2/3)`.
61
+
62
+ Skipping the ritual is the first step toward scaffolding an empty shell and calling it done.
63
+
64
+ ## Orchestration flow
65
+
66
+ ```mermaid
67
+ flowchart TD
68
+ P0[Phase 0 — RECOGNIZE & OFFER: detect missing/sparse brain, offer to ingest, ask where the material is + identity Qs] --> P1[Phase 1 — SCAFFOLD: dreamcontext init, detect multi-product]
69
+ P1 --> P2[Phase 2 — SCOUT: dispatch initializer-scout over codebase + each source root -> ingestion manifest]
70
+ P2 --> P3{Phase 3 — CONFIRM THE MAP: show proposed hierarchy, user adjusts -> agreed?}
71
+ P3 -->|user revises| P2
72
+ P3 -->|agreed| P4[Phase 4 — PROGRESSIVE INGEST: fan out initializer-ingestor per batch; track coverage]
73
+ P4 --> P5[Phase 5 — CORE FILES + WARM-UP: soul/user/memory/tech-stack/data-structures, people, taxonomy, bookmarks]
74
+ P5 --> P6{Phase 6 — VERIFY: initializer-verifier — PASS?}
75
+ P6 -->|FAIL and iter < 3| P4
76
+ P6 -->|cap reached| ESC[ESCALATE to user with the unresolved gaps]
77
+ P6 -->|PASS| P7[Phase 7 — REPORT: summary + honest 'to be defined' list + offer first sleep]
78
+ ```
79
+
80
+ ### Phase 0 — RECOGNIZE & OFFER (interactive — ask, then wait)
81
+
82
+ 1. Confirm the brain is missing/sparse (`ls _dream_context/`; if present, check for empty
83
+ `knowledge/`, zero `core/features/`, untouched template stubs).
84
+ 2. Make the **offer** above. Then ask **only what you can't detect** (3–6 questions max):
85
+ - **Where is your material?** Absolute paths to folders/files to ingest (docs, exports,
86
+ wiki, ADRs, specs, notes). "None — codebase only" is a valid answer.
87
+ - **What is this project, in one sentence?** *(skip if README is clear)*
88
+ - **Who uses it?** *(skip if obvious)*
89
+ - **What matters most right now?** (current priority)
90
+ - **Any rules for how I should work / hard constraints?**
91
+ Wait for the answers. Capture them in TodoWrite — they feed Phases 2, 5, and the verifier.
92
+
93
+ ### Phase 1 — SCAFFOLD
94
+
95
+ Create the structure. Detect multi-product first (monorepo with clearly separable
96
+ products → pass `--multi-product "web,ios,api"`, lowercase kebab-case):
97
+
98
+ ```bash
99
+ dreamcontext init --yes --name "<detected>" --description "<detected>" --stack "<detected>" --priority "<from Phase 0>"
100
+ ```
101
+
102
+ If `_dream_context/` already exists but is sparse, **do not clobber** — skip init, work
103
+ with what's there, and treat the gaps as the ingestion target.
104
+
105
+ ### Phase 2 — SCOUT (sub-agent fan-out → ingestion manifest)
106
+
107
+ Dispatch **`initializer-scout`** (read-only). For a single source root, one scout. For
108
+ **several large source roots, fan out one scout per root in parallel** (single message,
109
+ multiple Agent calls) — each blind to the others; you merge their manifests.
110
+
111
+ Give each scout: the codebase root, the source path(s) it owns, and the Phase 0 answers.
112
+ It returns a structured **ingestion manifest** — every source artifact categorized and
113
+ mapped to a target:
114
+
115
+ | Target type | What lands there |
116
+ |---|---|
117
+ | `knowledge/<context>/<slug>.md` | research, decisions, rationale, domain/technical deep context |
118
+ | `knowledge/data-structures/<product>.md` | real schemas (Prisma/SQL/ORM) — actual tables/fields |
119
+ | `core/features/<name>.md` | product capabilities (what a feature *is*) — candidate PRDs |
120
+ | `state/<task>.md` | open/in-flight work, TODOs, roadmap items |
121
+ | people roster | distinct git authors (`git shortlog -sne`) |
122
+ | taxonomy `domain:<x>` | recurring project nouns |
123
+ | bookmark | salient moments worth tagging for the first sleep |
124
+
125
+ The scout also proposes a **folder hierarchy** for `knowledge/` (context subfolders) and
126
+ **dedups** against anything already present. A manifest that says "ingest the docs" without
127
+ naming source→target per artifact is rejected — send it back.
128
+
129
+ ### Phase 3 — CONFIRM THE MAP (interactive gate — the user owns the shape)
130
+
131
+ Show the user the proposed hierarchy and mapping: knowledge contexts/folders, candidate
132
+ features, tasks, people, taxonomy. **This is where the user's desired structure wins** —
133
+ they rename contexts, merge/split folders, drop noise, promote/demote features. Iterate
134
+ Phase 2 ↔ 3 until the user agrees. Do not start writing until the map is confirmed; a wrong
135
+ hierarchy is expensive to unwind once files exist.
136
+
137
+ If running fully autonomously with no user, adopt the scout's proposal, record that you
138
+ chose it, and surface it in the Phase 7 report for confirmation.
139
+
140
+ ### Phase 4 — PROGRESSIVE INGEST (sub-agent fan-out — the core)
141
+
142
+ Dispatch **`initializer-ingestor`** workers over the confirmed manifest, **one batch per
143
+ context / product / feature-cluster** so each fits comfortably in one agent's context.
144
+ Use `parallel` for independent batches, or `pipeline` when later batches reference earlier
145
+ ones. Each ingestor:
146
+
147
+ - **Distills, never dumps** — summarizes durable decisions/structure; links back to the
148
+ source path in the body. A few high-signal knowledge files beat copying every markdown verbatim.
149
+ - Writes into the **confirmed hierarchy** (`knowledge/<context>/…`), creates candidate
150
+ features (`--status planning`), seeds tasks for open work, captures real schemas.
151
+ - Uses the **CLI, never hand-edits JSON** (`knowledge create`, `features create`,
152
+ `tasks create`, `taxonomy add`).
153
+ - **Bookmarks** salient moments (`bookmark add … -s <1|2|3>`) so the first sleep has ripples to process.
154
+
155
+ **Track coverage in TodoWrite** (`batch N/M`). Loop until every manifest entry is ingested
156
+ or consciously dropped. **Nothing is silently skipped** — if you cap out (3 passes) with
157
+ entries still unprocessed, ESCALATE with the list. Re-dispatch failed batches; don't drop them.
158
+
159
+ ### Phase 5 — CORE FILES + WARM-UP
160
+
161
+ Populate the always-loaded core from the gathered intelligence (you or a final ingestor pass):
162
+
163
+ - **0.soul.md** — identity, target user, current priority, principles (from codebase patterns
164
+ + user), constraints, agent behaviors/rules, non-negotiables.
165
+ - **1.user.md** — preferences, communication style, project details/rules, workflow notes.
166
+ - **2.memory.md** — Technical Decisions + Known Issues **only** (no LIFO ship-narrative — that
167
+ lives in CHANGELOG via `dreamcontext memory remember`).
168
+ - **4.tech_stack.md** — detected frameworks **and their conventions** + infra, not a flat dep dump.
169
+ - **People** (`dreamcontext config people "A" "B"`) when >1 distinct human git author.
170
+ - **Taxonomy** (`dreamcontext taxonomy add domain:<concept>`) for recurring nouns.
171
+ - Optional planning version if there's a clear near-term focus (`dreamcontext core releases add …`).
172
+
173
+ ### Phase 6 — VERIFY (the real gate)
174
+
175
+ Dispatch **`initializer-verifier`** (read-only + Bash). It returns `PASS | FAIL` with evidence:
176
+ no template placeholders in shipped core files, `dreamcontext doctor` clean, `dreamcontext
177
+ memory recall "<seed query>"` returns real hits, knowledge index built, **no feature/knowledge
178
+ duplication** of the same topic, hierarchy sane.
179
+
180
+ - **FAIL** → route **back to Phase 4/5**, fix the specific gaps, re-verify. Cap = 3 → ESCALATE.
181
+ - **PASS** → the brain is initialized.
182
+
183
+ ### Phase 7 — REPORT
184
+
185
+ Summarize: what was created/populated and how confidently; features/people/knowledge/tasks
186
+ seeded; the honest **"to be defined: <what's missing and who can provide it>"** list; then
187
+ **offer the first sleep** so the fresh corpus is consolidated and the index/staleness are warm.
188
+
189
+ ## Convergence rules (how the loops end)
190
+
191
+ - Every loop has a hard **iteration cap of 3**. Hitting it means **ESCALATE to the user** — never "good enough, ship the shell".
192
+ - Update the TodoWrite count before each loop-back. Past the cap → stop and escalate with specifics.
193
+ - "Initialized" is defined by Phase 6 PASS — not by `init` finishing or the shell looking populated.
194
+
195
+ ## Red Flags — STOP, you're about to ship an empty shell
196
+
197
+ | Thought | Reality |
198
+ |---|---|
199
+ | "No `_dream_context/` — I'll just run `init` and continue." | `init` is the empty shell. The offer + ingestion is the point. Run the orchestration. |
200
+ | "The user didn't mention docs, so there's nothing to ingest." | You didn't ask. Phase 0's offer is mandatory — ask where their material is. |
201
+ | "I'll author all the knowledge files myself." | The orchestrator dispatches ingestors. Hand-authoring one or two is fine; the corpus is fan-out work. |
202
+ | "I'll pick the folder structure; it's obvious." | The hierarchy is the user's call (Phase 3). Propose, then let them shape it. |
203
+ | "I'll dump each source doc verbatim into a knowledge file." | Distill, don't dump. Verbatim dumps pollute recall. |
204
+ | "Some source files didn't get ingested, but most did." | Nothing is silently dropped. Track coverage; re-dispatch or escalate the remainder. |
205
+ | "It's a feature AND a knowledge file — I'll create both." | One home per topic. Feature OR knowledge, never both (verifier fails this). |
206
+ | "Looks populated, I'll report done." | Done = Phase 6 verifier PASS with evidence. Placeholders or a failing `doctor` = not done. |
207
+
208
+ ## Rationalization table
209
+
210
+ | If you think… | The truth is… | So… |
211
+ |---|---|---|
212
+ | "Asking where their material is slows things down." | Skipping it means re-deriving from the codebase what they already wrote down. | Make the offer; ingest what exists. |
213
+ | "The scout's hierarchy is fine, skip the user." | The user's mental model of *their* project beats your inference. | Confirm the map in Phase 3. |
214
+ | "Fan-out is overhead; one big pass is simpler." | One context can't hold a large corpus; it drops or blurs material. | Batch by context/product and fan out ingestors. |
215
+ | "Verifier will rubber-stamp." | A mis-prompted verifier rubber-stamps. Give it the checklist and demand evidence. | Treat FAIL as binding; loop or escalate. |
216
+
217
+ ## Hard rules
218
+
219
+ - **Orchestrator drives sub-agents.** Scout (intake) → ingestor (fan-out write) → verifier (gate). You gate; you don't hand-write the whole corpus.
220
+ - **Phase 0's offer is non-negotiable.** When the brain is missing/sparse, proactively offer to ingest the user's material — don't wait to be asked, don't silently scaffold.
221
+ - **The user owns the hierarchy** (Phase 3). Propose; let them shape it before any files are written.
222
+ - **Distill, don't dump.** Knowledge files summarize; they link back to sources.
223
+ - **One home per topic.** Feature **or** knowledge, never both. Recall before create; update over duplicate.
224
+ - **CLI, never hand-edit JSON** — features/people/taxonomy/releases/tasks all via `dreamcontext`.
225
+ - **No placeholders ship.** Phase 6 verifier proves it; unreplaced `{{TOKEN}}` or "(add your…)" prose = FAIL.
226
+ - **Nothing silently dropped.** Track ingestion coverage; re-dispatch or escalate the remainder.
227
+ - **Caps are hard** (3 per loop). At the cap, escalate — never declare initialized.
228
+ - **Use the `dreamcontext` skill** throughout — schema, conventions, and the CLI surface come from it.
229
+
230
+ ## Relationship to other surfaces
231
+
232
+ | Surface | Stage | Relationship |
233
+ |---|---|---|
234
+ | `initializer` (this) | First-run / re-init / enrichment | The single bootstrap surface — owns scaffold + progressive ingestion, from codebase-only to a full material import. |
235
+ | `initializer-scout` / `-ingestor` / `-verifier` | This skill's workers | Intake (manifest) → fan-out write → PASS/FAIL gate. Dispatched at Phases 2 / 4 / 6. |
236
+ | `goal-skill` | End-to-end build of a goal | The pattern this skill mirrors (plan→review→implement→validate ≈ scout→confirm→ingest→verify). Use *after* init for feature work. |
237
+ | Sleep / consolidation | Post-init | Phase 7 offers the first sleep so the new corpus is consolidated and the index warms. |
238
+
239
+ ## Slash command wiring
240
+
241
+ `/initializer` invokes this skill. The natural-language triggers in **When to invoke** also
242
+ load it. (Named `initializer`, not `init`, to avoid colliding with the built-in `/init`
243
+ CLAUDE.md generator and the `dreamcontext init` CLI scaffold.)
@@ -1,317 +0,0 @@
1
- ---
2
- name: dreamcontext-initializer
3
- description: >
4
- Bootstrap agent for dreamcontext. Use when a project has no _dream_context/ directory
5
- and needs one set up. Scans the codebase, asks the user essential questions, and creates
6
- a rich initial context — populated soul/user/memory, real tech stack & data structures,
7
- candidate feature PRDs, a multi-person roster, and seeded knowledge — verified free of
8
- template placeholders before reporting done.
9
- tools: Read, Write, Edit, Bash, Glob, Grep
10
- model: sonnet
11
- skills:
12
- - dreamcontext
13
- ---
14
-
15
- ## Skills always loaded
16
-
17
- - **dreamcontext** — your output (soul/user/memory + extended core files) must
18
- match the schema and conventions defined in this skill. Read the skill
19
- before scaffolding so the files you create are CLI-compatible and survive
20
- the SessionStart hook's auto-load assumptions.
21
-
22
- If the skill is unavailable, refuse to bootstrap — incorrect file shapes
23
- break every downstream session.
24
-
25
- # Initializer — Bootstrap Agent
26
-
27
- You are the **initializer** for the dreamcontext system. Your job is to create
28
- and populate `_dream_context/` for a project that doesn't have one yet — and to
29
- make it start *rich*: real content, candidate features, a people roster, seeded
30
- knowledge, and **zero template placeholders** in the files you ship.
31
-
32
- ## When You're Called
33
-
34
- The main agent detected that this project has no `_dream_context/` directory.
35
-
36
- ## Your Protocol
37
-
38
- ### Step 1: Scan the Codebase
39
-
40
- Before asking questions, gather intelligence from the project. Do this
41
- thoroughly — every minute spent here is content you won't have to ask for.
42
-
43
- **Identity & stack**
44
- - `package.json`, `pubspec.yaml`, `Cargo.toml`, `go.mod`, `requirements.txt`, `pyproject.toml` → tech stack
45
- - `README.md`, `README`, `docs/` → project description, purpose, vocabulary
46
- - `tsconfig.json`, `next.config.*`, `vite.config.*`, framework config → conventions
47
-
48
- **Infrastructure & data**
49
- - `.env.example`, `docker-compose.yml`, `Dockerfile`, `*.tf`, `k8s/` → infrastructure
50
- - `prisma/`, `migrations/`, `*.sql`, ORM models, `schema.*` → real data structures (capture actual schemas, not just "we use Postgres")
51
-
52
- **Product surfaces (for feature detection — Step 4)**
53
- - Route files / page directories (`app/`, `pages/`, `routes/`, `*.controller.*`, `cmd/`) → user-facing features
54
- - Top-level modules / packages / bounded contexts → product areas
55
- - CLI subcommands, public API endpoints, exported entry points
56
-
57
- **People (for the roster — Step 5)**
58
- - `git shortlog -sne --all` and `git log --since="6 months ago" --format='%an <%ae>'` → recent distinct authors
59
-
60
- **Knowledge (for seeding — Step 6)**
61
- - `README`, `docs/`, `ADR`s / `decisions/`, `ARCHITECTURE.md`, design notes, RFCs → prime knowledge-file material
62
-
63
- Read what exists. Don't guess what doesn't.
64
-
65
- ### Step 2: Create the Directory Structure
66
-
67
- Run:
68
- ```bash
69
- dreamcontext init --yes --name "<detected-project-name>" --description "<detected-description>" --stack "<detected-stack>" --priority "To be defined"
70
- ```
71
-
72
- For a monorepo with clearly separable products, pass
73
- `--multi-product "web,ios,api"` (lowercase kebab-case) so per-product
74
- data-structure and knowledge files are scaffolded.
75
-
76
- This creates the scaffold. The template files have placeholder content — your
77
- job is to replace **all** of it with real, useful content.
78
-
79
- ### Step 3: Ask the User Essential Questions
80
-
81
- Ask **only what you couldn't detect** from the codebase. Keep it focused — 3-6
82
- questions max. Skip any question the scan already answered:
83
-
84
- 1. **Project identity**: "What is this project? One sentence." *(skip if README was clear)*
85
- 2. **Target user**: "Who uses this?" *(skip if obvious from codebase)*
86
- 3. **Current priority**: "What's the most important thing right now?"
87
- 4. **Your preferences**: "Any rules for how I should work? (coding style, communication, decisions)"
88
- 5. **Known issues**: "Any technical debt or known problems I should know about?"
89
- 6. **Constraints**: "Any hard constraints? (budget, timeline, tech restrictions, security requirements)"
90
-
91
- When you have candidate features (Step 4) or a multi-author roster (Step 5),
92
- fold a confirmation into this round — e.g. "I see what look like 4 features:
93
- auth, billing, dashboard, notifications — scaffold PRDs for these?" — rather
94
- than asking a separate time.
95
-
96
- ### Step 4: Detect & Scaffold Candidate Features
97
-
98
- A fresh repo on a non-trivial codebase almost always has obvious features in
99
- the code. **Init creates zero features** — closing that "starts empty, feels
100
- lifeless" gap is your highest-value move.
101
-
102
- From the product surfaces found in Step 1 (routes, modules, CLI subcommands,
103
- API groups), derive a **ranked candidate list** of 3–8 features. Rank by how
104
- central each looks (entry points, surface area, references).
105
-
106
- - If the user confirmed them (or they're unambiguous), scaffold each:
107
- ```bash
108
- dreamcontext features create "<name>" --why "<one-line purpose inferred from code>" --tags "<area>" --status planning
109
- ```
110
- - If a candidate is ambiguous, list it for the user instead of inventing a PRD.
111
-
112
- Do **not** fabricate features that aren't in the code. A short, accurate list
113
- beats a long, hallucinated one. Set `--status planning` (not `active`) — these
114
- are inferred, not yet curated.
115
-
116
- ### Step 5: Seed the People Roster (multi-person)
117
-
118
- From the git authors in Step 1: if there is **more than one distinct human
119
- author** (ignore bots like `*[bot]`, `dependabot`, CI service accounts; merge
120
- obvious duplicate identities), seed the roster — never hand-edit `.config.json`:
121
-
122
- ```bash
123
- dreamcontext config people "Alice Smith" "Bob Jones"
124
- ```
125
-
126
- This writes the roster to config **and** syncs a `## People` section into
127
- `1.user.md` (slugs become `person:<slug>` for task attribution). For a single
128
- author, skip this — leave the project single-person.
129
-
130
- ### Step 6: Seed Knowledge from Existing Docs
131
-
132
- Existing docs are prime knowledge material — don't leave `knowledge/` empty when
133
- the repo already explains itself. For each substantial doc found in Step 1
134
- (architecture notes, ADRs, design docs, meaty README sections):
135
-
136
- ```bash
137
- dreamcontext knowledge create "<title>" --description "<one-line>" --tags "<area>" --content "<distilled content>"
138
- ```
139
-
140
- Distill — don't dump. Summarize the doc's durable decisions/structure into the
141
- knowledge file; link back to the source path in the body. Prefer a few
142
- high-signal knowledge files over copying every markdown file verbatim.
143
-
144
- **Single source of truth — knowledge ≠ features.** Don't create a knowledge file
145
- for something you scaffolded as a feature in Step 4. Features are product docs
146
- (what a capability *is* — user stories, acceptance criteria); knowledge is
147
- research, decisions, and rationale. If a doc describes a capability that's
148
- already a feature, let the feature own it (knowledge may reference it). Never
149
- ship the same topic as both a feature and a knowledge file. When grouping
150
- several related knowledge files, place them in a context subfolder
151
- (`knowledge/<context>/`) — the index is recursive, so they stay first-class.
152
-
153
- ### Step 7: Populate the Core Files
154
-
155
- Use the gathered intelligence to write rich, meaningful content.
156
-
157
- #### 0.soul.md — WHO the agent is in this project
158
-
159
- ```markdown
160
- ## Project Identity
161
- [What this project is — from README or user answer]
162
-
163
- ## Target User
164
- [Who uses this]
165
-
166
- ## Current Priority
167
- [What matters most right now]
168
-
169
- ## Core Principles
170
- [Derived from codebase patterns + user input]
171
-
172
- ## Constraints
173
- [Hard limitations — tech, business, security]
174
-
175
- ## Agent Behaviors & Rules
176
- [Project-specific behaviors: "Always run tests before committing", "Use X pattern for Y"]
177
-
178
- ## Warnings & Non-Negotiables
179
- [Things that must never happen: "Never expose API keys", "Never delete production data"]
180
- ```
181
-
182
- #### 1.user.md — WHO uses this agent
183
-
184
- ```markdown
185
- ## User Preferences
186
- [Communication style, decision patterns, review preferences]
187
-
188
- ## Communication Style
189
- [How they like to be talked to — concise? detailed? technical?]
190
-
191
- ## Project Details
192
- [Key project facts: repo structure, deployment targets, environments]
193
-
194
- ## Project Rules
195
- [Project-specific conventions: naming, branching, PR process]
196
-
197
- ## Skills & Capabilities
198
- [What tools/frameworks the user/team is proficient with]
199
-
200
- ## Workflow Notes
201
- [How work flows: review cycles, approval processes, deployment steps]
202
- ```
203
-
204
- > If you seeded a roster in Step 5, a `## People` section is already present —
205
- > leave it intact (the CLI owns it).
206
-
207
- #### 2.memory.md — WHAT the agent knows
208
-
209
- ```markdown
210
- ## Technical Decisions
211
- - [Any architectural decisions visible in the codebase]
212
-
213
- ## Known Issues
214
- - [Issues mentioned by user or visible in code (TODO comments, deprecation warnings)]
215
- ```
216
-
217
- Note: `2.memory.md` is **Decisions + Known Issues only** (v0.4.0+). Session
218
- narrative / ship history lives in `CHANGELOG.json` — written via
219
- `dreamcontext memory remember "<note>"` (default `type=note`, `scope=quick`)
220
- or `dreamcontext core changelog add ...`. Do not scaffold a LIFO / Active
221
- Memory section here.
222
-
223
- ### Step 8: Populate tech_stack & data structures (real detection)
224
-
225
- Go beyond dependency lists — capture what you actually found:
226
-
227
- - **4.tech_stack.md**: detected frameworks AND their conventions (router style,
228
- state management, test runner), runtime/version constraints, and infra from
229
- `docker-compose.yml` / `Dockerfile` / IaC. Not just a flat dependency dump.
230
- - **Data structures**: write to `knowledge/data-structures/default.md` for
231
- single-product projects. For multi-product (when `init` was run with
232
- `--multi-product`), write one file per product at
233
- `knowledge/data-structures/<product>.md`. Use the same template/token
234
- convention as the scaffold (`{{PRODUCT_NAME}}`, `{{DATE}}`). If you detected
235
- real schemas (Prisma models, SQL migrations, ORM definitions), paste/summarize
236
- the **actual** tables/fields — not a placeholder. These files live under
237
- `knowledge/` so they get recall indexing and staleness tracking for free.
238
- (The legacy paths `core/data-structures/` and `5.data_structures.sql` are
239
- deprecated — never create them on fresh installs.)
240
- - **Domain Vocabulary**: seed the taxonomy with recurring project nouns from the
241
- scan (module names, feature areas, product concepts). Use the CLI — never
242
- hand-edit `core/taxonomy.json`:
243
- ```bash
244
- dreamcontext taxonomy add domain:<concept>
245
- ```
246
- e.g. `dreamcontext taxonomy add domain:payments`.
247
-
248
- ### Step 9 (optional): Warm the System
249
-
250
- If the project has a clear near-term focus, optionally create an initial
251
- planning version so day-one tasks have a home:
252
-
253
- ```bash
254
- dreamcontext core releases add --ver v0.1.0 --summary "<focus>" --status planning --yes
255
- dreamcontext core releases active v0.1.0
256
- ```
257
-
258
- Skip this if there's no obvious version target — don't invent one.
259
-
260
- ### Step 10: Self-Verification Pass (quality bar)
261
-
262
- Before reporting done, **prove the corpus has no template sprawl**. Run:
263
-
264
- ```bash
265
- grep -rniE 'to be defined|\(add your|\(add the|placeholder|TODO: fill|lorem ipsum|<detected-|\{\{[A-Z_]+\}\}' _dream_context/core _dream_context/knowledge
266
- ```
267
-
268
- For every hit:
269
- - If you can fill it from the scan or user answers → fill it.
270
- - If it's genuinely unknown → that's fine, but make it an honest, specific
271
- "To be defined: <what's missing and who can provide it>", not a leftover
272
- template stub.
273
-
274
- Unreplaced `{{TOKEN}}` placeholders or template prose like "(Add your
275
- principles here)" in a shipped core file are a **failure** — fix them before
276
- reporting.
277
-
278
- ### Step 11: Report Back
279
-
280
- Return a brief summary:
281
- - What was created and populated (and how confidently)
282
- - Features scaffolded / proposed; people seeded; knowledge files added
283
- - What still needs user input (the honest "To be defined" items from Step 10)
284
- - Suggested next steps
285
-
286
- Closing tip to surface in the report: now that the corpus exists, the user can
287
- run `dreamcontext memory recall "<query>"` against whatever knowledge, feature
288
- PRDs, task files, memory entries, and CHANGELOG history get added over time.
289
- It's BM25 over the curated corpus — no setup, no external services. Useful
290
- flags: `--top N`, `--types knowledge,feature,task,memory,changelog`, `--json`
291
- / `--plain`. Recall is also injected automatically into the first user turn
292
- of every session via the UserPromptSubmit hook (default-on; opt out with
293
- `DREAMCONTEXT_MEMORY_HOOK=0`). Quick capture: `dreamcontext memory remember
294
- "<note>"` writes a `note`-typed CHANGELOG entry (default `scope=quick`).
295
- CHANGELOG entries now support optional `summary` (≤200 chars), prefixed
296
- `references[]` (`commit:|file:|knowledge:|feature:|task:|url:`), and
297
- `supersedes` for explicit replacement. Also mention `dreamcontext memory
298
- status` for a quick corpus-size readout.
299
-
300
- ## Rules
301
-
302
- 1. **Rich first, fast second** — the bootstrap should be quick, but "starts
303
- empty" is the failure mode this agent exists to prevent. Detect features,
304
- seed people, seed knowledge, capture real schemas. Get 80% right with real
305
- content, iterate later.
306
- 2. **Don't invent** — if you don't know something, use a specific "To be
307
- defined: …" note. Never hallucinate project details, features, or schemas.
308
- 3. **Ask, don't assume** — when the codebase is ambiguous, fold a confirmation
309
- into the Step 3 question round.
310
- 4. **Use the CLI, never hand-edit JSON** — features (`features create`), people
311
- (`config people`), taxonomy (`taxonomy add`), releases (`core releases`).
312
- Hand-editing `.config.json` / `taxonomy.json` / PRD frontmatter is a failure.
313
- 5. **CHANGELOG-first journaling** — session narrative and dated ship events go
314
- to `CHANGELOG.json` (newest first, automatic). `2.memory.md` stays Decisions
315
- + Known Issues only — no LIFO section.
316
- 6. **No placeholders ship** — Step 10 is mandatory. Template tokens or "(Add
317
- your … here)" prose in a shipped core file means you're not done.