AI article

Cloudflare Launched Clef. Let's Build a Tiny Decision Gate in TypeScript.

Community description: Cloudflare's Clef scores decisions. Build a tiny TypeScript gate that turns scores into act, ask, or skip, with a human boundary for refunds.

Dev.to | Oct 2, 2026 | Bobby Hall Jr

Automated excerpt

It returns numbers. if (id === "refund" && answer. type === "noul") { ? { action: "ask", reason: "money stays with a human" } if (answer. type === "noul" && id === "urgent") { ? { action: "act", reason: `urgent ${answer. yes} clears 0. 80` } : { action: "skip", reason: `urgent ${answer. yes} stays under 0. 80` }; if (answer. type === "choice" && id === "team") { ? { action: "act", reason: `${answer. pick} ${confidence} clears 0. 60` } : { action: "ask", reason: `${answer.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More AI news