feat: add subAgentsTemperature config for per-agent temperature tuning - #844
Merged
Conversation
Add complete OpenSpec change artifacts for per-agent temperature configuration feature (issue #843). Includes: - Proposal with motivation and scope - Design doc with decisions and risks - Spec deltas for config-system, subagent, and sub-agents-temperature - Task breakdown for implementation
Add subAgentsTemperature config section allowing per-agent temperature tuning via config.yaml or environment variables. - New Zod schema (SubAgentsTemperatureSchema) for validation (0-2 range) - Schema exported from schemas/index.js and added to root ConfigSchema - Accessor function getSubAgentTemperature(agentName) for reading config - DROPPED_KEYS updated so env vars flatten correctly - _toUpperSnake modified to handle hyphens in agent names (e.g., code-review → CODE_REVIEW) - createSubagentDefinitions creates per-agent model instances with configured temperature - Unit tests covering schema validation, env var resolution, and accessor function
Owner
Author
Implementation Audit ResultsGoal Fulfillment
Spec Complianceconfig-system spec:
sub-agents-temperature spec:
subagent spec:
Task CompletionAll 18 tasks from tasks.md completed:
Quality Check
Code Changes Summary
|
This was referenced Aug 22, 2026
Merged
avoidwork
added a commit
that referenced
this pull request
Aug 23, 2026
* fix: add subAgentsTemperature defaults to config.yaml PR #844 added the schema and runtime support but forgot the config.yaml entries. Without these, no agent gets a temperature override — the feature is silently inert. Closes #844 * fix: add subAgentsTemperature defaults to config.yaml and README - Add per-agent temperature defaults to config.yaml (closes #844) - Add temperature defaults table to README.md (sorted alphabetically) - Fix Deep Agents link to langchain-ai/deepagentsjs Closes #844
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.
Description
Add a
subAgentsTemperatureconfig section that allows per-agent temperature tuning for sub-agents. This enables fine-grained control over agent behavior by setting temperature values per agent type viaconfig.yamlor environment variables.Changes:
SubAgentsTemperatureSchemavalidating agent name → temperature (0-2) mappingsConfigSchemainsrc/config/config.jsgetSubAgentTemperature(agentName)for reading per-agent temperatureSUB_AGENTS_TEMPERATURE_CODING=0.3)code-review→CODE_REVIEW)deepAgents.jswith configured temperatureType of Change
Testing
SUB_AGENTS_TEMPERATURE_CODING=0.3correctly populatessubAgentsTemperature.codingSUB_AGENTS_TEMPERATURE_CODE_REVIEW=0.1correctly populatessubAgentsTemperature['code-review']undefinedfor unlisted agents and empty stringsCoverage
Checklist
npm run lintpassesCloses #843