promptdojo_

Write recommend_framework(project) that takes a project profile (dict) and returns a string — one of:

  • "framework-free"
  • "vercel-ai-sdk"
  • "langgraph"
  • "crewai"

Each project has:

  • team_size: int
  • language: "python", "typescript", or "both"
  • needs_streaming: bool
  • needs_durable_state: bool
  • time_to_first_demo_days: int

Apply the rules in this exact order (first match wins):

  1. framework-free when the team is small AND the deadline is short: team_size <= 2 AND time_to_first_demo_days <= 14. Prototypes don't earn the framework tax.
  2. vercel-ai-sdk when streaming is required AND the stack is TypeScript-compatible: needs_streaming AND language in ("typescript", "both").
  3. langgraph when state must persist across restarts AND the stack is Python-compatible: needs_durable_state AND language in ("python", "both").
  4. Otherwise → crewai (multi-agent default when no other rule fires).

Two projects run. Expected output:

Solo MVP:        framework-free
Research agent:  langgraph

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.