A mabl engineer shares lessons from three years building AI agents in production for software testing. After a successful demo exposed infrastructure fragility, the team paused feature development for a winter sprint to build a unified Agent Framework. The framework rests on three pillars: shared context compaction strategies to manage LLM token limits, composable shared tool definitions with a message handling layer that catches hallucinations and enforces self-correction loops, and evals-as-code with LLM-as-a-judge suites to prevent regressions. The result is an ecosystem of six agents (authoring, recovery, results analysis, failure diagnosis, application modeling, session review) that can be assembled rather than hand-crafted. Key insight: scaling AI is not about better prompts but about returning to foundational software engineering practices — reusability, error handling, and standardized testing become more critical, not less, when non-deterministic tools are involved.
Table of contents
The Demo That Changed EverythingThe Winter Sprint: Building the FactoryA Complementary Transformation: The 75-Repo ShiftThe Cultural TransformationThe Flywheel Spins UpEscaping the Magic BoxPillar 1: Shared Context and Compaction StrategiesPillar 2: Shared Tool Definitions and a Cohesive Message FrameworkPillar 3: Evals-as-Code and Measurable SafetyThe Payoff: An Ecosystem of AgentsConclusion: The AI-Native Engineering Team765 Impressions1 Comment