fix(cli): keep Claude HUD floors on virtual presets (0.1.15) - #72
Merged
Merged
Conversation
Peel [1m]/[500k] into routing.min_context, keep the suffix on ANTHROPIC_MODEL for anyrouter/* presets, and stop catalog lookup from inheriting auto's 200k window. Concrete ids stay unsuffixed. Bump 0.1.15.
Bare `anyr update` / `--check` follow config channel; only --beta/--stable persist a switch. Checksum mismatch, missing assets, or a corrupt download warns and falls back to the next good release on that channel.
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": 2948680,
"size": "2.8 MiB",
"version": "0.1.15 (built 2026-09-16 09:43:25)",
"target": "aarch64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 4.67,
"median_ms": 6.52,
"p95_ms": 10.42,
"mean_ms": 7.37
},
"startup_help": {
"n": 21,
"min_ms": 3.86,
"median_ms": 5.62,
"p95_ms": 8.01,
"mean_ms": 5.71
}
},
{
"asset": "anyr-darwin-x86_64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-x86_64",
"bytes": 3158536,
"size": "3.0 MiB",
"version": "0.1.15 (built 2026-09-16 09:43:15)",
"target": "x86_64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 32.28,
"median_ms": 38.55,
"p95_ms": 44.8,
"mean_ms": 38.66
},
"startup_help": {
"n": 21,
"min_ms": 36.51,
"median_ms": 39.38,
"p95_ms": 41.63,
"mean_ms": 39.39
}
},
{
"asset": "anyr-linux-arm64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-arm64",
"bytes": 2888744,
"size": "2.8 MiB",
"version": "0.1.15 (built 2026-09-16 09:42:35)",
"target": "aarch64-unknown-linux-gnu",
"os": "ubuntu-24.04-arm",
"startup_version": {
"n": 21,
"min_ms": 0.65,
"median_ms": 0.69,
"p95_ms": 0.88,
"mean_ms": 0.72
},
"startup_help": {
"n": 21,
"min_ms": 0.67,
"median_ms": 0.71,
"p95_ms": 0.78,
"mean_ms": 0.72
}
},
{
"asset": "anyr-linux-x86_64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
"bytes": 3252160,
"size": "3.1 MiB",
"version": "0.1.15 (built 2026-09-16 09:42:45)",
"target": "x86_64-unknown-linux-gnu",
"os": "ubuntu-latest",
"startup_version": {
"n": 21,
"min_ms": 1.04,
"median_ms": 1.09,
"p95_ms": 1.14,
"mean_ms": 1.1
},
"startup_help": {
"n": 21,
"min_ms": 0.98,
"median_ms": 1.0,
"p95_ms": 1.09,
"mean_ms": 1.02
}
},
{
"asset": "anyr-windows-x86_64.exe",
"kind": "native",
"path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
"bytes": 2693632,
"size": "2.6 MiB",
"version": "0.1.15 (built 2026-09-16T09:44:01Z)",
"target": "x86_64-pc-windows-msvc",
"os": "windows-latest",
"startup_version": {
"n": 21,
"min_ms": 9.07,
"median_ms": 9.3,
"p95_ms": 9.96,
"mean_ms": 9.39
},
"startup_help": {
"n": 21,
"min_ms": 8.72,
"median_ms": 9.0,
"p95_ms": 9.22,
"mean_ms": 9.02
}
},
{
"asset": "anyr.wasm",
"kind": "wasm",
"path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
"bytes": 184424,
"size": "180.1 KiB",
"version": "wasm",
"target": "wasm32-unknown-unknown",
"os": ""
}
] |
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.
Why
anyr claude --model "anyrouter/auto[1m]"showed Claude HUD[200k]instead of[1m]. v0.1.14 / #69 kept the suffix inmodel_id_for_toolbut catalog lookup still probed auto's 200k window, and discovery could remap virtualanyrouter/*.What
[1m]/[500k]intorouting.min_context(EXTRA_BODY).ANTHROPIC_MODELso the HUD shows[1m]/[500k].CLAUDE_CODE_AUTO_COMPACT_WINDOW=1000000when the floor is ≥ 1M.anyrouter/*onto a listing SKU or inherit auto's 200kcontext_length.--dry-runprints finalANTHROPIC_MODEL=anyrouter/auto[1m].Release assets
This token cannot push
.github/workflows/(workflowscope). After merge, dispatch release-binaries on tagv0.1.15(workflow_dispatch) so the stable tag is not empty. The workflow already cross-compiles darwin-x86_64 from macos-latest.Tests
cargo test --locked --all-targets spawnandclaude_CLI dry-run tests, includingclaude_virtual_auto_1m_sets_anthropic_model_suffix_and_compact.