somora 2026.1017.3 → 2026.1106.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 +4 -4
- package/config.example.yaml +54 -23
- package/docs/a2a.md +1 -1
- package/docs/acp.md +5 -2
- package/docs/agents.md +22 -13
- package/docs/api.md +233 -51
- package/docs/browser.md +3 -2
- package/docs/builder.md +280 -34
- package/docs/cache-strategy.md +8 -4
- package/docs/compaction.md +62 -7
- package/docs/display.md +9 -5
- package/docs/dream-phases.md +9 -8
- package/docs/files.md +9 -7
- package/docs/imagegen.md +2 -2
- package/docs/index.md +1 -1
- package/docs/mcp.md +37 -5
- package/docs/memory.md +12 -7
- package/docs/mobile.md +149 -12
- package/docs/models.md +17 -10
- package/docs/projects.md +1 -1
- package/docs/realtime-voice.md +70 -23
- package/docs/resources.md +4 -2
- package/docs/sampling.md +1 -1
- package/docs/security.md +12 -5
- package/docs/sentinel.md +123 -36
- package/docs/setup.md +16 -6
- package/docs/skills.md +1 -1
- package/docs/thinking.md +3 -3
- package/docs/tmux.md +6 -3
- package/docs/tools.md +166 -31
- package/docs/videogen.md +7 -7
- package/docs/web.md +104 -10
- package/docs/wiki.md +7 -6
- package/package.json +1 -1
- package/src/acp/somora-agent.ts +18 -1
- package/src/cli/tui/app.tsx +29 -11
- package/src/cli/tui/stream.ts +4 -1
- package/src/cli/tui/types.ts +7 -0
- package/src/compaction/index.ts +1 -1
- package/src/compaction/midturn.ts +35 -2
- package/src/compaction/summarize.ts +29 -0
- package/src/compaction/types.ts +9 -0
- package/src/config/loader.ts +37 -3
- package/src/config/reload.ts +1 -0
- package/src/config/settings/catalog/agents.ts +324 -0
- package/src/config/settings/catalog/automation.ts +104 -0
- package/src/config/settings/catalog/engines.ts +156 -0
- package/src/config/settings/catalog/general.ts +206 -0
- package/src/config/settings/catalog/images.ts +657 -0
- package/src/config/settings/catalog/index.ts +129 -0
- package/src/config/settings/catalog/interfaces.ts +174 -0
- package/src/config/settings/catalog/memory.ts +557 -0
- package/src/config/settings/catalog/models.ts +344 -0
- package/src/config/settings/catalog/tools-a.ts +298 -0
- package/src/config/settings/catalog/tools-b.ts +339 -0
- package/src/config/settings/catalog/voice.ts +325 -0
- package/src/config/settings/fields.ts +193 -0
- package/src/config/settings/refs.ts +76 -0
- package/src/config/settings/yaml-edit.ts +530 -0
- package/src/config/types.ts +99 -24
- package/src/engine/claude-cli.ts +20 -1
- package/src/engine/codex-cli.ts +27 -16
- package/src/engine/codex-dynamic-tools.ts +4 -26
- package/src/engine/engine-meta-labels.ts +39 -6
- package/src/engine/grok-cli.ts +6 -1
- package/src/engine/grok-home.ts +49 -1
- package/src/engine/openai-compatible.ts +609 -50
- package/src/engine/openai-tool-catalog.ts +568 -0
- package/src/engine/thinking-params.ts +2 -1
- package/src/engine/types.ts +26 -0
- package/src/mcp/config.ts +10 -0
- package/src/mcp/hub/credentials.ts +88 -10
- package/src/mcp/hub/manager.ts +65 -3
- package/src/mcp/server.ts +99 -55
- package/src/mcp/tool-schema.ts +28 -15
- package/src/persona/loader.ts +1 -1
- package/src/sentinel/check-create.ts +7 -2
- package/src/sentinel/check-dry-run.ts +54 -3
- package/src/sentinel/check-judge.ts +27 -0
- package/src/sentinel/check-logic.ts +180 -8
- package/src/sentinel/check-loop.ts +41 -8
- package/src/sentinel/check-store.ts +43 -8
- package/src/sentinel/dispatcher.ts +1 -1
- package/src/sentinel/schedule.ts +9 -2
- package/src/sentinel/scheduler.ts +27 -10
- package/src/sentinel/store.ts +18 -1
- package/src/sentinel/types.ts +17 -4
- package/src/server/activity-stream.ts +13 -0
- package/src/server/agent-order.ts +62 -0
- package/src/server/ask-attended.ts +16 -0
- package/src/server/async-questions.ts +223 -0
- package/src/server/builder-acceptance.ts +190 -0
- package/src/server/builder-busy.ts +6 -3
- package/src/server/builder-facts.ts +225 -0
- package/src/server/builder-prompt.ts +53 -2
- package/src/server/builder-questions.ts +18 -0
- package/src/server/builder-session.ts +14 -3
- package/src/server/builder-turn-end.ts +134 -0
- package/src/server/claude-credential-sync.ts +39 -10
- package/src/server/inbox-sources.ts +2 -2
- package/src/server/index.ts +29 -5
- package/src/server/prompt-assembly.ts +20 -2
- package/src/server/routes/agents.ts +39 -6
- package/src/server/routes/builder.ts +132 -1
- package/src/server/routes/chat.ts +20 -1
- package/src/server/routes/external.ts +31 -9
- package/src/server/routes/server.ts +30 -3
- package/src/server/routes/settings.ts +406 -0
- package/src/server/run-turn-fallback.ts +21 -3
- package/src/server/run-turn-types.ts +8 -0
- package/src/server/run-turn.ts +83 -20
- package/src/server/sse-serializer.ts +3 -1
- package/src/server/start-turn.ts +176 -2
- package/src/server/turn-tool-catalog.ts +65 -0
- package/src/server/work-ledger.ts +1 -0
- package/src/testing/own-home.mts +10 -1
- package/src/tools/agents/ask-result.ts +8 -0
- package/src/tools/agents/ask.ts +9 -0
- package/src/tools/agents/builder-dispatch.ts +64 -10
- package/src/tools/agents/builder-review.ts +176 -0
- package/src/tools/agents/index.ts +2 -0
- package/src/tools/agents/spawn.ts +1 -0
- package/src/tools/agents/status.ts +2 -2
- package/src/tools/browser/tools.ts +48 -28
- package/src/tools/builder/short-descriptions.ts +6 -0
- package/src/tools/builder/tools.ts +103 -10
- package/src/tools/catalog.ts +139 -0
- package/src/tools/exec/job-store.ts +2 -0
- package/src/tools/exec/local.ts +43 -2
- package/src/tools/exec/timeout-repeats.ts +138 -0
- package/src/tools/exec/tools.ts +77 -38
- package/src/tools/file/tools.ts +10 -4
- package/src/tools/file/write-scope.ts +52 -3
- package/src/tools/gating.ts +5 -4
- package/src/tools/memory/tools.ts +3 -2
- package/src/tools/projects/tools.ts +7 -6
- package/src/tools/registry.ts +45 -1
- package/src/tools/sentinel/tools.ts +56 -50
- package/src/tools/skill/tools.ts +9 -9
- package/src/tools/tmux/tools.ts +109 -257
- package/src/types/events.ts +35 -5
- package/src/videogen/generate.ts +47 -0
- package/src/videogen/jobs.ts +2 -0
- package/src/voice/realtime/call.ts +135 -2
- package/src/voice/realtime/manager.ts +6 -0
- package/src/voice/realtime/openai-provider.ts +100 -6
- package/src/voice/realtime/types.ts +5 -1
- package/templates/skills/builder-handover/SKILL.md +22 -0
- package/web/dist/assets/index-BVoxGfbc.js +68 -0
- package/web/dist/assets/index-BVoxGfbc.js.map +1 -0
- package/web/dist/assets/index-X7Hrih2o.css +1 -0
- package/web/dist/index.html +2 -2
- package/web-mobile/dist/assets/index-DiO_w3fL.css +1 -0
- package/web-mobile/dist/assets/index-KDmfPamH.js +47 -0
- package/web-mobile/dist/assets/index-KDmfPamH.js.map +1 -0
- package/web-mobile/dist/index.html +2 -2
- package/web/dist/assets/index-C2J8Fvlt.css +0 -1
- package/web/dist/assets/index-C2UYh7Af.js +0 -68
- package/web/dist/assets/index-C2UYh7Af.js.map +0 -1
- package/web-mobile/dist/assets/index-BUnNxF-t.css +0 -1
- package/web-mobile/dist/assets/index-CqdlMkSS.js +0 -47
- package/web-mobile/dist/assets/index-CqdlMkSS.js.map +0 -1
package/README.md
CHANGED
|
@@ -110,8 +110,8 @@ one you give a repository to.
|
|
|
110
110
|
| **Tools** | The whole programme, gated per agent | A short coding set: files, shell, task list, questions, helpers, colleagues, search |
|
|
111
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 |
|
|
112
112
|
| **Memory** | Notices facts, dreams them into notes and the wiki | Reads memory, never writes it; does not dream |
|
|
113
|
-
| **Works in** | Its workspace | The pinned project's folder, and
|
|
114
|
-
| **Window** | Chat | Chat plus a task panel: mode, plan → Go, tasks, questions, running time |
|
|
113
|
+
| **Works in** | Its workspace | The pinned project's folder, and folders an order allows besides it |
|
|
114
|
+
| **Window** | Chat | Chat plus a task panel, in the web client and on the phone: mode, plan → Go, tasks, acceptance list, questions, running time |
|
|
115
115
|
| **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 |
|
|
116
116
|
|
|
117
117
|
You can talk to a builder directly — describe the project, let it plan,
|
|
@@ -134,7 +134,7 @@ On top of chat and memory, each optional and off until configured:
|
|
|
134
134
|
prompt, hand back, and the agent continues in the same tab
|
|
135
135
|
([docs/browser.md](docs/browser.md)).
|
|
136
136
|
- **Talking to an agent** — a standing, interruptible voice call in the
|
|
137
|
-
web client: a realtime model does the talking, the agent does the
|
|
137
|
+
web client or on the phone: a realtime model does the talking, the agent does the
|
|
138
138
|
knowing, and a long answer is read out when it lands
|
|
139
139
|
([docs/realtime-voice.md](docs/realtime-voice.md)). Separate from
|
|
140
140
|
dictation and spoken replies ([docs/voice.md](docs/voice.md)).
|
|
@@ -373,7 +373,7 @@ Three first-party clients, all hitting the same local server:
|
|
|
373
373
|
|---|---|---|
|
|
374
374
|
| **TUI** | `somora tui` | Terminal multi-agent chat with full keyboard control, the session's queue (`/queue`), memory and tool detail toggles. |
|
|
375
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) |
|
|
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) |
|
|
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, a tools switch that shows a turn's tool calls, a builder's panel (mode, phase, Go, task and acceptance lists), voice input and spoken replies, a live voice call with an agent, 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) |
|
|
377
377
|
|
|
378
378
|
Anything else can talk to the server the same way the clients do, with
|
|
379
379
|
the server's key in an `Authorization: Bearer` header:
|
package/config.example.yaml
CHANGED
|
@@ -63,8 +63,9 @@ server:
|
|
|
63
63
|
# models with this capability. For models without it, the
|
|
64
64
|
# setting is dormant and the TUI marks it accordingly.
|
|
65
65
|
providers:
|
|
66
|
-
# Anthropic via Claude Code subscription. Uses the
|
|
67
|
-
#
|
|
66
|
+
# Anthropic via Claude Code subscription. Uses the Claude Code bundled
|
|
67
|
+
# with somora (or your own, when installed); log in with
|
|
68
|
+
# `somora claude login`. No baseUrl / apiKey needed.
|
|
68
69
|
anthropic:
|
|
69
70
|
engine: claude-cli
|
|
70
71
|
models:
|
|
@@ -519,6 +520,9 @@ providers:
|
|
|
519
520
|
# compaction:
|
|
520
521
|
# triggerRatio: 0.8 # compact at 80% of the input budget (window minus the answer)
|
|
521
522
|
# safetyCushionPairs: 4 # keep N most-recent user/assistant pairs uncompacted
|
|
523
|
+
# builderTargetRatio: 0.6 # builders only: a turn starts with at most 60% of the input
|
|
524
|
+
# # budget used; the compaction keeps only the newest exchanges
|
|
525
|
+
# # that fit below it (0.2 to 0.9)
|
|
522
526
|
# modelOverride: opus # force a specific worker model (alias or provider/id)
|
|
523
527
|
# workers: [small-local, big-local, opus] # who may summarise, in the order they are tried.
|
|
524
528
|
# # A model that is not listed is never a worker. Without the list
|
|
@@ -539,13 +543,15 @@ providers:
|
|
|
539
543
|
# # google has no adapter yet (different protocol entirely).
|
|
540
544
|
# model: gpt-realtime-2.1-mini
|
|
541
545
|
# apiKeyFile: ~/.somora/secrets/openai-realtime.key # a FILE (chmod 600), never the key itself
|
|
542
|
-
# # url: ws
|
|
546
|
+
# # url: ws://<host>:8766/v1/realtime # where to connect. Omitted = OpenAI. Required for
|
|
543
547
|
# # provider: local. The model id is appended as ?model=…, and a
|
|
544
548
|
# # service without a credential needs no apiKeyFile.
|
|
545
|
-
# transport: websocket # audio goes browser -> somora -> provider
|
|
546
549
|
# defaultVoice: alloy # alloy ash ballad coral echo sage shimmer verse marin cedar
|
|
550
|
+
# # provider: local -> defaultVoice: <set-name>, a set on the service
|
|
547
551
|
# consultPolicy: always # auto | substantive | always — when the voice must ask the agent
|
|
548
552
|
# maxCallMinutes: 20 # hard stop; the meter runs while nobody speaks
|
|
553
|
+
# keepTranscript: true # one folded call record per call in the session; the agent's
|
|
554
|
+
# # context, memory and dreams never read it
|
|
549
555
|
# allowAgentSwitch: false # let a call move to another agent or session mid-conversation
|
|
550
556
|
# consult: # how long a spoken question waits on the agent. It queues on
|
|
551
557
|
# # the session like any turn, but a conversation cannot wait on
|
|
@@ -570,7 +576,7 @@ providers:
|
|
|
570
576
|
# back to the parent as a follow-up (an echo). docs/agents.md.
|
|
571
577
|
# subagents:
|
|
572
578
|
# tools:
|
|
573
|
-
# deny: [agent_ask, agent_ask_result, agent_ask_cancel]
|
|
579
|
+
# deny: [agent_ask, agent_ask_result, agent_ask_cancel, builder_review]
|
|
574
580
|
|
|
575
581
|
# Agent-loop tunables. Apply to engines that run
|
|
576
582
|
# their own tool-call loop — currently openai-compatible — for the per-
|
|
@@ -597,9 +603,9 @@ providers:
|
|
|
597
603
|
#
|
|
598
604
|
# maxTurnMs: 28800000 # optional wall-clock cap per turn (ms).
|
|
599
605
|
# # Unset = none. Builder agents (agent.yaml
|
|
600
|
-
# # kind: builder) default to
|
|
601
|
-
# # 2000 tool calls and 8 h per turn
|
|
602
|
-
# # may override all three per agent
|
|
606
|
+
# # kind: builder) default to no round
|
|
607
|
+
# # cap, 2000 tool calls and 8 h per turn
|
|
608
|
+
# # and may override all three per agent
|
|
603
609
|
# # (agent.yaml agentLoop, docs/builder.md).
|
|
604
610
|
#
|
|
605
611
|
# toolCallTimeoutMs: 30000 # 30 sec — fast tools (memory_search,
|
|
@@ -681,9 +687,9 @@ providers:
|
|
|
681
687
|
# # serial delivery order.
|
|
682
688
|
# heartbeatMs: 20000 # server→client heartbeat on /chat/stream + /activity/stream
|
|
683
689
|
# deadAfterMs: 60000 # a heartbeat write hanging longer → stream counts as dead, socket closed
|
|
684
|
-
# h2PingIntervalMs: 30000 # HTTP/2 PING
|
|
685
|
-
# h2PingTimeoutMs: 30000 # …
|
|
686
|
-
# keepAliveDelayMs: 30000 # TCP
|
|
690
|
+
# h2PingIntervalMs: 30000 # HTTP/2 PING per client session (TLS listener) …
|
|
691
|
+
# h2PingTimeoutMs: 30000 # … no ACK within this time → session destroyed (tab closed, Wi-Fi gone)
|
|
692
|
+
# keepAliveDelayMs: 30000 # TCP keepalive on every socket (kernel probes on top)
|
|
687
693
|
# tmux attention watcher — somora watches its own tmux sessions that were
|
|
688
694
|
# created with kind "claude-code" or "codex" and detects when the CLI in
|
|
689
695
|
# the pane goes from running to ready (finished OR waiting for input).
|
|
@@ -750,26 +756,46 @@ providers:
|
|
|
750
756
|
# # (PATH/HOME/USER/LANG only). Use only after
|
|
751
757
|
# # auditing every skill — declared env_vars will
|
|
752
758
|
# # silently appear missing inside shells.
|
|
753
|
-
# directTools:
|
|
754
|
-
#
|
|
755
|
-
#
|
|
756
|
-
|
|
757
|
-
#
|
|
758
|
-
#
|
|
759
|
-
# -
|
|
760
|
-
# -
|
|
759
|
+
# directTools: [...] # LEGACY — use toolCatalog below. When set it
|
|
760
|
+
# # replaces toolCatalog.alwaysVisible for codex-cli
|
|
761
|
+
# # only (the server logs that once).
|
|
762
|
+
|
|
763
|
+
# toolCatalog: # docs/tools.md "Always in the list, or found on demand"
|
|
764
|
+
# alwaysVisible: # kept in the model's list on claude-cli, codex-cli and openai-compatible
|
|
765
|
+
# - exec # instead of behind the tool search. Always cut to
|
|
766
|
+
# - process # the tools a turn offers: a tool switched off for
|
|
767
|
+
# - tmux # the agent never shows up. Default = this list.
|
|
768
|
+
# - file_read # A builder's whole (small) set is always in it;
|
|
769
|
+
# - file_write # during a dream review dream_list/get/apply/
|
|
770
|
+
# - file_patch # dismiss/review and wiki_edit join.
|
|
761
771
|
# - file_list
|
|
762
772
|
# - file_search
|
|
763
|
-
# - exec
|
|
764
|
-
# - tmux
|
|
765
773
|
# - web_search
|
|
766
774
|
# - web_fetch
|
|
775
|
+
# - memory_search
|
|
776
|
+
# - memory_get
|
|
777
|
+
# - memory_write
|
|
767
778
|
# - time_now
|
|
768
779
|
# - agent_ask
|
|
780
|
+
# - agent_ask_result
|
|
769
781
|
# - spawn_subagent
|
|
770
782
|
# - subagent_result
|
|
771
|
-
# - somora_docs_list
|
|
772
783
|
# - somora_docs_read
|
|
784
|
+
# - skill
|
|
785
|
+
# - ask_user # listed only when the turn offers it
|
|
786
|
+
# engines: # per engine: add / remove on top of the list
|
|
787
|
+
# codex-cli: { add: [sentinel] }
|
|
788
|
+
# openai-compatible: # mode: catalog (default) sends the list +
|
|
789
|
+
# mode: all # tool_search/tool_call and names the rest at the
|
|
790
|
+
# # end of the system prompt; all sends every schema
|
|
791
|
+
# models: # per model alias or <provider>/<modelId>
|
|
792
|
+
# some-small-model: { add: [sentinel, browser] }
|
|
793
|
+
# weak-local-model: { mode: all } # a model's mode wins over its engine's
|
|
794
|
+
# search: # catalog mode only
|
|
795
|
+
# listingMaxChars: 8000 # the list of the other tools; over it lines shrink,
|
|
796
|
+
# # then only names stay
|
|
797
|
+
# defaultResults: 5 # hits per tool_search query
|
|
798
|
+
# maxResults: 20 # most a model may ask for
|
|
773
799
|
|
|
774
800
|
# memory:
|
|
775
801
|
# embedding:
|
|
@@ -779,6 +805,9 @@ providers:
|
|
|
779
805
|
# # 384 dim, ~30MB), all-mpnet-base-v2 (768 dim,
|
|
780
806
|
# # ~110MB), paraphrase-multilingual-MiniLM-L12-v2
|
|
781
807
|
# # (multilingual, 384 dim, ~120MB)
|
|
808
|
+
# # choose it BEFORE memory is first indexed: a
|
|
809
|
+
# # change later mixes old and new vectors, and a
|
|
810
|
+
# # different vector size stops memory from starting
|
|
782
811
|
# chunking:
|
|
783
812
|
# targetTokens: 400
|
|
784
813
|
# overlapTokens: 80
|
|
@@ -963,7 +992,7 @@ providers:
|
|
|
963
992
|
# maxMessageChars: 64000 # longest task text
|
|
964
993
|
# archiveAfterDays: 7 # quiet conversations with peers are archived
|
|
965
994
|
# tools:
|
|
966
|
-
# deny: [agent_ask, agent_ask_result, agent_ask_cancel, spawn_subagent, spawn_subagents, builder_dispatch, session_model, sentinel]
|
|
995
|
+
# deny: [agent_ask, agent_ask_result, agent_ask_cancel, spawn_subagent, spawn_subagents, builder_dispatch, builder_review, session_model, sentinel]
|
|
967
996
|
|
|
968
997
|
# Web-tools credentials. Per-provider keys — tools whose provider isn't
|
|
969
998
|
# configured are hidden from the agent (the `available()` probe on the
|
|
@@ -996,6 +1025,8 @@ providers:
|
|
|
996
1025
|
# maxConcurrent: 4 # checks running at once, all triggers
|
|
997
1026
|
# errorStreak: 3 # check errors in a row before it stops
|
|
998
1027
|
# maxWakesPerDay: 24 # wakes per check trigger and UTC day
|
|
1028
|
+
# maxItemsPerCheck: 20 # perItem: items judged per check, more wait
|
|
1029
|
+
# parallelDecisions: 4 # perItem: questions to the decision model at once
|
|
999
1030
|
|
|
1000
1031
|
# External MCP servers (docs/mcp.md). somora connects as MCP client,
|
|
1001
1032
|
# imports the servers' tools and offers them to every engine next to the
|
package/docs/a2a.md
CHANGED
|
@@ -407,7 +407,7 @@ curl https://<host>.<tailnet>.ts.net:18737/a2a/agents/<agent>/.well-known/agent-
|
|
|
407
407
|
| `a2a.replyTimeoutSeconds` | `300` | How long a waiting request waits for the answer before it returns the task as still working. |
|
|
408
408
|
| `a2a.maxMessageChars` | `64000` | Longest task text. |
|
|
409
409
|
| `a2a.archiveAfterDays` | `7` | A conversation with a peer is archived after this many days without activity. `0` keeps them. |
|
|
410
|
-
| `a2a.tools.deny` | `agent_ask`, `agent_ask_result`, `agent_ask_cancel`, `spawn_subagent`, `spawn_subagents`, `builder_dispatch`, `session_model`, `sentinel` | Tools a task from outside may not use, as in `subagents.tools.deny`. |
|
|
410
|
+
| `a2a.tools.deny` | `agent_ask`, `agent_ask_result`, `agent_ask_cancel`, `spawn_subagent`, `spawn_subagents`, `builder_dispatch`, `builder_review`, `session_model`, `sentinel` | Tools a task from outside may not use, as in `subagents.tools.deny`. |
|
|
411
411
|
|
|
412
412
|
The address of an agent is `<publicUrl>/a2a/agents/<agent>`. somora
|
|
413
413
|
needs no extra port: the A2A endpoint is part of its server, reachable
|
package/docs/acp.md
CHANGED
|
@@ -18,7 +18,7 @@ somora, see [External agents](external-agents.md).
|
|
|
18
18
|
- **Your agent in the editor.** Text and thinking stream in, and every
|
|
19
19
|
tool call shows with its result.
|
|
20
20
|
- **Sessions.** A new conversation in the editor is a new somora
|
|
21
|
-
session named `acp-<date>-<time>`. The editor can list the agent's
|
|
21
|
+
session named `acp-<date>-<time>-<tail>`. The editor can list the agent's
|
|
22
22
|
sessions and open earlier ones, with their history replayed.
|
|
23
23
|
- **A builder's plan.** When a builder agent updates its task list, the
|
|
24
24
|
editor shows it as the plan.
|
|
@@ -29,6 +29,9 @@ somora, see [External agents](external-agents.md).
|
|
|
29
29
|
taken out of the queue, and the other turn keeps running.
|
|
30
30
|
- **Images.** Images you add in the editor reach the agent as
|
|
31
31
|
attachments.
|
|
32
|
+
- **Questions.** A chat agent's question does not wait. It appears in
|
|
33
|
+
the reply as text with its options, and your next message answers
|
|
34
|
+
it.
|
|
32
35
|
- **The context fill**, when the agent's model reports it.
|
|
33
36
|
|
|
34
37
|
## Try it
|
|
@@ -45,7 +48,7 @@ the protocol.
|
|
|
45
48
|
|
|
46
49
|
| Option | Meaning |
|
|
47
50
|
|---|---|
|
|
48
|
-
| `--agent <name>` | The somora agent to talk to. Default: the first agent by name. |
|
|
51
|
+
| `--agent <name>` | The somora agent to talk to. Default: the first somora agent by name (external agents are skipped). |
|
|
49
52
|
| `--session <name>` | Every new conversation in the editor opens this session (for example `main`) instead of a new one. |
|
|
50
53
|
|
|
51
54
|
## Zed
|
package/docs/agents.md
CHANGED
|
@@ -72,9 +72,9 @@ and is set up in `config.yaml`, not in an agent folder.
|
|
|
72
72
|
| **Its prompt** | Its persona files, your team, the wiki map, memory recall | Harness rules, an environment block, the repository's own `AGENTS.md` or `CLAUDE.md`. No persona prose, no memory recall |
|
|
73
73
|
| **Tools** | Everything configured, minus what you hide | A short coding set, plus what you allow |
|
|
74
74
|
| **Skills** | All, minus what you hide | None, plus what you allow |
|
|
75
|
-
| **Turn limits** | The server's `agentLoop` values: 8 rounds, 30 tool calls |
|
|
76
|
-
| **Memory** | Notices facts, dreams them into notes and the wiki | Reads memory, never writes it, does not dream |
|
|
77
|
-
| **Works in** | Its workspace | The pinned project's folder |
|
|
75
|
+
| **Turn limits** | The server's `agentLoop` values: 8 rounds, 30 tool calls | No round cap, 2000 tool calls, 8 hours |
|
|
76
|
+
| **Memory** | Notices facts, dreams them into notes and the wiki | Reads memory, never writes it, does not dream unless `dreams: true` |
|
|
77
|
+
| **Works in** | Its workspace | The pinned project's folder, and folders an order allows |
|
|
78
78
|
| **Window** | Chat | Chat plus a task panel |
|
|
79
79
|
|
|
80
80
|
## The agent folder
|
|
@@ -148,7 +148,7 @@ The system prompt of a chat agent has these parts, in this order:
|
|
|
148
148
|
| Self-pointer | The agent's name, the paths of its persona files and `agent.yaml`, its workspace, the path of `config.yaml`, the visible remote resources, and how to link local files and show images in a reply. |
|
|
149
149
|
| Persona | `SOUL.md`, `AGENTS.md`, `USER.md`. |
|
|
150
150
|
| Team block | Rendered from `team.yaml`. |
|
|
151
|
-
| Tool reminder | A short constant text, when the agent has tools. |
|
|
151
|
+
| Tool reminder | A short constant text, when the agent has tools. In a turn a person started, one more line tells the agent to ask questions with clear choices through `ask_user`. |
|
|
152
152
|
| Wiki overview | A map of the shared wiki, fixed when the session starts. |
|
|
153
153
|
| Skills | The skills this agent may use. |
|
|
154
154
|
| This session | The session's name. |
|
|
@@ -439,14 +439,14 @@ The sub keeps running and the parent is woken when it finishes.
|
|
|
439
439
|
|
|
440
440
|
A session started as a sub-agent never gets the tools listed under
|
|
441
441
|
`subagents.tools.deny` in `config.yaml`, whatever persona and model it
|
|
442
|
-
runs with. By default these are `agent_ask`, `agent_ask_result
|
|
443
|
-
`agent_ask_cancel`. A sub's final answer reaches its parent on its own,
|
|
442
|
+
runs with. By default these are `agent_ask`, `agent_ask_result`,
|
|
443
|
+
`agent_ask_cancel` and `builder_review`. A sub's final answer reaches its parent on its own,
|
|
444
444
|
so it has nothing to send that way.
|
|
445
445
|
|
|
446
446
|
```yaml
|
|
447
447
|
subagents:
|
|
448
448
|
tools:
|
|
449
|
-
deny: [agent_ask, agent_ask_result, agent_ask_cancel] # the default
|
|
449
|
+
deny: [agent_ask, agent_ask_result, agent_ask_cancel, builder_review] # the default
|
|
450
450
|
```
|
|
451
451
|
|
|
452
452
|
- The entries take the same forms as `tools.deny` in `agent.yaml`: a
|
|
@@ -703,6 +703,13 @@ How the fallback chain works:
|
|
|
703
703
|
- **Refusals as text.** Some providers send their refusal, such as a
|
|
704
704
|
quota notice, as answer text and then report an error. That text is
|
|
705
705
|
not an answer, so the chain still runs.
|
|
706
|
+
- **A conversation too big is not a failure.** When it does not fit
|
|
707
|
+
the model's window even after compacting twice, the chain skips
|
|
708
|
+
every backup whose window is no larger. A smaller model cannot hold
|
|
709
|
+
what a bigger one could not.
|
|
710
|
+
- **The asking agent sees it.** An agent that asked this one gets the
|
|
711
|
+
model that answered (`model`) and, after a switch, `fallback` with
|
|
712
|
+
the model it asked for and why. Its wake-up says so too.
|
|
706
713
|
- **You see it.** The turn carries a fallback chip and the web client
|
|
707
714
|
shows a notice.
|
|
708
715
|
- **Dead models are remembered.** A model that was unreachable is
|
|
@@ -722,7 +729,7 @@ How the fallback chain works:
|
|
|
722
729
|
| `a2a` | boolean | `false` | Other agent systems may send this agent tasks over [A2A](a2a.md#taking-work-in), if `config.yaml` lists them under `a2a.peers`. Also the A2A switch in the Agent window. Never for a builder. |
|
|
723
730
|
| `steering` | boolean | `false` | Default for a message typed in the web client while a turn runs. `true` hands it into the running turn before its next step. `false` queues it as its own turn. The toggle next to Send flips it per message. Steering works on every engine: `openai-compatible`, `claude-cli`, `codex-cli` and `grok-cli`. |
|
|
724
731
|
| `imageReview` | `never`, `always` | `never` | `always` feeds each generated image back to the agent so it can judge it, about 2k tokens per image. Not a lock: the agent can set `return_image` per call either way. |
|
|
725
|
-
| `agentLoop.maxRounds` | integer | server value (8) | Rounds per turn on the `openai-compatible` engine. Builders
|
|
732
|
+
| `agentLoop.maxRounds` | integer | server value (8) | Rounds per turn on the `openai-compatible` engine. Builders have none unless set. |
|
|
726
733
|
| `agentLoop.maxToolCallsPerTurn` | integer | server value (30) | Tool calls per turn, across all rounds. Builders default to 2000. |
|
|
727
734
|
| `agentLoop.maxTurnMs` | integer | none | Time limit per turn in milliseconds. Builders default to 8 hours. |
|
|
728
735
|
|
|
@@ -739,7 +746,8 @@ How the fallback chain works:
|
|
|
739
746
|
|
|
740
747
|
Rules for `tools` and `skills`:
|
|
741
748
|
|
|
742
|
-
- A name under `deny` beats
|
|
749
|
+
- A name under `deny` beats every other rule in this file. The dream
|
|
750
|
+
and wiki-writing tools follow the `dreams` switch instead. A name or pattern under
|
|
743
751
|
`allow` beats a family rule under `deny`, which makes it an
|
|
744
752
|
exception. No block means no restriction.
|
|
745
753
|
- A tool pattern is an exact name (`web_search`), a toolset
|
|
@@ -809,7 +817,7 @@ an `openai-compatible` provider.
|
|
|
809
817
|
| `agentLoop.longTaskMaxTimeoutMs` | `1800000` | Longest wait. |
|
|
810
818
|
| `agentLoop.wakeGraceMs` | `3000` | Delay before a wake turn. 0 to 60000. |
|
|
811
819
|
| `agentLoop.toolUsageReminder` | `true` | The tool reminder in the prompt. |
|
|
812
|
-
| `subagents.tools.deny` | `[agent_ask, agent_ask_result, agent_ask_cancel]` | Tools a sub-agent session never gets. See [What a sub does not get](#what-a-sub-does-not-get). |
|
|
820
|
+
| `subagents.tools.deny` | `[agent_ask, agent_ask_result, agent_ask_cancel, builder_review]` | Tools a sub-agent session never gets. See [What a sub does not get](#what-a-sub-does-not-get). |
|
|
813
821
|
| `promptBudgets.personaFileChars` | `8000` | Budget for each of `AGENTS.md`, `SOUL.md`, `USER.md`. |
|
|
814
822
|
| `promptBudgets.personaTotalChars` | `14000` | Budget for the three together. |
|
|
815
823
|
| `promptBudgets.teamBlockChars` | `3000` | Budget for the team block. |
|
|
@@ -856,7 +864,7 @@ agent is there on the next `GET /agents`.
|
|
|
856
864
|
| `GET /agents/:agent/memory/notes` | Lists the agent's indexed notes. |
|
|
857
865
|
| `GET /agents/:agent/memory/search?q=` | Searches memory, wiki and vault, for debugging. |
|
|
858
866
|
| `POST /agents/:agent/dream/run-rem` | Starts REM for this agent now. |
|
|
859
|
-
| `POST /dream/run-deep`, `POST /dream/run-lucid` | Start Deep or Lucid, for the whole install. Body `{wait?, force?}`
|
|
867
|
+
| `POST /dream/run-deep`, `POST /dream/run-lucid` | Start Deep or Lucid, for the whole install. Body `{wait?, force?}` for both. |
|
|
860
868
|
| `GET /spawn-result` | The result of a sub-agent task, as `subagent_result` reads it. |
|
|
861
869
|
|
|
862
870
|
Bodies and answers in full are on the [API](api.md) page.
|
|
@@ -869,8 +877,9 @@ folder name must match the naming rule under [Set it up](#set-it-up).
|
|
|
869
877
|
**The agent ignores its `agent.yaml`.** One invalid value makes somora
|
|
870
878
|
ignore the whole file: the agent then has no model, no tool rules and
|
|
871
879
|
no REM. The log line `persona.agent_yaml_parse_failed` names the key.
|
|
872
|
-
Common causes:
|
|
873
|
-
|
|
880
|
+
Common causes: an unknown key under `sampling`, a `thinking` value
|
|
881
|
+
outside the four levels, a wrong type (e.g. `dreams: "yes"`), or broken
|
|
882
|
+
YAML.
|
|
874
883
|
`persona.agent_yaml_not_object` means the file is not a key and value
|
|
875
884
|
map.
|
|
876
885
|
|