feat(tui): per-agent routing filters (exacto, tools, 1M ctx) - #44
Merged
Conversation
CONFIGURE exposes Exacto / require-tools / ≥1M-context toggles for the highlighted coding agent. Values persist under agents.<id> using AnyRouter preset field names (provider.sort, require_params, min_context) and launch forwards them via CLAUDE_CODE_EXTRA_BODY. The model picker stays anyrouter/auto; LAUNCH stays above CONFIGURE. Closes #43 Co-authored-by: duyet <duyet@users.noreply.github.com>
Isolated control-anyr drive for #43: menu dump with exacto/tools/1M ctx, anyrouter/auto picker, claude --dry-run for auto and free extra-body fields, and a PTY exacto toggle that persists per agent. Co-authored-by: duyet <duyet@users.noreply.github.com>
duyetbot
marked this pull request as ready for review
September 3, 2026 13:04
Contributor
anyr size and startupStartup is wall time for a cold Size budget:
Budget check: ok raw timings[
{
"asset": "anyr-darwin-arm64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-arm64",
"bytes": 2905160,
"size": "2.8 MiB",
"version": "0.1.11 (built 2026-09-03 13:05:24)",
"target": "aarch64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 3.35,
"median_ms": 4.15,
"p95_ms": 6.42,
"mean_ms": 4.38
},
"startup_help": {
"n": 21,
"min_ms": 2.77,
"median_ms": 3.35,
"p95_ms": 5.35,
"mean_ms": 3.66
}
},
{
"asset": "anyr-darwin-x86_64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-x86_64",
"bytes": 3115560,
"size": "3.0 MiB",
"version": "0.1.11 (built 2026-09-03 13:06:10)",
"target": "x86_64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 37.51,
"median_ms": 53.34,
"p95_ms": 65.71,
"mean_ms": 53.94
},
"startup_help": {
"n": 21,
"min_ms": 33.13,
"median_ms": 40.56,
"p95_ms": 56.29,
"mean_ms": 41.81
}
},
{
"asset": "anyr-linux-arm64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-arm64",
"bytes": 2888744,
"size": "2.8 MiB",
"version": "0.1.11 (built 2026-09-03 13:05:17)",
"target": "aarch64-unknown-linux-gnu",
"os": "ubuntu-24.04-arm",
"startup_version": {
"n": 21,
"min_ms": 0.67,
"median_ms": 0.71,
"p95_ms": 0.83,
"mean_ms": 0.73
},
"startup_help": {
"n": 21,
"min_ms": 0.71,
"median_ms": 0.75,
"p95_ms": 0.83,
"mean_ms": 0.75
}
},
{
"asset": "anyr-linux-x86_64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
"bytes": 3217656,
"size": "3.1 MiB",
"version": "0.1.11 (built 2026-09-03 13:05:03)",
"target": "x86_64-unknown-linux-gnu",
"os": "ubuntu-latest",
"startup_version": {
"n": 21,
"min_ms": 0.78,
"median_ms": 0.81,
"p95_ms": 0.85,
"mean_ms": 0.82
},
"startup_help": {
"n": 21,
"min_ms": 0.77,
"median_ms": 0.8,
"p95_ms": 0.86,
"mean_ms": 0.81
}
},
{
"asset": "anyr-windows-x86_64.exe",
"kind": "native",
"path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
"bytes": 2665472,
"size": "2.5 MiB",
"version": "0.1.11 (built 2026-09-03T13:06:34Z)",
"target": "x86_64-pc-windows-msvc",
"os": "windows-latest",
"startup_version": {
"n": 21,
"min_ms": 9.35,
"median_ms": 9.59,
"p95_ms": 10.03,
"mean_ms": 9.65
},
"startup_help": {
"n": 21,
"min_ms": 9.42,
"median_ms": 9.65,
"p95_ms": 10.79,
"mean_ms": 9.77
}
},
{
"asset": "anyr.wasm",
"kind": "wasm",
"path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
"bytes": 180713,
"size": "176.5 KiB",
"version": "wasm",
"target": "wasm32-unknown-unknown",
"os": ""
}
] |
2 tasks
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
agents.<id>using AnyRouter preset field names:provider.sort: exacto,require_params: tools(sent as["tools"]),min_context: 1000000.CLAUDE_CODE_EXTRA_BODY(andANYROUTER_EXTRA_BODYfor dry-run visibility). Driven with--model anyrouter/autoandanyrouter/freeonly — no invented catalog ids, ox-alpha not used on this path.anyrouter/auto(TUI model picker: select anyrouter/auto, do not dump most-used models #37). Empty-query home dump keeps LAUNCH above CONFIGURE (no CONFIGURE flash, no most-used dump). Moving focus to another agent reads that agent's flags from its launch row so on/off does not copy the previous agent.Closes #43.
Verification
Isolated
control-anyrrun (verify-anyr skill). Artifacts:.cursor/skills/verify-anyr/artifacts/routing-filters/.cargo test --locked --lib --test cli: 186 + 68 passedmenu --dump-tui: LAUNCH before CONFIGURE; exacto / tools / 1M ctx; no most-usedmodels --dump-tui: pinsanyrouter/autoclaude --dry-run --yes --model anyrouter/autoandanyrouter/free:CLAUDE_CODE_EXTRA_BODYwithprovider.sort=exacto,require_params=["tools"],min_context=1000000; no agent childoff · for codex); Enter on exacto clearsprovider.sorton claude onlyChecklist