feat(cli): add --subagent-model flag to configure distinct LLM for subagents
Author: vardhans07Created Sep 19, 2026Updated Sep 22, 2026
Labelsenhancement
Problem Statement
During penetration testing and autonomous scanning workflows, the root orchestrator agent spawns subagents to handle focused sub-tasks (e.g., reconnaissance, tool execution, payload verification). Currently, child subagents implicitly inherit the root agent's model configuration.
This creates practical operational bottlenecks:
- Cost & Latency Imbalance: Running high-capability, high-latency frontier models (e.g., Claude 3.5 Sonnet / GPT-4o) for both planning and narrow, repetitive subagent tasks quickly inflates token consumption and slows scan cycles.
- Specialization: Subagents often perform narrow, deterministic tasks (such as parsing CLI output or verifying an exploit step) where faster, lighter models (e.g., Claude 3.5 Haiku, Gemini Flash, or local OSS models) are more cost-effective and performant.
- Lack of Granular Control: Users have no clean interface to decouple the root orchestrator's reasoning engine from downstream agent execution.
Proposed Solution
Introduce an optional --subagent-model CLI flag in strix/interface/cli_args.py to allow overriding the model configuration for spawned subagents:
- CLI Flag Definition: Add
--subagent-modelto argument parsing, defaulting toNone. - Config Propagation: Plumb
subagent_modelthroughrun_cliand scan runtime configurations. - Fallback Mechanism: Ensure subagent initializers inspect
subagent_model. If omitted (None), child agents cleanly fall back to the root model to preserve backward compatibility. - Test Coverage: Add unit tests verifying CLI argument ingestion and model resolution fallback behavior.
Source: usestrix/strix