Cookbook
Production-ready, copy-paste patterns for automating real work with contenox run and friends.
Each recipe is a pre-built solution: pipe data in, the model executes your chain, you get structured output back. Stateless runs stay composable with the rest of your shell.
Prerequisites
- Run
contenox initin your project once, then either point Contenox at a local Ollama model or configure a cloud backend — see Quickstart.- Use
--shellfor direct CLI recipes that need command execution; command policy lives in each chain’stools_policies.
Several recipes below are one branch of a router rather than a standalone chain: a route task labels the request and hands it to the loop built for that label, with its own instruction, tool scope and budget. See Request routing for the shape.
Categories
- Git & DevOps — commit messages, PR reviews, log summarization
- Automated Release Notes — generate
RELEASE_NOTES.mdfromgit logusing a chain pipeline - Stateful Agents with MCP — persistent memory across tool calls via MCP
- Browser Automation with Playwright MCP — drive a real browser with natural language
- Notion as a Tool — create, search, and update Notion via OAuth MCP
- Codebase Documentation — architecture guides from your source tree
- The review specialist — “review the git diff” answered with a restatement, until a third branch in the router gave the request its own loop, with the write tools taken away
- The moderation gate — a cheap model classifies each message safe or unsafe before the expensive one runs
- Multi-provider fallback — a candidate list of models and providers with a retry policy, so a rate limit or outage falls through instead of failing
- Any API, a tool you authored — register an HTTP API as a tool with the credential hidden from the model and the endpoint surface narrowed
- Authoring your tool inventory — cut a large OpenAPI spec down to a hand-curated subset and register only that
- The pause is yours to define — write a HITL policy that pauses only on the tool calls you name, then activate it
- The nested permission bomb — give a workflow its own scoped credential and authored HITL policy instead of inheriting the operator’s access
- Leads → HubSpot — pipe a leads file into HubSpot CRM via an OpenAPI sub-spec
- HubSpot via MCP — OAuth + pre-issued client credentials, works for any vendor MCP without dynamic registration
- Auto-attention mode (beta) — an oracle chain answers routine mission questions so unattended runs finish; consequential asks still wait for you
- Event-driven chains: three stories (beta) — a trigger buzzes your phone when a mission asks for a human, another writes the completion summary, and
contenox events firingskeeps both honest