Welcome to the CrewArchitect project. This crew is designed to generate the configuration files (agents.yaml, tasks.yaml, crew.py, main.py, and a pyproject.toml template) for a new CrewAI project based on a user-provided description. Our goal is to automate the initial setup of new crews, allowing you to focus on refining the generated prompts and logic.
Ensure you have Python >=3.10 <3.13 installed on your system. This project uses UV for dependency management and package handling, offering a seamless setup and execution experience.
First, if you haven't already, install uv:
pip install uvNext, navigate to your project directory and install the dependencies:
(Optional) Lock the dependencies and install them by using the CLI command:
crewai installAdd your OPENAI_API_KEY (or other LLM provider key) into the .env file. This is used by the agents within CrewArchitect to generate the configuration files.
- Provide Input: Modify the
user_crew_descriptionvariable withinsrc/crew_architect/main.pyto describe the crew you want to generate. - (Optional) Customize CrewArchitect Agents: You can further customize the agents that build your crew by modifying
src/crew_architect/config/agents.yaml. - (Optional) Customize CrewArchitect Tasks: You can adjust the process CrewArchitect follows by modifying
src/crew_architect/config/tasks.yaml.
To kickstart the CrewArchitect crew and generate the configuration for your desired crew, run this from the root folder of your project:
$ crewai runThis command initializes the CrewArchitect Crew. The agents will:
- Analyze your description in
main.py. - Design the architecture for the new crew.
- Generate the content for
agents.yaml,tasks.yaml,crew.py, andmain.py. - Generate a boilerplate
pyproject.tomltemplate. - Review the generated content.
- Assemble all generated content into a single Markdown file located at
output/generated_crew_files.md.
Output: The result is NOT a directly runnable crew from this project, but rather a Markdown file (output/generated_crew_files.md) containing the necessary code and configuration for you to copy into a new CrewAI project.
The CrewArchitect Crew itself is composed of multiple AI agents designed for meta-programming:
- Requirements Analyst: Analyzes the user description.
- Crew Architect: Designs the structure, tasks, and tool needs of the target crew.
- Agent/Task Definers: Write the specific YAML configurations based on the architecture.
- Code Generator: Writes the
crew.pyandmain.pycode, incorporating tool assignments and best practices. - Configuration Reviewer & Assembler: Reviews all generated components for correctness and consistency, then assembles the final Markdown output.
These agents collaborate sequentially to transform your high-level description into a structured starting point for your new crew.
For support, questions, or feedback regarding the CrewArchitect Crew or crewAI.
- Visit our documentation
- Reach out to us through our GitHub repository
- Join our Discord
- Chat with our docs
Let's create wonders together with the power and simplicity of crewAI.