
Philosophy
PraisonAI is built on a simple philosophy:Simpler
Fewer concepts, cleaner API than competitors
Faster
Lazy loading, minimal overhead, performance-first
Extensible
Protocol-driven, plugin-ready architecture
Agent-Centric Design
Every design decision centers on:Agents
Agents
The core execution unit. Autonomous entities that can think, act, and learn.
Tools
Tools
Extend agent capabilities. Functions, APIs, and integrations agents can use.
Memory
Memory
Short-term and long-term persistence. Context that persists across interactions.
Workflows
Workflows
Multi-agent coordination patterns. Sequential, parallel, and routing logic.
Sessions
Sessions
State management and checkpointing. Resume from any point.
Protocol-Driven Core
- Architecture
- What Goes Where
Naming Conventions
1
Registration
Use
add_X() for user-facing, register_X() for framework2
Retrieval
Use
get_X() for single, search_X() for query, list_X() for all3
Configuration
Use
XConfig suffix for configuration dataclasses4
Protocols
Use
XProtocol suffix for abstract interfacesPerformance Rules
Lazy Imports
Heavy dependencies imported inside functions, not at module level
Optional Dependencies
ChromaDB, LiteLLM, FastAPI etc. are optional extras
No Hot-Path Impact
No heavy work in frequently-called code paths
< 200ms Import
Package import time target under 200 milliseconds
Simple API Philosophy
- Basic
- With Tools
- Full Control
Safety by Default
Multi-Agent Safe
No shared mutable state between agents
Async Safe
Full async/await support throughout
Guardrails
Built-in safety checks and policies
HITL Ready
Human-in-the-loop approval workflows
Implementation Checklist
Use this checklist for every new feature:Protocol-first: Add protocol to core if needed
No new deps: Use optional dependencies only
Lazy imports: Heavy deps imported inside functions
Naming: Follow conventions (add_, get_, XConfig)
Tests: TDD - write failing tests first
CLI: Add corresponding CLI command
Docs: Update documentation
Examples: Add to examples directory
Multi-agent safe: No shared mutable state
Async-safe: Support async/await
Quick Links
Getting Started
Build your first agent in 5 minutes
Tools Guide
Create and use custom tools
Memory Guide
Add persistence to your agents
Workflows
Multi-agent coordination patterns

