CookbookBasics
Basics
Everyday Crux recipes — chat with memory, structured extraction, streaming with tools.
The most common things you'll build with Crux. Each recipe is self-contained.
Chat with memory
A working chat loop with episodic recall and sliding-window compaction.
Structured extraction
Pull a typed object out of unstructured text, with auto-retry on schema failure.
Streaming with tools
Stream a response while the model calls tools mid-stream, updating the UI as data arrives.
Workspace files
Give an agent durable scratch files and final output files.
Postgres DataStore
Implement durable Crux JSON record storage on Postgres.