Examples and cookbook
The reference application in examples/ is the most complete runnable Forge implementation. It demonstrates the same application in an in-memory path and a PostgreSQL/Redis path, including streaming, memory, approvals, flows, structured output, and MCP.
| Start with | What it demonstrates |
|---|---|
| Simple agent | An embedded agent and a conversation run |
| Persistent user memory | Context providers and per-principal memory |
| Your first tool | A typed custom tool and approval-gated write |
| Your first flow | A versioned flow and durable checkpoint |
The runnable scripts are documented in the repository examples README.