FallnAI/Autonomous-Software-Developer
0
1# FallnAI Autonomous Software Developer2# agent.py3 4from crewai import Agent5from crewai_tools import SerperDevTool6 7# Define search tool8search_tool = SerperDevTool()9 10# Define the Planner Agent11planner_agent = Agent(12 role="Software Architect",13 goal="""Create a detailed, step-by-step plan to develop a new software application 14 based on the user's request. Break down the project into manageable tasks 15 for other agents.""",16 backstory="""You are a seasoned software architect with a passion for designing elegant 17 and efficient systems. You excel at translating vague ideas into clear, 18 actionable project plans.""",19 verbose=True,20 allow_delegation=False21)22 23# Define the Coder Agent24coder_agent = Agent(25 role="Senior Python Developer",26 goal="""Write high-quality, bug-free, and well-commented Python code according to the 27 project plan. Ensure the code is clean and adheres to best practices.""",28 backstory="""You are a highly skilled Python developer with a knack for solving complex 29 problems. You write robust code that is easy to read and maintain.""",30 verbose=True,31 allow_delegation=False32)33 34# Define the Tester Agent35tester_agent = Agent(36 role="Quality Assurance Engineer",37 goal="""Test the developed code for bugs, errors, and edge cases. Provide detailed 38 feedback to the Coder Agent to ensure the final product is flawless.""",39 backstory="""You are a meticulous and thorough QA engineer. You find pleasure in breaking 40 code and providing constructive criticism to improve its quality.""",41 verbose=True,42 allow_delegation=False43)44 45# Define the UI Designer Agent46ui_designer_agent = Agent(47 role="Frontend Developer",48 goal="""Create a simple but functional user interface for the software. Use HTML and 49 CSS to design a clean and intuitive layout.""",50 backstory="""You are a creative frontend developer who can turn any concept into a 51 visually appealing and easy-to-use interface. You specialize in rapid 52 prototyping with basic web technologies.""",53 verbose=True,54 allow_delegation=False55)56 57# Define the Documentation Agent58docs_agent = Agent(59 role="Technical Writer",60 goal="""Write high-quality documentation, including a README.md file, for the software. 61 The documentation should explain the project's purpose, how to use it, and how to install dependencies.""",62 backstory="""You are a skilled technical writer who specializes in making complex topics easy to understand. 63 You create excellent READMEs and other project documentation.""",64 verbose=True,65 allow_delegation=False66)67 68# Define the DevOps Agent69devops_agent = Agent(70 role="DevOps Engineer",71 goal="""Manage repository creation and push the final, working code to GitHub. 72 Automate the deployment process.""",73 backstory="""You are an expert in continuous integration and deployment. 74 You handle all aspects of getting the software from development 75 to a live, accessible repository.""",76 verbose=True,77 allow_delegation=False78)79 80 81 