{"slug": "curbing-ai-coded-c-and-f-slop-with-net-slopwatch", "title": "Curbing AI-Coded C# and F# Slop with .NET Slopwatch", "summary": ".NET developer Aaron Stannard released .NET Slopwatch, a dotnet tool that uses Roslyn and file analyzers to detect \"reward hacking\" patterns — such as an LLM coding assistant disabling failing tests to make a test suite pass — before they enter a C# or F# codebase. Stannard, writing in his \"Software 2.0\" blog series, said the tool targets the misalignment between specified goals and an LLM's literal interpretation of them, a problem he called one of the more acute developers face as effort shifts from writing code to verifying model output.", "body_md": "*9 minutes to read*\n\nIn my “[Software 2.0](https://aaronstannard.com/tags/software-2-0/)” blog post series, I’ve written about how the burden of effort in software development has shifted from manually typing and testing code to writing specifications and verifying that large language models have produced an acceptable program as output.\n\nThere are *numerous* challenges to doing this well at scale: cost, learning curve, tooling, lack of existing test coverage or specifications on legacy code bases, and more.\n\nOne of the more acute problems developers encounter in this space is “reward hacking” - a process by which LLM coding assistants follow the literal letter of the law but not the spirit of it, i.e. “turn the test suite green” gets interpreted as “disable the failing tests” by the language model. LLMs are trained via reinforcement learning to achieve sets of goals established by researchers, and the reasoning LLMs use is quite alien compared to how a human understands it. This sort of misalignment between what the goal specified and the LLM’s very literal interpretation of it is what leads to “reward hacking.”\n\nIn this post I’m going to introduce “[.NET Slopwatch](https://github.com/Aaronontheweb/dotnet-slopwatch)”, a `dotnet tool` I’ve written that can use a combination of Roslyn and file analyzers to catch common reward-hacking patterns and flag them long before they seep into your code base.", "url": "https://wpnews.pro/news/curbing-ai-coded-c-and-f-slop-with-net-slopwatch", "canonical_source": "https://aaronstannard.com/dotnet-slopwatch/", "published_at": "2026-12-02 14:00:00+00:00", "updated_at": "2026-12-02 20:44:00.297792+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "large-language-models", "ai-agents", "ai-safety"], "entities": [".NET Slopwatch", "Aaron Stannard", "Roslyn", "C#", "F#", "Software 2.0"], "also_reported_by": [], "takeaway": "Run .NET Slopwatch as a dotnet tool to flag reward-hacking patterns like disabled tests in AI-generated C# and F# code before they merge.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/curbing-ai-coded-c-and-f-slop-with-net-slopwatch", "markdown": "https://wpnews.pro/news/curbing-ai-coded-c-and-f-slop-with-net-slopwatch.md", "text": "https://wpnews.pro/news/curbing-ai-coded-c-and-f-slop-with-net-slopwatch.txt", "jsonld": "https://wpnews.pro/news/curbing-ai-coded-c-and-f-slop-with-net-slopwatch.jsonld"}}