
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
Performance 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

