Repository navigation
Description
Problem
Model/provider selection (Gemini, Claude Haiku/Sonnet, GPT-4o, etc.) is currently only
configurable through config/artemis.jsonc, on a per-node basis (planner, operator,
step summarizer, memory chunking, etc.). There is no way to choose which agent LLM a
task should run with from the Web Console (uv run artemis ui).
The Console Overview (Model & Replay panel) only displays the Flash/Pro execution
profile status — it does not expose a control for the underlying LLM provider/model.
Changing the model today means:
- Editing
config/artemis.jsoncby hand. - Restarting the server (
uv run artemis restart) for the change to take effect.
This makes it impractical to run different tasks with different models in the same
session (e.g. a cheap/fast model for routine regression tasks, a stronger model for
complex exploratory tasks), and it interrupts any in-flight work when the server restarts.
Why this should be possible without a restart
Based on #95, model resolution already happens dynamically per call via
get_llm(ctx, name="operator")-style lookups rather than being cached once at process
startup. This suggests the underlying architecture already resolves models contextually,
and the missing piece is simply exposing that resolution as a per-task/per-session
override instead of only reading from the static global config file.
Proposed Solution
- Add an optional
model/providerparameter to task dispatch, both:- In the Web Console's Prompt Dock (a lightweight dropdown/selector next to the
prompt input, defaulting to the currently configured node), and - In the
ArtemisClient.run(...)SDK call /mobile_run_taskMCP tool, mirroring
the existingdefault_profile(flash/pro) parameter pattern.
- In the Web Console's Prompt Dock (a lightweight dropdown/selector next to the
- When provided, this override should flow into the task's
ctxat dispatch time and
take precedence over the staticartemis.jsoncdefault for that task only — no
server restart, no global config mutation, no effect on other in-flight or future
tasks. - Surface the resolved model (not just the Flash/Pro profile) in the Task Queue &
Dashboard / session history, so it's clear after the fact which LLM a given task
actually ran with (related to the session-model-visibility gap discussed separately).
Related
- Step summarizer, memory chunking and Flash operator fallback hardcode the Google provider, bypassing artemis.jsonc #95 / Honor the configured LLM provider instead of hardcoding Google #96 — provider-resolution call sites that bypassed the configured provider;
fixing this at the config layer highlighted that model resolution is already
per-call/contextual, which is what makes a per-task override feasible without a restart. - feat: support Anthropic Bearer gateways and per-node endpoint URLs #75 — Anthropic Bearer gateway / per-node endpoint support, relevant to how Claude
models are configured as a provider target.
Scope note
This is a feature request, not a bug report — the current behavior (config-file-only,
restart-required) is not documented as broken, just limited. Keeping the initial scope
small (a single optional override parameter, not a full settings UI) should make this
tractable as a first pass.
Activity
fix: resolve pre-existing ruff UP017/UP037/UP045 in playground/backen…
feat: per-task LLM model/provider override without restart