Overview
A well-organized project structure is key to maintainable and deployable AI agents. This guide covers the standard RunAgent project layout and best practices.Basic Structure
Core Files
agent.py
Your main agent implementation:runagent.config.json
Configuration file that tells RunAgent how to run your agent:requirements.txt
All Python dependencies:Advanced Structure
For larger projects:Framework-Specific Structures
LangGraph Projects
CrewAI Projects
File Organization Best Practices
1. Separate Concerns
2. Configuration Management
3. Modular Entrypoints
Environment Management
Development
.env
file (never commit):
Production
Use RunAgent’s environment variable management:Testing Structure
Deployment Files
.gitignore
Makefile
See Also
- Configuration File - Config details
- Environment Variables - Environment setup
- First Agent - Build your first project