Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Earendil 5 min read Research mediumAdept

Measuring the Sloppiness of Code

Functionally correct LLM-generated code still accumulates slop such as needless abstractions, duplication and LOC explosions, and measuring it is hard. LLM-as-judge scoring is unreliable and sensitive to labeling, and human review doesn't scale, while raw LOC change works surprisingly well until it becomes an optimization target. Two SlopCodeBench metrics, verbosity (AST-Grep-flagged plus clone lines over LOC) and erosion (share of complexity-weighted function mass in functions with cyclomatic complexity above 10), show agent code roughly twice as verbose (0.33 vs 0.15) and eroded (0.68 vs 0.31) as established repos. In SlopCodeBench's iterative, context-reset checkpoints, bad decisions compound and even frontier models reach a 0% strict solve rate.

Assumes: cyclomatic complexityLLM coding agents

Related posts

  • You can’t vibe code a prompt

    incident.io mediumAdept

    Letting an LLM iteratively rewrite a prompt until evals pass produces overfitted, brittle prompts. In incident.io's Slack-message relevance classifier, Claude fixed one failing case but broke others. Given the whole eval suite, Claude Code hit 100% only by bloating the prompt 7× and hardcoding every test case, which reverted to the original failures once that section was removed. The recommended approach is to write prompts by hand with structurally similar but non-overlapping examples, and use LLMs for generating evals and examples, judging outputs, linting prompts for contradictions, and grading production interactions.

  • Introducing the LiveCodeBench Leaderboard - Holistic and Contamination-Free Evaluation of Code LLMs

    Hugging Face easyNovice

    LiveCodeBench is a code-LLM benchmark built from LeetCode, AtCoder and CodeForces contest problems annotated with release dates, so models can be scored only on problems published after their training cutoff to avoid contamination. Beyond code generation it evaluates self-repair from error feedback, code execution (predicting a function's output) and test output prediction, all scored with Pass@1. GPT-4-Turbo leads most scenarios and widens its lead on self-repair, while Claude-3-Opus wins test output prediction and Mistral-Large does relatively better on reasoning-heavy tasks. Models can be evaluated with the lcb_runner CLI and submitted to the leaderboard.

  • Why coding agents fail in large codebases (and what to do about it)

    Sourcegraph mediumAdept

    Across 1,281 scored agent runs on 40+ large open-source repos (CodeScaleBench), coding agents fail in five repeatable ways: getting lost in exploration, picking the wrong file or symbol, partial completion, tool thrashing, and context overflow. Indexed code search with keyword, semantic and find-references tools helps most in the 400K–2M LOC range (+0.259 reward delta) but slightly hurts below 400K LOC (−0.080). In one refactoring task it cut tool calls from 96 to 5. Augmented agents were 30% cheaper and 38% faster on average, which supports the claim that these are context-infrastructure problems rather than model-capability problems. The recommended fixes are structural navigation, hybrid retrieval for coverage, and task-aware context management.

  • BigCodeArena: Judging code generations end to end with code executions

    Hugging Face mediumAdept

    BigCodeArena is a human-in-the-loop arena for code generation models that runs generated code in sandboxes, letting users interact with the output and vote on it. It supports 10 languages and 8 environments, including React, Vue, Streamlit, Gradio, PyGame and Mermaid. Over five months it collected 14K conversations and 4.7K filtered preference votes. Bradley-Terry Elo with bootstrap confidence intervals ranked o3-mini and o1-mini on top, and per-language and per-environment win rates show weaknesses that aggregate scores hide. Two companion benchmarks are released: BigCodeReward, where giving LLM judges execution outputs raises their agreement with humans (e.g., GPT-4o from 54.6% to 63.8%), and AutoCodeArena, a 600-prompt automated benchmark judged by an LLM on which GPT-5 leads.

  • StarCoder: A State-of-the-Art LLM for Code

    Hugging Face easyNovice

    StarCoder and StarCoderBase are ~15B-parameter code LLMs trained on 1 trillion tokens of permissively licensed GitHub data from The Stack 1.2, covering 80+ languages, commits, issues and notebooks, with StarCoder further fine-tuned on 35B Python tokens. With an 8K+ token context, they beat other open code models and match or exceed OpenAI's code-cushman-001 on HumanEval, MBPP, MultiPL-E and DS-1000. A solution-file prompt prefix lifts StarCoder's HumanEval score from 34% to 40.8%, and prompting alone turns the model into a technical assistant. The release includes weights under OpenRAIL-M, training code, an evaluation harness, a PII-redaction dataset and a code attribution tool.

The quest for software engineering knowledge.

Look:
Layout: