Live data from Hacker News

Gemini CLI tips and tricks for agentic coding

github.com

131–140 of 152 posts

Re: Gemini CLI tips and tricks for agentic coding

#131

Earlier quoted context omitted.

tfw people are running agents outside containers

Apologies. I meant branch. I nuked the branch. But set me back a lot of time as I thought it may be few things here and there.

I see! That is annoying. A good reminder to push or fork the branch for backup.

Re: Gemini CLI tips and tricks for agentic coding

#132

I like AI a lot. I try to use to as much as I can. It feels like it is becoming an essential part of making me a more effective human, like the internet or my iphone. I do not see it as a bad thing. But I can't help but to get "AI tutorial fatigue" from so many posts telling me about how to use AI. Most are garbage, this one is better than most. Its like how javascript developer endlessly post about the newest ui fra…

agreed, each vendor(gemini,claude,codex...) should have an easy to follow best-practice on their homepages, better, they all agree on some agents.md style, to lessen the cognitive load on humans.

Re: Gemini CLI tips and tricks for agentic coding

#133

Earlier quoted context omitted.

tfw people are running agents outside containers

Apologies. I meant branch. I nuked the branch. But set me back a lot of time as I thought it may be few things here and there.

I always set gc.auto=0 for this reason, because it means the reflog will be there if I need it (unless I accidentally delete .git)

Re: Gemini CLI tips and tricks for agentic coding

#134

Gemini CLI at this stage isn't good at complex coding tasks (vs. Claude Code, Codex, Cursor CLI, Qoder CLI, etc.). Mostly because of the simple ReAct loop, compounded by relatively weak tool calling capability of the Gemini 2.5 Pro model. > I haven't tried complex coding tasks using Gemini 3.0 Pro Preview yet. I reckon it won't be materially different. Gemini CLI is open source and being actively developed, which is…

The trick with Gemini is to uploading the whole (or the relevant part of the) codebase (depending on the size) as an xml (using repomix et al) then telling it to output whole files.

With a good prompt and soem trial and error in system instructions, as long as you agree to play the agent yourself, it's unmatched.

CLI? Never had any success. Claude Code leaves it in dust.

Re: Gemini CLI tips and tricks for agentic coding

#137
post #40

Earlier quoted context omitted.

> 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.

> 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.

Good. I'd rather use a tool designed with focus on modern standards than something that has to keep supporting ancient ones every time they roll an update.

Re: Gemini CLI tips and tricks for agentic coding

#138
post #57

I am not doing any of this. It becomes obsolete in literally weeks, and it also doesn't work 80% of the time. Like why write a mcp server for custom tasks when I don't know if the llm is going to reliably call it. My rule for AI has been steadfast for months (years?) now. I write (myself, not AI because then I spend more time guiding the AI instead of thinking about the problem) documentation for myself (templates, c…

This is literally it.

High upside (if the AI manages to complete the task it is a time save), relatively low downside (not getting stuck in these AI feedback loops that are ultimately a time waste).

Seems odd to me that people spend so much time promoting some of the least productive aspects of AI tooling.

Re: Gemini CLI tips and tricks for agentic coding

#139
post #107
post #72

Earlier quoted context omitted.

> I haven't tried complex coding tasks using Gemini 3.0 Pro Preview yet. I reckon it won't be materially different. In my limited testing, I found that Gemini 3 Pro struggles with even simple coding tasks. Sure, I haven't tested complex scenarios yet and have only done so via Antigravity. But it is very difficult to do that with the limited quota it provides. Impressions here - https://dev.amitgawande.com/2025/antigr…

Are we using different models? Here is a simulation of Chernobyl reactor 4 using research grade numerical modeling I made with it in a few days: https://rbmk-1000-simulator-162899759362.us-west1.run.app/

That's impressive. Well, I was using the default Gemini 3 Pro. Based on my experience, I am surprised you did not hit the quota limit.

Re: Gemini CLI tips and tricks for agentic coding

#140

ymmv, but I think all of this is too much and you generally don't need to think about how to use an AI properly since screaming at it usually works just as well as very fine tuned instructions. you don't need claude code, gemini-cli or codex I've been doing it raw as a (recent) lazyvim user with a proprietary agent with 3 tools: git, ask and ripgrep and currently gemini 3 is by far the best for me even without all th…

I'm doing something very similar but even simpler and Gemini 3 is absolutely crushing it. I tried to do this with other models in the past, but it never really felt productive. I don't even generate diffs, just full files (though I try and keep them small) and my success rate is probably close to 80% one-shotting very complex coding tasks that would take me days.

problem without diffs is that it overrides your changes which gets really old and annoying.

earlier models couldn't generate diffs and I had to generate them which was jank since sometimes it would generate unmergeable code

Post reply on HN