Examples for xmd.
| Example | Description |
|---|---|
| hello | The simplest xmd script: takes a name and returns a greeting. |
| summarize | Reads any file and produces a structured markdown summary. |
| writer-critic | A write-revise loop where a writer script calls a critic as a subprocess and iterates until the critique passes. |
| critic-writer | A persistent editor-writer session: the critic commissions drafts and sends revision instructions across multiple turns. |
| animal-guess | Interactive guessing game: the model asks yes/no questions to identify an animal in ten questions or fewer. |
| ocr | Reads an image file and produces a title and descriptive paragraph of its visual content. |
| rss-pipeline | Fetches an RSS feed, filters items by topic with an LLM, then summarizes each one. |
| chat | A multi-turn chat assistant with persistent memory across sessions. |
| brainstorm | Multi-stage idea pipeline: generate, deduplicate, expand, review, and file ranked ideas. |
| taboo | Two agents try to make each other say a forbidden word. |
| turing-tester | A Turing test: an AI tries to pass as human while a tester agent tries to catch it. |
| dark-factory | Pitch in, deployed product out: architect → spec → build → QA → deploy notes, no humans in the loop. |
| twitter-bot | Generates tweet threads from a persona file: researches topics via Exa, writes, reviews, rewrites, and queues threads for publishing. |