r/opencodeCLI • u/Doctor_Cupcakes • 3d ago
Scripted auto thinking setting for opencode
I had Claude build a scripted auto setting for opencode. For each new session, it starts on low reasoning to plan some steps. Once the model actually makes a change in the code, thinking turns off. When it runs a command that returns with an error, thinking switches back to high until the next edit. With this setup the model tends to think on less than 20% of steps. Virtually no drop in accuracy was measured. This saves tokens generated and wall clock time. If you decide to try this, please let me know your feedback. I've tested it the last couple days and it seems to work well. Here is the GitHub link. Just tell your agent to install it.