Repository navigation
Description
Overview
Support dynamic, pluggable model configuration per specialist role via config/agents.yaml or CLI arguments (e.g. llama3.1, qwen2.5-coder, mistral).
Part of Milestone v4.0.0 — Phase 22 of the Multi-Agent SRE Architecture.
⚠️ IMPORTANT CONTRIBUTOR & PR INSTRUCTIONS
TARGET BRANCH: All Pull Requests implementing this phase MUST target branch
v4.0.0(DO NOT targetmain).
PR TITLE:feat(agents): Phase 22 - Dynamic Multi-Model Strategy & Configuration
PR SCOPE: Per-role model resolution and YAML configuration.
1. Description of What Has to Be Done
Different LLMs excel at different tasks. For example, qwen2.5-coder excels at manifest syntax and diff generation, while llama3.1 or mistral excel at general SRE incident correlation. Users must be able to assign different models to different agent roles.
Contributors must:
- Create
config/agents.yamlsupporting model mapping per role. - In
agents/council.py, implementresolve_model(role, config, cli_override)to dynamically determine which model to instantiate for each agent. - Support global CLI override:
kdm analyze --model=qwen2.5-coderoverrides all roles simultaneously.
2. Desired Outcome & Expected Behavior
Expected Configuration (config/agents.yaml)
models:
default: "llama3.1"
runtime: "llama3.1"
config: "qwen2.5-coder"
resource: "llama3.1"
synthesizer: "llama3.1"3. The Implementation Plan & Architectural Blueprint
Files to Create and Modify
[NEW] config/agents.yaml: Default configuration file.[MODIFY] agents/council.py: Dynamic model resolution per role.[NEW] agents/tests/test_model_config.py: Model resolution test suite.
4. Detailed Task Breakdown
-
Task 22.1: Implement Model Resolver (
council.py)- Read
config/agents.yamlif present. - Priority order: CLI
--model>agents.yamlrole mapping >agents.yamldefault > fallback"llama3.1".
- Read
-
Task 22.2: Unit Tests (
test_model_config.py)- Test role resolution with custom YAML.
- Test CLI flag override takes precedence.
5. Verification & Acceptance Checklist
- Run
python3 -m unittest agents/tests/test_model_config.py— all tests pass. - PR targets branch
v4.0.0.
Activity