Creating individual Agent files or multiple agents in Agents.yaml?

Hi,
I was speaking with someone who is doing something creative and wanted people’s thoughts. Another CrewAI user decided to create a individual agent files vs a single agents.yaml file with many agents.

Example (each person is an agent with separate file)

  • Bob_CEO.py (includes both Agent + Tasks in single file)
  • Joe_HR.py (includes both Agent + Tasks in single file)
  • Sue_CMO.py (includes both Agent + Tasks in single file)

The premise is to create a virtual company using hierarchical structure with more agents under each department. By personifying the agents, it may be easier to maintain and be more flexible to future needs than sequential separate agents.yaml + tasks.yaml.

Has anyone tried something like this?

I haven’t tried this approach but I don’t think it matters that much. You can organize your agents and tasks however you want so long it works and won’t confuse you in the future.