Repository navigation
Select models by tier only and add runtime for-loops to swarm - #379
Merged
Merged
Conversation
Scripts now name a tier per agent and never declare clients; the model profile is the single place a tier becomes a model. The CLI replaces --tiers-file with --tier AGENT=TIER and passes the profile to the compiler, and the TUI swarm form follows the new API.
Docs and example scripts drop client blocks and tier bindings in favor of per-agent tiers, and a single default model profile replaces the old client roster and doc profiles. A new deep_explore example shows the runtime for and budget features.
Docs and example scripts drop client blocks and tier bindings in favor of per-agent tiers, and a single default model profile replaces the old client roster and doc profiles. A new deep_explore example shows the runtime for and budget features.
The swarm runtime gains runtime for expansion, parallel dispatch, budget enforcement and produces-json validation, and retries now report the summed cost of every attempt. The coordinator prompt teaches tiers, produces and timeout, and the new WorkUnit field is carried through every constructor.
The swarm runtime gains runtime for expansion, parallel dispatch, budget enforcement and produces-json validation, and retries now report the summed cost of every attempt. The coordinator prompt teaches tiers, produces and timeout, and the new WorkUnit field is carried through every constructor.
The grammar is updated and its generated parser and node types are regenerated from grammar.js, with matching highlight queries, VS Code syntax and corpus tests. The editor highlight and prompt input code follow the new syntax.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the DSL, CLI and swarm panel to tier-only model selection: models are chosen by tier, and tiers resolve to models only in model profiles. Also adds runtime
forloops, budgets, JSON outputs and cost totals to the swarm pipeline, and teaches the tree-sitter grammar and highlighting the new syntax.Changes
tiers {}block andgaviero-cli --tier <agent>=<tier>override it.profiles/<name>.gaviero) are the one place a tier maps to a client/model.--profile <name|path>selects one, anddefaultis used otherwise.gaviero-dsl/src/tiers.rs, theclients.gavieroexample and thedoc-claude,doc-codexanddoc-cursorprofiles. Addedprofiles/default.gaviero.ast,parser,compiler,profile,workflow_paramsandinspectingaviero-dsl. Updated CLI flags ingaviero-cli/src/main.rs. Updated the swarm panel (swarm_run.rs,swarm_dashboard.rs,prompt_input.rs).gaviero-core)swarm/runtime_for.rsfor runtimeforloops.swarm/pipeline.rs. Changes tospawn.rs,plan.rs,coordinator.rs,loop_resume.rs,models.rsandbackend/runner.rs. Smaller edits initeration,router,privacy,validationand others.swarm_budget,swarm_parallel_dispatchandswarm_runtime_for.tree-sitter-gaviero(grammar.js, corpus tests,lib.rs),queries/gaviero/highlights.scm, the VS Code TextMate grammar and TUIhighlight.rs.parser.c,grammar.jsonandnode-types.json.deep_explore.gaviero.tests/fixtures/test-profile.gaviero. Extended thecompile,profiles,swarm_contractandloop_resume_contracttests.Testing
git diff --check origin/main...HEADcargo testwas not run (skipped: only runs with--run-tests)Risks / Notes
tier. Client blocks, client params andtier <alias> <client>lines are gone, so existing scripts need migrating.crates/tree-sitter-gaviero/src/parser.c,grammar.jsonandnode-types.jsonare generated fromgrammar.js. Reviewgrammar.jsand the corpus tests rather than the generated diff.swarm/pipeline.rsand the DSL compiler. The test suite has not been run for this PR.