How to preview Markdown files from Claude Code and Codex A developer published a guide on previewing Markdown files written by coding agents such as Claude Code and Codex, recommending the terminal renderer Glow (brew install glow) and macOS's open command for viewing agent-generated plans like PLAN.md. The guide also suggests adding a line to AGENTS.md or CLAUDE.md instructing agents to run open on every Markdown file they write, and notes that PonyMux's Files panel renders Markdown beside the terminal via Cmd-Option-F. Claude Code just wrote the plan to PLAN.md , or Codex left a HANDOFF.md . You cat it and scroll through pound signs, asterisks, and pipes. The agents render Markdown in their own replies, but a file they write you read raw. A few ways to read it properly: glow PLAN.md renders headings, lists, tables, and code right there. Install it with brew install glow . open PLAN.md opens it in whatever app handles .md files on your Mac. AGENTS.md or CLAUDE.md telling it to run open on every Markdown file it writes. Use a Markdown renderer. Glow https://github.com/charmbracelet/glow is a common one: brew install glow glow PLAN.md It prints the file with styled headings, bullet lists, tables, and highlighted code blocks, then returns to the prompt. For a long file, glow -p PLAN.md opens it in a pager you can scroll with the arrow keys and leave with q . Glow reads from a pipe too, so cat NOTES.md | glow - works. It's the quickest way to read a plan without leaving the session's terminal, but it's a snapshot: when the agent edits the file again, run it again. macOS has a command for that: open PLAN.md It opens the file in the app your Mac uses for .md files, such as your editor or a Markdown app. To change which app that is, select any .md file in Finder, press Cmd-I, pick an app under Open with , and click Change All . This works from anywhere, including from the agent itself, since it's an ordinary shell command. Yes. Agents read your project instructions at the start of every session, so one line is enough. Add it to AGENTS.md , which Codex and Grok Build read, or to CLAUDE.md for Claude Code: - After you write or update a Markdown plan or note, run open