Plan before you build: Deterministic planning patterns for AI agents