Understand it. Build it.

Practical engineering guides for the work between a promising demo and a dependable system.

Engineering library

12 articles
Agent observability

OpenTelemetry for AI Agents in 2026: Traces, Token Costs and Prompt Privacy

Build OpenTelemetry agent traces in Python, separate token billing from spans, and protect prompt privacy. Tested offline code, architecture diagrams and 2026 GenAI conventions.

22 min read
MCP & agent security

Secure Remote MCP Servers in 2026: OAuth, Stateless HTTP and Python Preflight Tests

A practical MCP 2026-07-28 engineering guide to OAuth discovery, token audiences, issuer validation, stateless routing headers and tested Python preflight checks.

20 min read
APIs & economics

Best Free LLM APIs in 2026: Real Limits, Free Credits and Setup

Compare Gemini, Groq, OpenRouter, Hugging Face and Workers AI free allowances, practical rate limits and security conditions.

14 min read

Haiku 5.5 pricing: the 100K boundary, cache break-even, and routing math

Calculate Haiku 5.5 token costs, cache write amortization, long-prompt charges, and fallback costs with a tested offline calculator.

8 min read

Migrate to Haiku 5.5: request changes, response handling, and a runnable example

Move from Haiku 4.5 to 5.5 with adaptive thinking, effort, token recounting, robust text parsing, and staging checks for tools and refusals.

7 min read

Agent Context Compaction, KV Cache, and Prompt Caching Explained

Understand three different memory mechanisms, calculate when compaction pays, and preserve agent state without mistaking cached tokens for durable memory.

16 min read

Claude Agent Routing: Cost per Accepted Task Beats the Cheapest Token

Build a defensible agent routing policy with conditional recovery rates, verifier errors, effort sweeps, batch deadlines, and a tested offline calculator.

17 min read

Build a document extraction pipeline that knows when to stop

An offline Python workflow for invoice extraction with strict JSON, field-specific source evidence, bounded repair, and a review queue—plus a plan for evaluating a live model adapter.

17 min read

GPT-6 Prompt Caching Economics: Engineer for Reuse, Measure Accepted Work

A rigorous guide to GPT-6.1 Sol prompt caching, Claude and Gemini cache economics, break-even calculations, prefix design, and tested cost accounting.

18 min read

LLM Price Wars: Compare Workload Costs, Batch Deadlines, and Realtime Systems

Normalize AI workload bills across tokens, promotions, context thresholds, off-peak schedules, batch orchestration, and realtime audio before choosing a provider.

16 min read

Qwen3.8 Omni Flash: How to Deploy a Multimodal Agent Without Confusing the APIs

Qwen3.8 Omni Flash explained: native audiovisual reasoning, nonrealtime versus realtime APIs, verified pricing, context limits, and accepted-task economics.

17 min read

Terminal-Bench 4.0 and SWE-bench: How to Compare Coding Agents Honestly

Understand Terminal-Bench 4.0, SWE-bench, harness effects, paired statistics, and cost per resolved task—with tested Python and current source evidence.

19 min read

Keep exploring.