Repository navigation
Make config.json the only model list - #20
Merged
Merged
Conversation
- 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.
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.
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.jsonis the one place that lists them, and a task changes them by shipping its own copy.Changes
DEFAULT_MODELare gone. If the file is missing or invalid,GET /api/configreturns the reason and the editor disables Run with "Models are not configured: …".modelAliasesand providerenabledare removed, and unknown fields are rejected so a misspelt field fails loudly.defaultModelis optional (first model of a provider with a key, else the first model) but kept explicit in the shipped file.configuration.md,api.md,architecture.md,troubleshooting.md,report.md,run-persistence.md,AGENTS.md,CLAUDE.md.Risk
modelAliasesorenabledare rejected with a message saying what to remove.Validation
npm run lint,npm run typecheck,npm testandnpm run buildpass. New tests cover the schema errors, unlisted-model fallback, the editor's config-error state and replacement on load, and the report note.GET /api/configserves the four models; a copy of the file withmodelAliasesreturns 500 with the message above.