Skip to content

Make config.json the only model list - #20

Merged
matheusgalvao1 merged 1 commit into
mainfrom
feat/single-model-config
Dec 4, 2026
Merged

matheusgalvao1 merged 1 commit into
mainfrom
feat/single-model-config

Conversation

@matheusgalvao1

Copy link
Copy Markdown
Collaborator

Purpose

Before packaging AgentFlow for CodeSignal sessions, the models it offers need to be easy to change per base task or per task. Now .config/config.json is the one place that lists them, and a task changes them by shipping its own copy.

Changes

  • Shipped models, in order of strength: GPT-6 Luna (default), GPT-6.1 Terra, Claude Haiku 5.5, Claude Sonnet 5.5. GPT-6.2 Astra, GPT-6.2 Sol and Claude Opus 5.5 are removed.
  • No model lists in code. The editor's fallback list and the engine's DEFAULT_MODEL are gone. If the file is missing or invalid, GET /api/config returns the reason and the editor disables Run with "Models are not configured: …".
  • Simpler schema. modelAliases and provider enabled are removed, and unknown fields are rejected so a misspelt field fails loudly. defaultModel is optional (first model of a provider with a key, else the first model) but kept explicit in the shipped file.
  • Removed models keep working. A node whose model the file no longer lists runs on the default model. The editor switches such nodes when it loads a workflow, and the report says "…, the default model, because the node is set to "gpt-6.2-sol", which the app no longer offers".
  • Docs updated: configuration.md, api.md, architecture.md, troubleshooting.md, report.md, run-persistence.md, AGENTS.md, CLAUDE.md.

Risk

  • A saved canvas or paused run that uses Astra, Sol or Opus now runs on GPT-6 Luna.
  • Old config files with modelAliases or enabled are rejected with a message saying what to remove.

Validation

  • npm run lint, npm run typecheck, npm test and npm run build pass. New tests cover the schema errors, unlisted-model fallback, the editor's config-error state and replacement on load, and the report note.
  • Built server started by hand: GET /api/config serves the four models; a copy of the file with modelAliases returns 500 with the message above.

- Ship four models in order of strength: GPT-6 Luna (default), GPT-6.1
  Terra, Claude Haiku 5.5, Claude Sonnet 5.5. Astra, Sol and Opus are gone.
- Remove the model lists in code (editor fallback and the engine's
  DEFAULT_MODEL). A missing or invalid file disables Run with the reason.
- Remove modelAliases and provider `enabled`; reject unknown fields so a
  typo fails loudly.
- A node whose model is no longer listed runs on the default model; the
  editor switches it on load and the report says so.
@matheusgalvao1
matheusgalvao1 merged commit d21e281 into main Dec 4, 2026
2 of 3 checks passed
@matheusgalvao1
matheusgalvao1 deleted the feat/single-model-config branch December 4, 2026 13: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.

1 participant