Live data from Hacker News

Run interactive commands in Gemini CLI

developers.googleblog.com

11–20 of 80 posts

Re: Run interactive commands in Gemini CLI

#12
post #3

I think that this feature might have taken Gemini CLI from just Temu Claude Code with higher usage limits, to actually competitive as a tool . It'll be interesting to see how well this actually works in practice.

Idk, the more skilled I get with Claude Code, the less I use interactive workflows.

Re: Run interactive commands in Gemini CLI

#14

I've had a pretty poor experience with Gemini. I've had to convince it to do things it should just be able to do but thinks it can't for some reason. Like reading from a file outside of the project directory- it can do it fine, but refuses to unless you convince it that no it actually can. Also has inserted "\n" instead of newlines on a number of occasions. I'd argue these behaviors are much more important than being…

I have had these exact issues a lot with codex (gpt-5-codex)

Re: Run interactive commands in Gemini CLI

#15

I've had a pretty poor experience with Gemini. I've had to convince it to do things it should just be able to do but thinks it can't for some reason. Like reading from a file outside of the project directory- it can do it fine, but refuses to unless you convince it that no it actually can. Also has inserted "\n" instead of newlines on a number of occasions. I'd argue these behaviors are much more important than being…

Gemini doesn't seem to be trained on tool use (which Claude is) so it quiet often thinks it can't do something it certainly can and does a lot of nonsense. For me it fails nearly everytime while it's trying to read project files because it uses relative paths instead of absolute so I've put "For your "ReadFile" and "WriteFile" tool, you MUST use absolute paths to files" in my system instructions.

Speaking of system instructions, Gemini always forgets them or doesn't follow them. And it still puts code comments nearly everywhere, it drives me nuts.

Codex is much better at following system instructions but the CLI is..... very bad.

Re: Run interactive commands in Gemini CLI

#16
post #3

I think that this feature might have taken Gemini CLI from just Temu Claude Code with higher usage limits, to actually competitive as a tool . It'll be interesting to see how well this actually works in practice.

Idk, the more skilled I get with Claude Code, the less I use interactive workflows.

I tend to agree but there are a few scenarios where I really want it to work. Debuggers in particular seem hard to get right for the current agents. I’ve not been able to get the various MCP servers I’ve tried to work, I’ve struck out using the debug adapter protocol from agent-authored python. The best results I’ve gotten are from prompting it to run the debugger under screen, but it takes many tool calls to iterate IME. I’m curious to see how gemini cli works for that use case with this feature.

Re: Run interactive commands in Gemini CLI

#18
From the blog " Gemini CLI spawns a new process within a pseudo-terminal in the background, leveraging the node-pty library...So how does this virtual terminal running in the background show up on your screen? Think of it like a video stream. Our new serializer takes a snapshot of the pseudo terminal at every moment—capturing every piece of text, every color, and even the cursor's position. These snapshots are then streamed to you, allowing you to see and interact with the terminal application in real-time. It's not just a stream of text; it's a live feed."

Terminal serializer code: https://github.com/google-gemini/gemini-cli/blob/main/packag...

Uses @xterm/headless npm package.

Re: Run interactive commands in Gemini CLI

#19
post #18

From the blog " Gemini CLI spawns a new process within a pseudo-terminal in the background, leveraging the node-pty library...So how does this virtual terminal running in the background show up on your screen? Think of it like a video stream. Our new serializer takes a snapshot of the pseudo terminal at every moment—capturing every piece of text, every color, and even the cursor's position. These snapshots are then s…

Your link 404s
Post reply on HN