Make_AI_behave

I’m testing opencode again.. and it works better with GLM-4.7

one Link to heading

  • start it with firejail to prevent it using ‘git’
  • add .git to .opencodeignore

two Link to heading

I have seen opencode delete the entire directory (including .git)

I also added
"instructions": ["TONE.md"]
to opencode.json

This TONE.md is up to you.. but I got tired of being labeled “frustrated” as soon as I used CAPS or an exclamation mark.

three Link to heading

Instruct opencode to use some test-suite. For Ruby .. minitest is OK.
This will save you head-ache.

four Link to heading

Make sure to instruct opencode to modularize.. and to test each module separately. The free AI is not that great with huge source-code.

five Link to heading

  • Try to give clear instructions.
  • Work in steps (and test in-between)
  • Use AGENTS.md
  • Add examples, links..
  • Use git (but do not allow opencode GLM-4.7 to mange it)

Using this workflow.. it becomes much more enjoyable using opencode.