Feat: Framework/Module for proper A/B testing of prompts within opencode #1237

Open
opened 2026-02-16 17:30:07 -05:00 by yindo · 3 comments
Owner

Originally created by @spoons-and-mirrors on GitHub (Aug 11, 2025).

Originally assigned to: @thdxr on GitHub.

The title says it all, I have nothing on this just yet, but it would sure be a great addition.
Feel free to share your view on how this should be implemented, I'm stumped at the moment.

Originally created by @spoons-and-mirrors on GitHub (Aug 11, 2025). Originally assigned to: @thdxr on GitHub. The title says it all, I have nothing on this just yet, but it would sure be a great addition. Feel free to share your view on how this should be implemented, I'm stumped at the moment.
Author
Owner

@thdxr commented on GitHub (Aug 11, 2025):

not sure what this means!

@thdxr commented on GitHub (Aug 11, 2025): not sure what this means!
Author
Owner

@spoons-and-mirrors commented on GitHub (Aug 11, 2025):

tbh, I don't either...
I think that in order to benchmark prompt changes made to parts of OC or to agents made by users, having a proper way to A/B test those against a set of pre-made tasks and context or something a user could 'save' and re-use for testing purposes would be incredibly valuable.

A testing framework of sort, so everyone's prompts, including OC internal prompting can be fine tuned using an automated, scientific methodology. Less winging it, better handling of run to run variance and such...

That being said, idk what shape this 'thing' should be

@spoons-and-mirrors commented on GitHub (Aug 11, 2025): tbh, I don't either... I think that in order to benchmark prompt changes made to parts of OC or to agents made by users, having a proper way to A/B test those against a set of pre-made tasks and context or something a user could 'save' and re-use for testing purposes would be incredibly valuable. A testing framework of sort, so everyone's prompts, including OC internal prompting can be fine tuned using an automated, scientific methodology. Less winging it, better handling of run to run variance and such... That being said, idk what shape this 'thing' should be
Author
Owner

@LegendEvent commented on GitHub (Nov 4, 2025):

I think this is a great idea. A benchmark to actually visualize how the prompts affect speed/code processing. It would also be good because it would allow you to benchmark different agent orchestrations.

I was thinking of predefined prompts that ALWAYS force the same output, and then you could output a score based on time, etc. Internally, you could address this as /benchmark.

@LegendEvent commented on GitHub (Nov 4, 2025): I think this is a great idea. A benchmark to actually visualize how the prompts affect speed/code processing. It would also be good because it would allow you to benchmark different agent orchestrations. I was thinking of predefined prompts that ALWAYS force the same output, and then you could output a score based on time, etc. Internally, you could address this as /benchmark.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1237