<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tim Wheeler</title>
    <description>The latest articles on DEV Community by Tim Wheeler (@utabadevmonkey).</description>
    <link>https://dev.to/utabadevmonkey</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3464527%2F9d1343e4-aae3-4f6d-b724-58e04c8ab368.jpg</url>
      <title>DEV Community: Tim Wheeler</title>
      <link>https://dev.to/utabadevmonkey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/utabadevmonkey"/>
    <language>en</language>
    <item>
      <title>How I Solved AI's Inconsistent Code Problem</title>
      <dc:creator>Tim Wheeler</dc:creator>
      <pubDate>Fri, 29 Aug 2025 03:39:46 +0000</pubDate>
      <link>https://dev.to/utabadevmonkey/how-i-solved-ais-inconsistent-code-problem-37he</link>
      <guid>https://dev.to/utabadevmonkey/how-i-solved-ais-inconsistent-code-problem-37he</guid>
      <description>&lt;p&gt;&lt;em&gt;After 30 years of development, AI coding tools promised to revolutionize my workflow. After much learning, I found a solution.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  In the Beginning
&lt;/h2&gt;

&lt;p&gt;Do you find yourself restraining from scolding your AI developer?  Well, if yes, you are not alone.&lt;/p&gt;

&lt;p&gt;When I started working with Claude Desktop, then Claude Code, I said, "This is so cool!".&lt;/p&gt;

&lt;h2&gt;
  
  
  Reality Hits Hard
&lt;/h2&gt;

&lt;p&gt;"This is so cool!" quickly turned into "What a pile of @#$%#!"&lt;/p&gt;

&lt;p&gt;The problems were everywhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Inconsistent patterns&lt;/strong&gt; across different sessions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardcoded configuration&lt;/strong&gt; scattered throughout the codebase
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing security validations&lt;/strong&gt; that any junior dev would catch&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Architectural decisions&lt;/strong&gt; that changed randomly between conversations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reinventing the wheel&lt;/strong&gt; instead of using established libraries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fualjwc692o3me7f1mr33.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fualjwc692o3me7f1mr33.jpg" alt="Image showing quote about claudes wisdom being teenie" width="500" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Claude has epic amounts of Intelligence, and teenie tiny amounts of wisdom.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Giving Claude Wisdom
&lt;/h2&gt;

&lt;p&gt;After much frustration, I had a realization: &lt;strong&gt;the fault wasn't Claude's—it was mine.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI systems are basically a pattern matching behemoth. Without proper guidance to narrow down those patterns, they'll match against everything they've ever learned. That's a recipe for inconsistent, buggy, insecure code.&lt;/p&gt;

&lt;p&gt;The solution? &lt;strong&gt;Persistent guidance&lt;/strong&gt;, and the term in the industry right now is &lt;strong&gt;Context Engineering&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Failed First Attempts
&lt;/h2&gt;

&lt;p&gt;I started simple: markdown files with coding standards, architecture decisions, and examples stored in Git repositories.&lt;/p&gt;

&lt;p&gt;This worked... sort of. But it quickly became cumbersome:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI couldn't easily discover relevant guidance&lt;/li&gt;
&lt;li&gt;No way to ensure AI actually read the documentation&lt;/li&gt;
&lt;li&gt;No continuity in our conversations &lt;/li&gt;
&lt;li&gt;Guidance scattered across different repos and folders&lt;/li&gt;
&lt;li&gt;Lack of governance&lt;/li&gt;
&lt;li&gt;Compacted conversations lost a lot of the initial reading&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I needed something better.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Solution: Context Management
&lt;/h2&gt;

&lt;p&gt;I built what I call the &lt;strong&gt;Universal Context Manager (UCM)&lt;/strong&gt; - essentially "GitHub for AI-consumable artifacts."&lt;/p&gt;

&lt;p&gt;Here's what it does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Structured storage&lt;/strong&gt; for guidance, templates, and examples&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI-friendly tools&lt;/strong&gt; through MCP (Model Context Protocol) servers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discovery-first workflow&lt;/strong&gt; so AI finds relevant patterns automatically&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Version control&lt;/strong&gt; for guidance and templates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftb6tgg9tn3kzz72l1ll8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftb6tgg9tn3kzz72l1ll8.png" alt="Mermaid diagram showing key aspects such as publishing and search" width="600" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I first started using the UCM for my own work, it felt like I was 7 years old again and got my first bike.  Wow, this is really cool.  Let's make it better.&lt;/p&gt;

&lt;p&gt;The aim was to minimize friction between the AI and the system.&lt;br&gt;
So, after much trial and error, working with Claude, testing, reviewing and improving the workflow, the UCM was ready.   &lt;/p&gt;

&lt;p&gt;Instead of inconsistent code, I got:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quickly get up to speed with the 'Recent Artifacts Tool'&lt;/li&gt;
&lt;li&gt;Find code, patterns and guidance through the 'Search' and 'List Artifacts' tool&lt;/li&gt;
&lt;li&gt;Consistent architectural patterns&lt;/li&gt;
&lt;li&gt;Proper configuration management&lt;/li&gt;
&lt;li&gt;Security validations by default&lt;/li&gt;
&lt;li&gt;Reusable, tested components&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  What was so powerful about the UCM:
&lt;/h2&gt;

&lt;p&gt;The MCP Server tools forced Claude to do a few key things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get initial guidance from the 'UCM Quickstart' tool which explained important concepts and rules&lt;/li&gt;
&lt;li&gt;Forced Claude to assign Categories and Subcategories to the artifacts, creating a natural structure and coherent filing system&lt;/li&gt;
&lt;li&gt;Gave Claude valuable metadata to fill out, such as a 'Description', allowing for search and quick retrieval of relevant details.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And all this I get now for almost no effort. Claude just knows how to deal with things.  &lt;/p&gt;

&lt;p&gt;This is the closest to 'J.A.R.V.I.S.' I've been able to get, one of my goals :)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiyrzz2hpqk10276q92wp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiyrzz2hpqk10276q92wp.jpg" alt="Image of ironman helmet" width="500" height="352"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  A Real Example: The MCP Server Saga
&lt;/h2&gt;

&lt;p&gt;Let me share a concrete example that shows the before and after.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Task:&lt;/strong&gt; Build a Remote MCP Server compatible with Anthropic's specifications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Without UCM (Days of pain):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Day 1: Claude builds NodeJS server → Incompatible with NextJS
Day 2: Rebuild for NextJS → Doesn't follow MCP protocol standards  
Day 3: Add Anthropic MCP SDK → SDK incompatible with NextJS
Day 4: Build custom adapter → Partial success, still buggy
Day 5: Discover 'mcp-handler' package → Finally works!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Many days of trial and error, wrong turns, and... let's say "colorful" feedback to Claude.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next time, With my published guidance in the UCM (30 minutes):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Me: "Hi Claude, build a Remote MCP Server. Check UCM for implementation guidance."
Claude: *Reads stored guidance, finds mcp-handler solution, generates working code*
Result: Working server in first attempt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check it out here: &lt;a href="https://ucm.utaba.ai/browse/utaba/main/guidance/development/nextjs-remote-mcp-server.md" rel="noopener noreferrer"&gt;nextjs-remote-mcp-server.md&lt;/a&gt; and here &lt;a href="https://ucm.utaba.ai/browse/utaba/main/implementations/remote-mcp-server/route.ts" rel="noopener noreferrer"&gt;route.ts&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude remembers your history
&lt;/h2&gt;

&lt;p&gt;I got a little frustrated with having to repeat myself, you know even a Junior Dev get's it after some practice, but not Claude.  &lt;strong&gt;That's solved now.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgik3dq02k1kbopycdei5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgik3dq02k1kbopycdei5.jpg" alt="Image of Claude Desktop reading recent history and acting intelligently" width="600" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Game Changer: Shared Knowledge
&lt;/h2&gt;

&lt;p&gt;Here's the powerful part - I documented that entire MCP server solution in UCM's public repository. &lt;/p&gt;

&lt;p&gt;This means other developers can:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Get a &lt;a href="https://ucm.utaba.ai/auth/signup" rel="noopener noreferrer"&gt;free UCM account&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ucm.utaba.ai/guides/getting-started" rel="noopener noreferrer"&gt;Add the Remote MCP Connector&lt;/a&gt;: &lt;code&gt;https://ucm.utaba.ai/api/mcp&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ask their AI to check the Utaba repository for MCP guidance&lt;/li&gt;
&lt;li&gt;Build a working Remote MCP Server immediately&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No more three-day debugging sessions. No more reinventing solutions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a Community
&lt;/h2&gt;

&lt;p&gt;The vision extends beyond personal productivity. Imagine a community where developers share battle-tested guidance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security patterns&lt;/strong&gt; that prevent common vulnerabilities&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Architecture decisions&lt;/strong&gt; that scale properly
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integration solutions&lt;/strong&gt; for complex scenarios&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best practices&lt;/strong&gt; that actually work in production&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Currently, UCM accounts are private (you access your guidance plus public Utaba patterns). But I'm exploring public repositories - carefully, because we all know the security implications.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;I'm looking for developers who want to try this approach. There's a free tier that will always exist, plus I'm offering free paid subscriptions for anyone willing to test the system and provide feedback.&lt;/p&gt;

&lt;p&gt;The goal isn't to replace your development skills - it's to amplify them. When your AI has consistent, tested guidance, you spend time solving business problems instead of debugging inconsistent generated code.  &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;More importantly, you get a &lt;strong&gt;code base&lt;/strong&gt; built on standards, that is &lt;strong&gt;cohesive&lt;/strong&gt; and &lt;strong&gt;consistent&lt;/strong&gt;. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Connect to the UCM and become a true orchestrator of AI Development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to try it?&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Grab a &lt;a href="https://ucm.utaba.ai/auth/signup" rel="noopener noreferrer"&gt;free UCM account&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://ucm.utaba.ai/guides/getting-started" rel="noopener noreferrer"&gt;Add the Remote MCP Connector&lt;/a&gt;: &lt;code&gt;https://ucm.utaba.ai/api/mcp&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Join our Discord for feedback and discussion or to request a free upgrade subscription: &lt;a href="https://discord.gg/ZkVEJvBt" rel="noopener noreferrer"&gt;https://discord.gg/ZkVEJvBt&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send feedback directly through your AI (yes, really - we built tools for that)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After 30 years of development, I thought I'd seen every productivity tool. Turns out, the missing piece wasn't better AI - it was better context management.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;By Tim Wheeler&lt;/em&gt;, Code Monkey, Solution Architect - Passionate about Tech,  Founder of &lt;a href="https://utaba.ai" rel="noopener noreferrer"&gt;Utaba&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Tags: #ai #claude #development #aigovernance #productivity #mcp #coding  #contextengineering #anthropic&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
