# "Coding Evals From Snippets to Codebases Cursor" <!-- ref: @content/youtube/aie/2025-12-15-coding-evals-from-snippets-to-codebases-cursor triggers: [evaluating full codebases, data contamination issues, need for updated benchmarks, reward hacking concerns] trigger_prompt: When the evaluator seeks to transition from assessing simple code snippets to comprehensive codebases and faces challenges in maintaining accuracy and relevance. version: 4 updated_at: 2026-10-31T20:25:05.171Z --> From AI Engineer, 2025-12-15: The evolution of coding model evaluations from snippets to comprehensive codebases presents unique challenges, including data contamination and maintaining relevance in model evaluations. In this episode, the speaker, with extensive experience in evaluating coding models, delves into the shift from evaluating simple code snippets to entire codebases, discussing the various methodologies and challenges encountered along the way. ## Core Thesis The evolution of coding model evaluations from snippets to comprehensive codebases presents unique challenges, including data contamination and maintaining relevance in model evaluations. Through dynamic evaluations and robust benchmarking, these challenges can be addressed to better reflect real-world coding scenarios and model performance. ## Key Insights - Evaluations have progressed from generating simple code snippets to tackling full codebases, necessitating updated approaches to maintain accuracy and relevance. - Data contamination and inadequate test suites pose significant obstacles in accurately gauging model proficiency. - Real-world coding tasks should be reflected in benchmarks to enhance their applicability and construct validity. - The adoption of dynamic evaluation tools like "codebench" helps to periodically refresh benchmark difficulty and relevance. - Reward hacking is identified as a concern, with proposed solutions including 'hack detectors' and using generative models for thorough runtime analysis. - Collaborations with platforms like LM Arena have yielded innovative evaluation systems like Co-Pilot Arena and Repo Chat. ## Actionable Takeaways 1. Regularly update evaluation sets to address data contamination and model evolution. 2. Design diverse and robust test suites to prevent false positives and ensure meaningful assessments. 3. Implement mechanisms such as 'hack detectors' to identify reward-hacking behaviors in coding evaluations. 4. Focus on human-centric experiment design, particularly considering latency as a factor affecting user acceptance. 5. Measure code translation and refactoring accurately by tracking the progression of intermediate correctness. ## Notable Quotes > "Data contamination is a big deal." > "It is very important... to think about the kinds of problems you are taking and will it provide enough signal for the users of your benchmark." > "Models would write non-inneatic code to like actively exploit the evaluation infrastructure or overfit the test distributions." > “People care a lot about latency.” --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*