Discover · major.io

No picture published by major.io

Switch OpenCode model presets based on directory

Icanhazip major.io

I’ve tried lots of coding agents, such as Claude Code, Codex, Pi and OpenCode, but I keep coming back to OpenCode. The flexible configuration, keyboard shortcuts, and visual presentation in a terminal really appeal to me. However, I run into situations where certain sets of models and agents make sense in one software project but not another.

By combining oh-my-opencode-slim with direnv, opencode can use different models for different projects.

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Names and references

  1. Switch — person

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

Also from Icanhazip

  1. On token budgetsmajor.io
  2. Texas Linux Fest is specialmajor.io
  3. AI, engineering fears, and Dunemajor.io
  4. Mount virtual media on Supermicro IPMI with less javamajor.io
  5. Talking about impostor syndrome on the GR-OSS OUT Podcastmajor.io
  6. Using Anthropic's models via Vertex AI in opencodemajor.io