cd /news/ai-tools/curbing-ai-coded-c-and-f-slop-with-n… · home › topics › ai-tools › article
[ARTICLE · art-180512] src=aaronstannard.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Curbing AI-Coded C# and F# Slop with .NET Slopwatch

.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.

key 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.

read1 min views2 publishedDec 2, 2026

9 minutes to read

In my “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.

There 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.

One 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.”

In this post I’m going to introduce “.NET 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.

── more in #ai-tools 4 stories · sorted by recency
── more on @.net slopwatch 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/curbing-ai-coded-c-a…] indexed:0 read:1min 2026-12-02 · —