feat(run): support per-session routing matrix via --matrix#236
Open
ramparte wants to merge 1 commit into
Open
Conversation
Add a --matrix option to the run command, mirroring --bundle for per-session selection. When supplied, it injects default_matrix into the mounted hooks-routing config within the prepared bundle's mount plan; nothing is persisted to settings (scope is strictly this session). If the bundle does not mount hooks-routing, a warning is printed and launch continues. amplifier run --matrix anthropic "your prompt"
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.
What
Adds the ability to select a routing matrix per session on the command line, akin to
--bundlefor per-session bundle selection.amplifier run --matrix anthropic "your prompt"How
--matrix <name>Click option onrun.default_matrixinto the mountedhooks-routingconfig within the prepared bundle'smount_plan— the same mount-plan mutation pattern already used for--provider(run.py). This mirrors newtui'sinject_routing_configbridge.hooks-routing, a clear warning is printed and launch continues (no crash).Scope is deliberately minimal: no persistent
routing usesubcommand or settings changes in this PR.Tests
tests/test_run_matrix_flag.py(3 tests, all passing):run --matrix foosetsdefault_matrixon the hooks-routing entry, leaves unrelated hooks untouched--matrixinjects nothinghooks-routing→ warns and continues, no mutation