Articles for people who
ship the stack
Rewrites on React, Node.js, TypeScript and AI. A translated body is shown when it exists. If it does not, you see the English text and a note that says so.
Tagged: routing
Containment Engineering: Why AI Agent Costs Are Spiking
Microsoft and Uber hit cost walls with AI agents. Why they burn tokens so fast, and four containment tactics: routing, budget tripwires, pruning, oversight.
6 min readDomain-aware RAG with MLflow registries and LLM routing
Domain-aware RAG: classify intent, load the right embedder from an MLflow registry, search the matching Qdrant collection, then route generation to an LLM.
12 min readLangGraph Conditional Workflows: Branching Without Prompt Spaghetti
Encode LangGraph if-else routing as named conditional edges with clear state contracts and recoverable failures, instead of stuffing branching into prompts.
10 min readCut LLM spend with a LiteLLM token router
LiteLLM sits between apps and providers, routing short prompts to cheap models and heavy ones to Opus—about 28% savings in a simulated engineer month.
3 min readStop Tools Conditionally: Artifacts Beat return_direct in LangGraph
Stop or continue per tool call in LangGraph using tool artifacts, in a hand-built ReAct loop and in create_agent middleware, where return_direct can't decide.
11 min readTyped Decision Models vs LLM Calls: Latency and Stability at the Boundary
A 240-call experiment comparing Jev's native probabilities with an LLM's self-reported ones, and how to turn that signal into a LangChain model router.
12 min readNext.js 16 Upgrade Traps: Parallel Route Defaults and middleware to proxy
Learn why Next.js 16 parallel route slots need a default.js, how to review a middleware.ts to proxy.ts move safely, and what to test before calling the upgrade done.
6 min readPricing a Typed Decision Router in Front of Frontier LLM Calls
How to model the expected cost of gating LLM traffic with a typed decision model like Jev, set confidence thresholds, and validate routing quality before you ship it.
12 min readA Single Source of Truth for Route Paths in Next.js Applications
Learn how a typed central routes module replaces scattered string paths in Next.js, with helper functions for dynamic segments and grouped route exports.
5 min read
About these articles
Request a 24h estimate
Need the same stack in a production operator layer? Send the brief — estimate within 24 hours.