somora 2026.930.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.
- package/LICENSE +21 -0
- package/README.md +364 -0
- package/bin/node-version.d.mts +3 -0
- package/bin/node-version.mjs +45 -0
- package/bin/somora.mjs +77 -0
- package/config.example.yaml +896 -0
- package/docs/agents.md +677 -0
- package/docs/api.md +3194 -0
- package/docs/browser.md +317 -0
- package/docs/builder.md +331 -0
- package/docs/cache-strategy.md +373 -0
- package/docs/compaction.md +253 -0
- package/docs/display.md +154 -0
- package/docs/dream-phases.md +891 -0
- package/docs/files.md +387 -0
- package/docs/imagegen.md +366 -0
- package/docs/images/somora-hero.png +0 -0
- package/docs/images/somora-mobile-2026-05-23.png +0 -0
- package/docs/images/somora-tui-2026-05-23.png +0 -0
- package/docs/images/somora-web-2026-05-23.png +0 -0
- package/docs/index.md +178 -0
- package/docs/lsp.md +93 -0
- package/docs/mcp.md +332 -0
- package/docs/memory.md +407 -0
- package/docs/mobile.md +310 -0
- package/docs/models.md +379 -0
- package/docs/projects.md +425 -0
- package/docs/realtime-voice.md +293 -0
- package/docs/resources.md +230 -0
- package/docs/sampling.md +128 -0
- package/docs/security.md +189 -0
- package/docs/sentinel.md +295 -0
- package/docs/setup.md +1217 -0
- package/docs/skills.md +501 -0
- package/docs/team.md +189 -0
- package/docs/thinking.md +463 -0
- package/docs/tmux.md +399 -0
- package/docs/tools.md +117 -0
- package/docs/videogen.md +191 -0
- package/docs/voice.md +288 -0
- package/docs/web.md +893 -0
- package/docs/wiki.md +583 -0
- package/npm-shrinkwrap.json +5670 -0
- package/package.json +116 -0
- package/src/attachments/store.ts +196 -0
- package/src/browser/change-stream.ts +31 -0
- package/src/browser/display.ts +108 -0
- package/src/browser/policy.ts +121 -0
- package/src/browser/screencast.ts +374 -0
- package/src/browser/service.ts +1337 -0
- package/src/browser/session.ts +15 -0
- package/src/browser/snapshot.ts +40 -0
- package/src/cli/auth.ts +117 -0
- package/src/cli/codex.ts +41 -0
- package/src/cli/lsp.ts +71 -0
- package/src/cli/resolvers/clawhub.ts +400 -0
- package/src/cli/setup.ts +835 -0
- package/src/cli/skill.ts +619 -0
- package/src/cli/somora.ts +548 -0
- package/src/cli/systemd-unit.ts +72 -0
- package/src/cli/team.ts +148 -0
- package/src/cli/tui/activity-stream.ts +121 -0
- package/src/cli/tui/api.ts +479 -0
- package/src/cli/tui/app.tsx +1169 -0
- package/src/cli/tui/autocomplete.tsx +55 -0
- package/src/cli/tui/commands.ts +913 -0
- package/src/cli/tui/dream-glyphs.ts +22 -0
- package/src/cli/tui/footer.tsx +15 -0
- package/src/cli/tui/format.ts +28 -0
- package/src/cli/tui/header.tsx +279 -0
- package/src/cli/tui/index.tsx +120 -0
- package/src/cli/tui/markdown.tsx +63 -0
- package/src/cli/tui/sampling.ts +162 -0
- package/src/cli/tui/separator.tsx +13 -0
- package/src/cli/tui/state.ts +42 -0
- package/src/cli/tui/stream.ts +330 -0
- package/src/cli/tui/thinking-text.ts +54 -0
- package/src/cli/tui/turn-views.tsx +499 -0
- package/src/cli/tui/types.ts +410 -0
- package/src/cli/tui/work-queue.ts +161 -0
- package/src/cli/update-args.ts +55 -0
- package/src/cli/wiki.ts +406 -0
- package/src/compaction/index.ts +28 -0
- package/src/compaction/midturn.ts +210 -0
- package/src/compaction/policy.ts +154 -0
- package/src/compaction/summarize.ts +691 -0
- package/src/compaction/template.ts +90 -0
- package/src/compaction/types.ts +148 -0
- package/src/config/loader.ts +276 -0
- package/src/config/reload.ts +43 -0
- package/src/config/types.ts +2292 -0
- package/src/dream/deep-actions.ts +324 -0
- package/src/dream/deep-dispatcher.ts +237 -0
- package/src/dream/deep-llm.ts +388 -0
- package/src/dream/deep-prompts.ts +106 -0
- package/src/dream/deep-runner.ts +757 -0
- package/src/dream/deep-skip-cache.ts +199 -0
- package/src/dream/deep-worker.ts +229 -0
- package/src/dream/json-salvage.ts +34 -0
- package/src/dream/judge.ts +188 -0
- package/src/dream/loop-state.ts +286 -0
- package/src/dream/lucid-actions.ts +303 -0
- package/src/dream/lucid-batches.ts +94 -0
- package/src/dream/lucid-prompt.ts +82 -0
- package/src/dream/lucid-runner.ts +744 -0
- package/src/dream/lucid-storage.ts +277 -0
- package/src/dream/lucid-structure.ts +102 -0
- package/src/dream/lucid-types.ts +137 -0
- package/src/dream/lucid-worker.ts +224 -0
- package/src/dream/rem-dedup.ts +502 -0
- package/src/dream/rem-extract.ts +782 -0
- package/src/dream/rem-reset-run.ts +67 -0
- package/src/dream/rem-runner.ts +696 -0
- package/src/dream/rem-worker.ts +527 -0
- package/src/dream/review-window.ts +71 -0
- package/src/dream/scheduler-state.ts +129 -0
- package/src/dream/storage.ts +497 -0
- package/src/dream/types.ts +133 -0
- package/src/dream/wiki-context.ts +133 -0
- package/src/engine/a2a.ts +33 -0
- package/src/engine/availability.ts +63 -0
- package/src/engine/claude-cli.ts +969 -0
- package/src/engine/codex-app-server-client.ts +294 -0
- package/src/engine/codex-bin.ts +49 -0
- package/src/engine/codex-cli.ts +1014 -0
- package/src/engine/codex-dynamic-tools.ts +239 -0
- package/src/engine/codex-home.ts +63 -0
- package/src/engine/codex-thread-config.ts +74 -0
- package/src/engine/context-budget.ts +257 -0
- package/src/engine/engine-meta-labels.ts +211 -0
- package/src/engine/grok-cli.ts +941 -0
- package/src/engine/inline-think.ts +59 -0
- package/src/engine/model-availability.ts +105 -0
- package/src/engine/openai-compatible.ts +2464 -0
- package/src/engine/reasoning-retry.ts +83 -0
- package/src/engine/registry.ts +13 -0
- package/src/engine/replay.ts +195 -0
- package/src/engine/sampling.ts +90 -0
- package/src/engine/thinking-params.ts +264 -0
- package/src/engine/types.ts +269 -0
- package/src/engine/user-tag.ts +24 -0
- package/src/imagegen/aspect.ts +128 -0
- package/src/imagegen/generate.ts +642 -0
- package/src/imagegen/references.ts +75 -0
- package/src/imagegen/types.ts +154 -0
- package/src/lsp/client.ts +183 -0
- package/src/lsp/fake-server.helper.mjs +42 -0
- package/src/lsp/format.ts +29 -0
- package/src/lsp/index.ts +21 -0
- package/src/lsp/manager.ts +238 -0
- package/src/lsp/registry.ts +151 -0
- package/src/mcp/config.ts +117 -0
- package/src/mcp/hub/audit.ts +55 -0
- package/src/mcp/hub/bridge.ts +115 -0
- package/src/mcp/hub/catalog.ts +69 -0
- package/src/mcp/hub/credentials.ts +406 -0
- package/src/mcp/hub/env-expand.ts +14 -0
- package/src/mcp/hub/manager.ts +770 -0
- package/src/mcp/hub/normalize.ts +213 -0
- package/src/mcp/server.ts +368 -0
- package/src/mcp/tool-schema.ts +20 -0
- package/src/media/capabilities.ts +392 -0
- package/src/media/records.ts +175 -0
- package/src/media/store.ts +217 -0
- package/src/media/types.ts +69 -0
- package/src/memory/chunking.ts +168 -0
- package/src/memory/embeddings.ts +262 -0
- package/src/memory/index.ts +15 -0
- package/src/memory/inject.ts +197 -0
- package/src/memory/manager.ts +996 -0
- package/src/memory/registry.ts +176 -0
- package/src/memory/rescan.ts +101 -0
- package/src/memory/retrieval.ts +586 -0
- package/src/memory/shared-index.ts +372 -0
- package/src/memory/slug.ts +39 -0
- package/src/memory/storage.ts +385 -0
- package/src/memory/watcher.ts +134 -0
- package/src/multimodal/blocks.ts +101 -0
- package/src/multimodal/dimensions.ts +214 -0
- package/src/multimodal/load.ts +86 -0
- package/src/multimodal/mime.ts +135 -0
- package/src/multimodal/pdf-render.ts +80 -0
- package/src/multimodal/user-content.ts +266 -0
- package/src/persona/files.ts +144 -0
- package/src/persona/loader.ts +598 -0
- package/src/persona/skill-gating-store.ts +59 -0
- package/src/persona/tool-gating-store.ts +113 -0
- package/src/projects/focus.ts +186 -0
- package/src/projects/prompt-block.ts +106 -0
- package/src/projects/scheme.ts +107 -0
- package/src/projects/store.ts +144 -0
- package/src/projects/types.ts +73 -0
- package/src/sentinel/dispatcher.ts +97 -0
- package/src/sentinel/schedule.ts +271 -0
- package/src/sentinel/scheduler.ts +840 -0
- package/src/sentinel/store.ts +259 -0
- package/src/sentinel/types.ts +221 -0
- package/src/server/activity-stream.ts +160 -0
- package/src/server/ask-calls.ts +137 -0
- package/src/server/ask-wait-graph.ts +171 -0
- package/src/server/async-tasks.ts +199 -0
- package/src/server/builder-busy.ts +86 -0
- package/src/server/builder-prompt.ts +204 -0
- package/src/server/builder-questions.ts +117 -0
- package/src/server/builder-session.ts +249 -0
- package/src/server/chat-aborts.ts +83 -0
- package/src/server/claude-config-dir.ts +71 -0
- package/src/server/claude-credential-sync.ts +454 -0
- package/src/server/env-file.ts +100 -0
- package/src/server/env.ts +115 -0
- package/src/server/heal-session.ts +151 -0
- package/src/server/history-page.ts +46 -0
- package/src/server/index.ts +7244 -0
- package/src/server/lockfile.ts +89 -0
- package/src/server/logger.ts +67 -0
- package/src/server/logs.ts +187 -0
- package/src/server/loopback-fetch.ts +130 -0
- package/src/server/openai-client.ts +89 -0
- package/src/server/prompt-assembly.ts +334 -0
- package/src/server/restart-reconcile.ts +139 -0
- package/src/server/run-turn-fallback.ts +275 -0
- package/src/server/run-turn-types.ts +91 -0
- package/src/server/run-turn.ts +1474 -0
- package/src/server/sanitize-assistant-text.ts +112 -0
- package/src/server/session-export.ts +220 -0
- package/src/server/session-queue.ts +376 -0
- package/src/server/session-workdir.ts +49 -0
- package/src/server/sse-h2-safe.ts +61 -0
- package/src/server/sse-liveness.ts +162 -0
- package/src/server/sse-serializer.ts +161 -0
- package/src/server/start-turn.ts +249 -0
- package/src/server/steer-inbox.ts +107 -0
- package/src/server/tls-keeper.ts +153 -0
- package/src/server/tool-format.ts +167 -0
- package/src/server/turn-framing.ts +52 -0
- package/src/server/turn-origin-kind.ts +74 -0
- package/src/server/turn-origin.ts +40 -0
- package/src/server/work-ledger.ts +975 -0
- package/src/server/workspace.ts +114 -0
- package/src/setup/config-edit.ts +201 -0
- package/src/setup/presets.ts +71 -0
- package/src/setup/prompt.ts +163 -0
- package/src/setup/tailscale.ts +44 -0
- package/src/skills/bin-checks.ts +227 -0
- package/src/skills/bootstrap.ts +347 -0
- package/src/skills/env-scope.ts +175 -0
- package/src/skills/gating.ts +71 -0
- package/src/skills/lint.ts +202 -0
- package/src/skills/load.ts +368 -0
- package/src/skills/path-helpers.ts +102 -0
- package/src/skills/registry.ts +178 -0
- package/src/ssh/exec.ts +142 -0
- package/src/ssh/index.ts +12 -0
- package/src/ssh/known-hosts.ts +109 -0
- package/src/ssh/pool.ts +307 -0
- package/src/storage/sessions.ts +602 -0
- package/src/team/render.ts +149 -0
- package/src/team/resolve.ts +122 -0
- package/src/team/store.ts +124 -0
- package/src/team/types.ts +111 -0
- package/src/team/write.ts +95 -0
- package/src/testing/isolated-home.mts +46 -0
- package/src/tmux/attention-watcher.ts +272 -0
- package/src/tmux/attention.ts +336 -0
- package/src/tmux/list.ts +91 -0
- package/src/tmux/origin-store.ts +102 -0
- package/src/tmux/tui-markers.ts +267 -0
- package/src/tools/agents/ask-cancel.ts +94 -0
- package/src/tools/agents/ask-result.ts +235 -0
- package/src/tools/agents/ask.ts +704 -0
- package/src/tools/agents/builder-dispatch.ts +217 -0
- package/src/tools/agents/images.ts +104 -0
- package/src/tools/agents/index.ts +42 -0
- package/src/tools/agents/long-task-timeouts.ts +39 -0
- package/src/tools/agents/session-list.ts +136 -0
- package/src/tools/agents/session-model.ts +106 -0
- package/src/tools/agents/spawn.ts +845 -0
- package/src/tools/agents/status.ts +589 -0
- package/src/tools/browser/index.ts +6 -0
- package/src/tools/browser/ops.ts +145 -0
- package/src/tools/browser/tools.ts +184 -0
- package/src/tools/builder/short-descriptions.ts +80 -0
- package/src/tools/builder/tools.ts +222 -0
- package/src/tools/docs/index.ts +1 -0
- package/src/tools/docs/tools.ts +228 -0
- package/src/tools/dream/index.ts +11 -0
- package/src/tools/dream/tools.ts +1002 -0
- package/src/tools/exec/allowlist.ts +233 -0
- package/src/tools/exec/background-detach.helper.mts +27 -0
- package/src/tools/exec/blacklist.ts +336 -0
- package/src/tools/exec/concurrency.ts +150 -0
- package/src/tools/exec/fit-output.ts +82 -0
- package/src/tools/exec/index.ts +7 -0
- package/src/tools/exec/internal-env.ts +89 -0
- package/src/tools/exec/job-store.ts +403 -0
- package/src/tools/exec/local.ts +649 -0
- package/src/tools/exec/remote.ts +399 -0
- package/src/tools/exec/tools.ts +934 -0
- package/src/tools/file/analyze.ts +378 -0
- package/src/tools/file/index.ts +2 -0
- package/src/tools/file/local.ts +707 -0
- package/src/tools/file/lsp-hook.ts +72 -0
- package/src/tools/file/persona-guard.ts +61 -0
- package/src/tools/file/policy.ts +292 -0
- package/src/tools/file/read-format.ts +129 -0
- package/src/tools/file/remote.ts +680 -0
- package/src/tools/file/replace.ts +507 -0
- package/src/tools/file/search-window.ts +224 -0
- package/src/tools/file/tools.ts +658 -0
- package/src/tools/file/write-scope.ts +182 -0
- package/src/tools/gating.ts +106 -0
- package/src/tools/image/budget.ts +82 -0
- package/src/tools/image/index.ts +7 -0
- package/src/tools/image/tools.ts +601 -0
- package/src/tools/index.ts +99 -0
- package/src/tools/memory/index.ts +12 -0
- package/src/tools/memory/tools.ts +399 -0
- package/src/tools/projects/index.ts +1 -0
- package/src/tools/projects/tools.ts +643 -0
- package/src/tools/registry.ts +427 -0
- package/src/tools/resources/index.ts +8 -0
- package/src/tools/resources/tools.ts +176 -0
- package/src/tools/resources/visibility.ts +60 -0
- package/src/tools/sentinel/index.ts +1 -0
- package/src/tools/sentinel/tools.ts +592 -0
- package/src/tools/skill/index.ts +4 -0
- package/src/tools/skill/tools.ts +285 -0
- package/src/tools/time/index.ts +5 -0
- package/src/tools/time/tools.ts +123 -0
- package/src/tools/tmux/index.ts +1 -0
- package/src/tools/tmux/local.ts +277 -0
- package/src/tools/tmux/remote.ts +168 -0
- package/src/tools/tmux/tools.ts +1064 -0
- package/src/tools/tool-output.ts +97 -0
- package/src/tools/types.ts +227 -0
- package/src/tools/video/index.ts +1 -0
- package/src/tools/video/tools.ts +425 -0
- package/src/tools/web/fetch.ts +337 -0
- package/src/tools/web/index.ts +4 -0
- package/src/tools/web/tools.ts +186 -0
- package/src/tools/wiki/index.ts +1 -0
- package/src/tools/wiki/tools.ts +445 -0
- package/src/tts/cache-gc.ts +128 -0
- package/src/tts/prepare-for-tts.ts +114 -0
- package/src/tts/service.ts +332 -0
- package/src/types/events.ts +695 -0
- package/src/types/turn-origin.ts +53 -0
- package/src/version.ts +21 -0
- package/src/videogen/dialects.ts +222 -0
- package/src/videogen/generate.ts +484 -0
- package/src/videogen/jobs.ts +178 -0
- package/src/videogen/runner.ts +125 -0
- package/src/videogen/wake.ts +119 -0
- package/src/voice/realtime/call.ts +948 -0
- package/src/voice/realtime/consult.ts +293 -0
- package/src/voice/realtime/fake-provider.ts +134 -0
- package/src/voice/realtime/manager.ts +384 -0
- package/src/voice/realtime/openai-provider.ts +471 -0
- package/src/voice/realtime/persona.ts +227 -0
- package/src/voice/realtime/session-match.ts +116 -0
- package/src/voice/realtime/types.ts +182 -0
- package/src/wiki/conflict.ts +113 -0
- package/src/wiki/explorer.ts +578 -0
- package/src/wiki/index-builder.ts +172 -0
- package/src/wiki/language.ts +134 -0
- package/src/wiki/log-builder.ts +150 -0
- package/src/wiki/map.ts +258 -0
- package/src/wiki/migration/analyze.ts +304 -0
- package/src/wiki/migration/execute.ts +689 -0
- package/src/wiki/migration/refine.ts +402 -0
- package/src/wiki/migration/store.ts +100 -0
- package/src/wiki/move-page.ts +57 -0
- package/src/wiki/structure-file.ts +192 -0
- package/src/wiki/taxonomy.ts +140 -0
- package/src/wiki/templates.ts +163 -0
- package/src/wiki/types.ts +133 -0
- package/templates/skills/README.md +24 -0
- package/templates/skills/_templates/api-wrapper/SKILL.md +26 -0
- package/templates/skills/_templates/cli-wrapper/BOOTSTRAP.md +32 -0
- package/templates/skills/_templates/cli-wrapper/SKILL.md +24 -0
- package/templates/skills/_templates/default/SKILL.md +25 -0
- package/templates/skills/builder-handover/SKILL.md +96 -0
- package/templates/skills/builder-handover/assets/ORDER.md +12 -0
- package/templates/skills/skill-author/SKILL.md +110 -0
- package/tsconfig.json +22 -0
- package/web/dist/assets/index-BaVv6pB2.js +631 -0
- package/web/dist/assets/index-BaVv6pB2.js.map +1 -0
- package/web/dist/assets/index-V3FV3Z25.css +32 -0
- package/web/dist/favicon.svg +8 -0
- package/web/dist/index.html +20 -0
- package/web/package.json +36 -0
- package/web/tsconfig.json +25 -0
- package/web-mobile/dist/apple-touch-icon.png +0 -0
- package/web-mobile/dist/assets/index-BqKt7IMx.css +1 -0
- package/web-mobile/dist/assets/index-X_vRr6cd.js +88 -0
- package/web-mobile/dist/assets/index-X_vRr6cd.js.map +1 -0
- package/web-mobile/dist/favicon.svg +8 -0
- package/web-mobile/dist/icon-192.png +0 -0
- package/web-mobile/dist/icon-512.png +0 -0
- package/web-mobile/dist/index.html +27 -0
- package/web-mobile/dist/manifest.webmanifest +32 -0
- package/web-mobile/dist/service-worker.js +90 -0
- package/web-mobile/package.json +28 -0
- package/web-mobile/tsconfig.json +25 -0
package/docs/wiki.md
ADDED
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
# Wiki Layer
|
|
2
|
+
|
|
3
|
+
> Long-term, structured, shared knowledge that all agents read but only
|
|
4
|
+
> Deep and Lucid (and you, in Obsidian) write. Lives in a designated
|
|
5
|
+
> subfolder of an Obsidian vault.
|
|
6
|
+
|
|
7
|
+
## What it is
|
|
8
|
+
|
|
9
|
+
The wiki is somora's long-term memory. While each agent has its own
|
|
10
|
+
private **memory inbox** (`~/.somora/agents/<name>/memory/*.md`), the
|
|
11
|
+
wiki is **one shared knowledge base** that every agent can read from
|
|
12
|
+
and contribute to via the Deep dream phase.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
<obsidian-vault>/
|
|
16
|
+
├── … your normal Obsidian notes (somora reads these as 'vault' source) …
|
|
17
|
+
└── <wiki-subfolder>/ ← THIS is the wiki
|
|
18
|
+
├── index.md ← auto-regenerated topology
|
|
19
|
+
├── personen/
|
|
20
|
+
│ ├── familie-klein.md
|
|
21
|
+
│ ├── max-meier.md
|
|
22
|
+
│ └── …
|
|
23
|
+
├── projekte/
|
|
24
|
+
│ ├── somora.md
|
|
25
|
+
│ ├── internal-cms.md
|
|
26
|
+
│ └── …
|
|
27
|
+
├── wissen/
|
|
28
|
+
│ ├── runpod.md
|
|
29
|
+
│ └── …
|
|
30
|
+
├── infrastruktur/, orte/, … ← the shipped template, see "Folders"
|
|
31
|
+
├── _struktur.md ← the folders and what lives in them
|
|
32
|
+
└── logs/
|
|
33
|
+
└── YYYY-MM.md ← monthly Deep audit log
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The folder names, section headings and the wording of index and log
|
|
37
|
+
follow `wiki.language` (`de`, the default, or `en` — see
|
|
38
|
+
[Language](#language)). The tree above is the German set; with `en`
|
|
39
|
+
it reads `people/`, `projects/`, `knowledge/`, `places/`.
|
|
40
|
+
|
|
41
|
+
## Why a separate layer
|
|
42
|
+
|
|
43
|
+
Three reasons memory and wiki need to be separate:
|
|
44
|
+
|
|
45
|
+
**Multi-agent.** Each agent has its own conversation history and its
|
|
46
|
+
own atomic observations. But a fact like "Lisa is the user's spouse"
|
|
47
|
+
is not agent-private — it's something every agent should know. The
|
|
48
|
+
wiki is where shared facts live.
|
|
49
|
+
|
|
50
|
+
**Curation.** Memory inboxes accumulate raw observations ("user
|
|
51
|
+
mentioned a new family car arrived"). The wiki is the place where
|
|
52
|
+
those observations
|
|
53
|
+
get integrated into a coherent picture (`personen/familie-klein` is
|
|
54
|
+
updated; the source memory entry is deleted). One source of truth per
|
|
55
|
+
topic.
|
|
56
|
+
|
|
57
|
+
**You-edit-able.** The wiki is plain markdown in your Obsidian vault.
|
|
58
|
+
You can read it in Obsidian, edit it like any note, link it from other
|
|
59
|
+
vault content. somora respects your edits (mtime-aware writes — Deep/Lucid
|
|
60
|
+
back off if you've changed a page since they last saw it).
|
|
61
|
+
|
|
62
|
+
## How wiki pages are written
|
|
63
|
+
|
|
64
|
+
### By Deep (Memory → Wiki consolidation)
|
|
65
|
+
|
|
66
|
+
Every 12h or via `dream_run({phase: 'deep'})`, Deep iterates each agent's
|
|
67
|
+
memory inbox, decides per file whether to skip / promote / merge, and
|
|
68
|
+
applies the structured fix verbatim. After Promote/Merge the source
|
|
69
|
+
memory file is deleted.
|
|
70
|
+
|
|
71
|
+
See [dream-phases.md](dream-phases.md#phase-deep--memory--wiki) for
|
|
72
|
+
mechanics.
|
|
73
|
+
|
|
74
|
+
### By Lucid + an agent in a `dream_review` loop
|
|
75
|
+
|
|
76
|
+
Every 7 days or via `dream_run({phase: 'lucid'})`, Lucid scans the
|
|
77
|
+
existing wiki for objectively-verifiable issues (contradictions, dead
|
|
78
|
+
refs, missing pages, link suggestions) — max 8 findings per run. Each
|
|
79
|
+
finding is **informational only** — the actual editing happens in a
|
|
80
|
+
conversational `dream_review` loop where you walk the findings with
|
|
81
|
+
one of your agents and the agent writes changes via loop-scoped
|
|
82
|
+
`wiki_edit` / `wiki_create` / `wiki_delete` / `wiki_move` tools after you OK each
|
|
83
|
+
step. Outside the loop, no agent can write to the wiki.
|
|
84
|
+
|
|
85
|
+
See [dream-phases.md](dream-phases.md#phase-lucid--wiki-cleanup) for
|
|
86
|
+
the full flow + loop discipline rules.
|
|
87
|
+
|
|
88
|
+
### By you (manually in Obsidian)
|
|
89
|
+
|
|
90
|
+
The wiki is just markdown. Open Obsidian, edit a page, save. somora's
|
|
91
|
+
file-watcher re-indexes the change — once, into the shared vault/wiki
|
|
92
|
+
index every agent reads ([memory.md](memory.md#mental-model--memory-inbox)).
|
|
93
|
+
Deep and Lucid will respect your edit on next run (mtime check before
|
|
94
|
+
writing — they back off on conflict).
|
|
95
|
+
|
|
96
|
+
## Page format
|
|
97
|
+
|
|
98
|
+
Every wiki page is markdown with YAML frontmatter:
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
---
|
|
102
|
+
slug: personen/familie-klein
|
|
103
|
+
type: family
|
|
104
|
+
created: 2026-05-08
|
|
105
|
+
updated: 2026-05-09
|
|
106
|
+
sources:
|
|
107
|
+
- alpha/familie-klein # which agent's memory contributed
|
|
108
|
+
- beta/people
|
|
109
|
+
related:
|
|
110
|
+
- wissen/family-cars
|
|
111
|
+
- orte/main-house
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
# Familie Klein
|
|
115
|
+
|
|
116
|
+
## Aktueller Stand
|
|
117
|
+
|
|
118
|
+
Familie around Sarah Klein: spouse, sister, father, niece and
|
|
119
|
+
two dogs. This page bundles the key people …
|
|
120
|
+
|
|
121
|
+
## Eigenschaften
|
|
122
|
+
|
|
123
|
+
- **Spouse:** Dr. Lisa Klein (* 03.02.1984)
|
|
124
|
+
- **Sister:** Eva Klein (* 08.12.1973)
|
|
125
|
+
- …
|
|
126
|
+
|
|
127
|
+
## Zeitleiste
|
|
128
|
+
|
|
129
|
+
- 1941-04-30 — Hans Klein born
|
|
130
|
+
- 1973-12-08 — Eva Klein born
|
|
131
|
+
- …
|
|
132
|
+
|
|
133
|
+
## Notizen
|
|
134
|
+
|
|
135
|
+
- Querverweise: [[wissen/family-cars]], [[orte/main-house]]
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Frontmatter fields
|
|
139
|
+
|
|
140
|
+
| Field | Required | Purpose |
|
|
141
|
+
|---|---|---|
|
|
142
|
+
| `slug` | yes | Wiki path without `.md`, matches the file's location. Stable identifier. |
|
|
143
|
+
| `type` | yes | Loose category (`person`, `projekt`, `konzept`, `ort`, `werkzeug`, …). Deep may invent new types. |
|
|
144
|
+
| `created` | yes | ISO date when the page was first created. |
|
|
145
|
+
| `updated` | yes | ISO date of last modification. Deep refreshes on every Promote/Merge. |
|
|
146
|
+
| `sources` | optional | List of `<agent>/<memory-slug>` strings — which agent inboxes contributed content. |
|
|
147
|
+
| `related` | optional | List of wiki-paths (without `.md`) for cross-references. |
|
|
148
|
+
|
|
149
|
+
### Section conventions (soft)
|
|
150
|
+
|
|
151
|
+
Deep prefers writing pages with four section headers, named by
|
|
152
|
+
`wiki.language`:
|
|
153
|
+
|
|
154
|
+
| `de` (default) | `en` | content |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| `## Aktueller Stand` | `## Current state` | prose summary, current state of the topic |
|
|
157
|
+
| `## Eigenschaften` | `## Properties` | bullet-list of stable facts |
|
|
158
|
+
| `## Zeitleiste` | `## Timeline` | dated entries (additions, changes, milestones) |
|
|
159
|
+
| `## Notizen` | `## Notes` | miscellaneous observations, cross-refs |
|
|
160
|
+
|
|
161
|
+
You can introduce other sections; Deep respects existing structure on
|
|
162
|
+
Merge. The conventions exist so multi-agent reads have a predictable
|
|
163
|
+
shape.
|
|
164
|
+
|
|
165
|
+
### Wikilinks
|
|
166
|
+
|
|
167
|
+
Use Obsidian's `[[wiki-path]]` syntax for cross-references between
|
|
168
|
+
pages. Example: `Lisa ist die [[personen/familie-klein|Ehefrau]]`.
|
|
169
|
+
|
|
170
|
+
Wikilinks are indexed as plain text (the brackets are tokenized away),
|
|
171
|
+
so a search for `garten` finds pages mentioning `[[orte/garten]]`. They
|
|
172
|
+
are NOT followed transitively — `memory_search` doesn't walk graph
|
|
173
|
+
edges. The agent reads the wikilink in a hit and decides whether to
|
|
174
|
+
fetch the referenced page via `memory_get`.
|
|
175
|
+
|
|
176
|
+
## index.md
|
|
177
|
+
|
|
178
|
+
Auto-regenerated after every Deep run. Contains:
|
|
179
|
+
|
|
180
|
+
- Header with last-update timestamp
|
|
181
|
+
- Sections per subfolder (`## Personen`, `## Projekte`, … — the
|
|
182
|
+
capitalised folder names)
|
|
183
|
+
- One bullet per page with the slug + first-line description
|
|
184
|
+
- `## Letzte Updates` (`## Recent updates` with `wiki.language: en`) —
|
|
185
|
+
last 10 Promote/Merge entries from the current run
|
|
186
|
+
|
|
187
|
+
```markdown
|
|
188
|
+
# somora-Wiki Index
|
|
189
|
+
|
|
190
|
+
Letztes Update: 2026-05-09 07:45 UTC von Deep
|
|
191
|
+
|
|
192
|
+
## Personen
|
|
193
|
+
- [[personen/familie-klein]] — Family around Sarah Klein …
|
|
194
|
+
- [[personen/anna]] — Niece, daughter of Eva …
|
|
195
|
+
|
|
196
|
+
## Projekte
|
|
197
|
+
- [[projekte/internal-cms]] — Internal CMS used by …
|
|
198
|
+
- [[projekte/release-pipeline]] — CI/CD across multiple repos …
|
|
199
|
+
|
|
200
|
+
## Wissen
|
|
201
|
+
- [[wissen/family-cars]] — Notes on the household vehicle fleet …
|
|
202
|
+
|
|
203
|
+
## Letzte Updates
|
|
204
|
+
- 2026-05-09: [[personen/familie-klein]] — familie-klein aktualisiert: spouse + birthday
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
The index is the **topology header** Lucid and REM see — they know what
|
|
208
|
+
subfolders exist and what slugs are taken without loading every page
|
|
209
|
+
body.
|
|
210
|
+
|
|
211
|
+
## Folders: kind, not topic
|
|
212
|
+
|
|
213
|
+
A folder says what **kind** of page lives in it — a person, a project,
|
|
214
|
+
a device, a rule — never what a page is about. Topics live in the page
|
|
215
|
+
body, in its `[[links]]` and in `index.md`. Kept this way, a wiki with
|
|
216
|
+
a thousand pages still has a dozen folders; without the rule, five
|
|
217
|
+
months of Deep runs produced 40 folders, a 300-page `wissen/` catch-all
|
|
218
|
+
and the same page name living in several folders at once.
|
|
219
|
+
|
|
220
|
+
somora ships one folder template per wiki language. Deep proposes it,
|
|
221
|
+
your wiki's real folders win: a folder you or Deep created is listed as
|
|
222
|
+
it is, the template only fills the gaps.
|
|
223
|
+
|
|
224
|
+
| `de` | `en` | What lives there |
|
|
225
|
+
|---|---|---|
|
|
226
|
+
| `personen/` | `people/` | one page per human |
|
|
227
|
+
| `unternehmen/` | `companies/` | one page per company, firm, supplier |
|
|
228
|
+
| `projekte/` | `projects/` | one page per bounded undertaking; dated work reports are timeline entries on it, not pages |
|
|
229
|
+
| `infrastruktur/` | `infrastructure/` | devices, hosts, services, provider accounts — subfolders `geraete/hosts/dienste/konten` (`devices/hosts/services/accounts`) |
|
|
230
|
+
| `finanzen/` | `finances/` | accounts, portfolio, crypto, real estate as investment, loans — one subfolder per kind |
|
|
231
|
+
| `besitz/` | `possessions/` | things owned that are not investments |
|
|
232
|
+
| `orte/` | `places/` | houses, sites, cities, destinations |
|
|
233
|
+
| `ereignisse/` | `events/` | what happened when |
|
|
234
|
+
| `wissen/` | `knowledge/` | subject knowledge tied to no person or company — `konzepte/anleitungen/vergleiche` (`concepts/how-tos/comparisons`) |
|
|
235
|
+
| `regeln/` | `rules/` | directives, preferences, agreements |
|
|
236
|
+
| `agenten/` | `agents/` | agent profiles only, no work reports |
|
|
237
|
+
| `privat/` | `personal/` | interests, hobbies, pets, health, living |
|
|
238
|
+
|
|
239
|
+
At most one level of subfolders. The template with its rationale per
|
|
240
|
+
folder lives in `src/wiki/taxonomy.ts`; adding a language means adding
|
|
241
|
+
an entry there.
|
|
242
|
+
|
|
243
|
+
### The structure file
|
|
244
|
+
|
|
245
|
+
`_struktur.md` (`_structure.md` with `en`) in the wiki root is the
|
|
246
|
+
wiki's own memory of what its folders mean: one row per folder with
|
|
247
|
+
its purpose, who described it (`template`, `deep`, `user`) and since
|
|
248
|
+
when. Deep writes it after a run in which a folder was created or
|
|
249
|
+
found undescribed; you edit the sentences in Obsidian like any page —
|
|
250
|
+
a person's wording is never overwritten. Folders on disk nobody has
|
|
251
|
+
described yet appear as "(no description yet)" until you or the
|
|
252
|
+
migration fill them in. The file is not a wiki page: the index and the
|
|
253
|
+
memory search skip it.
|
|
254
|
+
|
|
255
|
+
### How Deep files a page
|
|
256
|
+
|
|
257
|
+
On every run Deep is shown the **wiki map**: every folder that exists
|
|
258
|
+
with its purpose and page count, then the template folders that do not
|
|
259
|
+
exist yet, then the rules. It files a new page into one of the
|
|
260
|
+
described ones — a grown folder nobody has described is not a home
|
|
261
|
+
until someone describes it. Only when no kind fits may it create a folder, and then it has to say in one
|
|
262
|
+
sentence what kind of page lives there — that sentence lands in the
|
|
263
|
+
structure file and in every later map. A new folder without a purpose,
|
|
264
|
+
or one deeper than a subfolder, is refused and the memory note waits
|
|
265
|
+
for the next run.
|
|
266
|
+
|
|
267
|
+
Before a page is created, its name is checked against the **whole**
|
|
268
|
+
wiki, not only the exact path: when a page with that name already
|
|
269
|
+
exists in another folder, Deep merges into it instead of creating a
|
|
270
|
+
twin. Names that already exist in several folders are noted in the
|
|
271
|
+
structure file for the migration.
|
|
272
|
+
|
|
273
|
+
A page whose name extends an entity page's name — a note filed as
|
|
274
|
+
`enovom-kapitalruecklage` while `unternehmen/enovom` exists — is
|
|
275
|
+
usually a detail of that entity: Deep is asked again with the entity
|
|
276
|
+
page in full and merges the note into it, unless it insists the page
|
|
277
|
+
is a thing of its own.
|
|
278
|
+
|
|
279
|
+
`wiki.defaultSubdirs` from earlier versions is still read, but only
|
|
280
|
+
shapes the example slugs in the prompts; the template above replaces
|
|
281
|
+
the list.
|
|
282
|
+
|
|
283
|
+
### Migrating a grown wiki
|
|
284
|
+
|
|
285
|
+
A wiki that grew before the template keeps working as it is: the map
|
|
286
|
+
only changes where **new** pages go. Moving the existing pages onto
|
|
287
|
+
the template is a separate, deliberate process that nothing starts by
|
|
288
|
+
itself — you trigger it, you read what it would do, you approve it in
|
|
289
|
+
groups, and it takes a full copy of the wiki before it moves a file.
|
|
290
|
+
Four steps, from the shell on the somora host — `somora wiki migrate`
|
|
291
|
+
walks you through them, and each is also a subcommand with flags so a
|
|
292
|
+
script, or an agent that read this page, can drive it — or over HTTP
|
|
293
|
+
([api.md](api.md#post-wikimigrationplan)), which is what the command
|
|
294
|
+
calls:
|
|
295
|
+
|
|
296
|
+
```
|
|
297
|
+
somora wiki migrate guided: plan → judge → approve → dry run → run
|
|
298
|
+
somora wiki migrate plan step 1, prints the plan id
|
|
299
|
+
somora wiki migrate judge <id> step 2, waits for the model, lists the groups
|
|
300
|
+
somora wiki migrate status <id> the groups and what is approved
|
|
301
|
+
somora wiki migrate approve <id> --action move --action fold --twins
|
|
302
|
+
somora wiki migrate approve <id> --group fold:projekte/somora --dismiss
|
|
303
|
+
somora wiki migrate dry-run <id> step 4a, writes dry-run.md, touches nothing
|
|
304
|
+
somora wiki migrate run <id> --confirm "move my wiki"
|
|
305
|
+
somora wiki migrate undo <id> the backup back over the wiki (the current
|
|
306
|
+
wiki is moved aside, nothing is deleted)
|
|
307
|
+
somora wiki migrate relink <id> point links and related: at the moved pages
|
|
308
|
+
again (runs before .07 missed related:)
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
The words "move my wiki" are the one thing an agent must not supply on
|
|
312
|
+
its own: it may plan, judge, read the groups out and record your
|
|
313
|
+
approvals, and it starts the real run only after you said the words.
|
|
314
|
+
|
|
315
|
+
1. **Plan** — `POST /wiki/migration/plan` reads the wiki and writes a
|
|
316
|
+
plan under `~/.somora/wiki-migration/<id>/plan.md`: folders a rule
|
|
317
|
+
would move (a folder named `aktien` belongs in `finanzen/depot`),
|
|
318
|
+
page names that exist in several folders, dated work reports and
|
|
319
|
+
the project they seem to belong to. Nothing is touched.
|
|
320
|
+
2. **Judge** — `POST /wiki/migration/refine` has the Lucid model look
|
|
321
|
+
at **every** page — with the map and the names of the entity pages
|
|
322
|
+
in front of it — and answer per page: keep, move (with a new file
|
|
323
|
+
name when the old one is a date, not a thing), fold into an existing
|
|
324
|
+
page, or unclear. A rule's proposal is only a proposal; no page
|
|
325
|
+
moves on a folder name alone. The answers land in `refined.md`,
|
|
326
|
+
grouped by what would happen: "move 12 pages to
|
|
327
|
+
infrastruktur/geraete", "fold 30 pages into projekte/realtimevoice".
|
|
328
|
+
Still nothing is touched.
|
|
329
|
+
3. **Approve** — `POST /wiki/migration/plans/<id>/approve` marks groups
|
|
330
|
+
(or every group of one action, or the same-name unions) approved or
|
|
331
|
+
dismissed. What you do not approve stays where it is.
|
|
332
|
+
4. **Execute** — `POST /wiki/migration/plans/<id>/execute`. The default
|
|
333
|
+
is a dry run: it walks the approved steps and writes `dry-run.md`,
|
|
334
|
+
nothing else. A real run needs `{"dryRun": false, "confirm": "move
|
|
335
|
+
my wiki"}` and then, in this order: a full copy of the wiki into
|
|
336
|
+
`~/.somora/wiki-migration/<id>/backup-<time>/` (verified by file
|
|
337
|
+
count — no copy, no run); the approved moves (file, frontmatter
|
|
338
|
+
`slug`); the approved folds — the model writes the entry that
|
|
339
|
+
carries the page's substance into the target (a timeline line for a
|
|
340
|
+
dated report, a few lines under the fitting heading for a detail),
|
|
341
|
+
the original is kept in full under `logs/berichte/` (`logs/reports/`
|
|
342
|
+
with `en`) with `merged_into` in its frontmatter — that archive is
|
|
343
|
+
left out of the search index, its substance now lives in the target
|
|
344
|
+
pages; the approved unions
|
|
345
|
+
of same-name pages — the copy the model gave a home survives, the
|
|
346
|
+
model writes its merged body, the other copy goes to the same
|
|
347
|
+
archive; every `[[link]]` in the wiki pointed at the new places;
|
|
348
|
+
empty folders removed; the structure file stamped with the template
|
|
349
|
+
version; `index.md` and the monthly log regenerated; the search
|
|
350
|
+
index swept. Every step is recorded with its outcome in
|
|
351
|
+
`execution-<time>.md`; a failed step never stops the others.
|
|
352
|
+
|
|
353
|
+
To undo a run: `somora wiki migrate undo <id>` moves the current wiki
|
|
354
|
+
folder aside (`<wiki>.before-undo-<time>`), copies the backup to the
|
|
355
|
+
wiki's place and sweeps the search index. The plan and its files stay
|
|
356
|
+
under `~/.somora/wiki-migration/` for as long as you keep them.
|
|
357
|
+
|
|
358
|
+
## How agents read the wiki
|
|
359
|
+
|
|
360
|
+
Three paths feed a chat turn:
|
|
361
|
+
|
|
362
|
+
1. **Auto-injection** runs hybrid search (vector + BM25) across all three
|
|
363
|
+
memory layers. With wiki enabled, hits from `source: 'wiki'` get a
|
|
364
|
+
1.4× boost (configurable) so curated wiki pages outrank noisier
|
|
365
|
+
memory chunks. Auto-injected wiki content shows up as
|
|
366
|
+
`[wiki/<path> · score=N.NN]` in the `<memory-context>` block.
|
|
367
|
+
|
|
368
|
+
2. **Wiki overview block** puts a shortened `index.md` into the system
|
|
369
|
+
prompt — so the agent sees the wiki topology even when no specific
|
|
370
|
+
page matches, and can decide "is there a wiki page I should fetch?"
|
|
371
|
+
It is built once, on a session's first turn, and then frozen for the
|
|
372
|
+
life of that session (see [Overview block](#overview-block)).
|
|
373
|
+
|
|
374
|
+
3. **Explicit tool calls** — `memory_search` or `memory_get` with a
|
|
375
|
+
`wiki/<path>` reference. Agents fetch full pages on demand.
|
|
376
|
+
|
|
377
|
+
Wiki paths in references look like `wiki/personen/familie-klein` — the
|
|
378
|
+
`wiki/` prefix is the source-tag, the rest is the slug.
|
|
379
|
+
|
|
380
|
+
### Overview block
|
|
381
|
+
|
|
382
|
+
The overview answers one question: *what topics does the wiki hold?*
|
|
383
|
+
Content comes from search and `memory_get`, never from here.
|
|
384
|
+
|
|
385
|
+
It lives in the **system prompt**, not in the per-turn memory block. The
|
|
386
|
+
content is identical on every turn, so putting it in the cached prefix
|
|
387
|
+
costs it once per session instead of once per turn — and on the
|
|
388
|
+
`openai-compatible` engine, which rebuilds the whole conversation from
|
|
389
|
+
the transcript, once instead of once *per turn of history*.
|
|
390
|
+
|
|
391
|
+
It is also **frozen for the session**. Deep rewrites `index.md` every
|
|
392
|
+
~12 h; re-reading it mid-session would shift a block that sits in front
|
|
393
|
+
of the entire conversation and invalidate the provider's prefix cache.
|
|
394
|
+
A session therefore keeps the wiki map it started with. Recall stays
|
|
395
|
+
current regardless — auto-injection and `memory_search` always hit the
|
|
396
|
+
live index. To pick up a rewritten map, start a new session or `/reset`
|
|
397
|
+
the current one; both re-read `index.md` on the next turn.
|
|
398
|
+
|
|
399
|
+
`index.md` rarely fits the budget, so it degrades through four stages.
|
|
400
|
+
Each one describes the **whole** wiki; they differ in resolution:
|
|
401
|
+
|
|
402
|
+
| Stage | Content | Used when |
|
|
403
|
+
|---|---|---|
|
|
404
|
+
| 1 | `index.md` verbatim | fits `overviewMaxChars` |
|
|
405
|
+
| 2 | sections + pages + clipped descriptions | small wiki |
|
|
406
|
+
| 3 | sections + bare page links | medium wiki |
|
|
407
|
+
| 4 | section names + page counts | large wiki |
|
|
408
|
+
|
|
409
|
+
Stage 4 deliberately reports `- Projekte (60)` rather than listing 30 of
|
|
410
|
+
the 258 pages. A partial page list reads as complete and stops the agent
|
|
411
|
+
from searching; a section with a count tells it what to search *for*.
|
|
412
|
+
|
|
413
|
+
Raise `overviewMaxChars` to keep page names visible on a larger wiki —
|
|
414
|
+
the cost is a bigger constant prefix, paid once per session.
|
|
415
|
+
|
|
416
|
+
## Web explorer
|
|
417
|
+
|
|
418
|
+
The web client has a read-only wiki browser behind the **wiki** tile in
|
|
419
|
+
the app dock. Three columns:
|
|
420
|
+
|
|
421
|
+
```
|
|
422
|
+
┌──────────┬────────────────────────┬───────────────┐
|
|
423
|
+
│ tree │ # somora Voice/TTS │ graph │
|
|
424
|
+
│ wissen/ │ │ o │
|
|
425
|
+
│ konzepte/│ … │ / \ │
|
|
426
|
+
│ projekte/│ [[somora]] [[voice]] │ o o │
|
|
427
|
+
│ personen/│ │ backlinks: │
|
|
428
|
+
│ bugs/ │ │ · projekte/x │
|
|
429
|
+
└──────────┴────────────────────────┴───────────────┘
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
`[[wikilinks]]` are clickable and navigate inside the window. Targets
|
|
433
|
+
that resolve to no page render as **broken** instead of vanishing — a
|
|
434
|
+
wiki with gaps should look like one. Resolution follows Obsidian's
|
|
435
|
+
rules, in order: exact slug, case-insensitive slug, then a unique
|
|
436
|
+
basename. A basename matching several pages stays unresolved rather
|
|
437
|
+
than picking one; a wrong edge reads as a real relationship and is
|
|
438
|
+
worse than a missing one.
|
|
439
|
+
|
|
440
|
+
The graph toggles between **This page** (the current page, what it links
|
|
441
|
+
to, and what links to it — plus the edges among those neighbours) and
|
|
442
|
+
**Whole wiki** (every page at once, capped at the 400 most-connected).
|
|
443
|
+
Scroll to zoom, drag the background to pan, and the expand button gives
|
|
444
|
+
the graph the full window — a dense whole-wiki view only becomes legible
|
|
445
|
+
once you can zoom into a corner and read the labels. Clicking a node
|
|
446
|
+
opens that page. `index.md` is excluded from both scopes: it links to
|
|
447
|
+
every page by construction, so including it turns the graph into a star
|
|
448
|
+
around one node and adds hundreds of edges that say nothing about how
|
|
449
|
+
the knowledge connects.
|
|
450
|
+
|
|
451
|
+
Read-only is deliberate. Deep and Lucid own the wiki files; an editor
|
|
452
|
+
in the browser would race them mid-run.
|
|
453
|
+
|
|
454
|
+
### Endpoints
|
|
455
|
+
|
|
456
|
+
```http
|
|
457
|
+
GET /wiki/status # { enabled, root? }
|
|
458
|
+
GET /wiki/tree # folder tree + page titles
|
|
459
|
+
GET /wiki/page?slug=konzepte/voice-tts # body + frontmatter + links
|
|
460
|
+
GET /wiki/graph?scope=local&slug=<slug> # neighbourhood
|
|
461
|
+
GET /wiki/graph?scope=global # whole wiki
|
|
462
|
+
POST /wiki/refresh # drop the cache, re-scan
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
Pages are addressed by **slug, never by path**. A request can only name
|
|
466
|
+
pages the index already found under the wiki root, so `../`, absolute
|
|
467
|
+
paths and symlink escapes are rejected by construction rather than by a
|
|
468
|
+
filter someone has to keep correct.
|
|
469
|
+
|
|
470
|
+
The index caches for 10 seconds, then re-stats the tree and re-parses
|
|
471
|
+
only files whose mtime or size moved. Edits made in Obsidian appear
|
|
472
|
+
within that window; the refresh button skips it.
|
|
473
|
+
|
|
474
|
+
## Configuration
|
|
475
|
+
|
|
476
|
+
```yaml
|
|
477
|
+
# ~/.somora/config.yaml
|
|
478
|
+
wiki:
|
|
479
|
+
enabled: true # master toggle
|
|
480
|
+
vaultSubfolder: somora # <vault>/somora/ becomes the wiki
|
|
481
|
+
language: de # de | en — see "Language" below
|
|
482
|
+
|
|
483
|
+
deep:
|
|
484
|
+
enabled: true
|
|
485
|
+
intervalHours: 12
|
|
486
|
+
model: opus
|
|
487
|
+
|
|
488
|
+
lucid:
|
|
489
|
+
enabled: true
|
|
490
|
+
intervalDays: 7
|
|
491
|
+
model: opus
|
|
492
|
+
requireApproval: true
|
|
493
|
+
maxCallsPerTurn: 3 # wiki_* calls per turn in a review loop
|
|
494
|
+
|
|
495
|
+
search:
|
|
496
|
+
boostWiki: 1.4 # search-rank multiplier per source
|
|
497
|
+
boostMemory: 0.85
|
|
498
|
+
boostVault: 0.65
|
|
499
|
+
overviewMaxChars: 4000 # overview-block budget (see above)
|
|
500
|
+
overviewTopNSlugs: 30 # max sections in the stage-4 view
|
|
501
|
+
|
|
502
|
+
obsidian:
|
|
503
|
+
vault: /path/to/your/vault
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
`obsidian.vault` is required for the wiki to work — the wiki is a
|
|
507
|
+
subfolder of your Obsidian vault. If you don't use Obsidian, you can
|
|
508
|
+
still point `vault` at any directory; somora doesn't require Obsidian
|
|
509
|
+
itself, just the markdown-vault layout.
|
|
510
|
+
|
|
511
|
+
## Language
|
|
512
|
+
|
|
513
|
+
`wiki.language` decides what the wiki's scaffolding is called and
|
|
514
|
+
which language Deep writes page prose in. It covers:
|
|
515
|
+
|
|
516
|
+
- the section headings of new pages (table above),
|
|
517
|
+
- the `type:` values Deep picks (`person / projekt / konzept / ort /
|
|
518
|
+
werkzeug` vs `person / project / concept / place / tool`),
|
|
519
|
+
- the folder template ("Folders" above) and the examples in the Deep
|
|
520
|
+
and Lucid prompts and the `wiki_*` tool descriptions,
|
|
521
|
+
- the wording of `index.md` (`Letztes Update … von Deep` / `Sonstiges`
|
|
522
|
+
/ `Letzte Updates` vs `Last update … by Deep` / `Other` / `Recent
|
|
523
|
+
updates`) and of the monthly log (`# Wiki-Log Mai 2026` vs `# Wiki
|
|
524
|
+
log May 2026`, promotion lines),
|
|
525
|
+
- the instruction to the Deep worker to write titles, headings and
|
|
526
|
+
prose in that language.
|
|
527
|
+
|
|
528
|
+
`de` is the default; an installation that never sets the key keeps
|
|
529
|
+
producing pages that match its existing ones. Set `en` for an English
|
|
530
|
+
wiki. Switching later changes only new scaffolding: Merge keeps the
|
|
531
|
+
headings a page already has, existing pages are not translated, and
|
|
532
|
+
memory notes and search are language-neutral and unaffected. Names and
|
|
533
|
+
terms are quoted as they appear in the memory, whatever the wiki
|
|
534
|
+
language.
|
|
535
|
+
|
|
536
|
+
## Multi-agent participation
|
|
537
|
+
|
|
538
|
+
By default, every agent's memory inbox feeds the wiki via Deep. Opt
|
|
539
|
+
individual agents OUT in their `agent.yaml`:
|
|
540
|
+
|
|
541
|
+
```yaml
|
|
542
|
+
rem:
|
|
543
|
+
enabled: true
|
|
544
|
+
participate_in_wiki: false # REM still runs; Deep won't see this agent's inbox
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
Useful for scratch agents, sandbox personas, or anything you don't want
|
|
548
|
+
contributing to shared knowledge.
|
|
549
|
+
|
|
550
|
+
## Sync across machines
|
|
551
|
+
|
|
552
|
+
The wiki is plain markdown in your Obsidian vault. Use whatever sync
|
|
553
|
+
mechanism you already use for Obsidian — iCloud, Syncthing, git, etc.
|
|
554
|
+
somora is single-host; the wiki sync is your responsibility.
|
|
555
|
+
|
|
556
|
+
Memory inboxes (`~/.somora/agents/<name>/memory/`) are intentionally
|
|
557
|
+
NOT designed for sync. They're ephemeral inboxes that get drained by
|
|
558
|
+
Deep — sync them and you risk Deep on machine A consuming a memory
|
|
559
|
+
file that machine B has just modified.
|
|
560
|
+
|
|
561
|
+
## What the wiki is not
|
|
562
|
+
|
|
563
|
+
**Not your raw notes.** Your Obsidian vault outside the wiki subfolder
|
|
564
|
+
is yours alone. somora reads it (auto-injection sees `source: 'vault'`
|
|
565
|
+
hits) but never writes to it. Deep won't promote vault content into the
|
|
566
|
+
wiki.
|
|
567
|
+
|
|
568
|
+
**Not a chat log.** Daily-log-shaped memory files are routinely skipped
|
|
569
|
+
by Deep ("transient task list, scratchpad, or daily log"). The wiki
|
|
570
|
+
captures stable knowledge, not session transcripts.
|
|
571
|
+
|
|
572
|
+
**Not auto-fixed beyond Deep + Lucid.** Lucid surfaces objective
|
|
573
|
+
issues; you walk them with an agent in a `dream_review` loop and the
|
|
574
|
+
agent writes the fixes after you OK each step. If you want bigger
|
|
575
|
+
restructuring (split a page in two, move between subfolders), do it
|
|
576
|
+
manually in Obsidian — Lucid intentionally stays out of structural
|
|
577
|
+
changes.
|
|
578
|
+
|
|
579
|
+
## See also
|
|
580
|
+
|
|
581
|
+
- [dream-phases.md](dream-phases.md) — REM/Deep/Lucid mechanics
|
|
582
|
+
- [memory.md](memory.md) — the per-agent memory inbox
|
|
583
|
+
- [agents.md](agents.md) — per-agent config including `participate_in_wiki`
|