Using AI as an if statement: LLM probability calls inside PowerShell scripts
dfinke · x · 2026-09-22
A demo of treating AI like an if statement in PowerShell: call TypeSafe AI's API to evaluate a question and return a probability from 0.0 to 1.0, then branch your automation on it. An interesting pattern for mixing LLM judgment into classic shell scripting.
More from coding & agent
- Dev open-sources Convoy, a Linear-style task board for orchestrating AI coding agents — Budget_Map_3333 · 2026-09-22
- AAV open-sources a runtime security layer for AI agent actions with MCP approvals — CarlosMarreroAAV · 2026-09-22
- Google Cloud shares 4 evaluation engineering lessons from building agent plugins — rseroter · 2026-09-22
- Curated Vol.1: Best New AI, Culture and Finance Links, Tools and Articles — xkonjin · 2026-09-22
- Gemma 4 E2B's verbalized confidence collapses to 3 values; independent judge ranks passages better — clduab11 · 2026-09-22
- Dev wires typesafe's Jev into Apple's Foundation Models framework for Swift apps — rxwei · 2026-09-22