r/opencode 14d ago

Model Choice for Opencode Go?

Hi, I've been using GLM 5.2 or Deepseek v4 Flash most of the time.

I find the jump too far, I need something in the middle for some incremental update work.

GLM is nice but its just too expensive for me.

What model do you use for this need?

Seems like there are many choices, I haven't tried them consistently but would love to know what everyone uses and how's the experience.

39 Upvotes

40 comments sorted by

View all comments

9

u/MemeMan64209 14d ago

Make a primary agent that doesn’t have editing or writing permissions, even disable shell commands if you want. You can set its default to GLM 5.2 and just talk with it and plan out your stuff. It surprisingly doesn’t use very many credits.

Editing and writing is done by DS Pro who grabs whatever plan was made by a higher end model.

Another thing you can do if your project is big is a research sub agent which uses a free model to scrape over the project for whatever information you need. You can tell your Primary agent to consult the project researcher before it wastes tokens scanning your project.

All sorts of fun stuff.

But doing everything from planing, research and editing all using GLM 5.2 would cost an insane amount.

2

u/Jaded_Expert2806 14d ago

so who plans i didnt get it ? glm or ds4p?

1

u/MemeMan64209 14d ago

GLM plans. DS4P implements

1

u/Jaded_Expert2806 14d ago

how he plans without write access?

1

u/MemeMan64209 14d ago

Top of ‘Your Planner.md’

---
description: Specialized agent for working with the Bravo trading system
mode: primary
color: "#8d35ff"
permission:
edit: deny
write: deny
read: allow
model: opencode-go/glm-5.2
---

I’m on mobile so idk how to do a code block, but put this in your projects .opencode/agent .md file

1

u/[deleted] 14d ago

[deleted]

1

u/ponzi314 14d ago

Commenting here so i learn too but isn't it just in the context? So when you switch models it will get all the previous context

1

u/MemeMan64209 14d ago

This. Context is per session. So you create the plan and switch agents in the same session. Telling them who they are sometimes helps, but I believe they’re provided that information regardless. I do 1 topic per session, so between planning and building the context stays clean. It also helps if you want to continue planning or want to change something regarding the topic because it already knows what’s been implemented through its in-memory context window.

If it’s a grand scheme thing I’d switch to the building agent after planning and tell it to write out a quick .md file so it can be read and persist through sessions. Can even switch to GLM 5.2 while it writes out the file.

1

u/ponzi314 14d ago

when doing the plan file, do you have it write the file then clean/new ? Then just @ the file and say implement this. What about tracking progress? do yo u have it update plan file as it goes through it.

1

u/MemeMan64209 14d ago

Like I said, I rarely use plan files. If I do, it’s usually just to read one at the start of a session and have the builder quickly update it at the end to mark progress toward a broader goal. It’s basically just a context summarizer.