A lightweight agent loop with structured tool use, context compression, and error recovery. Built for production, not demos.