GROK AND CLAUDE CODE JUST BECAME ONE AI EMPLOYEE THAT CAN DELETE YOUR ENTIRE SERVER IN 0.3 SECONDS → UNLESS YOU ADD 27 LINES
here's the 4-agent setup i run, from one X trend to a reviewed result
01 Grok → the scout
reads live X, pulls the posts and threads people are actually reacting to, hands back links and one-line summaries
02 Haiku 5.5 → the research crew
model: haiku
tools: Read, Grep, Glob
read-only, maps sources and returns evidence
↳ https://t.co/kHapNRZkZe
03 Sonnet 5.5 → the builder
turns the evidence into the draft, writes only inside output/
04 Opus 5.5 → the verifier
reopens every source, writes PASS or NOT READY
↳ https://t.co/F8gpmdl3Ad
the clever part:
TaskCompleted hook → exit 2 until the verifier writes PASS. the task literally can't close
PreToolUse hook → blocks git push, publish, deploy, rm -rf, terraform, kubectl
i fed that hook 591 real agent commands
31 dangerous ones blocked, 0 normal commands blocked by mistake
the loop:
X trend → Grok scout → Haiku research → Sonnet build → Opus verify → you approve
full setup, both hooks and all 4 agent files below ↓