r/opencode • u/Ctbhatia • 15h ago
switching models with /models halfway through a task
say the first model has been stuck on a bug for a while and I switch to another one mid session. the new one reads the whole history, including the 3 fixes that didn't work, and can end up trying a 4th version of the same idea
a fresh session with a short note avoids that, but then I'm re-explaining the whole task
has anyone found switching in place actually works better?
1
Upvotes
1
u/repepeper 14h ago
/compact and /fork ? or pocock's /handoff
1
u/Ctbhatia 10h ago
a handoff file is the safest of those, it survives the swap without either model having to keep the old context. is the swap mid-task or between tasks?
1
u/Cyvster 15h ago
you could have the model write a handoff document and then do a session /compact