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
ML System Design
Machine Learning Engineer
Replit
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Hard

0

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
agent evaluation
sandboxed execution
LLM-as-judge
statistical significance
online metrics
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. 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 Problems
Sample 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...


Submit Your Answer
Markdown supported

Related Questions