fix(tui): bind model/account/key per coding agent - #39
Merged
Conversation
CONFIGURE model/account/key stay inline (no extra agent picker) and persist on the current agent. Launch uses those bindings; a stored per-agent key is not replaced by the default profile key. Closes #35. Co-authored-by: duyet <duyet@users.noreply.github.com>
control-anyr drive of account/model bind, claude vs grok dry-run keys, menu dump, and an inline TUI account picker write. Co-authored-by: duyet <duyet@users.noreply.github.com>
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": 2866392,
"size": "2.7 MiB",
"version": "0.1.11 (built 2026-09-03 06:06:46)",
"target": "aarch64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 3.9,
"median_ms": 4.93,
"p95_ms": 8.85,
"mean_ms": 5.58
},
"startup_help": {
"n": 21,
"min_ms": 3.17,
"median_ms": 4.69,
"p95_ms": 9.82,
"mean_ms": 5.35
}
},
{
"asset": "anyr-darwin-x86_64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-x86_64",
"bytes": 3072976,
"size": "2.9 MiB",
"version": "0.1.11 (built 2026-09-03 06:06:37)",
"target": "x86_64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 29.94,
"median_ms": 31.2,
"p95_ms": 37.26,
"mean_ms": 32.43
},
"startup_help": {
"n": 21,
"min_ms": 27.91,
"median_ms": 30.22,
"p95_ms": 37.4,
"mean_ms": 31.33
}
},
{
"asset": "anyr-linux-arm64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-arm64",
"bytes": 2823208,
"size": "2.7 MiB",
"version": "0.1.11 (built 2026-09-03 06:06:01)",
"target": "aarch64-unknown-linux-gnu",
"os": "ubuntu-24.04-arm",
"startup_version": {
"n": 21,
"min_ms": 0.72,
"median_ms": 0.8,
"p95_ms": 0.92,
"mean_ms": 0.81
},
"startup_help": {
"n": 21,
"min_ms": 0.81,
"median_ms": 0.88,
"p95_ms": 0.91,
"mean_ms": 0.87
}
},
{
"asset": "anyr-linux-x86_64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
"bytes": 3170048,
"size": "3.0 MiB",
"version": "0.1.11 (built 2026-09-03 06:06:15)",
"target": "x86_64-unknown-linux-gnu",
"os": "ubuntu-latest",
"startup_version": {
"n": 21,
"min_ms": 1.0,
"median_ms": 1.03,
"p95_ms": 1.11,
"mean_ms": 1.04
},
"startup_help": {
"n": 21,
"min_ms": 0.97,
"median_ms": 1.0,
"p95_ms": 1.1,
"mean_ms": 1.01
}
},
{
"asset": "anyr-windows-x86_64.exe",
"kind": "native",
"path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
"bytes": 2625536,
"size": "2.5 MiB",
"version": "0.1.11 (built 2026-09-03T06:07:34Z)",
"target": "x86_64-pc-windows-msvc",
"os": "windows-latest",
"startup_version": {
"n": 21,
"min_ms": 8.97,
"median_ms": 9.39,
"p95_ms": 11.12,
"mean_ms": 9.68
},
"startup_help": {
"n": 21,
"min_ms": 8.96,
"median_ms": 9.33,
"p95_ms": 10.05,
"mean_ms": 9.41
}
},
{
"asset": "anyr.wasm",
"kind": "wasm",
"path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
"bytes": 180243,
"size": "176.0 KiB",
"version": "wasm",
"target": "wasm32-unknown-unknown",
"os": ""
}
] |
duyetbot
marked this pull request as ready for review
September 3, 2026 08:18
This was referenced Sep 3, 2026
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
CONFIGURE
model…/account…/key…now persist on the current coding agent (headeragent/ last launch) instead of only the session-wide profile. Pickers stay inline — same screens as before, no extra “which agent?” step. Launch uses those bindings; a stored per-agent key is not silently replaced by the default profile key.Logo restore and “don’t flash CONFIGURE over LAUNCH” stay on #36.
What changed
agents:section inconfig.yaml(profile,api_key,default_modelper tool id).anyr claude/anyr grok(and the rest) resolve key/account/model from that agent’s binding first.model…/account…/key…write the current agent (last_tool) without an extra picker. Detail text isper agent · claude.account use work --agent claude,models use stealth/ox-alpha --agent claude(caller-supplied ids only — does not invent catalog ids).anyr claude --model "stealth/ox-alpha[1m]" --yolostill works (catalog id is stored; Claude still gets[1m]at spawn).Verification
control-anyrdoctor was clean. Artifacts:.cursor/skills/verify-anyr/artifacts/per-agent-bindings/.account use work --agent claudeleftactive_profile: defaultand wroteagents.claude.profile: work.models use stealth/ox-alpha --agent claudewrote the catalog id (no[1m]in config).ANTHROPIC_AUTH_TOKEN=sk-ar-...cccc+ANTHROPIC_MODEL=stealth/ox-alpha[1m]; grokGROK_CODE_XAI_API_KEY=sk-ar-...dddd. Neither used the default profile key.--yolostill expands to--dangerously-skip-permissions.menu --dump-tui:per agent · claudeon model/account/key; LAUNCH claude showsstealth/ox-alpha.acc+ Enter opensclaude accountimmediately (no extra agent screen). Selecting a profile wroteagents.claude.profile.Checklist
Closes #35.