Hex has evolved its agent capabilities by introducing Evals, a testing workflow inspired by internal practices, now available to users. Evals allow for grading agent work beyond just answers, using an LLM-as-judge to assess tool usage, reasoning, and behavior. Test cases are defined in version-controlled files and run from the Hex CLI. Context changes can be tested safely via Context Previews before publishing. Evals enable measurement and improvement of agent quality and cost, helping to test c. This post details how Hex used evals to drive the development of its 'Quick Edits' feature, achieving a 7x reduction in the AI error rate through a hill-climbing approach. The focus was on minimizing wrong edits over incorrect handoffs, and improvements were largely driven by enhancements to the validation harness around the model rather than prompt engineering. Holdout cases were used to prevent overfitting, and the speed of the eval runs enabled rapid iteration on both the AI and the broader feature.
All Hex trails