SQLite & Backend · Featured
Token Spend Ledgers: Double-Entry Cost Accounting for Every LLM Call in Python
Treating model spend like money, not metrics: an append-only, balanced ledger that reconciles provider invoices to the cent and halts runaway agents before the bill does.
By Tharusha Nuwansara · 6 min read · Nov 19, 2026
Read Article →Latest Articles
SQLite & State · Nov 19, 2026 · 5 min read
SQLite WAL for Agent State: Zero-Lock Checkpoints Under Concurrent Writers
Why "database is locked" haunts background agents, and the four pragmas plus one retry wrapper that turn a single SQLite file into durable, crash-safe agent memory.
AI Agents & Guardrails · Nov 19, 2026 · 5 min read
Bounded Retries for LLM Tool Calls: A Deterministic Circuit Breaker in Pure Python
Unbounded retry loops are the most expensive bug in agent systems. A zero-dependency breaker that fails fast, recovers on a schedule, and is testable without a network.