somora 2026.1012.11 → 2026.1017.3
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/README.md +31 -27
- package/config.example.yaml +138 -45
- package/docs/a2a.md +577 -0
- package/docs/acp.md +219 -0
- package/docs/agents.md +128 -19
- package/docs/api.md +385 -25
- package/docs/browser.md +1 -1
- package/docs/builder.md +6 -5
- package/docs/decisions.md +24 -1
- package/docs/display.md +6 -1
- package/docs/dream-phases.md +92 -27
- package/docs/external-agents.md +255 -0
- package/docs/files.md +8 -3
- package/docs/index.md +13 -3
- package/docs/mobile.md +2 -1
- package/docs/models.md +22 -12
- package/docs/resources.md +2 -0
- package/docs/security.md +60 -3
- package/docs/sentinel.md +394 -17
- package/docs/setup.md +27 -14
- package/docs/skills.md +1 -1
- package/docs/team.md +20 -0
- package/docs/themes/ocean/theme.json +53 -0
- package/docs/tools.md +60 -14
- package/docs/videogen.md +1 -1
- package/docs/web.md +151 -10
- package/docs/wiki.md +8 -7
- package/package.json +4 -2
- package/src/a2a/client.ts +439 -0
- package/src/a2a/files.ts +254 -0
- package/src/a2a/limits.ts +128 -0
- package/src/a2a/protocol.ts +153 -0
- package/src/a2a/server.ts +783 -0
- package/src/acp/profiles.ts +78 -0
- package/src/acp/somora-agent.ts +431 -0
- package/src/acp/translate.ts +527 -0
- package/src/browser/service.ts +10 -0
- package/src/browser/snapshot.ts +0 -7
- package/src/cli/acp.ts +67 -0
- package/src/cli/agent.ts +57 -0
- package/src/cli/{auth.ts → claude.ts} +69 -17
- package/src/cli/codex.ts +18 -4
- package/src/cli/config.ts +32 -2
- package/src/cli/server-base.ts +24 -0
- package/src/cli/setup.ts +39 -15
- package/src/cli/somora.ts +31 -10
- package/src/cli/team.ts +18 -5
- package/src/cli/tui/api.ts +45 -10
- package/src/cli/tui/app.tsx +79 -1
- package/src/cli/tui/commands.ts +10 -0
- package/src/cli/tui/header.tsx +10 -1
- package/src/cli/tui/index.tsx +3 -23
- package/src/cli/tui/stream.ts +21 -0
- package/src/cli/tui/turn-views.tsx +5 -0
- package/src/cli/tui/types.ts +29 -1
- package/src/compaction/summarize.ts +0 -18
- package/src/config/loader.ts +51 -55
- package/src/config/reload.ts +22 -4
- package/src/config/types.ts +239 -2
- package/src/decisions/input.ts +61 -0
- package/src/dream/deep-prompts.ts +0 -3
- package/src/dream/deep-runner.ts +1 -1
- package/src/dream/dreams.ts +50 -0
- package/src/dream/lucid-prompt.ts +0 -3
- package/src/dream/rem-extract.ts +1 -1
- package/src/dream/rem-reset-run.ts +2 -1
- package/src/dream/rem-runner.ts +3 -2
- package/src/dream/rem-worker.ts +53 -6
- package/src/engine/a2a-external.ts +223 -0
- package/src/engine/acp-external.ts +188 -0
- package/src/engine/claude-cli.ts +2 -2
- package/src/engine/codex-home.ts +24 -1
- package/src/engine/engine-meta-labels.ts +14 -0
- package/src/engine/model-availability.ts +0 -4
- package/src/engine/openai-compatible.ts +22 -0
- package/src/external/badge.ts +28 -0
- package/src/external/connection.ts +395 -0
- package/src/external/registry.ts +72 -0
- package/src/external/transport.ts +138 -0
- package/src/external/unprompted.ts +152 -0
- package/src/mcp/server.ts +19 -9
- package/src/memory/registry.ts +18 -0
- package/src/memory/storage.ts +0 -6
- package/src/multimodal/blocks.ts +4 -32
- package/src/multimodal/pdf-render.ts +39 -9
- package/src/multimodal/user-content.ts +12 -10
- package/src/persona/a2a-store.ts +33 -0
- package/src/persona/dreams-migrate.ts +149 -0
- package/src/persona/dreams-store.ts +44 -0
- package/src/persona/loader.ts +71 -16
- package/src/persona/rename-lock.ts +38 -0
- package/src/persona/rename.ts +710 -0
- package/src/persona/yaml-switch.ts +39 -0
- package/src/projects/store.ts +0 -5
- package/src/sentinel/check-create.ts +169 -0
- package/src/sentinel/check-dry-run.ts +147 -0
- package/src/sentinel/check-judge.ts +92 -0
- package/src/sentinel/check-logic.ts +208 -0
- package/src/sentinel/check-loop.ts +260 -0
- package/src/sentinel/check-runner.ts +303 -0
- package/src/sentinel/check-store.ts +141 -0
- package/src/sentinel/check-view.ts +55 -0
- package/src/sentinel/dispatcher.ts +45 -2
- package/src/sentinel/redact.ts +29 -0
- package/src/sentinel/scheduler.ts +47 -32
- package/src/sentinel/store.ts +5 -1
- package/src/sentinel/types.ts +97 -4
- package/src/server/activity-stream.ts +4 -0
- package/src/server/ask-attended.ts +36 -0
- package/src/server/ask-wait-graph.ts +0 -11
- package/src/server/builder-questions.ts +30 -0
- package/src/server/builder-session.ts +0 -10
- package/src/server/chat-aborts.ts +11 -3
- package/src/server/claude-config-dir.ts +1 -1
- package/src/server/claude-credential-sync.ts +3 -3
- package/src/server/inbox-sources.ts +42 -2
- package/src/server/inbox.ts +1 -1
- package/src/server/index.ts +351 -6472
- package/src/server/prompt-assembly.ts +1 -1
- package/src/server/rename-guard.ts +15 -0
- package/src/server/routes/abilities.ts +275 -0
- package/src/server/routes/agents.ts +225 -0
- package/src/server/routes/attachments.ts +119 -0
- package/src/server/routes/auth.ts +113 -0
- package/src/server/routes/browser.ts +301 -0
- package/src/server/routes/builder.ts +365 -0
- package/src/server/routes/chat.ts +1121 -0
- package/src/server/routes/decisions.ts +90 -0
- package/src/server/routes/dream.ts +204 -0
- package/src/server/routes/external.ts +121 -0
- package/src/server/routes/files.ts +234 -0
- package/src/server/routes/health.ts +103 -0
- package/src/server/routes/images.ts +266 -0
- package/src/server/routes/inbox.ts +47 -0
- package/src/server/routes/logs.ts +45 -0
- package/src/server/routes/mcp.ts +66 -0
- package/src/server/routes/media.ts +128 -0
- package/src/server/routes/memory.ts +109 -0
- package/src/server/routes/models.ts +103 -0
- package/src/server/routes/projects.ts +359 -0
- package/src/server/routes/sentinel.ts +116 -0
- package/src/server/routes/server.ts +282 -0
- package/src/server/routes/sessions.ts +693 -0
- package/src/server/routes/spawn.ts +313 -0
- package/src/server/routes/team.ts +125 -0
- package/src/server/routes/terminals.ts +275 -0
- package/src/server/routes/themes.ts +47 -0
- package/src/server/routes/video.ts +87 -0
- package/src/server/routes/voice.ts +587 -0
- package/src/server/routes/wiki.ts +344 -0
- package/src/server/run-external-turn.ts +244 -0
- package/src/server/run-turn.ts +28 -4
- package/src/server/server-state.ts +21 -0
- package/src/server/session-queue.ts +3 -0
- package/src/server/session-workdir.ts +0 -12
- package/src/server/start-turn.ts +1 -5
- package/src/server/themes.ts +432 -0
- package/src/server/turn-origin-kind.ts +3 -1
- package/src/server/workspace.ts +1 -1
- package/src/setup/config-edit.ts +2 -1
- package/src/setup/presets.ts +6 -6
- package/src/skills/env-scope.ts +9 -6
- package/src/ssh/pool.ts +33 -0
- package/src/storage/sessions.ts +9 -1
- package/src/team/render.ts +48 -8
- package/src/team/resolve.ts +3 -2
- package/src/team/store.ts +27 -3
- package/src/team/types.ts +17 -4
- package/src/testing/own-home.mts +16 -0
- package/src/tmux/attention-watcher.ts +2 -9
- package/src/tools/agents/ask-cancel.ts +14 -1
- package/src/tools/agents/ask.ts +27 -4
- package/src/tools/agents/spawn.ts +17 -3
- package/src/tools/browser/ops.ts +8 -0
- package/src/tools/browser/tools.ts +2 -2
- package/src/tools/builder/tools.ts +6 -3
- package/src/tools/decision/tools.ts +12 -43
- package/src/tools/exec/allowlist.ts +1 -3
- package/src/tools/exec/blacklist.ts +0 -9
- package/src/tools/exec/local.ts +1 -1
- package/src/tools/file/analyze.ts +3 -3
- package/src/tools/file/local.ts +4 -0
- package/src/tools/file/tools.ts +6 -6
- package/src/tools/file/vault-lock.ts +38 -0
- package/src/tools/gating.ts +100 -6
- package/src/tools/registry.ts +11 -0
- package/src/tools/resources/visibility.ts +2 -0
- package/src/tools/sentinel/tools.ts +338 -61
- package/src/tools/types.ts +4 -0
- package/src/tools/web/fetch.ts +3 -3
- package/src/types/events.ts +11 -4
- package/src/types/turn-origin.ts +4 -0
- package/src/videogen/dialects.ts +2 -5
- package/src/videogen/generate.ts +1 -10
- package/src/videogen/jobs.ts +1 -25
- package/src/videogen/media.ts +1 -2
- package/src/videogen/runner.ts +0 -11
- package/web/dist/assets/index-C2J8Fvlt.css +1 -0
- package/web/dist/assets/index-C2UYh7Af.js +68 -0
- package/web/dist/assets/index-C2UYh7Af.js.map +1 -0
- package/web/dist/index.html +2 -2
- package/web-mobile/dist/assets/index-BUnNxF-t.css +1 -0
- package/web-mobile/dist/assets/{index-CThedP51.js → index-CqdlMkSS.js} +30 -30
- package/web-mobile/dist/assets/index-CqdlMkSS.js.map +1 -0
- package/web-mobile/dist/index.html +2 -2
- package/src/cli/tui/dream-glyphs.ts +0 -22
- package/web/dist/assets/index-B29CLSq3.js +0 -68
- package/web/dist/assets/index-B29CLSq3.js.map +0 -1
- package/web/dist/assets/index-Ca4V4IrW.css +0 -1
- package/web-mobile/dist/assets/index-CThedP51.js.map +0 -1
- package/web-mobile/dist/assets/index-Cl_8jQ12.css +0 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
23
23
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
|
|
24
|
-
<a href="#
|
|
24
|
+
<a href="#what-works-where"><img src="https://img.shields.io/badge/status-active%20dev-green.svg" alt="Status: active development" /></a>
|
|
25
25
|
<a href="#requirements"><img src="https://img.shields.io/badge/node-%E2%89%A522.22-brightgreen.svg" alt="Node 22.22 or newer" /></a>
|
|
26
26
|
</p>
|
|
27
27
|
|
|
@@ -44,23 +44,22 @@ models, your first agent, memory and HTTPS — details under
|
|
|
44
44
|
|
|
45
45
|
## See it
|
|
46
46
|
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</picture>
|
|
47
|
+
<a href="docs/images/somora-web-dark-2026-10-12.png"><img src="docs/images/somora-web-dark-2026-10-12.png" alt="somora web client, dark theme: browser desktop with agent windows, two tmux terminals, the agent's browser, a builder plan and the taskbar" /></a>
|
|
48
|
+
|
|
49
|
+
<a href="docs/images/somora-web-light-2026-10-12.png"><img src="docs/images/somora-web-light-2026-10-12.png" alt="somora web client, light theme: the same desktop" /></a>
|
|
51
50
|
|
|
52
51
|
<table>
|
|
53
52
|
<tr>
|
|
54
53
|
<td width="66%" valign="top">
|
|
55
|
-
<img src="docs/images/somora-tui-2026-10-12.png" alt="somora TUI: the terminal client with its status line"
|
|
54
|
+
<a href="docs/images/somora-tui-2026-10-12.png"><img src="docs/images/somora-tui-2026-10-12.png" alt="somora TUI: the terminal client with its status line" /></a>
|
|
56
55
|
</td>
|
|
57
56
|
<td width="34%" valign="top">
|
|
58
|
-
<img src="docs/images/somora-mobile-2026-10-12.png" alt="somora mobile app: avatar row at the top, an agent's reply, attachment, microphone and send at the bottom"
|
|
57
|
+
<a href="docs/images/somora-mobile-2026-10-12.png"><img src="docs/images/somora-mobile-2026-10-12.png" alt="somora mobile app: avatar row at the top, an agent's reply, attachment, microphone and send at the bottom" /></a>
|
|
59
58
|
</td>
|
|
60
59
|
</tr>
|
|
61
60
|
</table>
|
|
62
61
|
|
|
63
|
-
Browser desktop
|
|
62
|
+
Browser desktop in dark and light, terminal, and installable phone app — all talking to the
|
|
64
63
|
same local server, the same agents, the same memory.
|
|
65
64
|
|
|
66
65
|
## Why somora
|
|
@@ -109,7 +108,7 @@ one you give a repository to.
|
|
|
109
108
|
| **What it is for** | Talking, thinking, remembering, orchestrating: the assistant you ask, the analyst, the coordinator | Building software in a repository: plan, edit, run, test, report |
|
|
110
109
|
| **Its prompt** | Its persona (`AGENTS.md`, `SOUL.md`, `USER.md`), your team, the wiki map, memory recall | Harness rules, an environment block, the repository's own `AGENTS.md`/`CLAUDE.md`; no persona, no memory recall |
|
|
111
110
|
| **Tools** | The whole programme, gated per agent | A short coding set: files, shell, task list, questions, helpers, colleagues, search |
|
|
112
|
-
| **Turns** | A few rounds; the loop stops at 30 tool calls | Hours; hundreds of rounds, compaction mid-turn, a task list you watch |
|
|
111
|
+
| **Turns** | A few rounds; on an OpenAI-compatible model the loop stops at 30 tool calls (the CLI engines run their own loop) | Hours; hundreds of rounds, compaction mid-turn, a task list you watch |
|
|
113
112
|
| **Memory** | Notices facts, dreams them into notes and the wiki | Reads memory, never writes it; does not dream |
|
|
114
113
|
| **Works in** | Its workspace | The pinned project's folder, and only there |
|
|
115
114
|
| **Window** | Chat | Chat plus a task panel: mode, plan → Go, tasks, questions, running time |
|
|
@@ -141,8 +140,17 @@ On top of chat and memory, each optional and off until configured:
|
|
|
141
140
|
dictation and spoken replies ([docs/voice.md](docs/voice.md)).
|
|
142
141
|
- **Projects** — bind a session to a real-world thing via a manifest of
|
|
143
142
|
pointers the agent sees in its prompt ([docs/projects.md](docs/projects.md)).
|
|
144
|
-
- **Sentinel** —
|
|
145
|
-
|
|
143
|
+
- **Sentinel** — triggers that wake an agent on a schedule (`at` /
|
|
144
|
+
`every` / `daily` / `weekly` / `cron`) or when a small check script sees
|
|
145
|
+
something happen; a decision model can judge what the script fetched,
|
|
146
|
+
such as "a new mail that needs an answer today"
|
|
147
|
+
([docs/sentinel.md](docs/sentinel.md)).
|
|
148
|
+
- **External agents** — bring an OpenClaw or Hermes agent into somora:
|
|
149
|
+
you chat with it in its own window, and your agents hand it work over
|
|
150
|
+
A2A, images and files included. Other systems reach your agents the
|
|
151
|
+
same way, and an editor talks to them through `somora acp`
|
|
152
|
+
([docs/external-agents.md](docs/external-agents.md),
|
|
153
|
+
[docs/a2a.md](docs/a2a.md), [docs/acp.md](docs/acp.md)).
|
|
146
154
|
- **External MCP servers** — one config entry, all engines see the tools,
|
|
147
155
|
gateable per agent ([docs/mcp.md](docs/mcp.md)).
|
|
148
156
|
- **Language servers** — with one installed, every file a builder
|
|
@@ -153,13 +161,14 @@ On top of chat and memory, each optional and off until configured:
|
|
|
153
161
|
every engine ([docs/api.md → Steering](docs/api.md#steering)).
|
|
154
162
|
- **Decision models** — agents ask a System One decision model (such as
|
|
155
163
|
a self-hosted Clef) typed yes/no, choice and score questions about text
|
|
156
|
-
or images, and get probabilities back
|
|
164
|
+
or images, and get probabilities back. Scripts and other programs ask
|
|
165
|
+
through `POST /decisions/evaluate` ([docs/decisions.md](docs/decisions.md)).
|
|
157
166
|
|
|
158
167
|
## Requirements
|
|
159
168
|
|
|
160
169
|
Hard:
|
|
161
170
|
|
|
162
|
-
- **Node ≥22.22.2** —
|
|
171
|
+
- **Node ≥22.22.2** — the memory database uses `better-sqlite3` with `sqlite-vec`, both prebuilt. On an
|
|
163
172
|
older Node every `somora` command stops with the upgrade steps.
|
|
164
173
|
- **macOS, or Linux with glibc ≥2.34** — Debian 12, Ubuntu 22.04, RHEL 9,
|
|
165
174
|
Fedora 35 or newer. The memory database ships prebuilt for these.
|
|
@@ -170,7 +179,7 @@ Hard:
|
|
|
170
179
|
- **tmux** — for the `tmux` tool (long-lived terminal sessions for agents)
|
|
171
180
|
and the web tmux app.
|
|
172
181
|
- **At least one LLM backend:** a Claude subscription (engine
|
|
173
|
-
`claude-cli` — Claude Code is bundled, `somora
|
|
182
|
+
`claude-cli` — Claude Code is bundled, `somora claude login`); a ChatGPT
|
|
174
183
|
subscription (engine `codex-cli` — Codex is bundled, `somora codex login`); a SuperGrok or
|
|
175
184
|
Premium subscription (engine `grok-cli` — the Grok CLI is bundled, `somora grok login`); or any OpenAI-compatible HTTP
|
|
176
185
|
server (Ollama, LM Studio, vLLM, oMLX, OpenRouter, …).
|
|
@@ -278,7 +287,7 @@ ONNXRUNTIME_NODE_INSTALL=skip npm install -g somora \
|
|
|
278
287
|
--allow-scripts=cpu-features,esbuild,fsevents,node-pty,onnxruntime-node,protobufjs,somora,ssh2
|
|
279
288
|
|
|
280
289
|
# 3. Log in to at least one LLM backend (pick one or more)
|
|
281
|
-
somora
|
|
290
|
+
somora claude login # Claude subscription; Claude Code is bundled
|
|
282
291
|
somora codex login # ChatGPT subscription; Codex is bundled
|
|
283
292
|
somora grok login # SuperGrok or Premium subscription; the Grok CLI is bundled
|
|
284
293
|
# local models: run Ollama / LM Studio / oMLX and add the endpoint to
|
|
@@ -298,11 +307,9 @@ arrange it in the **team** tile of the web client
|
|
|
298
307
|
HTTPS are in [docs/setup.md](docs/setup.md); hacking on somora itself in
|
|
299
308
|
its [contributor section](docs/setup.md#develop-from-a-checkout).
|
|
300
309
|
|
|
301
|
-
##
|
|
310
|
+
## What works where
|
|
302
311
|
|
|
303
|
-
|
|
304
|
-
wiki + dream system + web + tmux + mobile) is feature-complete and used
|
|
305
|
-
daily:
|
|
312
|
+
Every engine gets the same feature set:
|
|
306
313
|
|
|
307
314
|
| Capability | claude-cli | codex-cli | grok-cli | openai-compatible |
|
|
308
315
|
|---|:-:|:-:|:-:|:-:|
|
|
@@ -318,10 +325,7 @@ daily:
|
|
|
318
325
|
| Sub-agents, agent-to-agent questions, follow-ups | ✓ | ✓ | ✓ | ✓ |
|
|
319
326
|
| SSH-resource exec | ✓ | ✓ | ✓ | ✓ |
|
|
320
327
|
|
|
321
|
-
¹ Off until an `imageGen` / `videoGen` block exists
|
|
322
|
-
against a self-hosted OpenAI-shaped endpoint; the hosted providers
|
|
323
|
-
(OpenAI images/video, Google Veo) are implemented to their published
|
|
324
|
-
shapes but **not yet tested against a live account**.
|
|
328
|
+
¹ Off until an `imageGen` / `videoGen` block exists in `config.yaml`.
|
|
325
329
|
|
|
326
330
|
## Architecture at a glance
|
|
327
331
|
|
|
@@ -353,7 +357,7 @@ shapes but **not yet tested against a live account**.
|
|
|
353
357
|
│
|
|
354
358
|
├─ Dream system REM session → memory · Deep memory → wiki · Lucid wiki review
|
|
355
359
|
│
|
|
356
|
-
├─ Sentinel ~/.somora/sentinel/triggers.json — time-
|
|
360
|
+
├─ Sentinel ~/.somora/sentinel/triggers.json — time and check-script fires as agent turns
|
|
357
361
|
│
|
|
358
362
|
├─ Optional realtime voice call · Chromium per agent · image + video generation
|
|
359
363
|
│
|
|
@@ -368,7 +372,7 @@ Three first-party clients, all hitting the same local server:
|
|
|
368
372
|
| Client | Launch | What you get |
|
|
369
373
|
|---|---|---|
|
|
370
374
|
| **TUI** | `somora tui` | Terminal multi-agent chat with full keyboard control, the session's queue (`/queue`), memory and tool detail toggles. |
|
|
371
|
-
| **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, an inbox for updates and things that need you, a light or dark theme, 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
|
|
375
|
+
| **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, an inbox for updates and things that need you, a light or dark theme plus the bundled Ocean theme, or themes of your own (colours and wallpaper, [docs/web.md#themes](docs/web.md#themes)), 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 recommended (needed from other devices and for the microphone); sign in once with the server's key (`somora key link`). [docs/web.md](docs/web.md) |
|
|
372
376
|
| **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 with steering, the thinking level per session, voice input and spoken replies, photo/PDF attachments via the native picker. Signs in once by scanning the QR code from `somora key link`. [docs/mobile.md](docs/mobile.md) |
|
|
373
377
|
|
|
374
378
|
Anything else can talk to the server the same way the clients do, with
|
|
@@ -383,8 +387,8 @@ and searchable: [docs.somora.ai](https://docs.somora.ai).
|
|
|
383
387
|
|
|
384
388
|
- **Get running:** [setup](docs/setup.md) · [models](docs/models.md) · [agents](docs/agents.md) · [team](docs/team.md) · [security](docs/security.md)
|
|
385
389
|
- **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)
|
|
386
|
-
- **What agents can do:** [tools](docs/tools.md) · [builders](docs/builder.md) · [language servers](docs/lsp.md) · [files](docs/files.md) · [tmux](docs/tmux.md) · [resources](docs/resources.md) · [skills](docs/skills.md) · [MCP servers](docs/mcp.md) · [projects](docs/projects.md) · [sentinel](docs/sentinel.md) · [browser](docs/browser.md) · [image generation](docs/imagegen.md) · [video generation](docs/videogen.md) · [decision models](docs/decisions.md) · [image handling](docs/image-handling.md)
|
|
387
|
-
- **Clients and API:** [web](docs/web.md) · [mobile](docs/mobile.md) · [TUI display](docs/display.md) · [voice](docs/voice.md) · [realtime voice](docs/realtime-voice.md) · [API](docs/api.md)
|
|
390
|
+
- **What agents can do:** [tools](docs/tools.md) · [builders](docs/builder.md) · [language servers](docs/lsp.md) · [files](docs/files.md) · [tmux](docs/tmux.md) · [resources](docs/resources.md) · [skills](docs/skills.md) · [MCP servers](docs/mcp.md) · [projects](docs/projects.md) · [sentinel](docs/sentinel.md) · [browser](docs/browser.md) · [image generation](docs/imagegen.md) · [video generation](docs/videogen.md) · [decision models](docs/decisions.md) · [image handling](docs/image-handling.md) · [external agents](docs/external-agents.md) · [A2A](docs/a2a.md)
|
|
391
|
+
- **Clients and API:** [web](docs/web.md) · [mobile](docs/mobile.md) · [TUI display](docs/display.md) · [voice](docs/voice.md) · [realtime voice](docs/realtime-voice.md) · [editors (ACP)](docs/acp.md) · [API](docs/api.md)
|
|
388
392
|
- **Models in detail:** [thinking](docs/thinking.md) · [sampling](docs/sampling.md)
|
|
389
393
|
|
|
390
394
|
## Contributing
|
package/config.example.yaml
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
# 'anthropic', 'ollama', 'lmstudio', 'home-gpu', 'pi-edge', etc.
|
|
18
18
|
#
|
|
19
19
|
# Per-model 'alias' lets you reference a model by short nickname anywhere
|
|
20
|
-
# (
|
|
20
|
+
# (agent.yaml, /model in the clients). Aliases must be globally
|
|
21
21
|
# unique across the whole config — server refuses to start otherwise.
|
|
22
22
|
|
|
23
23
|
server:
|
|
@@ -72,14 +72,14 @@ providers:
|
|
|
72
72
|
alias: opus
|
|
73
73
|
contextWindow: 1000000
|
|
74
74
|
capabilities: [text, image, pdf, reasoning]
|
|
75
|
-
- id: claude-sonnet-5
|
|
75
|
+
- id: claude-sonnet-5-5
|
|
76
76
|
alias: sonnet
|
|
77
77
|
contextWindow: 1000000
|
|
78
78
|
capabilities: [text, image, pdf, reasoning]
|
|
79
|
-
- id: claude-haiku-
|
|
79
|
+
- id: claude-haiku-5-5
|
|
80
80
|
alias: haiku
|
|
81
|
-
contextWindow:
|
|
82
|
-
capabilities: [text, image, pdf]
|
|
81
|
+
contextWindow: 1000000
|
|
82
|
+
capabilities: [text, image, pdf, reasoning]
|
|
83
83
|
|
|
84
84
|
# OpenAI via the bundled Codex (ChatGPT Plus/Pro/Business
|
|
85
85
|
# subscription). Log in with `somora codex login`; an existing
|
|
@@ -90,18 +90,14 @@ providers:
|
|
|
90
90
|
openai:
|
|
91
91
|
engine: codex-cli
|
|
92
92
|
models:
|
|
93
|
-
- id: gpt-
|
|
94
|
-
alias:
|
|
95
|
-
contextWindow:
|
|
93
|
+
- id: gpt-6.1-sol
|
|
94
|
+
alias: sol
|
|
95
|
+
contextWindow: 258400 # the Codex session window, not the API one
|
|
96
|
+
capabilities: [text, image, pdf, reasoning]
|
|
97
|
+
- id: gpt-6-luna
|
|
98
|
+
alias: luna
|
|
99
|
+
contextWindow: 258400
|
|
96
100
|
capabilities: [text, image, pdf, reasoning]
|
|
97
|
-
- id: gpt-5.4-mini
|
|
98
|
-
alias: gpt54mini
|
|
99
|
-
contextWindow: 400000
|
|
100
|
-
capabilities: [text, reasoning]
|
|
101
|
-
- id: gpt-5.3-codex
|
|
102
|
-
alias: codex53
|
|
103
|
-
contextWindow: 400000
|
|
104
|
-
capabilities: [text, reasoning]
|
|
105
101
|
|
|
106
102
|
# xAI via the Grok CLI, bundled with somora. A SuperGrok or Premium
|
|
107
103
|
# subscription signs it in with `somora grok login`; no API key. Images
|
|
@@ -187,7 +183,7 @@ providers:
|
|
|
187
183
|
# maxImageBytes: 5242880 # largest image sent, after scaling
|
|
188
184
|
# maxImageEdge: 2048 # longer side in pixels; larger images are scaled down first, 0 = off
|
|
189
185
|
|
|
190
|
-
# Vision / multimodal worker
|
|
186
|
+
# Vision / multimodal worker. Optional. When set, the
|
|
191
187
|
# `analyze_file` tool dispatches images and PDFs to the worker model
|
|
192
188
|
# and returns its text analysis — useful when the active main model
|
|
193
189
|
# lacks `image` capability or when you want a token-cheap description
|
|
@@ -230,7 +226,7 @@ providers:
|
|
|
230
226
|
# attachment to such a model is described by the worker instead of
|
|
231
227
|
# refusing the turn.
|
|
232
228
|
|
|
233
|
-
# Speech-to-Text
|
|
229
|
+
# Speech-to-Text. Optional. When `enabled: true`, the
|
|
234
230
|
# web chat input grows a mic button next to send: click → record, click
|
|
235
231
|
# again → transcribe → text lands in the textarea ready to send. Audio
|
|
236
232
|
# is forwarded to an OpenAI-compatible STT endpoint
|
|
@@ -481,12 +477,8 @@ providers:
|
|
|
481
477
|
# input_video: { field: video_url, min: 1, max: 1, maxSeconds: 30 }
|
|
482
478
|
# character_image: { field: image_url, min: 1, max: 1 }
|
|
483
479
|
#
|
|
484
|
-
# #
|
|
485
|
-
# #
|
|
486
|
-
# # published shape (operation name instead of a job id, POST to poll,
|
|
487
|
-
# # result inside the poll response) so that adding Veo is a config
|
|
488
|
-
# # entry rather than a refactor. Do not assume it works until someone
|
|
489
|
-
# # has run it once.
|
|
480
|
+
# # Written from Google's published shape (operation name instead of a
|
|
481
|
+
# # job id, POST to poll, result inside the poll response).
|
|
490
482
|
# - name: veo
|
|
491
483
|
# provider: vertex
|
|
492
484
|
# model: veo-3
|
|
@@ -522,7 +514,7 @@ providers:
|
|
|
522
514
|
# - slug: firma2
|
|
523
515
|
# label: Firma Zwei
|
|
524
516
|
|
|
525
|
-
# Compaction tunables
|
|
517
|
+
# Compaction tunables. All optional — built-in defaults apply
|
|
526
518
|
# when omitted. SOMORA_COMPACTION_* env vars override these for ops/CI.
|
|
527
519
|
# compaction:
|
|
528
520
|
# triggerRatio: 0.8 # compact at 80% of the input budget (window minus the answer)
|
|
@@ -570,10 +562,17 @@ providers:
|
|
|
570
562
|
# Optional per agent: ~/.somora/agents/<name>/VOICE.md replaces the
|
|
571
563
|
# character derived from the persona; the honesty rules always stay.
|
|
572
564
|
|
|
573
|
-
#
|
|
574
|
-
#
|
|
575
|
-
#
|
|
576
|
-
#
|
|
565
|
+
# Sessions started as sub-agents (spawn_subagent) never get these tools,
|
|
566
|
+
# whatever persona and model: same forms as agent.yaml tools.deny (a name,
|
|
567
|
+
# toolset:<family>, prefix*), and they beat every allow. The default takes
|
|
568
|
+
# away agent_ask: a sub's answer reaches its parent on its own. With
|
|
569
|
+
# deny: [] a sub that also reports via agent_ask sends the parent's reply
|
|
570
|
+
# back to the parent as a follow-up (an echo). docs/agents.md.
|
|
571
|
+
# subagents:
|
|
572
|
+
# tools:
|
|
573
|
+
# deny: [agent_ask, agent_ask_result, agent_ask_cancel]
|
|
574
|
+
|
|
575
|
+
# Agent-loop tunables. Apply to engines that run
|
|
577
576
|
# their own tool-call loop — currently openai-compatible — for the per-
|
|
578
577
|
# tool-call race. The longTask* values ALSO inform CLI-engine tools
|
|
579
578
|
# (subagent_result, agent_ask) which run inside MCP children, so all
|
|
@@ -588,7 +587,8 @@ providers:
|
|
|
588
587
|
#
|
|
589
588
|
# When a long-task hits its timeout, the tool returns state:"pending"
|
|
590
589
|
# (NOT an error) — the sub keeps running, the caller can retry with a
|
|
591
|
-
# higher timeout_ms or check status later.
|
|
590
|
+
# higher timeout_ms or check status later.
|
|
591
|
+
#
|
|
592
592
|
# agentLoop:
|
|
593
593
|
# maxRounds: 8 # max tool-call rounds per turn (1..100).
|
|
594
594
|
# # Most conversations finish in 1-3;
|
|
@@ -725,7 +725,7 @@ providers:
|
|
|
725
725
|
# # account — somora then never touches either
|
|
726
726
|
# # credentials file. See docs/setup.md
|
|
727
727
|
# # "Isolated Claude config dir". Inspect with
|
|
728
|
-
# # `somora
|
|
728
|
+
# # `somora claude status`.
|
|
729
729
|
|
|
730
730
|
# codex-cli engine tunables. Same posture as claudeCli — surface codex-
|
|
731
731
|
# internal limits so they're configurable here. Applied as thread config
|
|
@@ -773,7 +773,7 @@ providers:
|
|
|
773
773
|
|
|
774
774
|
# memory:
|
|
775
775
|
# embedding:
|
|
776
|
-
# provider: local # 'local' (@huggingface/transformers)
|
|
776
|
+
# provider: local # 'local' (@huggingface/transformers)
|
|
777
777
|
# model: all-MiniLM-L6-v2 # alias OR full HF repo path (e.g. 'Xenova/foo')
|
|
778
778
|
# # known-good aliases: all-MiniLM-L6-v2 (default,
|
|
779
779
|
# # 384 dim, ~30MB), all-mpnet-base-v2 (768 dim,
|
|
@@ -812,6 +812,18 @@ providers:
|
|
|
812
812
|
# enabled: true
|
|
813
813
|
# endpoint: https://somora.ai/api/latest-version # a mirror of your own
|
|
814
814
|
|
|
815
|
+
# REM — reads the conversations of every agent that dreams (agent.yaml
|
|
816
|
+
# `dreams: true`, the default for chat agents) and proposes notes for its
|
|
817
|
+
# memory. One worker model for all of them; an agent's own `rem.model`
|
|
818
|
+
# in its agent.yaml wins. Without any model, agents that dream get no
|
|
819
|
+
# REM and the inbox says so. docs/dream-phases.md → "Who dreams".
|
|
820
|
+
# rem:
|
|
821
|
+
# model: haiku # alias or provider/model
|
|
822
|
+
# fallback: [luna] # backup(s) for `model`
|
|
823
|
+
# dedup:
|
|
824
|
+
# judge:
|
|
825
|
+
# enabled: false # a model checks whether a note is already known
|
|
826
|
+
|
|
815
827
|
# Obsidian vault + wiki layer (docs/wiki.md, docs/dream-phases.md).
|
|
816
828
|
# The vault is read as a recall source for every agent; the wiki is a
|
|
817
829
|
# subfolder of it that Deep writes (memory → wiki consolidation) and
|
|
@@ -833,13 +845,13 @@ providers:
|
|
|
833
845
|
# enabled: true
|
|
834
846
|
# intervalHours: 12
|
|
835
847
|
# model: opus # worker model ref (alias or provider/model)
|
|
836
|
-
# fallback: [
|
|
848
|
+
# fallback: [sol] # backup(s) when `model` is unreachable — best on another provider
|
|
837
849
|
# callTimeoutMs: 300000 # one model call (one note); past it the note goes to the backup
|
|
838
850
|
# lucid:
|
|
839
851
|
# enabled: true
|
|
840
852
|
# intervalDays: 7
|
|
841
853
|
# model: opus
|
|
842
|
-
# fallback: [
|
|
854
|
+
# fallback: [sol]
|
|
843
855
|
|
|
844
856
|
# Workspace — default cwd for file_* tools. NOT a sandbox: agents can
|
|
845
857
|
# also write outside (their own persona files, the global config).
|
|
@@ -886,10 +898,76 @@ providers:
|
|
|
886
898
|
# - sudo ~/bin/fix-mount.sh
|
|
887
899
|
# - systemctl reboot
|
|
888
900
|
# - sudo # broad: any "sudo ..." command
|
|
901
|
+
# agents-vm:
|
|
902
|
+
# type: ssh
|
|
903
|
+
# host: 192.0.2.50
|
|
904
|
+
# user: agents
|
|
905
|
+
# keyPath: ~/.ssh/id_ed25519
|
|
906
|
+
# externalOnly: true # only for external agents (below);
|
|
907
|
+
# # somora's own agents don't see it
|
|
908
|
+
|
|
909
|
+
# External agents — agents of other agent systems (OpenClaw, Hermes, any
|
|
910
|
+
# ACP agent) you chat with from somora. They keep their own model, tools
|
|
911
|
+
# and memory. somora starts the system's ACP command on a resource (over
|
|
912
|
+
# ssh, login shell) or locally. {session} = the somora session id (gains
|
|
913
|
+
# -r1, -r2 after resets), {agent} = the name in somora. See
|
|
914
|
+
# docs/external-agents.md.
|
|
915
|
+
# a2a: lets somora agents hand the agent work (agent_ask, spawn_subagent)
|
|
916
|
+
# over the A2A standard, straight over the network; chat stays on ACP.
|
|
917
|
+
# See docs/a2a.md for switching A2A on in OpenClaw and Hermes.
|
|
918
|
+
# external:
|
|
919
|
+
# idleMinutes: 10 # close an idle connection
|
|
920
|
+
# questionTimeoutMinutes: 10 # unanswered question = rejected
|
|
921
|
+
# a2a: # brakes for work over A2A
|
|
922
|
+
# maxConcurrentPerAgent: 2 # tasks one agent works on at once
|
|
923
|
+
# maxCallsPerDay: 200 # tasks to all external agents a day
|
|
924
|
+
# maxTaskMinutes: 60 # stop following a task after this
|
|
925
|
+
# pollMaxSeconds: 10 # longest gap between status checks
|
|
926
|
+
# cardRefreshMinutes: 10 # re-read the Agent Card after this
|
|
927
|
+
# introduce: true # first line names the asking agent
|
|
928
|
+
# systems:
|
|
929
|
+
# openclaw:
|
|
930
|
+
# transport: { resource: agents-vm }
|
|
931
|
+
# agents:
|
|
932
|
+
# claw:
|
|
933
|
+
# command: openclaw acp --session agent:main:somora-{session}
|
|
934
|
+
# # description: Lab assistant # shown on the tile and in the team list
|
|
935
|
+
# # icon: 🦀 # tile emoji
|
|
936
|
+
# # cwd: /home/agents/work # working folder over there (default: its home)
|
|
937
|
+
# a2a:
|
|
938
|
+
# url: https://<machine>.<tailnet>.ts.net
|
|
939
|
+
# token: <token> # the token OpenClaw has for "somora"
|
|
940
|
+
# hermes:
|
|
941
|
+
# transport: { resource: agents-vm }
|
|
942
|
+
# # badge: ☤ # tile-corner sign or image path
|
|
943
|
+
# # profile: hermes # openclaw | hermes | generic (default: from its introduction)
|
|
944
|
+
# agents:
|
|
945
|
+
# herm:
|
|
946
|
+
# command: hermes acp
|
|
947
|
+
|
|
948
|
+
# A2A in (docs/a2a.md): other agent systems send tasks to somora agents
|
|
949
|
+
# with `a2a: true` in their agent.yaml. Only the peers listed here, each
|
|
950
|
+
# with its own token (openssl rand -hex 32). No peers = nothing reachable.
|
|
951
|
+
# a2a:
|
|
952
|
+
# publicUrl: https://<host>.<tailnet>.ts.net:18737 # written into the cards
|
|
953
|
+
# # defaultAgent: <your-agent> # the agent /.well-known/agent-card.json describes
|
|
954
|
+
# peers: # names: lower-case letters, digits, _ . -
|
|
955
|
+
# hermes:
|
|
956
|
+
# token: <token Hermes sends>
|
|
957
|
+
# openclaw:
|
|
958
|
+
# token: <token OpenClaw sends>
|
|
959
|
+
# agents: [<your-agent>] # optional: only these agents
|
|
960
|
+
# rateLimitPerMinute: 30 # per peer
|
|
961
|
+
# maxTasksPerDay: 200 # per peer
|
|
962
|
+
# replyTimeoutSeconds: 300 # a waiting request returns "working" after this
|
|
963
|
+
# maxMessageChars: 64000 # longest task text
|
|
964
|
+
# archiveAfterDays: 7 # quiet conversations with peers are archived
|
|
965
|
+
# tools:
|
|
966
|
+
# deny: [agent_ask, agent_ask_result, agent_ask_cancel, spawn_subagent, spawn_subagents, builder_dispatch, session_model, sentinel]
|
|
889
967
|
|
|
890
968
|
# Web-tools credentials. Per-provider keys — tools whose provider isn't
|
|
891
969
|
# configured are hidden from the agent (the `available()` probe on the
|
|
892
|
-
# tool returns false).
|
|
970
|
+
# tool returns false). The provider is Brave; its free tier gives
|
|
893
971
|
# 2k requests/month — sign up at https://api-dashboard.search.brave.com/.
|
|
894
972
|
# web:
|
|
895
973
|
# brave:
|
|
@@ -898,22 +976,30 @@ providers:
|
|
|
898
976
|
# # everything private is refused otherwise.
|
|
899
977
|
# fetchAllowPrivate: [wiki.home.lan, 10.0.0.0/24]
|
|
900
978
|
|
|
901
|
-
# Sentinel —
|
|
902
|
-
#
|
|
903
|
-
# long completed `at`-triggers (one-shot fires that have already run)
|
|
904
|
-
# linger in the registry before they're garbage-collected.
|
|
979
|
+
# Sentinel — wakes agents on a schedule, or when a check script sees that
|
|
980
|
+
# something happened (docs/sentinel.md). All optional.
|
|
905
981
|
#
|
|
906
|
-
# completedRetentionDays:
|
|
907
|
-
#
|
|
908
|
-
#
|
|
909
|
-
#
|
|
910
|
-
#
|
|
982
|
+
# completedRetentionDays: days a fired one-shot (an `at` trigger or a
|
|
983
|
+
# `once` check) and its history are kept; 0 turns the cleanup off.
|
|
984
|
+
# Needs a restart.
|
|
985
|
+
# checks: limits for check triggers. A config reload is enough; they
|
|
986
|
+
# apply from the next check.
|
|
911
987
|
# sentinel:
|
|
912
988
|
# completedRetentionDays: 7
|
|
989
|
+
# checks:
|
|
990
|
+
# minIntervalOnceMs: 15000 # shortest interval of a once check
|
|
991
|
+
# minIntervalMs: 60000 # shortest interval of a watch check
|
|
992
|
+
# maxDeadlineMs: 86400000 # a once check's deadline, at most 24 h away
|
|
993
|
+
# timeoutMs: 30000 # how long one check may run
|
|
994
|
+
# maxTimeoutMs: 120000 # the most a trigger may set
|
|
995
|
+
# maxOutputBytes: 65536 # output kept; more is a check error
|
|
996
|
+
# maxConcurrent: 4 # checks running at once, all triggers
|
|
997
|
+
# errorStreak: 3 # check errors in a row before it stops
|
|
998
|
+
# maxWakesPerDay: 24 # wakes per check trigger and UTC day
|
|
913
999
|
|
|
914
1000
|
# External MCP servers (docs/mcp.md). somora connects as MCP client,
|
|
915
1001
|
# imports the servers' tools and offers them to every engine next to the
|
|
916
|
-
# built-in tools, namespaced `mcp__<server>__<tool>`.
|
|
1002
|
+
# built-in tools, namespaced `mcp__<server>__<tool>`. Supported:
|
|
917
1003
|
# remote HTTP servers (streamable-http, automatic SSE fallback) with
|
|
918
1004
|
# static header auth; header values expand `${VAR}` / `${VAR:-default}`
|
|
919
1005
|
# from the server process env at connect time.
|
|
@@ -992,3 +1078,10 @@ providers:
|
|
|
992
1078
|
# # command: /path/to/typescript-language-server # instead of ~/.somora/lsp or PATH
|
|
993
1079
|
# pyright:
|
|
994
1080
|
# enabled: true
|
|
1081
|
+
|
|
1082
|
+
# More sections, each described on its own page (all optional):
|
|
1083
|
+
# fallback — model to switch to when one fails (docs/setup.md)
|
|
1084
|
+
# promptBudgets — size limits of the persona files (docs/team.md, docs/agents.md)
|
|
1085
|
+
# thinkingContent — show or hide the models' thinking (docs/thinking.md)
|
|
1086
|
+
# mobile — the phone app (docs/mobile.md)
|
|
1087
|
+
# skills — skill sources and checks (docs/skills.md)
|