diff --git a/core/agents/orchestrator.py b/core/agents/orchestrator.py index 9bf4d56168..2f70caecb2 100644 --- a/core/agents/orchestrator.py +++ b/core/agents/orchestrator.py @@ -19,6 +19,7 @@ from core.agents.tech_lead import TechLead from core.agents.tech_writer import TechnicalWriter from core.agents.troubleshooter import Troubleshooter from core.db.models.project_state import TaskStatus +from core.db.models.specification import Complexity from core.log import get_logger from core.telemetry import telemetry from core.ui.base import ProjectStage @@ -198,7 +199,7 @@ class Orchestrator(BaseAgent): # Ask the Tech Lead to break down the initial project or feature into tasks and apply project template return TechLead(self.state_manager, self.ui, process_manager=self.process_manager) - if state.current_task and state.docs is None: + if state.current_task and state.docs is None and state.specification.complexity != Complexity.SIMPLE: return ExternalDocumentation(self.state_manager, self.ui) # Current task status must be checked before Developer is called because we might want diff --git a/core/prompts/external-docs/select_docset.prompt b/core/prompts/external-docs/select_docset.prompt index e714c32882..7f98d39d13 100644 --- a/core/prompts/external-docs/select_docset.prompt +++ b/core/prompts/external-docs/select_docset.prompt @@ -12,4 +12,4 @@ Here is the list of available documentations: {{ docset[0], docset[1] }} {% endfor %} -Now, give me the list of the additional documentation that you would like to use to complete the task listed above. Return only the documentation that is absolutely required for the given task, and only from the list of available documentations provided above. If there is no additional documentation in the list that you would like to use, return an empty list. +Now, give me the list of the additional documentation that you would like to use to complete the task listed above. Return only the documentation that is absolutely required for the given task, only from the list of available documentations provided above and a MAXIMUM OF 3 ITEMS. If there is no additional documentation in the list that you would like to use, return an empty list.