Live data from Hacker News

Annoying and alarming things about OpenCode

wren.wtf

51–60 of 309 posts

Re: Annoying and alarming things about OpenCode

#51
There are definitely annoyances with OpenCode.

The remote-preferred attitude caught me once. Also, its server APIs don't match its docs, if you want to talk to it programatically.

The following config works for me to keep it on a local model:

{ "$schema": "https://opencode.ai/config.json", "provider": { "local-llama": { "npm": "@ai-sdk/openai-compatible", "name": "Local llama.cpp Server", "options": { "baseURL": "http://localhost:8080/v1" }, "models": { "Chefs Choice": { "name": "ANY" } } }, ...

This allows me to put any model I want on port 8080.

Re: Annoying and alarming things about OpenCode

#53
post #25

Earlier quoted context omitted.

How you deal with LSP? One of the best things in OpenCode is LSP integration.

> How you deal with LSP? One of the best things in OpenCode is LSP integration. I would love to learn how LSP helps you. I did various basic evals with LSP and I did not find it to improve the agent performance at all. Maybe on newer models this gets better because they are now RLing with LSP in the context, but at least in the past having a commit hook that runs lints and typecheck at the end, is more token efficien…

lsp integration isn't for checks like that.

It's for using lsp to do things like symbol renames. It's cheaper to call an LSP server to do those kind of simple refactors than to spend tokens on the model doing it.

It can also use LSP to build context without having to grep around a ton. You don't have to grep and hten pull lines and make guesses for a function. You just ask the LSP for it.

How helpful all that is is heavily dependent on the quality of the language server so usefulness is varies wildly between languages

Re: Annoying and alarming things about OpenCode

#54
post #33

Their "OpenCode" naming is controversial too. Quoting moozilla's comment 11 months ago ( https://news.ycombinator.com/item?id=44741894 ): --- If anyone is curious on the context: https://x.com/thdxr/status/1933561254481666466 https://x.com/meowgorithm/status/1933593074820891062 https://www.youtube.com/watch?v=qCJBbVJ_wP0 Gemini summary of the above: - Kujtim Hoxha creates a project named TermAI using open-source libr…

Wrong adam. The adam who cofounded chef has nothing to do with opencode

Re: Annoying and alarming things about OpenCode

#56

I feel that a better title for this article would be: "Some minor annoyances that, when fixed, would improve OpenCode" # Prompt Cache Misses > It globs your filesystem and re-reads AGENTS.md (injected in turn-0 system prompt) on every SSE turn. If you put a quick note in AGENTS.md to be read in the next session, you immediately force a full re-evaluation. > Personal favourite: it puts the current date in the turn-0 s…

I actually share that opinion of no comment from LLMs. I just dont want to read them. So as usual, an opinion is… an opinion.

Re: Annoying and alarming things about OpenCode

#57

I feel that a better title for this article would be: "Some minor annoyances that, when fixed, would improve OpenCode" # Prompt Cache Misses > It globs your filesystem and re-reads AGENTS.md (injected in turn-0 system prompt) on every SSE turn. If you put a quick note in AGENTS.md to be read in the next session, you immediately force a full re-evaluation. > Personal favourite: it puts the current date in the turn-0 s…

This article has several sections and you are commenting on things under the section titled "Annoying Things".

There is another section titled "Alarming Things", with a subsection titled "It’s Fucking Full of RCEs". (Those are RCEs other than those which simply derive from the issues pointed out in previous subsections).

Re: Annoying and alarming things about OpenCode

#58
> It globs your filesystem and re-reads AGENTS.md (injected in turn-0 system prompt) on every SSE turn. If you put a quick note in AGENTS.md to be read in the next session, you immediately force a full re-evaluation.

Um. Which then gets immediately cached again.

I prefer this behavior. I prefer my changes incorporated immediately, rather than wait for the next session. Call me crazy.

(Author is unhinged and this story is upvoted because #AI-HATE.)

Re: Annoying and alarming things about OpenCode

#59
post #9

I switched from OpenCode to Pi and there was a big improvement in terms of tool calling performance and I find the experience less buggy. OpenCode has also seemed to have disappeared from https://openrouter.ai/apps/category/coding

OpenCode requested to be removed from OpenRouter rankings: https://github.com/anomalyco/opencode/issues/11926#issuecomm...

Re: Annoying and alarming things about OpenCode

#60

I feel that a better title for this article would be: "Some minor annoyances that, when fixed, would improve OpenCode" # Prompt Cache Misses > It globs your filesystem and re-reads AGENTS.md (injected in turn-0 system prompt) on every SSE turn. If you put a quick note in AGENTS.md to be read in the next session, you immediately force a full re-evaluation. > Personal favourite: it puts the current date in the turn-0 s…

Definitely agree on the title. Also could have worked as 'Some minor annoyances that, when fixed, would improve OpenCode. Also, I don't like AI"
Post reply on HN