<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk" -->

---
title: AI Generated This Mess—Here's How I Fixed It | daily.dev
description: AI is incredible at generating code quickly, but letting it run wild without supervision is a recipe for disaster. If you want to use AI for real-world C#...
canonical: https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI Generated This Mess—Here's How I Fixed It | daily.dev
og:description: AI is incredible at generating code quickly, but letting it run wild without supervision is a recipe for disaster. If you want to use AI for real-world C#...
og:url: https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk
og:image: https://api.daily.dev/og/posts/QvCBYi0kk.png
og:image:alt: AI Generated This Mess—Here's How I Fixed It
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Generated This Mess—Here's How I Fixed It

**[AngelSix](https://daily.dev/sources/angelsix)** · 29 min read · 0 upvotes · 0 comments

## Summary

AI is incredible at generating code quickly, but letting it run wild without supervision is a recipe for disaster. If you want to use AI for real-world C# software development, this is the exact process you need to follow.

In Part 2 of our Avalonia UI Jobs Page build, we are taking control back from the AI. We are training our AI agent to fix its own architectural mistakes—tackling everything from broken progress bars and "fake" data tables to completely missing UI virtualization. Watch as we force the AI to turn its chaotic, unmaintainable XAML into a clean, highly structured, and scalable C# architecture. 

👉 Get more free knowledge on C#, hardware design, and more: http://www.angelsix.com

⏱️ Chapters:
0:00 - Grappling With AI & Code Cleanup
0:40 - Why the AI Failed the Progress Bar
2:06 - Data Table Issues & Duplicate Columns
4:07 - The Non-Virtualizing Items Control Problem
8:23 - Addressing Scroll Viewer & Stack Panel Bugs
11:47 - When AI Breaks the App (Virtualization Changes)
16:22 - Reviewing the Remaining Bugs
18:51 - Fixing Hardcoded Margins & Paddings
22:47 - Standardizing Corner Radius & Layouts
26:46 - Final Review: Is AI Actually Efficient?

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=PHv-WOVjwww>

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents)

[View this post on daily.dev](https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"AI Generated This Mess—Here's How I Fixed It","url":"https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk"},"datePublished":"2026-10-04T13:04:31.782Z","dateModified":"2026-10-04T21:36:32.797Z","description":"AI is incredible at generating code quickly, but letting it run wild without supervision is a recipe for disaster. If you want to use AI for real-world C#...","image":"https://i.ytimg.com/vi/PHv-WOVjwww/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/PHv-WOVjwww/sddefault.jpg","isAccessibleForFree":true,"articleSection":"AngelSix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"AngelSix","logo":"https://media.daily.dev/image/upload/s--h1ikmN_u--/f_auto,q_auto/v1791119063/logos/angelsix?_a=BAMAMicg0","url":"https://daily.dev/sources/angelsix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ai-generated-this-mess-here-s-how-i-fixed-it-qvcbyi0kk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents","timeRequired":"PT29M","video":{"@type":"VideoObject","name":"AI Generated This Mess—Here's How I Fixed It","description":"AI is incredible at generating code quickly, but letting it run wild without supervision is a recipe for disaster. If you want to use AI for real-world C#...","thumbnailUrl":"https://i.ytimg.com/vi/PHv-WOVjwww/sddefault.jpg","uploadDate":"2026-10-04T13:04:31.782Z","duration":"PT29M","url":"https://api.daily.dev/r/QvCBYi0kk","embedUrl":"https://www.youtube.com/embed/PHv-WOVjwww"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AngelSix","item":"https://daily.dev/sources/angelsix"},{"@type":"ListItem","position":3,"name":"AI Generated This Mess—Here's How I Fixed It"}]}
```

