Skip to content

Let a box select an ordered list of agent sets and change it later - #194

Merged
splitbrain merged 2 commits into
splitbrain:mainfrom
splitbrain-bot:agent-set-list
Nov 26, 2026
Merged

splitbrain merged 2 commits into
splitbrain:mainfrom
splitbrain-bot:agent-set-list

Conversation

@splitbrain-bot

Copy link
Copy Markdown

Before this change, a box selected one agent set when it was created, and the user could not change the selection later. Now a box has an ordered list of named agent sets. The user selects the list in the create form and can change it on the details page of the box, the same as the egress profile.

Behavior

  • The orchestrator merges the sets over the global set in the order of the list. The AGENTS.md files are joined in this order. A skill or an MCP server of a set replaces one with the same name from the global set or from an earlier set.
  • A change to the list applies at the next start of the box. The egress proxy allows the MCP hosts of a new set at once.
  • The global set cannot be in the list, because every box gets it. The API refuses a list with the global set, an unknown set, or one set twice with a 400.
  • In the dashboard, the selected sets show as a list with a remove button for each set. A select below the list adds a set to the end. To change the order, the user removes a set and adds it again.

Breaking changes

  • A migration moves the set of each box into the new table box_agent_sets and drops boxes.agent_set_id.
  • POST /api/boxes takes agentSets: string[] instead of agentSet.
  • PUT /api/boxes/:id/agent-sets is new.
  • BoxDetail has agentSets instead of agentSetId and agentSetName.

Other change

A separate commit wraps one paragraph in doc/boxes.md at 120 characters.

Tests

The orchestrator and dashboard test suites pass, including the e2e tests. The new tests cover the merge order, the migration, the API rules and the add and remove flow in the dashboard. Docker is not available in my environment, so I did not run the smoke test.

One line of the paragraph in the box documentation was longer than the line length of the documentation.
A box selected one agent set when it was created, and the selection could not change. A box now has an ordered list
of named sets, which the user selects in the create form and changes on the details page of the box. The
orchestrator merges the sets over the global set in the order of the list, so a later set replaces skills and MCP
servers with the same name from the global set or an earlier set. A change applies at the next start of the box,
and the egress proxy allows the MCP hosts of a new set at once.

The list cannot name the global set, because every box gets it. A migration moves the set of each box into the new
table box_agent_sets.

The API changed. POST /api/boxes takes agentSets instead of agentSet, PUT /api/boxes/:id/agent-sets is new, and
BoxDetail has agentSets instead of agentSetId and agentSetName.
@splitbrain
splitbrain merged commit fc91ee1 into splitbrain:main Nov 26, 2026
7 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.

2 participants