---
title: "Recipes"
description: "Practical guides for securing, operating, testing, and presenting XSAF agents."
---

> Documentation Index
> Fetch the complete documentation index at: https://xsaf.ilha.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Recipes

Use these guides after configuring the core agent API:

- [Tools & Security](/recipes/tools) — validation, approvals, retries, errors, secrets, and sandbox boundaries.
- [Sessions & Memory](/recipes/sessions-memory) — fetch routes, channels, streaming, session ordering, and persistence.
- [Testing](/recipes/testing) — deterministic model, channel, HTTP, MCP, lifecycle, and tool tests.
- [Terminal UI](/recipes/tui) — add the optional `@xsaf/cli` interactive terminal interface.

For method signatures and configuration rules, start with the [`agent` API reference](/xsaf).

Source: https://xsaf.ilha.build/recipes/index.mdx
