Skip to content

feat: add free model resolution#21907

Open
caretak3r wants to merge 1 commit intoanomalyco:devfrom
caretak3r:feat/free-model-resolution
Open

feat: add free model resolution#21907
caretak3r wants to merge 1 commit intoanomalyco:devfrom
caretak3r:feat/free-model-resolution

Conversation

@caretak3r
Copy link
Copy Markdown

@caretak3r caretak3r commented Apr 10, 2026

Issue for this PR

Closes #21863

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds Provider.resolveSelection() which resolves --model free to a random zero-cost opencode model. When --variant any is also passed, a random variant is chosen from the model's available variants (currently no free models have variants, so this is a no-op for now).

Integration points:

  • run command resolves before prompting/commanding
  • TUI thread resolves before launching the interface
  • TUI app stores the resolved variant in local state

12 free models currently in the pool: big-pickle, nemotron-3-super-free, minimax-m2.5-free, minimax-m2.1-free, glm-4.7-free, glm-5-free, kimi-k2.5-free, qwen3.6-plus-free, mimo-v2-flash-free, mimo-v2-pro-free, mimo-v2-omni-free, trinity-large-preview-free.

How did you verify your code works?

  • bun typecheck passes
  • Full test suite: 1883 pass, 0 fail
  • Manual testing with built binary and bun dev run --model free "prompt":
    • Confirmed random selection across big-pickle, nemotron-3-super-free, minimax-m2.5-free over 18 runs
    • --variant any resolves gracefully to undefined when no variants exist

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

  Resolves --model free to a random free opencode model before
  prompting. Supports --variant any for random variant selection.

  Closes anomalyco#21863
@caretak3r caretak3r force-pushed the feat/free-model-resolution branch from 887c095 to cd5548b Compare April 10, 2026 20:35
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.

[FEATURE]: Allow --model free to randomly select free models

1 participant