Kubai Kevin

3 articles tagged Longrunningagents

Context engineering: the real fix for agent hallucinations

Long-running agents fail because their context fills with stale tool output and contradictions. Here is how to structure, prune and measure that context.

16 min read · 27 October 2026

Context windows live longer than you think

Long-running agents exhaust context windows through unbounded history growth. Covers pruning, summarisation, retrieval, and retention policies with code.

13 min read · 25 July 2026

Agent context: short-term vs long-term memory

Compare Redis-style short-term agent context with Postgres event logs: latency, durability, auditability, cost, and how to measure each.

15 min read · 9 July 2026