luckynick/claude-chat-to-md ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python command line tool that reads Claude Code chat session files from my local Claude projects folder and turns them into clean, readable Markdown.

I want to be able to list available sessions, pick one by number, ID prefix, title text, or just grab the latest one, then export it to a Markdown file or print it to the terminal. It should also support exporting all sessions into a folder, and filtering by project name if I want. Please include the full conversation format, with separate sections for user and assistant messages, code blocks formatted nicely, tool results hidden in collapsible sections, and subagent conversations included too. If I choose, I should be able to leave out subagents or tool results.

Keep it simple, polished, and easy to install and run from the command line. Use only what’s needed, and if you need to check current Claude Code file details online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab