Pipelines
Chain prompts together by piping the output of one into the input of the next.
Basic pipeline
bash
cat article.md | pod summarize | pod tweet-threadThis takes an article, summarizes it, then generates a tweet thread from the summary.
Real-world examples
Code review pipeline
bash
git diff HEAD~1 | pod code-review | pod summarizeReview code changes and then summarize the review.
Content localization
bash
cat blog-post.md | pod translate --language spanish | pod format-htmlTranslate content and then format it for HTML.
Research pipeline
bash
curl -s https://example.com/paper | pod summarize | pod extract-key-pointsFetch a paper, summarize it, and extract the key takeaways.
How it works
Each pod command:
- Reads stdin (the piped input)
- Uses it as the prompt's content variable
- Sends the rendered prompt to the AI model
- Prints the response to stdout
Since output goes to stdout, it can be piped to the next command seamlessly.
Tips
- Keep each prompt focused on a single task for best results
- Use
--modelflags if different steps benefit from different models - Add
-vto individual steps for debugging