A 4B Model Verifies a Coding Agent 70x Its Size at Just 4% of Steps, 9-13% Extra Cost

petrusenko_max · x · 2026-10-30

The author breaks down SWE-Verifier-style selective verification: a small 4B model checks only critical decision points (<4% of steps) for 9-13% extra API cost, acting as a verifier for an agent 70x its size. He shares his own WhatsApp DM agent implementation, with a diagram covering the full design: a pre-send review gate where the second model reads the last 10 chat messages, runs via subscription-based claude -p (no API keys), falls back to DeepSeek through Hermes with no tools, and runs alongside deterministic rules. Key principle: place the check at the irreversible action—the send—rather than auditing every step.

Original post →

More from coding & agent

coding & agent channel →