Just saying, I simply copied from https://github.com/JuliusBrussee/caveman
Beyond the cost of tokens, I found it's very good at doing more with a limited context window before OpenCode hits context compaction.