BasicAgent

Output Replay Buffer Sizing

Buffer sizing balances memory use with continuity. Keep recent output, drop the rest.

Published: 2026-01-04 · Last updated: 2026-01-04

Output replay needs a bounded buffer. The goal is to keep recent output without turning the system into a log archive.

Practical sizing rules

  • cap chunks and bytes,
  • drop oldest output first,
  • keep enough to cover typical disconnect gaps.

Why this matters

Too small and you miss critical output. Too large and memory usage grows without bounds.