Skip to content

feat(tui): per-agent routing filters (exacto, tools, 1M ctx) - #44

Merged
duyetbot merged 2 commits into
mainfrom
cursor/tui-routing-filters-caeb
Sep 3, 2026
Merged

feat(tui): per-agent routing filters (exacto, tools, 1M ctx)#44
duyetbot merged 2 commits into
mainfrom
cursor/tui-routing-filters-caeb

Conversation

@duyet

@duyet duyet commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #43.

Verification

Isolated control-anyr run (verify-anyr skill). Artifacts: .cursor/skills/verify-anyr/artifacts/routing-filters/.

  • cargo test --locked --lib --test cli: 186 + 68 passed
  • menu --dump-tui: LAUNCH before CONFIGURE; exacto / tools / 1M ctx; no most-used
  • models --dump-tui: pins anyrouter/auto
  • claude --dry-run --yes --model anyrouter/auto and anyrouter/free: CLAUDE_CODE_EXTRA_BODY with provider.sort=exacto, require_params=["tools"], min_context=1000000; no agent child
  • PTY: Down retargets configure to codex (off · for codex); Enter on exacto clears provider.sort on claude only

Checklist

  • Version stays on 0.1.x (do not introduce 0.2 / 1.0)
  • Do not auto-merge release-please PRs
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 3, 2026 13:00
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
duyetbot marked this pull request as ready for review September 3, 2026 13:04
@github-actions

github-actions Bot commented Sep 3, 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 4.15 ms 3.35 ms
anyr-darwin-x86_64 native 3.0 MiB 53.34 ms 40.56 ms
anyr-linux-arm64 native 2.8 MiB 0.71 ms 0.75 ms
anyr-linux-x86_64 native 3.1 MiB 0.81 ms 0.8 ms
anyr-windows-x86_64.exe native 2.5 MiB 9.59 ms 9.65 ms
anyr.wasm wasm 176.5 KiB

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

@duyetbot
duyetbot merged commit 5ee9ce3 into main Sep 3, 2026
9 checks passed
@duyetbot
duyetbot deleted the cursor/tui-routing-filters-caeb branch September 3, 2026 13:10
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.

TUI/config: routing filters (exacto, tools, 1M ctx) matching AnyRouter presets

3 participants