refactor(investigation): remove thinking_budget_multiplier from SpecialistConfig
Per-specialist thinking is now configured via UI settings (thinking level per specialist) instead of a hardcoded multiplier. The root_cause specialist no longer gets a 1.5x budget multiplier; instead each specialist receives its own thinking level (high/medium/low) from specialist_config. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
6d8e198b80
commit
df79d95c2d
@@ -95,7 +95,6 @@ INVESTIGATION_SPECIALISTS: list[SpecialistConfig] = [
|
||||
prompt_file="investigation_root_cause.md",
|
||||
tools=["Read", "Grep", "Glob", "Bash"],
|
||||
description="Trace the bug/issue to its source code paths and identify the root cause",
|
||||
thinking_budget_multiplier=1.5,
|
||||
),
|
||||
SpecialistConfig(
|
||||
name="impact",
|
||||
@@ -363,12 +362,6 @@ Use Read, Grep, and Glob tools to explore the codebase.
|
||||
_output_schema = (
|
||||
_schema_class.model_json_schema() if _schema_class else None
|
||||
)
|
||||
# Apply per-specialist thinking multiplier
|
||||
_effective_budget = (
|
||||
int(thinking_budget * cfg.thinking_budget_multiplier)
|
||||
if thinking_budget
|
||||
else None
|
||||
)
|
||||
# Look up resume session ID for this specialist
|
||||
_resume_id = (
|
||||
resume_sessions.get(cfg.name) if resume_sessions else None
|
||||
@@ -404,7 +397,7 @@ Use Read, Grep, and Glob tools to explore the codebase.
|
||||
prompt=_prompt,
|
||||
project_root=project_root,
|
||||
model=model,
|
||||
thinking_budget=_effective_budget,
|
||||
thinking_budget=thinking_budget,
|
||||
output_schema=_output_schema,
|
||||
agent_type="investigation_specialist",
|
||||
context_name=f"Investigation:{cfg.name}",
|
||||
|
||||
@@ -82,7 +82,6 @@ class SpecialistConfig:
|
||||
tools: list[str]
|
||||
description: str
|
||||
max_turns: int = 30
|
||||
thinking_budget_multiplier: float = 1.0
|
||||
|
||||
|
||||
class ParallelAgentOrchestrator:
|
||||
|
||||
@@ -596,7 +596,6 @@ def _import_orchestrator():
|
||||
tools: list
|
||||
description: str
|
||||
max_turns: int = 30
|
||||
thinking_budget_multiplier: float = 1.0
|
||||
|
||||
class ParallelAgentOrchestrator:
|
||||
def __init__(self, project_dir, github_dir, config, progress_callback=None):
|
||||
|
||||
Reference in New Issue
Block a user