Skip to content

Add Agents and Tiers rows to SWARM form with per-run tier rebinding - #380

Merged
neich merged 2 commits into
mainfrom
feat/upda-swarm-panel
Nov 16, 2026
Merged

neich merged 2 commits into
mainfrom
feat/upda-swarm-panel

Conversation

@neich

@neich neich commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Lets a swarm run rebind tiers to other clients and efforts of the selected profile, and exposes that in the TUI SWARM form through new Agents and Tiers rows. The CLI gains matching --tier-client / --tier-effort flags.

Changes

  • gaviero-dsl (profile.rs, inspect.rs, lib.rs): profile merging now supports per-run rebinding of a tier to another client and/or effort. Rebinding is limited to clients declared in the selected profile. inspect.rs gains additional inspection support (+216 lines) for the form. New tests in tests/profiles.rs.
  • gaviero-cli (main.rs): new --tier-client <tier>=<client> and --tier-effort <tier>=<effort> options, applied on top of the selected profile for one run.
  • gaviero-tui (swarm_dashboard.rs, swarm_run.rs, prompt_input.rs): SWARM form gets Agents and Tiers rows for editing each agent's tier and each tier's client/effort. Run wiring passes the overrides through. Small prompt_input adjustment.
  • Docs: root CLAUDE.md, per-crate CLAUDE.md files and the CLI/DSL READMEs updated to describe the new flags and form rows.

Testing

  • git diff --check origin/main...HEAD
  • cargo test — skipped (not run for this PR description)

Risks / Notes

  • The test suite was not run as part of this PR context; new profile tests in crates/gaviero-dsl/tests/profiles.rs have not been verified here.
  • The TUI form changes are large (~780 lines in swarm_dashboard.rs) and have no verification beyond the diff check; a manual check of the SWARM panel is advisable.
  • Rebinding is deliberately restricted to clients of the selected profile; scripts still cannot declare clients or models.

Adds --tier-client and --tier-effort to gaviero-cli, backed by a
TierOverride type and compile_file_with_models in the DSL that point a
tier at another client of the same profile or change its effort for one
run. Also adds profile and agent inspection helpers and documents the
flags, with tests covering rebinding, added tiers and error cases.
The SWARM form now reads the selected profile and lets the user change
each agent's tier and each tier's client and effort, passing only
changed rows to the run as tier overrides. The form uses a choice list
popup for these rows, and the TUI docs describe the new behavior.
@neich
neich merged commit 00a0706 into main Nov 16, 2026
3 of 4 checks passed
@neich
neich deleted the feat/upda-swarm-panel branch November 16, 2026 12:58
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