Getting started with Cursor.
.cursorrules
file that contains everything that Cursor needs to know in order to create agents with this framework.
Enable Cursor Rules in Settings
.cursorrules
file in your project.
Add The `.cursorrules` File to Your Project
.cursorrules
file contains the instructions that guide Cursor’s AI. To add it:.cursorrules
file from the Agency Swarm repository.Open Cursor Composer
Cmd+I
(macOS) or Ctrl+I
(Windows/Linux).Send Your First Prompt to Composer
Verify The Agency Structure
requirements.txt
file existsagency.py
file executes properlyAdjust the Tools
if __name__ == "__main__"
statements.Cmd+K
(macOS) or Ctrl+K
(Windows/Linux) or send another message to composer.Cmd+L
(macOS) or Ctrl+L
(Windows/Linux) to ask questions and brainstorm alternative approaches. For example, ask “What other APIs can I use for this tool?”Adjust the Agents
instruction.md
files to your needs.tools_folder
path or adding them in tools
parameter.Test Your Agency
agency.py
file to see if it works.Repeat