Make the agent, guardrail and compactor models configurable via env vars - #34
Merged
Merged
Conversation
AGENT_MODEL, GUARDRAIL_MODEL and COMPACTOR_MODEL override the models in agent-config.ts; an unset or blank variable keeps the default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136B8b9qUMncmCdgJXAWNDg
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.
AGENT_MODEL,GUARDRAIL_MODELandCOMPACTOR_MODELoverride the models inagent-config.ts, asprovider:model. An unset or blank variable keeps the default from the file. The service reads them once, at startup.packages/libs/core/src/agent-config.ts: each model reads its variable and falls back to the current default.agentConfig.modelsstays a plain object, so the tests that assign to it still work.docs/configuration.md: the variables are in the environment table and the Models section.docker/Dockerfile: the runtime-environment comment lists them.test/model-env.test.mjs: checks that the variables override the models, that values are trimmed and that empty values fall back to the defaults. It loads the config in a fresh process, asptc-flag.test.mjsdoes.The core test suite and
pnpm lintpass locally.🤖 Generated with Claude Code
https://claude.ai/code/session_0136B8b9qUMncmCdgJXAWNDg
Generated by Claude Code