Designing a Multi-Domain Coding Agent Evaluation Suite
This article breaks down the design of a multi-domain evaluation suite for coding agents, focusing on the three core challenges of task realism, data contamination, and attribution. It explains how tasks are reverse-engineered from real engineering artifacts, how containerized execution enforces isolation and resource limits, and how a 2×N cross-validation matrix across two agent harnesses separates model capability from framework effects. It also covers domain-specific verification logic for code, web, office, and security subsets, why subset scores cannot be compared horizontally, and practical guidance for building reproducible evaluation pipelines.
1. Why Coding Agents Need a Dedicated Evaluation Suite
Single-turn question answering is already well covered by existing LLM benchmarks, but coding agents operate in a completely different capability space. They must read files, execute commands, modify code, and run tests inside a real workspace, then iterate based on the feedback. The evaluation difficulty concentrates in three areas:
- Task realism: Synthetic problems tend to be overly clean and fail to capture the vague requirements, legacy baggage, and implicit constraints of real engineering work.
- Data contamination: Once a public benchmark is released, it easily ends up in training corpora, inflating scores.
- Attribution: Final results are shaped by both model capability and the agent harness. Without separating the two, the findings cannot guide improvement.
A credible multi-domain suite has to address all three problems at once, rather than just publishing a leaderboard number.
2. Contamination Resistance: Reverse-Engineering Tasks from Real Scenarios
The mainstream approach starts by collecting real engineering traces, such as commit history, pull request descriptions, and internal support tickets, then reverse-engineers them into natural language requests. The key rewriting principles are:
- Colloquial phrasing: Use the everyday language engineers actually use, allowing subjects and background to be omitted.
- Role assignment: Add framing like “you are an intern who just took over this module” or “a customer reports a production incident”, forcing the model to fill in context on its own.
- Short prompts: The shorter the prompt, the harder it is for a search engine to match it exactly, and the original records remain unsearchable.
It is worth stressing that contamination resistance does not rely on a “hidden benchmark.” It is a combination of task construction logic + dataset version management: each version iteration regenerates variants, keeping the capability dimensions unchanged while the wording is entirely new. The dataset is also fully open source, which guarantees external reproducibility and auditability. This is the exact opposite of a closed, secretive approach.
3. Execution Isolation: Containerized Environments and Capability Boundaries
Evaluation must run in strictly isolated containers, achieving physical separation between the model and the execution environment. Typical engineering concerns include:
- A disposable workspace for each task, destroyed as soon as the task ends, so state never bleeds across tasks;
- Disabling web retrieval and human questions, so the test measures pure reasoning and execution in a closed environment;
- Resource quotas (CPU, memory, disk, execution time) to prevent infinite loops from taking down the evaluation cluster;
- A unified pipeline: source collection → request rewriting → workspace assembly → dependency provisioning → validation.
A schematic task description structure can be abstracted as:
task_id: code-0142domain: codeprompt: "Fix the duplicate charge issue with this API under concurrency, and make sure the tests pass"workspace: snapshot://repo@commit-ishconstraints:network: falseask_human: falsetimeout_sec: 900verifier: pytest_subset_v3
4. Cross-Validation with Two Agent Harnesses: Separating Model Capability from Harness Capability
The same model can show noticeable score swings under a different harness, due to differences in tool-calling protocols, context compression strategies, and retry logic on failure. The suite therefore prepares two independent agent harnesses for cross-validation, for example one in-house solution and one widely used open source solution, forming a 2×N comparison matrix. Key runtime parameters are also locked to keep results comparable: reasoning depth set to the highest tier, context window extended to roughly 200k tokens, and an identical tool whitelist and permission policy. Only when a model performs consistently under both harnesses can its capability conclusion be trusted; a significant gap should be attributed to harness adaptation rather than the model itself.
5. Domain Subsets and Verification Logic
The suite typically covers four scenario types: code, web, office, and security, with several hundred tasks in total. The judging method differs completely per subset:
- Code: Based on unit tests, static checks, and whether the build passes, which is highly objective;
- Web: Validated through page structure, interaction outcomes, or visual/text assertions;
- Office: Handles artifacts such as spreadsheets, documents, and presentations, checking structural and content consistency;
- Security: Verifies that vulnerabilities are correctly identified and fixed, while ensuring no new risks are introduced.
Because the judging criteria and difficulty baselines differ, subset scores cannot be compared horizontally. Only longitudinal version comparisons within the same subset are valid. This is the point most often misread when going through an evaluation report.
6. Reproducibility and Engineering Recommendations
To build similar evaluation capability in your own environment, prioritize the following: keep tasks and verifiers in the same repository with version tags; pin container images by digest rather than floating tags; record complete run logs and traces to make failure attribution easier; maintain multiple prompt variants to continuously counter contamination; and on the cloud, rely on general-purpose capabilities such as container platforms, object storage, log services, and monitoring/alerting to handle scheduling and archiving. The end goal is not a nice-looking score, but a sustainable, explainable closed loop for measuring capability.
