Skip to content

Make the agent, guardrail and compactor models configurable via env vars - #34

Merged
igalshilman merged 1 commit into
mainfrom
claude/nice-hypatia-xdwbqb
Sep 29, 2026
Merged

igalshilman merged 1 commit into
mainfrom
claude/nice-hypatia-xdwbqb

Conversation

@igalshilman

Copy link
Copy Markdown
Contributor

AGENT_MODEL, GUARDRAIL_MODEL and COMPACTOR_MODEL override the models in agent-config.ts, as provider: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.models stays 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, as ptc-flag.test.mjs does.

The core test suite and pnpm lint pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_0136B8b9qUMncmCdgJXAWNDg


Generated by Claude Code

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
@igalshilman
igalshilman merged commit d0c3d53 into main Sep 29, 2026
3 checks passed
@igalshilman
igalshilman deleted the claude/nice-hypatia-xdwbqb branch September 30, 2026 08:22
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.

2 participants