Tout ce que j'ai appris en construisant des workflows agentic en production, écrit noir sur blanc. CLAUDE.md, budgets de contexte, sessions parallèles, tout y passe.
Des preuves, pas des promesses
Une vraie session, raccourcie : un plan avant la moindre ligne de code, un cas limite repéré, une correction de cap, un résultat. Aucune formule magique.
New screen: a BLE pairing flow. Don't write code yet. Read useDevicePairing and the two screens that consume it, then give me a five-line plan and the one edge case I'll forget.
Read three files. Plan:
cas limite The user backgrounds the app mid-scan. iOS suspends the BLE callback, so on resume the hook still reads scanning, forever.
Good catch — that's the whole feature. Drop the optimistic rollback, it's premature. On resume, re-arm the scan and time it out at ten seconds. Show me the hook diff only.
useDevicePairing.ts — added an AppState listener: on active, if status is scanning, restart the scan with a 10s timeout that transitions to error. Fourteen lines. No screen changes needed.
Ship it. Now write the test that backgrounds the app mid-scan and asserts we don't hang.
Vraie session. Anonymisée, légèrement raccourcie.
Paiement unique. Sans abonnement.
Le Chapitre 1 est gratuit. Aucun compte requis pour démarrer.