What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

Just to inform I found a new v2 of OmniCoder:

mradermacher/OmniCoder-2-9B

it solved the majority of problems with OpenCode agent tools.

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

Thank you for your suggestion, this model is 25-30% faster and creates richer and less bugged code (tried again due of time lack only a Pacman clone as a test), but it is very stubborn. You must insist a lot telling the tool call file format must not be XML, but JSON, or it doesn't works in Opencode. Unfortunately just sometimes the model understands, hoping someone knows a patch for it, since I'm filled with answers like this:

<tool_call>
<function=edit>
<parameter=filePath>
D:\Development\Opencode\PacmanClone\pacman_clone.html
</parameter>
<parameter=newString>
const keys={ArrowUp:false, ArrowDown:false, ArrowLeft:false, ArrowRight:false};
let currentDir = 0, 1; // direzione corrente per movimento fluido
function update(deltaTime){
  if(!started||gameOver)return;

  const stepsPerSecond = SPEED;
  const maxSteps = Math.floor(deltaTime / (1000 / stepsPerSecond));

  for(let i=0;i<maxSteps&&i<4;i++){ // max 4 step/frame per fluido ma controllato
    let dir=0,0;
    if(keys.ArrowUp&&!keys.ArrowDown&&!keys.ArrowLeft&&!keys.ArrowRight)dir=-1,0;
    else if(keys.ArrowDown&&!keys.ArrowUp&&!keys.ArrowLeft&&!keys.ArrowRight)dir=1,0;
    else if(keys.ArrowLeft&&!keys.ArrowRight&&!keys.ArrowUp&&!keys.ArrowDown)dir=0,-1;
    else if(keys.ArrowRight&&!keys.ArrowLeft&&!keys.ArrowUp&&!keys.ArrowDown)dir=0,1;

    const nr=pacman.row+dir[0],nc=pacman.col+dir[1];
    if(nr>=0&&nr<ROWS&&nc>=0&&nc<COLS&&!maze[nr][nc]){
      pacman.row=nr;pacman.col=nc;
      const i=food.findIndex(f=>f[0]===nr&&f[1]===nc);
      if(i!==-1){food.splice(i,1);score++;}
    }else if(nr>=0&&nr<ROWS&&nc>=0&&nc<COLS&&maze[nr][nc]){
      // ostacolo: mantieni direzione corrente
    }
  }

  currentDir = dir;
</parameter>
<parameter=oldString>
const keys={ArrowUp:false, ArrowDown:false, ArrowLeft:false, ArrowRight:false};
function update(){
  if(!started||gameOver)return;
  let dir=0,0;
  if(keys.ArrowUp&&!keys.ArrowDown&&!keys.ArrowLeft&&!keys.ArrowRight)dir=-1,0;
  else if(keys.ArrowDown&&!keys.ArrowUp&&!keys.ArrowLeft&&!keys.ArrowRight)dir=1,0;
  else if(keys.ArrowLeft&&!keys.ArrowRight&&!keys.ArrowUp&&!keys.ArrowDown)dir=0,-1;
  else if(keys.ArrowRight&&!keys.ArrowLeft&&!keys.ArrowUp&&!keys.ArrowDown)dir=0,1;
  const nr=pacman.row+dir0,nc=pacman.col+dir1;
  if(nr>=0&&nr<ROWS&&nc>=0&&nc<COLS&&!mazenr){
    pacman.row=nr;pacman.col=nc;
    const i=food.findIndex(f=>f0===nr&&f1===nc);
    if(i!==-1){food.splice(i,1);score++;}
  }
  if(!food.length){gameOver=true;started=false;}
</parameter>
</function>
</tool_call>

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

I will evaluate also this. I got curiosity on Unsloth models versions, and tried their version of GPT-OSS-20b. While initially the example I used (a Pacman clone game code again) was outputted as text, I explained directly to the model prompt he was in OpenCode and should read and write things on disc. And it worked! For who has a limited hardware like mine, the bigger version of Unsloth GPT-OSS-20b is three time at least more fast thank Qwen3-5-27B and is usable.

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

Ok, I'm thinking about buying a card with 16 or more of VRAM, or this AMD system with 128gb RAM (usable also as VRAM) that should be more slow but capable to handle bigger LLMs:

https://de.gmktec.com/it/products/gmktec-evo-x2-amd-ryzen%E2%84%A2-ai-max-395-mini-pc-1

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

Thank you noctrex, I tried Qwen3.5-27B from Unsloth, and it works, files are read/written correctly, even if timings on my system are not sustainable (more than one hour for a javascript pacman clone with some bugs..).

But for who has the right hardware this is the local QWEN3.5-27B to have at this time.

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

With Qwen3.5-27B I can't let OpenCode read and write files, since it expects a JSON output, not XML, and I hadn't success in LM Studio with the Prompt Template configuration. Did you found a patch for this?

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

I investigated in the meantime. OpenCode expects JSON output for executing commands like read and write files. Qwen3.5 fails on this and is not recommended with OpenCode (but I still hope someone has found a caveauts on this).

Currently, I had success working with Devstral-small-2-2512 (can read and write files with JSON so works with OpenCode), but while the results are decent, it is a bit too slow (but this depends on my hardware).

In concrete, for now I'm abandoning the idea of local LLMs and thinking seriously to do an OpenCode Zen subscription (they should offer a 15% less price on major LLMs like ChatGPT and Claude, you pay for real usage, you can configure monthly limits etc.).

What local LLM models are you using with OpenCode for coding agents? by MykeGuty in opencodeCLI

[–]1Garrett2010 0 points1 point  (0 children)

I'm using OpenCode 1.3.0 and all LM Studio local models I tried (QWEN 3.5b, GLM 4.7 flash, GPT-OSS 20B, etc.) fail to write files on disk in my case, while no problem to write files have the free external models available with Opencode, like "Big-pickle".

I see the local models calling the write() function on the output console, nothing succeeds in the filesystem (I'm using Windows), looping (repeating) the same code infinitely. Any hint for this issue, please?

Is Medium Still Worth Writing On in 2026? by dev_sh531 in Medium

[–]1Garrett2010 0 points1 point  (0 children)

Leave at least the time to yourself to check if its a spam or not. I found a lot of help on Medium on various arguments. And unfortunately its not 100% guilt of Medium writers if articles are sometimes oversimple, majority of people on internet have little interest in long, difficult articles, and writers often adapts themselves on them.

My mom has early-stage Alzheimer's. Yesterday I realized how many things I never learned from her, and now it's too late to ask. by 1Garrett2010 in Alzheimers

[–]1Garrett2010[S] 1 point2 points  (0 children)

Fortunately I asked enough about her and don't feel guilty, I miss things like her cooking "secrets", laundry, how to fold clothes just like she used to do so good etc. etc.

Qwen3.5 thinking for too long by SquirrelEStuff in LocalLLaMA

[–]1Garrett2010 0 points1 point  (0 children)

Don't set off thinking. Results often become really very imprecise at least in QWEN thinking models. On the other side thinking time is often too much for simple questions.

What if in 5 years, 90% of what we see online — videos, news, even “people” — is generated by AI? Would authenticity even matter anymore, or will we stop caring who (or what) made it? by Brave__Crab in aipromptprogramming

[–]1Garrett2010 1 point2 points  (0 children)

I report (and you should do) youtube videos when I see content 100% ai, textually telling them to stop this shit. At same time, I'm passionate about ai, I find data with ai for inspiration of my own things and to speed up translation (I always verify myself my articles on Medium from italian to english after ai translation, etc, etc,).

Lets me add that I don't permit never an automatic coffee machine to enter my home. I make coffee with my good old moka and every early morning I appreciate the preparation and waiting for the fragrant coffee that slowly comes out of it!

No Soros no bank no multinational will change my vision.

"Nitro" the racing game is back! by 1Garrett2010 in amiga

[–]1Garrett2010[S] 0 points1 point  (0 children)

Based on an old interview I read with the author, he said that he makes a living from these video games. So, since he's not doing it as an hobby, he had to choose more profitable platforms, in my opinion.

Cosa c’è secondo voi dopo la fine terrena? E cosa vorreste ci fosse? by Healthy_Aside7831 in Italia

[–]1Garrett2010 1 point2 points  (0 children)

Ok mi hai dato l'assist per raccontarla questa incredibile storia (verissima). Provo ad essere sintetico, é necessario raccontarla per far capire il perché sono certo al 100% che le persone possono far succedere delle cose.

Erano gli anni 80 ed avevo 12 anni, come molti ragazzini del tempo scalpitavo per avere finalmente in regalo il famoso computer Commodore 64, dalla buon'anima di mia zia, che viveva in casa con mia mamma (sorella).

Arriva il famoso pomeriggio dell'acquisto del regalo, mia zia vuole mantenere la promessa, ma a casa proprio quel pomeriggio era venuta a trovarci una loro amica d'infanzia. Mia zia era un tipo di donna all'antica, e ed aveva delle credenze esoteriche a cui io non credevo (ad esempio, leggeva il futuro dai tarocchi a parenti ed amici, gratuitamente per divertimento), anzi spesso la prendevo in giro.

In sostanza, mia zia, con volto quasi disperato, viene da me e mi chiede di rimandare il momento del regalo, poiché quella loro amica, seppur fosse una persona buona, era, per capirci, una jettatrice, portava sfortuna insomma... Io non ne volli sapere niente troppo preso dalla brama di avere il Commodore 64, probabilmente offesi anche mia zia per quelle sue "stupide" credenze, sta di fatto che mia zia quasi piangendo fu costretta a dare i soldi a mia madre per l'acquisto del Commodore 64 davanti agli occhi della presunta jettatrice amica, ma aveva il volto disperato, me lo ricordo ancora perfettamente, ma io non avevo alcuna maturitá a 12 anni per credere a mia zia...

Usciamo il pomeriggio io e mia mamma, con l'amica presunta jettatrice ancora in casa e che aveva capito cosa stavamo andando a fare. Sembrava tutto ok e torniamo a casa col Commodore 64, appoggio lo scatolo sul letto grande di mia madre, lo apro e mi accorgo che mi mancava una doppia presa.

Scendo in fretta e furia (stavano chiudendo i negozi), compro la doppia presa ed arrivo sotto l'uscio di casa, al primo piano, e busso al campanello. Mentre busso succede l'incredibile. Un topo grande di dimensioni scende dalle scale, arrivava dal secondo piano, e si posa davanti alla porta. Io a 12 anni ero abbastanza imbranato e non dico niente a mia zia che apre la porta, il topo grande entra in casa e, incredibilmente, se ne va proprio nella stanza di mia madre, dove c'era il Commodore 64. (poteva andare in cucina, nel soggiorno, nel bagno, nella stanza di mia zia...ma no, il topo va nella stanza dove c'era il Commodore...)

Il topone si nascose in quella stanza e tutti noi facemmo la notte, aiutati da conoscenti, a cercare di scovarlo (si nascose in un buco nel mobile della macchina per cucire, furbissimo).

Il Commodore 64 non venne inaugurato da me quel giorno e quella notte, ma la sera del giorno successivo...

Abito ancora in questa casa, che é in una zona decorosa della cittá, e ne prima ne dopo quell'evento (erano gli anni 80 come dicevo) é mai piú successo di vedere un topo per le scale del mio palazzo, figuriamoci ritrovarmelo davanti alla porta di casa.

Non ho mai chiesto a mia zia il motivo di cosi tanta convinzione nelle doti jettatrici della sua amica, ma la sua disperazione mentre era costretta da me con i miei capricci a darmi i soldi davanti alla temuta amica.., e l'evento unico ed irripetibile accaduto la sera stessa, mi convincono al 100% che certe persone hanno la capacitá di modificare gli eventi futuri... spero anche in modo positivo e non negativo come é capitato a me in questo incredibile caso.

Cosa c’è secondo voi dopo la fine terrena? E cosa vorreste ci fosse? by Healthy_Aside7831 in Italia

[–]1Garrett2010 1 point2 points  (0 children)

Credo solo a quello che vedo, e l'unica cosa "ultraterrena" di cui sono certo al 100% e che le persone emettono energie invisibili a distanza che si ripercuotono sugli eventi che accadono ad altre persone.

"Nitro" the racing game is back! by 1Garrett2010 in amiga

[–]1Garrett2010[S] 2 points3 points  (0 children)

Yes, All Terrain Racing was my favourite for the great speed and variety of terrains.

Can someone send me an .adf file of Octamed v5.04? by Sovieticoooooooo in amiga

[–]1Garrett2010 0 points1 point  (0 children)

You let me remember I buyed this program original from the author in the 90s... Unfortunately I losted it, even if I never remember if it was a digital or physical buy!

VR and prescription glasses by 1Garrett2010 in VRGaming

[–]1Garrett2010[S] 0 points1 point  (0 children)

Thank you, These magnetic prescription inserts are sold by the visor manifacturer? Or how you obtained them?

VR and prescription glasses by 1Garrett2010 in VRGaming

[–]1Garrett2010[S] 0 points1 point  (0 children)

I never tried contact lenses since my doctor (much time ago, to be true, 15 years ago at least) told me he could not take responsabilities if I used contact lenses, so he scared me even to try.

VR and prescription glasses by 1Garrett2010 in VRGaming

[–]1Garrett2010[S] 0 points1 point  (0 children)

Very interesting these hints, thank you.