Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

@simonw: slight tangent but super curious how you managed to generate the preview of that gemini-cli terminal session gist - https://gistpreview.github.io/?17290c1024b0ef7df06e9faa4cb37...

is this just a manual copy/paste into a gist with some html css styling; or do you have a custom tool à la amp-code that does this more easily?





I used this tool: https://tools.simonwillison.net/terminal-to-html

I made a video about building that here: https://simonwillison.net/2025/Oct/23/claude-code-for-web-vi...

It works much better with Claude Code and Codex CLI because they don't mess around with scrolling in the same way as Gemini CLI does.


very cool. frequently, i want to share my prompt + session output; this will make that super easy! thanks again for sharing!

I use Gemini CLI on a daily basis. It used to crash often and I'd lose the chat history. I found this tool called ai-cli-log [1] and it does something similar out of the box. I don't run Gemini CLI without it.

[1] https://github.com/alingse/ai-cli-log




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: