Live data from Hacker News

Run interactive commands in Gemini CLI

developers.googleblog.com

61–70 of 80 posts

Re: Run interactive commands in Gemini CLI

#61

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 CLI is definitely a much worse client than some of the other agent clients like opencode, cursor etc. But from my experience, that isn't because of the model quality. I get better quality responses from the gemini web chat interface than chatgpt, claude etc. Of course my experience is anecdotal, but we hardly have any decent benchmarks to compare these models. I suspect most benchmarks have leaked into trainin…

I agree, gemini pro is a great model for coding if you don't need to do agentic work. I've found that it's a lot less "wordy" when editing, debugging, reviewing, etc. It gets to the point whereas other models can provide long useless explanations. It's also very smart and great with long context.

Re: Run interactive commands in Gemini CLI

#62
post #43

Earlier quoted context omitted.

Gemini CLI is definitely a much worse client than some of the other agent clients like opencode, cursor etc. But from my experience, that isn't because of the model quality. I get better quality responses from the gemini web chat interface than chatgpt, claude etc. Of course my experience is anecdotal, but we hardly have any decent benchmarks to compare these models. I suspect most benchmarks have leaked into trainin…

Also people don't talk enough about (or are bad at separating themselves) the model vs. the client tool - e.g. from your comment maybe using codex/Claude Code/aider with Gemini API would be better, best even, but people rarely make that comparison or separation, it's always 'Claude Code with Claude vs. codex with GPT-x' etc.

Yeah. The client tool does make a difference. For example opencode, if I am correct, just spins up its own language servers and then feeds the language server errors back into the model, resulting in a much better agentic coding experience. I don't think they are doing anything much more complex than that.

Unfortunately, nearly all the foundation model companies are just wasting their efforts on the clients, which are kind of ass, instead of focusing on the model.

Google would be much better off if they ditch their dogshit cli, and allow us to have the generous quota login off any client.

Re: Run interactive commands in Gemini CLI

#63

> It's not just a stream of text; it's a live feed. LLM wrote this article it seems. For me Gemini CLI is not as good as Claude Code and sometimes writes more code than necessary and makes it hard to maintain. but hope it gets there with gemini 3.0 release. It's open source so I can imagine it getting there faster with community contributions.

I stopped reading at that point, it was a signal that I’d just be reading another several paragraphs of repetitive prose with random bolded text. It also put such strange over emphasis on an implementation detail that is pretty much irrelevant to users which made it actively distracting on top of being an obvious LLMism.

Re: Run interactive commands in Gemini CLI

#64
post #43

Earlier quoted context omitted.

Also people don't talk enough about (or are bad at separating themselves) the model vs. the client tool - e.g. from your comment maybe using codex/Claude Code/aider with Gemini API would be better, best even, but people rarely make that comparison or separation, it's always 'Claude Code with Claude vs. codex with GPT-x' etc.

To be fair, most of the times, the tools works best with the models trained with those tools in mind, and vice-versa. Not to mention not all models/inference works the same way so you can't really replicate the same experience. For example, new Harmony format means you can now inject messages while GPT-OSS is running inference, but obviously Claude Code don't support that because their models don't support that.

>most of the times, the tools works best with the models trained with those tools in mind

This is a garbage state of affairs though

Re: Run interactive commands in Gemini CLI

#65
post #55

I have used Claude Code heavily, and I've been forced to use Gemini CLI heavily (for a particular client project). Of all my issues with Gemini CLI (and there are many), this addresses none of them. This is a fascinating product management prioritization decision. It makes me wonder if the people who build Gemini CLI actually use Gemini CLI for real work. Because I would think that if they did, they would surely have…

This is a very valuable use case for me personally. I frequently have the problem that I change things on the filesystem in a separate tab and the agent context gets out of sync. It fails on subsequent edits, often tries to reverse the changes that I made, and many times I have to copy/paste the command I ran and it's output back into the agent window.

Your complaint is likely a product design decision rather than a engineering capacity prioritization one. As you've noted the fix is pretty trivial. I imagine that some designer or product person is intentionally holding this back for one reason or another

Re: Run interactive commands in Gemini CLI

#66

i’ve had little luck getting ai systems to correctly set up networking for a set of vms. they tend to go round and round with ip tables commands that don’t ultimately solve the problem. is config fundamentally harder than writing code ?

Did you give them a way to check the networking rules? If not, the model is just shooting in the dark and guessing.

i give feedback by copy-pasting output. hence the round and round. maybe if i had a sandbox that the model could run on autonomously it might ho better/faster.

Re: Run interactive commands in Gemini CLI

#67

Does anyone know / care to speculate how they actually make this work, in terms of the LLM call loop? Specifically: does it call back to the LLM after each keystroke sending it the new state of the interactive tool, or does it batch keystrokes up? If the former, isn’t that very slow? If the latter, won’t that cause it to make mistakes with a tool it hasn’t used before?

I think this is the PR that implemented the feature: https://github.com/google-gemini/gemini-cli/pull/6694

> feat(shell): enable interactive commands with virtual terminal

Re: Run interactive commands in Gemini CLI

#68

Earlier quoted context omitted.

To be fair, most of the times, the tools works best with the models trained with those tools in mind, and vice-versa. Not to mention not all models/inference works the same way so you can't really replicate the same experience. For example, new Harmony format means you can now inject messages while GPT-OSS is running inference, but obviously Claude Code don't support that because their models don't support that.

>most of the times, the tools works best with the models trained with those tools in mind This is a garbage state of affairs though

What do you expect? People building software using other models than they themselves develop? Or people training the models train them for software that isn't the software they develop themselves?

It's like saying official car repair shops should repair any type of car, not just their brand. That's just not how the real world works.

Re: Run interactive commands in Gemini CLI

#69

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…

All LLMs and agents have stupid issues like this.

GPT-5 insisted on using bash commands to edit a file, despite the dedicated tool for doing this. Problem was that the bash tool it used wrapped at 80 chars, splitting some strings between lines, which then broke the code at a syntax level. It was never able to recover, I was not impressed with GPT-5

Re: Run interactive commands in Gemini CLI

#70
post #27

Earlier quoted context omitted.

Gemini seems to have a poor model of both what it can and what it is allowed to do. I’ve noticed the latter with several image generation refusals I could eventually easily talk them out of (usually by mentioning fair use in a copyright/trademark context).

> Gemini seems to have a poor model of both what it can and what it is allowed to do. Starting to feel like LLMs models are more of a representation of the culture of the company training them, than a fair representation of the world at large.

ConwAI’s law?
Post reply on HN