Live data from Hacker News

Gemini CLI tips and tricks for agentic coding

github.com

41–50 of 152 posts

Re: Gemini CLI tips and tricks for agentic coding

#41

>this lets you use Gemini 2.5 Pro for free with generous usage limits Considering that access is limited to the countries on the list [0], I wonder what motivated their choices, especially since many Balkan countries were left out. [0]: https://developers.google.com/gemini-code-assist/resources/a...

For Europe it's EU + UK + EFTA plus for some reason, Armenia.

Re: Gemini CLI tips and tricks for agentic coding

#42
post #17

I have never had a luck with using Gemini. I had a pretty good app create with CODEX. Due to the hype I thought let me give Gemini a try. I asked it find all way to improve security and architecture / design. sure enough it gave a me a list of components etc that didn’t match best patterns and practices. So I let it refactor the code. It Fucked up the entire repot. It hard coded tenant ids and used ids, it completely…

> Set me back 2 weeks of work. How did this happen? Did you let the agent loose without first creating its own git worktree?

What's the benefit of git worktree? I imagine you can just not give the agent access to git and you're in the same spot?

Re: Gemini CLI tips and tricks for agentic coding

#43
Notable re author: “Addy Osmani is an Irish Software Engineer and leader currently working on the Google Chrome web browser and Gemini with Google DeepMind. A developer for 25+ years, he has worked at Google for over thirteen years, focused on making the web low-friction for users and web developers. He is passionate about AI-assisted engineering and developer tools. He previously worked on Fortune 500 sites. Addy is the author of a number of books including Learning JavaScript Design Patterns, Leading Effective Engineering Teams, Stoic Mind and Image Optimization.“

Re: Gemini CLI tips and tricks for agentic coding

#44

Gemini-CLI on Termux does not work anymore. Gemini itself found a way to fix the problem, but I did not totally grok what it was going to do. It insisted my Termux was old and rotten.

Make sure you've turned off the "alternate buffer" setting

Re: Gemini CLI tips and tricks for agentic coding

#45
post #12

Earlier quoted context omitted.

I had a terrible first impression with Gemini CLI a few months ago when it was released because of the constant 409 errors. With Gemini 3 release I decided to give it another go, and now the error changed to: "You've reached the daily limit with this model", even though I have an API key with billing set up. It wouldn't let me even try Gemini 3 and even after switching to Gemini 2.5 it would still throw this error af…

I had to make a new API key. My old one got stuck with this error; it's on Google's end. New key resolved immediately.

and then loosing half a day setting up billing - with a limited virtual credit card so you have at least some cost control

Re: Gemini CLI tips and tricks for agentic coding

#46
post #25

Gemini CLI sucks. Just use Opencode if you have to use Gemini. They need to rebuild the CLI just as OAI did with Codex.

Well Opencode also completely replaced its TUI a few weeks ago too.

BTW Gemini 3 via Copilot doesn't currently work in Opencode: https://github.com/sst/opencode/issues/4468

Re: Gemini CLI tips and tricks for agentic coding

#47
post #28
post #18

A lot of times Gemini models will get stuck in a loop of errors in a lot of times it fails to edit/read or other simple function calling it's really really terrible at agentic stuff

Not so much with Gemini 3 Pro (which came out a few days ago)... to the point that the loop detection that they built into gemini-cli (to fight that) almost always over-detects, thinking that Gemini 3 Pro is looping when it in fact isn't. Haven't had it fail at tool calls either.

Interesting, I run into loop detection in 2.5-pro but haven't seen it get in 3 Pro. Maybe its the type of tasks I throw st it though, I only use 3 at work and the code base is much more mature and well defined than my random side projects.

Re: Gemini CLI tips and tricks for agentic coding

#48

Notable re author: “Addy Osmani is an Irish Software Engineer and leader currently working on the Google Chrome web browser and Gemini with Google DeepMind. A developer for 25+ years, he has worked at Google for over thirteen years, focused on making the web low-friction for users and web developers. He is passionate about AI-assisted engineering and developer tools. He previously worked on Fortune 500 sites. Addy is…

Also a winner of the Irish Young Scientist competition, 2 years before Patrick Collison. https://en.wikipedia.org/wiki/Young_Scientist_and_Technology...

Re: Gemini CLI tips and tricks for agentic coding

#49
post #25

Gemini CLI sucks. Just use Opencode if you have to use Gemini. They need to rebuild the CLI just as OAI did with Codex.

what happened with Codex? Did they rebuild it?

Codex CLI switched from a typescript implementation to a Rust based one.

Re: Gemini CLI tips and tricks for agentic coding

#50
post #40
post #25

Gemini CLI sucks. Just use Opencode if you have to use Gemini. They need to rebuild the CLI just as OAI did with Codex.

> To use OpenCode, you’ll need: > A modern terminal emulator like: > WezTerm, cross-platform > Alacritty, cross-platform > Ghostty, Linux and macOS > Kitty, Linux and macOS What's wrong with any terminal? Are those performance gains that important when handling a TUI? :-( Edit: Also, I don't see Gemini listed here: https://opencode.ai/docs/providers/ Only Google Vertex AI (?): https://opencode.ai/docs/providers/#goog…

It's silly of them to say you need a "modern terminal emulator", it's wrong and drives people away. I'm using xfce4-terminal.

Gemini 3 via any provider except Copilot should work in Opencode.

Post reply on HN