Design an Evaluation Harness for an App-Building Coding Agent
Last updated: November 29, 2026
Quick Overview
Design the offline and online evaluation system used to decide whether a new model, prompt, or tool change makes an agent that builds full-stack apps from natural-language requests better, including how you score runs that have no single correct output.
Replit
November 29, 20260
0
0 solved
Design the offline and online evaluation system used to decide whether a new model, prompt, or tool change makes an agent that builds full-stack apps from natural-language requests better, including how you score runs that have no single correct output.
Replit Agent plans, writes code, runs it, and fixes errors inside a real workspace, and the team ships model and prompt changes frequently. The interviewer checks whether you can make quality measurable for long, open-ended, tool-using tasks while controlling cost and nondeterminism.
What the Interviewer Expects
- Builds a versioned task suite with realistic prompts and checkable acceptance criteria
- Runs each task in a fresh sandbox and scores with executable checks first
- Uses rubric-based model graders only where checks cannot reach, and calibrates them against humans
- Handles nondeterminism with repeated trials and confidence intervals
- Tracks cost, latency, and step count next to success
- Connects offline results to online signals such as rollbacks and deployments
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you keep the task suite from leaking into training data or being overfit?
- A change improves success by 2 points but costs 30% more. How do you decide?
- How would you evaluate the Agent's clarifying questions, not just the final app?
- How would you catch a regression that only shows on mobile layouts?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Compare a candidate agent configuration with the baseline on a few hundred tasks within hours, cheaply enough to run on every significant change. Scores must reflect what users care about (the app wor...
High-Level Design
Task store: prompts sampled and anonymized from real usage patterns plus hand written ones, each with a starting workspace and acceptance checks (HTTP probes, Playwright scripts that click through...