You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --format markdown for raw Markdown output (closes#1)
Adds a third output format for AI agent and LLM integration. When
--format markdown is used, raw Markdown is printed to stdout with no
Rich formatting, and ?format=markdown is passed to the MCP server.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+27-13Lines changed: 27 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,41 +84,55 @@ talkpython courses list
84
84
85
85
## Output formats
86
86
87
-
The CLI auto-detects the best output format:
87
+
The CLI supports three output formats via `--format`:
88
88
89
-
-**Interactive terminal** — Rich-formatted Markdown with styled panels and color.
90
-
-**Piped / redirected** — Compact JSON, ready for processing.
91
-
92
-
Override the default with `--format`:
89
+
-**`text`** (default) — Rich-formatted Markdown with styled panels and color for human reading.
90
+
-**`json`** — Structured JSON, pretty-printed on a TTY or compact when piped.
91
+
-**`markdown`** — Raw Markdown output with no Rich formatting. Ideal for piping into AI agents, LLMs, and automation tools that consume Markdown natively.
93
92
94
93
```bash
95
94
# Force JSON output in the terminal
96
95
talkpython --format json episodes search "async"
97
96
97
+
# Raw Markdown for AI agents and LLM pipelines
98
+
talkpython --format markdown episodes get 535
99
+
98
100
# Force rich text output even when piping
99
101
talkpython --format text episodes recent | less -R
100
102
```
101
103
104
+
## Agentic AI and LLM integration
105
+
106
+
Use `--format markdown` when feeding output to AI agents, LLMs, or RAG pipelines. This gives you clean, raw Markdown without terminal styling — exactly what language models expect:
107
+
108
+
```bash
109
+
# Feed an episode summary to an LLM
110
+
talkpython --format markdown episodes get 535 | llm "Summarize this podcast episode"
0 commit comments