Skip to content

Enable the decision model via EXPLORBOT_DECISION_MODEL / --decision-model - #248

Merged
DavertMik merged 2 commits into
mainfrom
feat/decision-model-env
Sep 24, 2026
Merged

DavertMik merged 2 commits into
mainfrom
feat/decision-model-env

Conversation

@DavertMik

@DavertMik DavertMik commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Config-free runs (prima, env-only explorbot) had no way to turn on the decision model (Jev): buildEnvConfig() never sets ai.decisionModel, and setting EXPLORBOT_AI_PROVIDER skips the global config entirely.

  • EXPLORBOT_DECISION_MODEL, written as provider/model-id and split on the first slash (openrouter/typesafe/jev-1.13, typesafe/jev-latest). It is applied after config loading whatever the source (env-only, global, local), replaces provider/model and keeps tool/direct from the file. A value without a slash fails at startup. Registered in EXPLORBOT_ENV_VARS, so PRIMA_CLI_DECISION_MODEL works through prima's existing mirroring.
  • --decision-model <model>: a shared BaseOption that sets the env var, registered on explorbot and prima-cli.
  • Prima README: the recommended setup is now OpenRouter for everything (GPT-OSS 120B :nitro plus Jev), with env examples for Claude Code (settings.json), Codex (config.toml) and ~/.bashrc.
  • Docs: env tables in agentic-usage.md / commands.md, a usage note in providers.md, CHANGELOG entry.
EXPLORBOT_DECISION_MODEL=openrouter/typesafe/jev-1.13 npx explorbot explore
npx prima-cli go "Settings" --decision-model typesafe/jev-latest

Notes

  • The env tables were edited by hand: bunosh docs:sync doesn't run on main right now because the Bunoshfile fails to load (tests/regression/lib/assertions.ts has no status export). The rows match what the generator writes.

Test plan

  • bun test tests/unit/config.test.ts boat/prima/tests/prima-env.test.ts: env var registry tests pass
  • Env-only config with EXPLORBOT_DECISION_MODEL=openrouter/typesafe/jev-1.13 resolves to {"provider":"openrouter","model":"typesafe/jev-1.13"}
  • A value without a slash fails with a clear error
  • --decision-model sets the env var before a subcommand's action runs

🤖 Generated with Claude Code

DavertMik and others added 2 commits September 24, 2026 03:21
…ion model

Config-free runs (prima, env-only explorbot) had no way to turn on Jev:
buildEnvConfig never set ai.decisionModel. The env var, written as
provider/model-id, now applies over any config source and keeps tool/direct.
--decision-model is a shared BaseOption registered on explorbot and prima-cli.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d shell env setup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavertMik
DavertMik merged commit 6db47d9 into main Sep 24, 2026
2 checks passed
@DavertMik
DavertMik deleted the feat/decision-model-env branch September 24, 2026 00:34
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.

1 participant