feat: allow configuring subAgent temperature from config.yaml#439
Open
avoidwork wants to merge 4 commits into
Open
feat: allow configuring subAgent temperature from config.yaml#439avoidwork wants to merge 4 commits into
avoidwork wants to merge 4 commits into
Conversation
Add temperature configuration for subAgents via config.yaml with: - Global default under process.subAgent.temperature - Per-skill override under process.subAgent.skills[].temperature - Environment variable propagation via MADZ_SUBAGENT_TEMPERATURE - Optional per-call temperature parameter in subAgent tool schema - Resolution hierarchy: per-call > per-skill > global > provider default Follows existing subAgent config patterns (timeout, maxConcurrent). All changes are backward compatible — existing configs work unchanged.
Owner
Author
Audit Results: subagent-temperature-configCoverage Audit
Fidelity Audit
Completeness Audit
Consistency Audit
VerdictNo errors found. Specs faithfully represent all goals with adequate coverage. Tasks map cleanly to requirements. Proceed to Step 6. |
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.
Summary
Allow users to configure the temperature parameter for subAgents via config.yaml, enabling fine-grained control over their randomness and creativity at launch.
Changes
Config Schema
temperaturefield toprocess.subAgentin config.yaml (global default)temperaturefield toprocess.subAgent.skills[].temperature(per-skill override)src/config/schemas.jsImplementation
src/tools/subAgent.js: Pass temperature to spawned process viaMADZ_SUBAGENT_TEMPERATUREenv varsrc/provider/openai.js: Override provider temperature whenMADZ_SUBAGENT_TEMPERATUREis setTests
tests/unit/config.test.js: Config validation tests for temperature fieldtests/unit/provider.test.js: Provider temperature override testsAcceptance Criteria
process.subAgent.temperatureas a valid fieldprocess.subAgent.skills[].temperatureas a valid fieldMADZ_SUBAGENT_TEMPERATUREenv var when configuredTesting