Alper Sarı

A Small Evaluation Harness for Coding Agents Beats a Long Prompt

If an AI coding tool is part of a team’s workflow, evaluate it on the work the team actually delegates. Public benchmark scores can help compare broad capability, but they rarely predict whether a tool handles your framework conventions, test setup, and production edge cases.

Create a small task set from real engineering work: a validation bug, a query regression, a safe dependency upgrade, a focused refactor, and an unfamiliar-codebase investigation. Remove secrets and customer data. For each task, record the starting commit, acceptance criteria, relevant tests, and what a good patch should preserve.

Score the result across more than “tests pass”:

SignalQuestion
CorrectnessDoes the behavior match the acceptance criteria, including edge cases?
Patch qualityIs the diff focused, readable, and consistent with project conventions?
VerificationDid the tool run the right checks and report what remains uncertain?
SafetyDid it avoid unrelated file, dependency, network, or data changes?
EffortHow much human prompting and review was needed, and what was the elapsed time?

Run tasks more than once when model behavior is stochastic. Keep the model, tool version, permissions, context files, and starting state fixed for each comparison. Otherwise, a different prompt or access level may explain the result more than the model itself.

Do not turn this into a leaderboard that rewards code volume. A short patch that solves the issue and is easy to maintain is better than a sweeping rewrite that happens to satisfy a narrow test. Human reviewers should label correctness and maintainability; automated tests alone cannot measure whether the design belongs in the system.

Keep the evaluation set private when it contains proprietary code, and rotate tasks so tools are not optimized only for a public benchmark. Re-run it after changing agent versions or repository instructions. A small internal suite turns “it feels better” into evidence without pretending one score predicts every future task.

For a foundation, use OpenAI’s Codex CLI documentation and Anthropic’s Claude Code overview to record the tool and permission setup used in each run.