Guides
How Persuit developers build Persi agent features with PAI.
Start with Getting started if you do not have an app yet.
Each top-level page is the basics. Nested pages are the working set when you need branches, failure cases, or the rest of the API.
A good first week: tools, identity, serve (Mongo), then React.
Build the agent
- Define an agent
- Tools — context, failures, data, code mode
- Human approval
- Client tools
- Commands
- Subagents
- Skills
Run it in Persuit
Ship it
To see every public export in one place, open the API reference.
Production defaults
| Need | Package |
|---|---|
| HTTP | @pai/express |
| Threads | @pai/storage-mongo |
| Live watch across processes | @pai/realtime-redis |
| Attachments | @pai/files-mongo |
| Code/workspace tools | @pai/sandbox + @pai/sandbox-gke |
| Traces | @pai/observability + @pai/langfuse |
| Typed client | pai generate client |