somora 2026.1001.4 → 2026.1007.2

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 (123) hide show
  1. package/README.md +31 -24
  2. package/config.example.yaml +37 -1
  3. package/docs/agents.md +714 -584
  4. package/docs/api.md +2327 -2546
  5. package/docs/browser.md +450 -265
  6. package/docs/builder.md +408 -282
  7. package/docs/cache-strategy.md +249 -301
  8. package/docs/compaction.md +378 -232
  9. package/docs/display.md +363 -130
  10. package/docs/dream-phases.md +598 -789
  11. package/docs/files.md +509 -333
  12. package/docs/imagegen.md +421 -302
  13. package/docs/images/somora-hero.png +0 -0
  14. package/docs/index.md +139 -174
  15. package/docs/lsp.md +142 -60
  16. package/docs/mcp.md +365 -273
  17. package/docs/memory.md +315 -356
  18. package/docs/mobile.md +283 -282
  19. package/docs/models.md +440 -197
  20. package/docs/projects.md +297 -316
  21. package/docs/realtime-voice.md +358 -234
  22. package/docs/resources.md +268 -176
  23. package/docs/sampling.md +141 -78
  24. package/docs/security.md +413 -169
  25. package/docs/sentinel.md +268 -208
  26. package/docs/setup.md +786 -1115
  27. package/docs/skills.md +415 -430
  28. package/docs/team.md +268 -143
  29. package/docs/thinking.md +415 -387
  30. package/docs/tmux.md +384 -334
  31. package/docs/tools.md +492 -109
  32. package/docs/videogen.md +319 -146
  33. package/docs/voice.md +335 -220
  34. package/docs/web.md +633 -835
  35. package/docs/wiki.md +442 -482
  36. package/package.json +2 -1
  37. package/src/attachments/store.ts +19 -1
  38. package/src/browser/session.ts +2 -2
  39. package/src/cli/auth.ts +22 -0
  40. package/src/cli/banner.ts +56 -0
  41. package/src/cli/claude-bin.ts +48 -0
  42. package/src/cli/config.ts +47 -0
  43. package/src/cli/server-call.ts +65 -0
  44. package/src/cli/setup.ts +26 -8
  45. package/src/cli/somora.ts +36 -4
  46. package/src/cli/team.ts +13 -6
  47. package/src/cli/tui/api.ts +44 -2
  48. package/src/cli/tui/app.tsx +77 -8
  49. package/src/cli/tui/commands.ts +111 -14
  50. package/src/cli/tui/header.tsx +20 -0
  51. package/src/cli/tui/stream.ts +3 -0
  52. package/src/cli/tui/turn-views.tsx +22 -0
  53. package/src/cli/tui/types.ts +14 -3
  54. package/src/compaction/summarize.ts +12 -3
  55. package/src/compaction/template.ts +15 -0
  56. package/src/compaction/types.ts +3 -0
  57. package/src/config/loader.ts +75 -10
  58. package/src/config/types.ts +59 -20
  59. package/src/dream/deep-llm.ts +83 -3
  60. package/src/dream/deep-runner.ts +8 -2
  61. package/src/dream/deep-worker.ts +1 -0
  62. package/src/dream/lucid-runner.ts +7 -3
  63. package/src/dream/lucid-types.ts +3 -0
  64. package/src/dream/rem-extract.ts +99 -69
  65. package/src/dream/worker-model.ts +31 -0
  66. package/src/engine/a2a.ts +1 -1
  67. package/src/engine/claude-cli.ts +136 -4
  68. package/src/engine/codex-cli.ts +74 -0
  69. package/src/engine/engine-meta-labels.ts +2 -0
  70. package/src/engine/openai-compatible.ts +142 -29
  71. package/src/engine/types.ts +7 -0
  72. package/src/imagegen/generate.ts +30 -5
  73. package/src/imagegen/types.ts +6 -0
  74. package/src/media/capabilities.ts +8 -0
  75. package/src/memory/inject.ts +66 -7
  76. package/src/multimodal/blocks.ts +14 -0
  77. package/src/multimodal/load.ts +21 -2
  78. package/src/multimodal/model-image.ts +127 -0
  79. package/src/persona/loader.ts +2 -2
  80. package/src/server/index.ts +275 -62
  81. package/src/server/restart-intent.ts +138 -0
  82. package/src/server/restart-reconcile.ts +6 -2
  83. package/src/server/run-turn.ts +66 -17
  84. package/src/server/session-compact.ts +138 -0
  85. package/src/server/thinking-resolve.ts +30 -0
  86. package/src/server/turn-origin-kind.ts +2 -2
  87. package/src/ssh/exec.ts +55 -22
  88. package/src/ssh/known-hosts.ts +17 -2
  89. package/src/ssh/pool.ts +7 -1
  90. package/src/storage/sessions.ts +40 -15
  91. package/src/tools/dream/tools.ts +2 -2
  92. package/src/tools/exec/tools.ts +19 -2
  93. package/src/tools/file/analyze.ts +46 -7
  94. package/src/tools/file/remote.ts +31 -10
  95. package/src/tools/file/tools.ts +86 -19
  96. package/src/tools/image/tools.ts +6 -0
  97. package/src/tools/registry.ts +14 -0
  98. package/src/types/events.ts +25 -4
  99. package/src/types/turn-origin.ts +6 -2
  100. package/web/dist/apple-touch-icon.png +0 -0
  101. package/web/dist/assets/{index-CrkkIfd9.js → index-40x__Izy.js} +168 -163
  102. package/web/dist/assets/index-40x__Izy.js.map +1 -0
  103. package/web/dist/assets/index-CZFgQRsq.css +32 -0
  104. package/web/dist/favicon-48.png +0 -0
  105. package/web/dist/favicon.ico +0 -0
  106. package/web/dist/favicon.svg +1 -8
  107. package/web/dist/index.html +6 -2
  108. package/web-mobile/dist/apple-touch-icon.png +0 -0
  109. package/web-mobile/dist/assets/index-CxILeHfe.js +88 -0
  110. package/web-mobile/dist/assets/index-CxILeHfe.js.map +1 -0
  111. package/web-mobile/dist/assets/index-Cyr13VGR.css +1 -0
  112. package/web-mobile/dist/favicon-48.png +0 -0
  113. package/web-mobile/dist/favicon.ico +0 -0
  114. package/web-mobile/dist/favicon.svg +1 -8
  115. package/web-mobile/dist/icon-192.png +0 -0
  116. package/web-mobile/dist/icon-512.png +0 -0
  117. package/web-mobile/dist/index.html +5 -3
  118. package/web-mobile/dist/manifest.webmanifest +2 -2
  119. package/web/dist/assets/index-BA5mmiV0.css +0 -32
  120. package/web/dist/assets/index-CrkkIfd9.js.map +0 -1
  121. package/web-mobile/dist/assets/index-BqKt7IMx.css +0 -1
  122. package/web-mobile/dist/assets/index-X_vRr6cd.js +0 -88
  123. package/web-mobile/dist/assets/index-X_vRr6cd.js.map +0 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="docs/images/somora-hero.png" alt="somora — agent runtime. Run. Rest. Dream. Agents that dream of what they did and never forget." />
2
+ <img src="docs/images/somora-hero.png" alt="somora.ai — Build your own AI team. Local-first agents that never forget." />
3
3
  </p>
4
4
 
5
5
  # somora 🐨
@@ -11,9 +11,19 @@
11
11
  > turn what they learn into a shared long-term wiki while they sleep.
12
12
  > Run. Rest. Dream.
13
13
 
14
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
15
- [![Status: active dev](https://img.shields.io/badge/status-active%20dev-green.svg)](#status)
16
- [![Node ≥22](https://img.shields.io/badge/node-%E2%89%A522-brightgreen.svg)](#requirements)
14
+ <p align="center">
15
+ <a href="https://somora.ai"><img src="https://img.shields.io/badge/Website-2ea44f?style=for-the-badge&logo=googlechrome&logoColor=white" alt="Website: somora.ai" /></a>
16
+ <a href="https://docs.somora.ai"><img src="https://img.shields.io/badge/Docs-0a7ea4?style=for-the-badge&logo=readthedocs&logoColor=white" alt="Documentation: docs.somora.ai" /></a>
17
+ <a href="https://www.npmjs.com/package/somora"><img src="https://img.shields.io/npm/v/somora?style=for-the-badge&logo=npm&label=npm&color=cb3837" alt="npm: somora" /></a>
18
+ <a href="https://somora.ai/discord"><img src="https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord" /></a>
19
+ <a href="https://x.com/somora_ai"><img src="https://img.shields.io/badge/@somora__ai-000000?style=for-the-badge&logo=x&logoColor=white" alt="X: @somora_ai" /></a>
20
+ </p>
21
+
22
+ <p align="center">
23
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
24
+ <a href="#status"><img src="https://img.shields.io/badge/status-active%20dev-green.svg" alt="Status: active development" /></a>
25
+ <a href="#requirements"><img src="https://img.shields.io/badge/node-%E2%89%A522.13-brightgreen.svg" alt="Node 22.13 or newer" /></a>
26
+ </p>
17
27
 
18
28
  ## Install
19
29
 
@@ -79,8 +89,9 @@ A small server you run on your machine that hosts your agents. You chat
79
89
  with them from the terminal, the browser, or your phone; they remember
80
90
  things across sessions; they use the same typed tools — memory, files
81
91
  (numbered reads, tolerant patches, filtered search), web, shell, tmux,
82
- attachments, sub-agents — regardless of which LLM you point them at. Everything an agent is asked to do — a question from you, a
83
- question from another agent, a sub-agent, a scheduled trigger, a voice
92
+ attachments, sub-agents — regardless of which LLM you point them at.
93
+ Everything an agent is asked to do — a question from you, a question
94
+ from another agent, a sub-agent, a scheduled trigger, a voice
84
95
  call — goes through one queue per session that you can see and take back
85
96
  from in every client.
86
97
 
@@ -99,7 +110,7 @@ one you give a repository to.
99
110
  | **Memory** | Notices facts, dreams them into notes and the wiki | Reads memory, never writes it; does not dream |
100
111
  | **Works in** | Its workspace | The pinned project's folder, and only there |
101
112
  | **Window** | Chat | Chat plus a task panel: mode, plan → Go, tasks, questions, running time |
102
- | **Made how** | `somora agent create`, or an agent creates one | The same, with `kind: builder` — fixed for life |
113
+ | **Made how** | `somora setup agent`, or a folder with an `AGENTS.md` and an `agent.yaml` | A folder whose `agent.yaml` says `kind: builder` — fixed for life |
103
114
 
104
115
  You can talk to a builder directly — describe the project, let it plan,
105
116
  press Go — or let a chat agent hand it the order in one call and be
@@ -131,18 +142,13 @@ On top of chat and memory, each optional and off until configured:
131
142
  that wake an agent on a schedule ([docs/sentinel.md](docs/sentinel.md)).
132
143
  - **External MCP servers** — one config entry, all engines see the tools,
133
144
  gateable per agent ([docs/mcp.md](docs/mcp.md)).
134
- - **Builders** — agents of a second kind that are coding harnesses: a
135
- short coding tool set, harness rules instead of a persona, long turns,
136
- a task panel with the plan, the task list and the questions they ask
137
- you. Describe a project, let the builder plan, press Go — or let
138
- another agent hand over the order in one call and be woken with the
139
- report; one builder per folder at a time, and the hand-over procedure
140
- ships as a skill ([docs/builder.md](docs/builder.md)). With a
141
- language server installed, every write comes back with the compiler's
142
- errors for the file ([docs/lsp.md](docs/lsp.md)).
145
+ - **Language servers** — with one installed, every file a builder
146
+ writes comes back with the compiler's errors for that file, so it
147
+ fixes them in the same step ([docs/lsp.md](docs/lsp.md)).
143
148
  - **Steering** — type into a running turn instead of behind it: the
144
- model reads your message at its next step and changes course, on every
145
- engine ([docs/api.md → Steering](docs/api.md#steering)).
149
+ model reads your message at its next step and changes course. Works on
150
+ the Claude, Codex and OpenAI-compatible engines; on Grok the message
151
+ waits for the next turn ([docs/api.md → Steering](docs/api.md#steering)).
146
152
 
147
153
  ## Requirements
148
154
 
@@ -152,9 +158,9 @@ Hard:
152
158
  older Node every `somora` command stops with the upgrade steps.
153
159
  - **tmux** — for the `tmux` tool (long-lived terminal sessions for agents)
154
160
  and the web tmux app.
155
- - **At least one LLM backend:** the Claude Code binary (Claude
156
- subscription, engine `claude-cli`); a ChatGPT subscription (engine
157
- `codex-cli` — Codex is bundled, `somora codex login`); the Grok Build CLI
161
+ - **At least one LLM backend:** a Claude subscription (engine
162
+ `claude-cli` — Claude Code is bundled, `somora auth login`); a ChatGPT
163
+ subscription (engine `codex-cli` — Codex is bundled, `somora codex login`); the Grok Build CLI
158
164
  (SuperGrok/Premium, engine `grok-cli`); or any OpenAI-compatible HTTP
159
165
  server (Ollama, LM Studio, vLLM, oMLX, OpenRouter, …).
160
166
 
@@ -259,7 +265,7 @@ sudo apt install tmux ripgrep build-essential # Debian/Ubuntu
259
265
  npm install -g somora
260
266
 
261
267
  # 3. Log in to at least one LLM backend (pick one or more)
262
- curl -fsSL https://claude.ai/install.sh | bash && claude auth login # Claude subscription
268
+ somora auth login # Claude subscription; Claude Code is bundled
263
269
  somora codex login # ChatGPT subscription; Codex is bundled
264
270
  # local models: run Ollama / LM Studio / oMLX and add the endpoint to
265
271
  # ~/.somora/config.yaml after step 4
@@ -351,7 +357,7 @@ Three first-party clients, all hitting the same local server:
351
357
  |---|---|---|
352
358
  | **TUI** | `somora tui` | Terminal multi-agent chat with full keyboard control, the session's queue (`/queue`), memory and tool detail toggles. |
353
359
  | **Web** | `https://<host>.<tailnet>.ts.net:18737/web/` | A browser desktop: one window per agent, drag-and-drop attachments and screenshots, tmux app and shell terminal, Wiki Explorer with link graph, Media gallery, Sessions browser, the agent's Chromium window, server log, Abilities matrix (which tools and skills each agent may use), Team and Agent windows, a queue badge per session (what runs, what waits, what is arriving — take back or stop from there), dictation and spoken replies, and a voice window for a live call. HTTPS required; LAN-trust, no auth. [docs/web.md](docs/web.md) |
354
- | **Mobile (PWA)** | `…:18737/mobile/`, then "Add to Home Screen" | The phone app: avatar row to switch agent, one chat per agent, the same queue sheet, voice input and spoken replies, photo/PDF attachments via the native picker. [docs/mobile.md](docs/mobile.md) |
360
+ | **Mobile (PWA)** | `…:18737/mobile/`, then "Add to Home Screen" | The phone app: avatar row to switch agent, a sheet in the header to switch session and model or restore an archived session, the same queue sheet, voice input and spoken replies, photo/PDF attachments via the native picker. [docs/mobile.md](docs/mobile.md) |
355
361
 
356
362
  Anything else can talk to the server the same way the clients do:
357
363
  [docs/api.md](docs/api.md) is the HTTP + SSE + WebSocket reference.
@@ -359,7 +365,8 @@ Anything else can talk to the server the same way the clients do:
359
365
  ## Documentation
360
366
 
361
367
  Start at [docs/index.md](docs/index.md): what somora is, which page to read
362
- for which goal, and every concept in one sentence.
368
+ for which goal, and every concept in one sentence. The same pages, rendered
369
+ and searchable: [docs.somora.ai](https://docs.somora.ai).
363
370
 
364
371
  - **Get running:** [setup](docs/setup.md) · [models](docs/models.md) · [agents](docs/agents.md) · [team](docs/team.md) · [security](docs/security.md)
365
372
  - **Memory and knowledge:** [memory](docs/memory.md) · [wiki](docs/wiki.md) · [dream phases](docs/dream-phases.md) · [compaction](docs/compaction.md) · [cache strategy](docs/cache-strategy.md)
@@ -27,6 +27,14 @@ server:
27
27
  # systemd unit does NOT — the update rebakes the unit and drops it).
28
28
  host: 127.0.0.1
29
29
  port: 18737
30
+ # Who is woken after a restart to check the outcome and carry on:
31
+ # requested (default) — the session that asked for the restart
32
+ # (`somora server restart` / `somora update` run by
33
+ # an agent wait for the end of its turn) or that
34
+ # visibly restarted the server from its own turn
35
+ # all — also every other turn the restart cut
36
+ # off — nobody; cut turns are only marked
37
+ # resumeAfterRestart: requested
30
38
  # HTTPS (HTTP/2). `somora setup access` writes this block for Tailscale;
31
39
  # by hand see docs/setup.md → HTTPS. `renew: tailscale` lets the server
32
40
  # renew the certificate itself and load it without a restart.
@@ -102,6 +110,11 @@ providers:
102
110
  engine: openai-compatible
103
111
  baseUrl: http://localhost:11434/v1
104
112
  apiKey: lm-studio
113
+ # After a pause this long, earlier memory blocks leave the replayed
114
+ # history (docs/memory.md — "Old blocks after a pause"). Default 60,
115
+ # about when a paid provider's cache has expired; a server of your
116
+ # own can use less.
117
+ # dropMemoryBlocksAfterIdleMinutes: 10
105
118
  models:
106
119
  - id: gemma-4-31b-it-8bit
107
120
  alias: gemma4big
@@ -111,6 +124,17 @@ providers:
111
124
  alias: gemma4small
112
125
  contextWindow: 131072
113
126
  capabilities: [text, image]
127
+ # A reasoning model: its words for the levels, and the level used
128
+ # when neither session nor agent sets one (docs/models.md —
129
+ # "When no level is set"). Without `default` nothing is sent and
130
+ # the model decides.
131
+ # - id: qwen3.8-flash-next
132
+ # alias: qwen
133
+ # contextWindow: 524288
134
+ # capabilities: [text, image, reasoning]
135
+ # reasoning:
136
+ # levels: { "off": low, high: xhigh }
137
+ # default: high
114
138
 
115
139
  # Same engine, different host — totally fine.
116
140
  # ollama:
@@ -132,6 +156,7 @@ providers:
132
156
  # engine: openai-compatible
133
157
  # baseUrl: https://openrouter.ai/api/v1
134
158
  # apiKey: <YOUR_OPENROUTER_KEY>
159
+ # dropMemoryBlocksAfterIdleMinutes: 60 # the default, shown for completeness
135
160
  # models:
136
161
  # - id: anthropic/claude-haiku-4.5
137
162
  # alias: orhaiku
@@ -146,6 +171,11 @@ providers:
146
171
  # contextWindow: 262144
147
172
  # capabilities: [text]
148
173
 
174
+ # Attachments and images sent to a model (docs/files.md).
175
+ # attachments:
176
+ # maxImageBytes: 5242880 # largest image sent, after scaling
177
+ # maxImageEdge: 2048 # longer side in pixels; larger images are scaled down first, 0 = off
178
+
149
179
  # Vision / multimodal worker (Phase Y). Optional. When set, the
150
180
  # `analyze_file` tool dispatches images and PDFs to the worker model
151
181
  # and returns its text analysis — useful when the active main model
@@ -164,6 +194,10 @@ providers:
164
194
  # when the local worker sits on a GPU box that runs one profile at a
165
195
  # time: without a chain, a profile switch takes analyze_file down for
166
196
  # every agent at once, and quietly.
197
+ #
198
+ # PDFs take the same chain: a worker with `pdf` gets the document, one
199
+ # with only `image` the first 20 pages as images. `pdfWorker` is only
200
+ # needed when PDFs should go to a model that reads the document itself.
167
201
  # vision:
168
202
  # worker: openrouter/anthropic/claude-haiku-4-5 # single model, still valid
169
203
  # pdfWorker: openrouter/anthropic/claude-sonnet-4-6 # optional override for PDFs
@@ -714,6 +748,7 @@ providers:
714
748
  # historyWeightEmpty: 0.8 # … when it has none ("you should know that, right?")
715
749
  # historyTurnChars: 800 # chars taken from each history turn
716
750
  # shortQueryBm25Weight: 0.5 # BM25 weight for 1–2-word messages (null = hybrid.bm25Weight)
751
+ # skipRepeats: true # a section the model still has in context is not injected again
717
752
  # hybrid:
718
753
  # vectorWeight: 0.7 # weight of vector similarity in fused score
719
754
  # bm25Weight: 0.3 # weight of BM25/FTS5 in fused score
@@ -754,11 +789,12 @@ providers:
754
789
  # enabled: true
755
790
  # intervalHours: 12
756
791
  # model: opus # worker model ref (alias or provider/model)
792
+ # fallback: [gpt56] # backup(s) when `model` is unreachable — best on another provider
757
793
  # lucid:
758
794
  # enabled: true
759
795
  # intervalDays: 7
760
796
  # model: opus
761
- # requireApproval: true
797
+ # fallback: [gpt56]
762
798
 
763
799
  # Workspace — default cwd for file_* tools. NOT a sandbox: agents can
764
800
  # also write outside (their own persona files, the global config).