Stop reinventing 'ask GPT-4 and Claude and a regex, then count the votes'
python
dev.to
If you've ever wired up "ask GPT-4 and Claude and a regex, then count the votes" inside a moderation pipeline, an agent router, or a code-review bot — you've written this code before: gpt_ok = call_gpt(prompt) claude_ok = call_claude(prompt) regex_ok = not contains_blocklist(prompt) if (gpt_ok and claude_ok) or (gpt_ok and regex_ok): return APPROVE else: return REJECT Then someone asks "what about weighting the senior model 2x?" and the if-tree doubles. Then "what if regex sees