C.W.K.
Stream
Lesson 01 of 05 · published

DIY or Framework?

~26 min · frameworks, architecture

Level 0Observer
0 XP0/40 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

A framework is a trade, not a trophy

Frameworks buy primitives: graph state, handoffs, guardrails, tracing, evals, hosted tools, persistence, UI integration. They also sell you abstractions, upgrade churn, and another mental model.

Use a framework when you would otherwise build its primitives badly. Stay DIY when the loop is simple and control matters more than convenience.

Decision rule

If you need one model, three tools, and a simple stop condition, a loop is fine. If you need durable state, human interrupts, handoffs, evals, tracing, or many tools, a framework can save real engineering time.

Do not choose a framework because the tutorial had nice gradients. We have standards here. Tiny ones, apparently, but still.

Code

Framework decision checklist·text
Need durable state?        yes -> consider LangGraph / Agents SDK
Need handoffs?             yes -> consider Agents SDK
Need hosted code tools?     yes -> provider SDK may help
Need simple 3-tool loop?    yes -> DIY first
Need strict audit trail?    yes -> choose stack with tracing/evals

External links

Exercise

List the primitives your next agent needs. Only then choose DIY or a framework.
Hint
Primitive examples: checkpointing, handoff, tracing, human interrupt, hosted tools.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.