Skip to content

Swarm findings and one swarm view; model-chosen search result counts - #57

Merged
fabricio3g merged 2 commits into
mainfrom
fix/open-issues
Nov 24, 2026
Merged

fabricio3g merged 2 commits into
mainfrom
fix/open-issues

Conversation

@fabricio3g

Copy link
Copy Markdown
Owner

Brings two commits that landed on fix/open-issues after #56 was merged.

Swarm: shared findings and one view (e369d72)

Swarm members can now talk to each other while they work.

  • Findings log on the board (Board.findings, newest 200 kept).
  • swarm tool for every card's subagent: post a finding to everyone or to named cards, read the cards and the log. Each member also gets an inbox, so a post reaches the members still working at their next step without interrupting a model call. Cards that start later get the findings in their prompt.
  • Lead: the newest ten findings come back with every board result, and board post broadcasts a decision or correction to the working members.
  • Desktop: a turn's swarm members draw as one SwarmBlock in the transcript (a row per card: status, id, title, role · model, activity, waits for / feeds, then the newest findings) instead of the subagent count line. The Board pane lists the full log; board cards lose their coloured rails and borders.
  • TUI: member cards read as their card (c2 Title Role, · feeds c3, ✎ c1 → c2 finding), and /board shows the newest findings under the columns.

Search (c749f78)

The model chooses how many search results to fetch; the results-count setting is gone.

Checks

  • cargo check --workspace --all-targets: zero warnings.
  • New tests pass: core findings delivery and log cap, TUI swarm card and /board findings, Desktop swarm-lanes.spec.ts; the existing 72 core subagent tests still pass.
  • svelte-check: clean for the touched files.
  • Not yet exercised end to end with a live model.

🤖 Generated with Claude Code

…tting

Settings -> Search had a "Target results" field (default 6) left over from
the old Electron search. It fed plain chat search and was copied into the
core's web.json, while the Home web_search tool ignored it and used a fixed
8/12/18 by depth.

- Remove the field, its copy in every locale, `search.max_results` from the
  config types and defaults (an old saved value is deleted on load), and
  stop syncing it to the core.
- Home `web_search` exposes `max_results` (1-50) to the model and uses what
  it asks for; the depth's 8/12/18 applies only when it gives none. The
  search engine takes the caller's count up to 50.
- Home research no longer refuses a search once it judges the evidence
  sufficient: the model searches as much as it needs, bounded only by the
  turn's tool budget and the identical-call loop guard.
- Core `web_search` describes `max_results` as the model's choice.
Swarm members can now talk to each other while they work. The board keeps
a findings log; each card's subagent gets a `swarm` tool to post a finding
(to everyone or to named cards) and read the cards and log, plus an inbox
so posts reach working members at their next step. Cards that start later
get the findings in their prompt, the lead sees the newest in every board
result, and `board` `post` lets the lead broadcast a decision.

Display: on Desktop a turn's swarm members draw as one SwarmBlock (a lane
per card with status, role, model, activity, waits-for/feeds, then the
newest findings) instead of the subagent tally, and the Board pane lists
the whole log. Board cards drop their coloured rails and borders. In the
TUI, member cards read as their card with what they feed and their newest
finding, and /board shows findings under the columns.
@fabricio3g
fabricio3g merged commit ac2d83c into main Nov 24, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant