somora 2026.930.3 → 2026.1001.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.
- package/config.example.yaml +9 -5
- package/docs/api.md +3 -3
- package/docs/builder.md +2 -2
- package/docs/dream-phases.md +1 -1
- package/docs/mcp.md +1 -1
- package/docs/memory.md +56 -4
- package/docs/models.md +2 -2
- package/docs/projects.md +7 -7
- package/docs/setup.md +6 -6
- package/docs/team.md +1 -1
- package/docs/tools.md +1 -1
- package/docs/wiki.md +5 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/src/browser/service.ts +8 -8
- package/src/cli/resolvers/clawhub.ts +1 -1
- package/src/cli/skill.ts +1 -1
- package/src/cli/somora.ts +3 -2
- package/src/cli/tui/turn-views.tsx +4 -4
- package/src/cli/update-args.ts +14 -0
- package/src/config/loader.ts +8 -4
- package/src/config/types.ts +40 -15
- package/src/dream/deep-actions.ts +1 -1
- package/src/dream/deep-prompts.ts +8 -8
- package/src/dream/deep-runner.ts +1 -1
- package/src/dream/lucid-storage.ts +2 -2
- package/src/dream/lucid-structure.ts +1 -1
- package/src/dream/lucid-worker.ts +1 -1
- package/src/dream/rem-dedup.ts +5 -5
- package/src/dream/rem-extract.ts +4 -4
- package/src/dream/rem-runner.ts +1 -1
- package/src/dream/wiki-context.ts +1 -1
- package/src/engine/a2a.ts +2 -2
- package/src/engine/claude-cli.ts +6 -6
- package/src/engine/model-availability.ts +2 -2
- package/src/engine/openai-compatible.ts +2 -2
- package/src/engine/types.ts +1 -1
- package/src/imagegen/aspect.ts +1 -1
- package/src/imagegen/types.ts +1 -1
- package/src/mcp/hub/bridge.ts +1 -1
- package/src/mcp/hub/manager.ts +1 -1
- package/src/mcp/server.ts +1 -1
- package/src/mcp/tool-schema.ts +2 -2
- package/src/media/capabilities.ts +1 -1
- package/src/memory/inject.ts +1 -1
- package/src/memory/manager.ts +5 -2
- package/src/memory/rescan.ts +1 -1
- package/src/memory/retrieval.ts +74 -6
- package/src/memory/shared-index.ts +1 -1
- package/src/memory/slug.ts +1 -1
- package/src/memory/storage.ts +1 -1
- package/src/persona/loader.ts +1 -1
- package/src/server/ask-wait-graph.ts +2 -2
- package/src/server/builder-prompt.ts +1 -1
- package/src/server/builder-session.ts +1 -1
- package/src/server/claude-credential-sync.ts +1 -1
- package/src/server/env-file.ts +3 -3
- package/src/server/heal-session.ts +1 -1
- package/src/server/index.ts +8 -8
- package/src/server/logger.ts +1 -1
- package/src/server/logs.ts +1 -1
- package/src/server/run-turn-types.ts +1 -1
- package/src/server/run-turn.ts +3 -3
- package/src/server/sanitize-assistant-text.ts +2 -2
- package/src/server/session-queue.ts +1 -1
- package/src/server/start-turn.ts +1 -1
- package/src/server/work-ledger.ts +16 -16
- package/src/setup/presets.ts +1 -1
- package/src/skills/bin-checks.ts +1 -1
- package/src/skills/env-scope.ts +2 -2
- package/src/skills/gating.ts +1 -1
- package/src/skills/lint.ts +1 -1
- package/src/skills/path-helpers.ts +2 -2
- package/src/ssh/exec.ts +1 -1
- package/src/testing/isolated-home.mts +1 -1
- package/src/tmux/attention.ts +1 -1
- package/src/tools/agents/ask.ts +3 -3
- package/src/tools/agents/images.ts +1 -1
- package/src/tools/agents/session-model.ts +2 -2
- package/src/tools/browser/tools.ts +1 -1
- package/src/tools/exec/allowlist.ts +2 -2
- package/src/tools/exec/blacklist.ts +5 -5
- package/src/tools/exec/internal-env.ts +1 -1
- package/src/tools/exec/local.ts +1 -1
- package/src/tools/exec/remote.ts +1 -1
- package/src/tools/file/analyze.ts +1 -1
- package/src/tools/file/local.ts +1 -1
- package/src/tools/file/persona-guard.ts +1 -1
- package/src/tools/file/remote.ts +1 -1
- package/src/tools/image/tools.ts +1 -1
- package/src/tools/memory/tools.ts +4 -1
- package/src/tools/sentinel/tools.ts +1 -1
- package/src/tools/skill/tools.ts +2 -2
- package/src/tools/tmux/tools.ts +1 -1
- package/src/types/events.ts +1 -1
- package/src/voice/realtime/call.ts +15 -15
- package/src/voice/realtime/consult.ts +5 -5
- package/src/voice/realtime/manager.ts +2 -2
- package/src/voice/realtime/openai-provider.ts +4 -4
- package/src/voice/realtime/persona.ts +6 -6
- package/src/voice/realtime/session-match.ts +4 -4
- package/src/wiki/explorer.ts +3 -3
- package/src/wiki/language.ts +4 -4
- package/src/wiki/log-builder.ts +1 -1
- package/src/wiki/map.ts +6 -6
- package/src/wiki/migration/analyze.ts +4 -4
- package/src/wiki/migration/refine.ts +1 -1
- package/src/wiki/taxonomy.ts +1 -1
- package/web/dist/assets/index-BaVv6pB2.js.map +1 -1
- package/web-mobile/dist/assets/index-X_vRr6cd.js.map +1 -1
package/config.example.yaml
CHANGED
|
@@ -49,7 +49,7 @@ providers:
|
|
|
49
49
|
anthropic:
|
|
50
50
|
engine: claude-cli
|
|
51
51
|
models:
|
|
52
|
-
- id: claude-opus-5
|
|
52
|
+
- id: claude-opus-5-5
|
|
53
53
|
alias: opus
|
|
54
54
|
contextWindow: 1000000
|
|
55
55
|
capabilities: [text, image, pdf, reasoning]
|
|
@@ -368,7 +368,7 @@ providers:
|
|
|
368
368
|
# idleStopMinutes: 30 # stop an unused browser; logins stay
|
|
369
369
|
# viewport: { width: 1280, height: 800 }
|
|
370
370
|
# allowPrivate: [] # LAN hosts/CIDRs agents may open,
|
|
371
|
-
# # e.g. ["192.
|
|
371
|
+
# # e.g. ["192.0.2.0/24", "nas.local"]
|
|
372
372
|
# deny: [] # hostnames never opened, e.g. ["*.bank.at"]
|
|
373
373
|
# profiles: {} # shared profiles: { firma: { agents: [a, b] } }
|
|
374
374
|
|
|
@@ -430,7 +430,7 @@ providers:
|
|
|
430
430
|
# the agent knows which paths matter for this conversation.
|
|
431
431
|
#
|
|
432
432
|
# `entities` is a CONTROLLED VOCABULARY — projects belong to one
|
|
433
|
-
# entity (e.g. "privat", "
|
|
433
|
+
# entity (e.g. "privat", "acme"), and the agent picks FROM this list
|
|
434
434
|
# at create time. Prevents STT mishearings from inventing phantom
|
|
435
435
|
# entities ("enofhom" silently becoming a new category). Only edited
|
|
436
436
|
# here — agents cannot extend it via tools.
|
|
@@ -439,8 +439,8 @@ providers:
|
|
|
439
439
|
# entities:
|
|
440
440
|
# - slug: privat
|
|
441
441
|
# label: Privat
|
|
442
|
-
# - slug:
|
|
443
|
-
# label:
|
|
442
|
+
# - slug: acme
|
|
443
|
+
# label: acme GmbH
|
|
444
444
|
# - slug: firma2
|
|
445
445
|
# label: Firma Zwei
|
|
446
446
|
|
|
@@ -718,6 +718,10 @@ providers:
|
|
|
718
718
|
# vectorWeight: 0.7 # weight of vector similarity in fused score
|
|
719
719
|
# bm25Weight: 0.3 # weight of BM25/FTS5 in fused score
|
|
720
720
|
# slugMatchBoost: 1.5 # page whose slug names a query word (1 = off); all searches
|
|
721
|
+
# slugFullNameBoost: 1.5 # extra when the query names the page in full (1 = off)
|
|
722
|
+
# logDemotion: 0.5 # wiki/logs/* rank behind the pages they point at (1 = off);
|
|
723
|
+
# # lifted for questions about a month / what changed / when
|
|
724
|
+
# pageSupport: 0.3 # a page matching in several sections gains support (0 = off)
|
|
721
725
|
|
|
722
726
|
# Obsidian vault + wiki layer (docs/wiki.md, docs/dream-phases.md).
|
|
723
727
|
# The vault is read as a recall source for every agent; the wiki is a
|
package/docs/api.md
CHANGED
|
@@ -2061,8 +2061,8 @@ search, block budget) without running a turn. Body:
|
|
|
2061
2061
|
{
|
|
2062
2062
|
"text": "und wer gehört sonst noch zur familie?",
|
|
2063
2063
|
"history": [
|
|
2064
|
-
{ "kind": "user_message", "text": "was kannst du mir über
|
|
2065
|
-
{ "kind": "assistant_message", "text": "
|
|
2064
|
+
{ "kind": "user_message", "text": "was kannst du mir über karl erzählen?" },
|
|
2065
|
+
{ "kind": "assistant_message", "text": "Karl ist …" }
|
|
2066
2066
|
],
|
|
2067
2067
|
"autoInject": { "historyWeight": 0.4 }
|
|
2068
2068
|
}
|
|
@@ -2403,7 +2403,7 @@ The controlled entity vocabulary from `config.projects.entities`.
|
|
|
2403
2403
|
{
|
|
2404
2404
|
"entities": [
|
|
2405
2405
|
{ "slug": "privat", "label": "Privat" },
|
|
2406
|
-
{ "slug": "
|
|
2406
|
+
{ "slug": "acme", "label": "acme GmbH" }
|
|
2407
2407
|
]
|
|
2408
2408
|
}
|
|
2409
2409
|
```
|
package/docs/builder.md
CHANGED
|
@@ -23,7 +23,7 @@ a builder never becomes a chat agent: the files differ (a builder has no
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
```yaml
|
|
26
|
-
# ~/.somora/agents/
|
|
26
|
+
# ~/.somora/agents/dan/agent.yaml
|
|
27
27
|
kind: builder
|
|
28
28
|
model: deepseek # any configured alias; local models work well here
|
|
29
29
|
workspace:
|
|
@@ -40,7 +40,7 @@ steering: true # a message typed while it works goes INTO the turn
|
|
|
40
40
|
|
|
41
41
|
```markdown
|
|
42
42
|
---
|
|
43
|
-
name:
|
|
43
|
+
name: dan
|
|
44
44
|
description: Builds and changes software in the repository it is pointed at.
|
|
45
45
|
role: builder
|
|
46
46
|
icon: 🔨
|
package/docs/dream-phases.md
CHANGED
|
@@ -551,7 +551,7 @@ as one line each, not the whole `index.md`. Then a final
|
|
|
551
551
|
cross-folder pass looks across folders — but it sees only the opening
|
|
552
552
|
line of each page. That is enough for a dead link or a missing page
|
|
553
553
|
that spans folders; a contradiction between the body of
|
|
554
|
-
`personen/jane-doe` and the body of `projekte/familie-
|
|
554
|
+
`personen/jane-doe` and the body of `projekte/familie-leo-podcast` is
|
|
555
555
|
out of its sight.
|
|
556
556
|
|
|
557
557
|
The size limit is not only for scale — claude-cli's stdin-stream
|
package/docs/mcp.md
CHANGED
|
@@ -326,7 +326,7 @@ when something differs); the bridge registers a changed tool anew
|
|
|
326
326
|
|
|
327
327
|
somora's own tools, when they run through the MCP child (claude-cli,
|
|
328
328
|
codex-cli), refuse a call with a parameter the tool does not know —
|
|
329
|
-
`exec({resource: "
|
|
329
|
+
`exec({resource: "gpu-box"})` instead of `target` fails with an input
|
|
330
330
|
validation error naming `resource`, instead of silently dropping it and
|
|
331
331
|
running on the local host. Bridged tools of other MCP servers keep
|
|
332
332
|
taking whatever the model sends; validation is that server's job.
|
package/docs/memory.md
CHANGED
|
@@ -193,6 +193,9 @@ memory:
|
|
|
193
193
|
vectorWeight: 0.7
|
|
194
194
|
bm25Weight: 0.3
|
|
195
195
|
slugMatchBoost: 1.5 # page whose slug names a query word (1 = off)
|
|
196
|
+
slugFullNameBoost: 1.5 # … and extra when the query names the page in full (1 = off)
|
|
197
|
+
logDemotion: 0.5 # the wiki's monthly change logs rank behind the pages (1 = off)
|
|
198
|
+
pageSupport: 0.3 # a page matching in several sections gains support (0 = off)
|
|
196
199
|
```
|
|
197
200
|
|
|
198
201
|
**How the query is built.** The current message is the query. The
|
|
@@ -215,20 +218,69 @@ a short question. Refinements, measured on replayed real sessions:
|
|
|
215
218
|
question names outright is never pushed down by the history; a
|
|
216
219
|
follow-up without a topic word still finds its page through the
|
|
217
220
|
history.
|
|
218
|
-
- For a one- or two-word question ("wer ist
|
|
221
|
+
- For a one- or two-word question ("wer ist karl?") the exact word
|
|
219
222
|
match is the question, so BM25 gets `shortQueryBm25Weight` of the
|
|
220
223
|
fusion instead of the hybrid default.
|
|
221
224
|
- `hybrid.slugMatchBoost` (all searches, not only auto-inject): a chunk
|
|
222
225
|
whose slug contains a content word of the query is multiplied. The
|
|
223
|
-
page ABOUT a person or thing rarely repeats its own name — the
|
|
224
|
-
page says "
|
|
226
|
+
page ABOUT a person or thing rarely repeats its own name — the Karl
|
|
227
|
+
page says "Karl" once, the family page four times — so BM25 alone
|
|
225
228
|
ranks the mentions above the page; the name in the slug marks the
|
|
226
229
|
canonical page.
|
|
227
230
|
|
|
231
|
+
### Which page wins — the three rules after the fusion
|
|
232
|
+
|
|
233
|
+
Measured on 26 real questions against a 400-page wiki (2026-10-01; the
|
|
234
|
+
report that started it: an agent asked "how did we set up acme.com on
|
|
235
|
+
dmz-host?", the project page came 7th behind the change log and
|
|
236
|
+
four neighbouring pages, and the agent answered that it knew nothing).
|
|
237
|
+
With all three rules the page is 2nd, the other 25 questions are as
|
|
238
|
+
good or better, and the questions that ARE about the log still find it.
|
|
239
|
+
|
|
240
|
+
- **`logDemotion` (default 0.5)** — Deep writes a monthly change log
|
|
241
|
+
(`logs/2026-09`): one dense line per page it created or changed, every
|
|
242
|
+
keyword of the topic. For "how did we set up X" that line is a pointer;
|
|
243
|
+
the page about X is the answer. Hits in `logs/` are multiplied by this
|
|
244
|
+
factor — *unless the question is about the chronicle*: a month name
|
|
245
|
+
(`september`, `march`), a year or `2026-09`, or a word like *changed*,
|
|
246
|
+
*when*, *promoted*, *created*, *log* in the question switches the
|
|
247
|
+
demotion off, so "what changed in September?" and "when was the page
|
|
248
|
+
created?" keep the log on top. Set `1` to rank logs like any page; a
|
|
249
|
+
lower value (`0.3`) if your logs keep winning on questions about the
|
|
250
|
+
thing itself — check with `memory_search` before and after.
|
|
251
|
+
- **`pageSupport` (default 0.3)** — hits are chunks, not pages. A project
|
|
252
|
+
page answers "how did we set it up" across several sections (DNS,
|
|
253
|
+
deployment, timeline), each matching only part of the question, while
|
|
254
|
+
a page with one dense paragraph scores higher on that paragraph. The
|
|
255
|
+
page's best chunk gains this share of the scores of its next two
|
|
256
|
+
chunks, counting only chunks that reach half of the best one — so a
|
|
257
|
+
page that mentions every word somewhere does not outgrow a single
|
|
258
|
+
exact note. Raise it (`0.5`) when long pages keep losing to short
|
|
259
|
+
mentions; lower it (`0.1`) or `0` when short memory notes lose to long
|
|
260
|
+
wiki pages. Measured: `0.3` lifted the project page from unranked to
|
|
261
|
+
2nd and cost one memory note one rank; `0.5` cost three.
|
|
262
|
+
- **`slugFullNameBoost` (default 1.5)** — `slugMatchBoost` fires for any
|
|
263
|
+
page whose name shares a word with the question, so "acme website
|
|
264
|
+
dmz-host setup" boosts `projekte/acme-website` and
|
|
265
|
+
`infrastruktur/hosts/dmz-host-vm` alike. When the question
|
|
266
|
+
contains *every* word of a page's name (two words or more), that page
|
|
267
|
+
is multiplied again — the question means that page. A tried
|
|
268
|
+
alternative, scaling the boost by the share of name words matched,
|
|
269
|
+
made longer names lose to shorter ones (`elevenlabs-agents-preise`
|
|
270
|
+
behind `elevenlabs-agents` for "wie teuer sind elevenlabs agents") and
|
|
271
|
+
was dropped.
|
|
272
|
+
|
|
273
|
+
None of the three changes what is indexed; they only reorder hits, so a
|
|
274
|
+
new value takes effect at the next search (config reload or restart).
|
|
275
|
+
When you tune them, keep a handful of your own questions with the page
|
|
276
|
+
you expect and compare ranks before and after — the ranking is
|
|
277
|
+
sensitive to wording, and a value that fixes one question can cost
|
|
278
|
+
another.
|
|
279
|
+
|
|
228
280
|
The BM25 side sees the message only, with filler words removed
|
|
229
281
|
(`FTS_STOPWORDS` in `src/memory/retrieval.ts`, German and English) —
|
|
230
282
|
otherwise every page that says "was", "du" and "so" a lot outranked
|
|
231
|
-
the one page that says "
|
|
283
|
+
the one page that says "karl". `POST /agents/<name>/memory/recall-preview`
|
|
232
284
|
runs exactly this path for a message plus a supplied history, which is
|
|
233
285
|
how recall tuning is measured ([api.md](api.md#post-agentsagentmemoryrecall-preview)).
|
|
234
286
|
|
package/docs/models.md
CHANGED
|
@@ -46,7 +46,7 @@ providers:
|
|
|
46
46
|
alias: fable
|
|
47
47
|
contextWindow: 1000000
|
|
48
48
|
capabilities: [text, image, pdf, reasoning]
|
|
49
|
-
- id: claude-opus-5
|
|
49
|
+
- id: claude-opus-5-5
|
|
50
50
|
alias: opus
|
|
51
51
|
contextWindow: 1000000
|
|
52
52
|
capabilities: [text, image, pdf, reasoning]
|
|
@@ -63,7 +63,7 @@ providers:
|
|
|
63
63
|
| model | contextWindow | notes | verified |
|
|
64
64
|
|---|---|---|---|
|
|
65
65
|
| `claude-fable-5-1` | 1000000 | Frontier model, adaptive thinking always on. The SDK discloses **no thinking text** for it — somora shows a placeholder row that the model thought ([thinking.md](thinking.md#thinking-content--seeing-what-the-model-thought)). No separate reasoning-token count (rolled into `tokens_out`). | 2026-09-03 |
|
|
66
|
-
| `claude-opus-5` | 1000000 | Anthropic's recommendation for most workloads. Thinking text: placeholder, as above. | 2026-09-
|
|
66
|
+
| `claude-opus-5-5` | 1000000 | Opus 5.5 — Anthropic's recommendation for most workloads; replaces `claude-opus-5` (keep your alias, change the `id`). Thinking text: placeholder, as above. | 2026-09-30 |
|
|
67
67
|
| `claude-sonnet-5` | 1000000 | Same surface as Opus, cheaper on the subscription budget. | 2026-09-03 |
|
|
68
68
|
| `claude-haiku-4-5` | 200000 | Does support extended thinking — keep `reasoning` in `capabilities`, it is missing from most example configs. | 2026-09-03 |
|
|
69
69
|
|
package/docs/projects.md
CHANGED
|
@@ -68,8 +68,8 @@ projects:
|
|
|
68
68
|
entities:
|
|
69
69
|
- slug: privat
|
|
70
70
|
label: Privat
|
|
71
|
-
- slug:
|
|
72
|
-
label:
|
|
71
|
+
- slug: acme
|
|
72
|
+
label: acme GmbH
|
|
73
73
|
# add as many as you need — these are YOURS to curate
|
|
74
74
|
```
|
|
75
75
|
|
|
@@ -80,7 +80,7 @@ systemctl --user restart somora
|
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
`entities` is a **controlled vocabulary** — projects belong to one
|
|
83
|
-
entity (e.g. "Privat" or "
|
|
83
|
+
entity (e.g. "Privat" or "acme"), and the agent must pick from this
|
|
84
84
|
list at create time. See [Entities](#entities--the-controlled-vocabulary)
|
|
85
85
|
below for why this matters.
|
|
86
86
|
|
|
@@ -98,7 +98,7 @@ changes.
|
|
|
98
98
|
└── projects/
|
|
99
99
|
├── heimkino.md
|
|
100
100
|
├── steuern-2025.md
|
|
101
|
-
├──
|
|
101
|
+
├── acme-website.md
|
|
102
102
|
└── ...
|
|
103
103
|
```
|
|
104
104
|
|
|
@@ -147,13 +147,13 @@ must match one of the entries you configured in
|
|
|
147
147
|
tools — only you can, by editing `config.yaml`.
|
|
148
148
|
|
|
149
149
|
This is the **voice-input safety net**: when you say something like
|
|
150
|
-
"create a new project Heimkino as an
|
|
150
|
+
"create a new project Heimkino as an acme project" and the
|
|
151
151
|
transcription comes back fuzzy ("enofhom" because the mic didn't
|
|
152
152
|
hear clearly), the agent calls `entity_list` first, sees the actual
|
|
153
|
-
options (`privat`, `
|
|
153
|
+
options (`privat`, `acme`, `firma2`, …), and picks the closest
|
|
154
154
|
match instead of inventing a new phantom category. If it does call
|
|
155
155
|
`project_create` with the misspelled slug anyway, the tool rejects
|
|
156
|
-
with `unknown entity 'enofhom' — available: privat,
|
|
156
|
+
with `unknown entity 'enofhom' — available: privat, acme, firma2`
|
|
157
157
|
so the agent retries.
|
|
158
158
|
|
|
159
159
|
Entities also give you a free filter axis. `project_list({entity:
|
package/docs/setup.md
CHANGED
|
@@ -281,7 +281,7 @@ providers:
|
|
|
281
281
|
anthropic:
|
|
282
282
|
engine: claude-cli
|
|
283
283
|
models:
|
|
284
|
-
- id: claude-opus-5
|
|
284
|
+
- id: claude-opus-5-5
|
|
285
285
|
alias: opus
|
|
286
286
|
contextWindow: 1000000
|
|
287
287
|
capabilities: [text, image, pdf, reasoning]
|
|
@@ -789,7 +789,7 @@ memory:
|
|
|
789
789
|
# docs/projects.md for the full model.
|
|
790
790
|
#
|
|
791
791
|
# `entities` is a CURATED VOCABULARY — projects belong to one entity
|
|
792
|
-
# (e.g. "privat", "
|
|
792
|
+
# (e.g. "privat", "acme"), and the agent must pick from this list
|
|
793
793
|
# at create time. Prevents STT mishearings from inventing phantom
|
|
794
794
|
# entities and gives you a free filter axis ("list all private
|
|
795
795
|
# projects"). Agents cannot extend this list via tools.
|
|
@@ -798,8 +798,8 @@ memory:
|
|
|
798
798
|
# entities:
|
|
799
799
|
# - slug: privat
|
|
800
800
|
# label: Privat
|
|
801
|
-
# - slug:
|
|
802
|
-
# label:
|
|
801
|
+
# - slug: acme
|
|
802
|
+
# label: acme GmbH
|
|
803
803
|
# # add as many as you need — these are YOURS to curate
|
|
804
804
|
```
|
|
805
805
|
|
|
@@ -1205,8 +1205,8 @@ Other useful scripts:
|
|
|
1205
1205
|
| Command | What |
|
|
1206
1206
|
|---|---|
|
|
1207
1207
|
| `npm run typecheck` | server-side `tsc --noEmit` |
|
|
1208
|
-
| `npm test` | every `*.test.mts`, each against a throwaway `SOMORA_HOME
|
|
1209
|
-
| `npm test src/browser` | one subtree, same isolation |
|
|
1208
|
+
| `npm test` | every `*.test.mts` under `src/`, `web/src` and `web-mobile/src`, each against a throwaway `SOMORA_HOME`; the web clients run from their own folders so their JSX compiles with their own tsconfig |
|
|
1209
|
+
| `npm test src/browser` | one subtree, same isolation (`npm test web/src/lib` for the web client) |
|
|
1210
1210
|
| `npm run verify:fast` | typecheck plus the suite |
|
|
1211
1211
|
| `cd web && npm run dev` | Vite dev server for the web client (proxies API to `:18737`) |
|
|
1212
1212
|
| `cd web && npm run build` | rebuild `web/dist/` (the bundle the production server serves at `/web/`) |
|
package/docs/team.md
CHANGED
|
@@ -141,7 +141,7 @@ turns carry the same block as the agent's normal sessions.
|
|
|
141
141
|
|
|
142
142
|
Every framework we looked at routes on one short description per
|
|
143
143
|
colleague, and so does every model: write **triggers**, not résumés —
|
|
144
|
-
`library docs and framework comparisons`, not `
|
|
144
|
+
`library docs and framework comparisons`, not `Bea is an experienced
|
|
145
145
|
researcher with a journalist's mindset`. Character and voice belong in
|
|
146
146
|
that agent's own persona. Keep the block short: every agent loads it in
|
|
147
147
|
every turn, and `somora team check` (and the web preview) warn above
|
package/docs/tools.md
CHANGED
|
@@ -11,7 +11,7 @@ path it's on.
|
|
|
11
11
|
|
|
12
12
|
| Toolset | Tools | Purpose |
|
|
13
13
|
|---|---|---|
|
|
14
|
-
| `memory` | `memory_search`, `memory_get`, `memory_list`, `memory_write`, `memory_edit`, `memory_delete` | Read/write across the three layers — agent memory inbox, shared wiki, read-only vault. Hybrid retrieval (vector + BM25) with per-source boost; filler words are dropped from the keyword side and a page whose slug names a query word is lifted, so `memory_search "
|
|
14
|
+
| `memory` | `memory_search`, `memory_get`, `memory_list`, `memory_write`, `memory_edit`, `memory_delete` | Read/write across the three layers — agent memory inbox, shared wiki, read-only vault. Hybrid retrieval (vector + BM25) with per-source boost; filler words are dropped from the keyword side and a page whose slug names a query word is lifted, so `memory_search "karl"` finds the page about Karl, not the pages that mention him most (see `memory.md`). |
|
|
15
15
|
| `dream` | `dream_list`, `dream_get`, `dream_apply`, `dream_dismiss`, `dream_run`, `dream_review` | Inspect findings from REM (per-agent) and Lucid (platform-wide); trigger Deep/Lucid via `dream_run({phase: 'deep'\|'lucid'})`. `dream_review({dream_id, action:'start'\|'end'})` opens/closes a conversational wiki-edit loop for a Lucid run. See `dream-phases.md`. |
|
|
16
16
|
| `wiki` | `wiki_edit`, `wiki_create`, `wiki_delete`, `wiki_move` | Loop-scoped wiki write tools. Only exposed to the agent currently holding the active `dream_review` loop; otherwise hidden. `wiki_edit` mutates body and/or `related:`/`sources:` frontmatter; `wiki_move` moves or renames a page into a folder the wiki map lists and rewrites every `[[link]]` to it. A per-turn cap on wiki_* calls (`wiki.lucid.maxCallsPerTurn`, default 3) keeps the model from batch-editing without user check-in. See `dream-phases.md`. |
|
|
17
17
|
| `time` | `time_now` | Current date/time/timezone — model never hallucinates "today". |
|
package/docs/wiki.md
CHANGED
|
@@ -43,7 +43,7 @@ it reads `people/`, `projects/`, `knowledge/`, `places/`.
|
|
|
43
43
|
Three reasons memory and wiki need to be separate:
|
|
44
44
|
|
|
45
45
|
**Multi-agent.** Each agent has its own conversation history and its
|
|
46
|
-
own atomic observations. But a fact like "
|
|
46
|
+
own atomic observations. But a fact like "Bea is the user's spouse"
|
|
47
47
|
is not agent-private — it's something every agent should know. The
|
|
48
48
|
wiki is where shared facts live.
|
|
49
49
|
|
|
@@ -120,13 +120,13 @@ two dogs. This page bundles the key people …
|
|
|
120
120
|
|
|
121
121
|
## Eigenschaften
|
|
122
122
|
|
|
123
|
-
- **Spouse:** Dr.
|
|
123
|
+
- **Spouse:** Dr. Bea Klein (* 03.02.1984)
|
|
124
124
|
- **Sister:** Eva Klein (* 08.12.1973)
|
|
125
125
|
- …
|
|
126
126
|
|
|
127
127
|
## Zeitleiste
|
|
128
128
|
|
|
129
|
-
- 1941-04-30 —
|
|
129
|
+
- 1941-04-30 — Ada Klein born
|
|
130
130
|
- 1973-12-08 — Eva Klein born
|
|
131
131
|
- …
|
|
132
132
|
|
|
@@ -165,7 +165,7 @@ shape.
|
|
|
165
165
|
### Wikilinks
|
|
166
166
|
|
|
167
167
|
Use Obsidian's `[[wiki-path]]` syntax for cross-references between
|
|
168
|
-
pages. Example: `
|
|
168
|
+
pages. Example: `Bea ist die [[personen/familie-klein|Ehefrau]]`.
|
|
169
169
|
|
|
170
170
|
Wikilinks are indexed as plain text (the brackets are tokenized away),
|
|
171
171
|
so a search for `garten` finds pages mentioning `[[orte/garten]]`. They
|
|
@@ -271,7 +271,7 @@ twin. Names that already exist in several folders are noted in the
|
|
|
271
271
|
structure file for the migration.
|
|
272
272
|
|
|
273
273
|
A page whose name extends an entity page's name — a note filed as
|
|
274
|
-
`
|
|
274
|
+
`acme-kapitalruecklage` while `unternehmen/acme` exists — is
|
|
275
275
|
usually a detail of that entity: Deep is asked again with the entity
|
|
276
276
|
page in full and merges the note into it, unless it insists the page
|
|
277
277
|
is a thing of its own.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "somora",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1001.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "somora",
|
|
9
|
-
"version": "2026.
|
|
9
|
+
"version": "2026.1001.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/claude-agent-sdk": "^0.3.152",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "somora",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1001.2",
|
|
4
4
|
"description": "A self-hosted multi-agent harness: your agents, your models, one server — with memory, a shared wiki, a web desktop, a phone app and a terminal client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/browser/service.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// are refused by `act`.
|
|
15
15
|
// view = one agent's window on a process (`<browser id>@<agent>`).
|
|
16
16
|
// A shared profile has ONE process but one view per agent,
|
|
17
|
-
// so
|
|
17
|
+
// so ada and bea each get their own window, tabs, control
|
|
18
18
|
// state and handoff (private/browser-design.md §10).
|
|
19
19
|
// control = per view: agent_control | handoff_requested |
|
|
20
20
|
// human_control | paused. While a human controls a view,
|
|
@@ -697,8 +697,8 @@ export class BrowserService {
|
|
|
697
697
|
private tabOf(b: BrowserRec, tabId: string, agent?: string): TabRec {
|
|
698
698
|
const t = b.tabs.get(tabId);
|
|
699
699
|
if (!t || t.page.isClosed()) throw new BrowserOpError('BROWSER_TAB_NOT_FOUND', `tab '${tabId}' not found in browser '${b.id}' — op:"tabs" lists the open ones`);
|
|
700
|
-
// Tabs belong to one window. In a shared profile that keeps
|
|
701
|
-
// of
|
|
700
|
+
// Tabs belong to one window. In a shared profile that keeps ada out
|
|
701
|
+
// of bea's tabs even though both drive the same Chromium.
|
|
702
702
|
if (agent && t.agent !== agent) {
|
|
703
703
|
throw new BrowserOpError('BROWSER_TAB_NOT_FOUND', `tab '${tabId}' belongs to another agent's window on browser '${b.id}' — op:"tabs" lists yours`);
|
|
704
704
|
}
|
|
@@ -1038,8 +1038,8 @@ export class BrowserService {
|
|
|
1038
1038
|
|
|
1039
1039
|
/**
|
|
1040
1040
|
* Close this agent's window. The Chromium process only ends when no
|
|
1041
|
-
* other agent still has one on it — in a shared profile
|
|
1042
|
-
* pull the browser out from under
|
|
1041
|
+
* other agent still has one on it — in a shared profile ada must not
|
|
1042
|
+
* pull the browser out from under bea.
|
|
1043
1043
|
*/
|
|
1044
1044
|
async stop(agent: string): Promise<{ stopped: string | null }> {
|
|
1045
1045
|
const bs = this.browsersFor(agent).filter((b) => b.views.has(agent));
|
|
@@ -1070,8 +1070,8 @@ export class BrowserService {
|
|
|
1070
1070
|
// ── UI / control (stage 3 surfaces; HTTP-testable now) ────────────
|
|
1071
1071
|
|
|
1072
1072
|
/**
|
|
1073
|
-
* One entry per open window, not per process: in a shared profile
|
|
1074
|
-
* and
|
|
1073
|
+
* One entry per open window, not per process: in a shared profile ada
|
|
1074
|
+
* and bea are two rows with their own tabs and control state. Stopped
|
|
1075
1075
|
* browsers are left out the way the tmux list leaves dead sessions out
|
|
1076
1076
|
* — except one still holding an unanswered handoff, which is the only
|
|
1077
1077
|
* trail back to that request (private/browser-design.md §10.4).
|
|
@@ -1172,7 +1172,7 @@ export class BrowserService {
|
|
|
1172
1172
|
this.touch(b);
|
|
1173
1173
|
// Whom to wake: the requesting agent+session when a handoff was
|
|
1174
1174
|
// pending; otherwise — only if the human actually did something —
|
|
1175
|
-
// the session of the last tab used IN THIS WINDOW (
|
|
1175
|
+
// the session of the last tab used IN THIS WINDOW (the operator 2026-09-10).
|
|
1176
1176
|
let wake: { agent: string; session: string; text: string; prefix: string; viewId: string; cause: 'handoff' | 'activity'; handoffId?: string } | null = null;
|
|
1177
1177
|
if (handoff) {
|
|
1178
1178
|
wake = {
|
|
@@ -83,7 +83,7 @@ export function isClawHubUrl(url: string): boolean {
|
|
|
83
83
|
* is taken by multiple owners (409 AMBIGUOUS_SKILL_SLUG otherwise) —
|
|
84
84
|
* dropping it from the URL made `somora skill install
|
|
85
85
|
* https://clawhub.ai/steipete/skills/gog` fail on any contested slug
|
|
86
|
-
* (
|
|
86
|
+
* (Partner case study 2026-07-24). Returns null on unrecognized shapes. */
|
|
87
87
|
export function parseClawHubUrl(url: string): { slug: string; owner?: string } | null {
|
|
88
88
|
let u: URL;
|
|
89
89
|
try {
|
package/src/cli/skill.ts
CHANGED
|
@@ -152,7 +152,7 @@ async function cmdCheck(args: string[]): Promise<number> {
|
|
|
152
152
|
if (!skill) {
|
|
153
153
|
// Distinguish "no file on disk" from "file exists but loader rejected".
|
|
154
154
|
// The bare 'not found' message used to hide parse/schema errors that the
|
|
155
|
-
// loader logs as warnings and silently skips (see
|
|
155
|
+
// loader logs as warnings and silently skips (see ada bug 2026-05-11).
|
|
156
156
|
const skillDir = join(USER_SKILLS_DIR, slug);
|
|
157
157
|
const skillMdPath = join(skillDir, 'SKILL.md');
|
|
158
158
|
if (await pathExists(skillMdPath)) {
|
package/src/cli/somora.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
23
23
|
|
|
24
24
|
import { SOMORA_VERSION } from '../version.ts';
|
|
25
25
|
import { buildSystemdUnit, extractCustomEnvLines, nodePathLine } from './systemd-unit.ts';
|
|
26
|
-
import { compareVersions, parseUpdateArgs } from './update-args.ts';
|
|
26
|
+
import { allowScriptsArgs, compareVersions, parseUpdateArgs } from './update-args.ts';
|
|
27
27
|
import {
|
|
28
28
|
LAUNCHD_LABEL, launchdAvailable, launchdLoaded, launchdPid, launchdPlistPath, launchdRestart, launchdStart,
|
|
29
29
|
launchdStop, nodeDirOnPath, writeLaunchdPlist,
|
|
@@ -530,7 +530,8 @@ async function cmdUpdate(args: string[]): Promise<number> {
|
|
|
530
530
|
// tested with; no in-place re-resolve needed afterwards.
|
|
531
531
|
const spec = `${SOMORA_NPM_NAME}@${target.version}`;
|
|
532
532
|
process.stdout.write(` npm install -g ${spec}\n`);
|
|
533
|
-
const
|
|
533
|
+
const allow = allowScriptsArgs(run('npm', ['config', 'get', 'allow-scripts']).stdout);
|
|
534
|
+
const ri = spawnSync('npm', ['install', '-g', '--no-audit', '--no-fund', ...allow, spec], { encoding: 'utf8', stdio: ['inherit', 'inherit', 'pipe'] });
|
|
534
535
|
if (ri.stderr) process.stderr.write(ri.stderr);
|
|
535
536
|
if (ri.status !== 0) {
|
|
536
537
|
if (/EACCES/.test(ri.stderr ?? '')) {
|
|
@@ -119,14 +119,14 @@ function UserTurn({
|
|
|
119
119
|
// local human just typed. Same line height, similar weight — keeps
|
|
120
120
|
// scrollback rhythm intact.
|
|
121
121
|
if (fromAgent) {
|
|
122
|
-
// Sender from a non-main session shows as `↬
|
|
122
|
+
// Sender from a non-main session shows as `↬ nova/craftbox`
|
|
123
123
|
// so mis-routed project traffic is visible in scrollback; main
|
|
124
|
-
// stays the plain `↬
|
|
124
|
+
// stays the plain `↬ nova` it always was.
|
|
125
125
|
const slug = fromSession ? sessionSlugOf(fromSession) : undefined;
|
|
126
126
|
const tag = `↬ ${fromAgent}${slug && slug !== 'main' ? `/${slug}` : ''}`.padEnd(6, ' ');
|
|
127
127
|
// The tag must not give way to a long message: Ink lays the row out
|
|
128
|
-
// as a flex line and shrank "↬
|
|
129
|
-
// (
|
|
128
|
+
// as a flex line and shrank "↬ bea" to "↬ lis" beside a follow-up
|
|
129
|
+
// (the operator, 2026-09-13). The name keeps its width; the text wraps.
|
|
130
130
|
return (
|
|
131
131
|
<Box marginTop={1}>
|
|
132
132
|
<Box flexShrink={0} marginRight={1}>
|
package/src/cli/update-args.ts
CHANGED
|
@@ -53,3 +53,17 @@ export function compareVersions(a: string, b: string): number {
|
|
|
53
53
|
if (bpre === undefined) return -1;
|
|
54
54
|
return apre < bpre ? -1 : 1;
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
/** Dependencies that build or fetch a binary at install time. npm from
|
|
58
|
+
* 11.16 on wants them named on a global install (`--allow-scripts`);
|
|
59
|
+
* today it only warns, a stricter default would leave node-pty and
|
|
60
|
+
* better-sqlite3 unbuilt. update-args.test.mts holds this list against
|
|
61
|
+
* npm-shrinkwrap.json and install.sh. */
|
|
62
|
+
export const ALLOW_SCRIPTS = ['better-sqlite3', 'cpu-features', 'esbuild', 'fsevents', 'node-pty', 'onnxruntime-node', 'protobufjs', 'ssh2'];
|
|
63
|
+
|
|
64
|
+
/** Extra arguments for `npm install -g`, given what `npm config get
|
|
65
|
+
* allow-scripts` printed: an npm that does not know the setting says
|
|
66
|
+
* "undefined" and must not get the flag. */
|
|
67
|
+
export function allowScriptsArgs(configGetOutput: string): string[] {
|
|
68
|
+
return configGetOutput.trim() === 'undefined' ? [] : [`--allow-scripts=${ALLOW_SCRIPTS.join(',')}`];
|
|
69
|
+
}
|
package/src/config/loader.ts
CHANGED
|
@@ -33,7 +33,7 @@ providers:
|
|
|
33
33
|
anthropic:
|
|
34
34
|
engine: claude-cli
|
|
35
35
|
models:
|
|
36
|
-
- id: claude-opus-5
|
|
36
|
+
- id: claude-opus-5-5
|
|
37
37
|
alias: opus
|
|
38
38
|
contextWindow: 1000000
|
|
39
39
|
capabilities: [text, image, pdf, reasoning]
|
|
@@ -97,8 +97,12 @@ providers:
|
|
|
97
97
|
# minScore: 0.5 # Treffer unter diesem Score verwerfen (0..1)
|
|
98
98
|
# maxTokens: 1500 # Hard-Cap auf den injecten Memory-Block
|
|
99
99
|
# hybrid:
|
|
100
|
-
# vectorWeight: 0.7 #
|
|
101
|
-
# bm25Weight: 0.3 #
|
|
100
|
+
# vectorWeight: 0.7 # weight of vector similarity in the fused score
|
|
101
|
+
# bm25Weight: 0.3 # weight of BM25 (keyword) score
|
|
102
|
+
# slugMatchBoost: 1.5 # page whose name contains a query word (1 = off)
|
|
103
|
+
# slugFullNameBoost: 1.5 # extra when the query names the page in full (1 = off)
|
|
104
|
+
# logDemotion: 0.5 # wiki change logs rank behind the pages (1 = off)
|
|
105
|
+
# pageSupport: 0.3 # a page matching in several sections gains support (0 = off)
|
|
102
106
|
|
|
103
107
|
# Workspace — Default-CWD für die file_*-Tools. Kein Sandkasten:
|
|
104
108
|
# Agents dürfen auch außerhalb schreiben (eigene Persona-Files,
|
|
@@ -262,7 +266,7 @@ export function applyCodexCliEnv(config: Config): void {
|
|
|
262
266
|
// SOMORA_CODEX_SHELL_ENV_POLICY → `-c shell_environment_policy.inherit=…`.
|
|
263
267
|
// Default 'inherit-all' makes codex's exec-shells see the full somora
|
|
264
268
|
// server env (GOG_KEYRING_PASSWORD etc.) — fixes the 2026-05-10
|
|
265
|
-
//
|
|
269
|
+
// bea/gog regression where codex's default core-only env stripping
|
|
266
270
|
// hid skill-required vars from the agent's shell.
|
|
267
271
|
if (
|
|
268
272
|
process.env.SOMORA_CODEX_SHELL_ENV_POLICY === undefined ||
|