from crewai import Crew, Agent, Task, Process explorer = Agent( role="Codebase Explorer", goal="Map the repository and surface the files relevant to the task.", backstory="You read directories and files to build a picture of the code.", tools=[read_file, list_dir], llm=llm, ) # Same for other two specialist agents manager = Agent( role="Engineering Lead", goal="Break the request into steps and delegate each to the right specialist.", backstory="You decide who does what, review tests, finish once change is done.", llm=llm, allow_delegation=True, ) crew = Crew( agents=[explorer, coder, tester], tasks=[task], manager_agent=manager, process=Process.hierarchical, )