Skip to content

fix(cli): keep Claude HUD floors on virtual presets (0.1.15) - #72

Merged
duyetbot merged 2 commits into
mainfrom
fix/claude-launcher-floors-0.1.15
Sep 16, 2026
Merged

duyetbot merged 2 commits into
mainfrom
fix/claude-launcher-floors-0.1.15

Conversation

@duyetbot

Copy link
Copy Markdown
Member

Why

anyr claude --model "anyrouter/auto[1m]" showed Claude HUD [200k] instead of [1m]. v0.1.14 / #69 kept the suffix in model_id_for_tool but catalog lookup still probed auto's 200k window, and discovery could remap virtual anyrouter/*.

What

  • Peel [1m]/[500k] into routing.min_context (EXTRA_BODY).
  • Virtual presets keep the floor on ANTHROPIC_MODEL so the HUD shows [1m]/[500k].
  • Concrete catalog ids stay unsuffixed (no invented SKUs).
  • CLAUDE_CODE_AUTO_COMPACT_WINDOW=1000000 when the floor is ≥ 1M.
  • Gateway discovery stays off for virtual presets.
  • Catalog lookup does not remap anyrouter/* onto a listing SKU or inherit auto's 200k context_length.
  • --dry-run prints final ANTHROPIC_MODEL=anyrouter/auto[1m].
  • Version 0.1.15.

Release assets

This token cannot push .github/workflows/ (workflow scope). After merge, dispatch release-binaries on tag v0.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 spawn and claude_ CLI dry-run tests, including claude_virtual_auto_1m_sets_anthropic_model_suffix_and_compact.

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.
@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

anyr size and startup

Startup is wall time for a cold anyr --version / anyr --help (median of 21 runs). Size is the stripped release binary, or the .wasm for the browser demo.

Size budget: anyr-linux-x86_64 must stay ≤ 4.0 MiB (4194304 bytes) stripped.

Asset Kind Size --version median --help median
anyr-darwin-arm64 native 2.8 MiB 6.52 ms 5.62 ms
anyr-darwin-x86_64 native 3.0 MiB 38.55 ms 39.38 ms
anyr-linux-arm64 native 2.8 MiB 0.69 ms 0.71 ms
anyr-linux-x86_64 native 3.1 MiB 1.09 ms 1.0 ms
anyr-windows-x86_64.exe native 2.6 MiB 9.3 ms 9.0 ms
anyr.wasm wasm 180.1 KiB

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": ""
  }
]

@duyetbot
duyetbot merged commit 6d27a47 into main Sep 16, 2026
9 checks passed
@duyetbot
duyetbot deleted the fix/claude-launcher-floors-0.1.15 branch September 16, 2026 09:46
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.

2 participants