<?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: MadGPT</title>
    <description>The latest articles on DEV Community by MadGPT (@madgpt).</description>
    <link>https://dev.to/madgpt</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4227210%2Fc4f3e348-ef81-485e-a95e-15293fbc8569.png</url>
      <title>DEV Community: MadGPT</title>
      <link>https://dev.to/madgpt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madgpt"/>
    <language>en</language>
    <item>
      <title>Stop describing your bug. Screenshot it</title>
      <dc:creator>MadGPT</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:04:38 +0000</pubDate>
      <link>https://dev.to/madgpt/stop-describing-your-bug-screenshot-it-1pnf</link>
      <guid>https://dev.to/madgpt/stop-describing-your-bug-screenshot-it-1pnf</guid>
      <description>&lt;p&gt;"The button is kind of off to the right and the text overlaps a bit on smaller screens."&lt;/p&gt;

&lt;p&gt;That sentence took thirty seconds to write and loses most of what matters. A screenshot takes two seconds and loses nothing. If your AI assistant accepts images, sending one is often the fastest way to a fix. Here's how to do it well.&lt;/p&gt;

&lt;h2&gt;
  
  
  What screenshots are good for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Error screens and stack traces.&lt;/strong&gt; Especially from a terminal, a CI log or a mobile device where copying text is painful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Layout bugs.&lt;/strong&gt; Misalignment, overflow, overlapping elements, wrong spacing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Diagrams and whiteboards.&lt;/strong&gt; Turn a photo of a sketch into a schema, a task list or starter code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Charts and dashboards.&lt;/strong&gt; "Why does this graph spike at 3 a.m.?" works better with the graph attached.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The one sentence that matters more than the image
&lt;/h2&gt;

&lt;p&gt;A screenshot shows what happened. It doesn't show what you wanted. Always add one line:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Expected: the button stays inside the card on screens under 400px.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Without it, the model has to guess which of the six odd things in the picture is the bug.&lt;/p&gt;

&lt;h2&gt;
  
  
  Send the code too, when there is code
&lt;/h2&gt;

&lt;p&gt;For a layout bug, the image shows the symptom and the CSS holds the cause. Send both:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;the screenshot;&lt;/li&gt;
&lt;li&gt;the component or stylesheet that renders it;&lt;/li&gt;
&lt;li&gt;the expected result.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Crop, but not too much
&lt;/h2&gt;

&lt;p&gt;Crop out other tabs and unrelated windows. Keep the browser width visible for responsive bugs, and keep the full error with a few lines above it. The line before the error is often the real one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check what's in the frame
&lt;/h2&gt;

&lt;p&gt;Before you send a screenshot anywhere, look for API keys in the terminal, customer data in the table, and tokens in the address bar. Blur or crop them. This applies to any tool, AI or not.&lt;/p&gt;

&lt;h2&gt;
  
  
  When text is still better
&lt;/h2&gt;

&lt;p&gt;If you can copy the error as text, paste the text and add the screenshot only if layout matters. Text is exact; a model reading small or blurry characters from an image can misread one.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What's the strangest thing you've debugged from a screenshot?&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I work on &lt;a href="https://madgpt.io" rel="noopener noreferrer"&gt;MadGPT&lt;/a&gt;, where image input works in every model except Coder. The advice above applies to any assistant that accepts images. Drafted with AI assistance, edited by a human.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>debugging</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Plan, diff, verify: a 4-step loop that keeps AI coding agents from wrecking your repo</title>
      <dc:creator>MadGPT</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:09:02 +0000</pubDate>
      <link>https://dev.to/madgpt/plan-diff-verify-a-4-step-loop-that-keeps-ai-coding-agents-from-wrecking-your-repo-4bj6</link>
      <guid>https://dev.to/madgpt/plan-diff-verify-a-4-step-loop-that-keeps-ai-coding-agents-from-wrecking-your-repo-4bj6</guid>
      <description>&lt;p&gt;Coding agents are fast. That's the problem. An agent that edits twelve files in forty seconds can also break twelve files in forty seconds, and you find out when the tests go red or, worse, when they don't.&lt;/p&gt;

&lt;p&gt;I don't think the answer is "don't use agents". The answer is a loop that keeps you in charge. Here's the one I use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1. Make it plan before it touches anything
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Don't write code yet. List the files you'd change, what changes in each, and what could go wrong. Wait for my OK.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Read the plan like a pull request description. Wrong file list? Wrong assumption about the framework? You just saved yourself a 300-line diff. Most agent disasters are visible at this stage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2. Keep each step small enough to review
&lt;/h2&gt;

&lt;p&gt;One plan item, one change. If the agent proposes "refactor auth and update the API and fix the tests", split it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Do only item 1 from the plan. Stop after that.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A diff you can read in two minutes gets read. A diff you can't gets approved blind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3. Make it explain the diff
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Explain this diff file by file. Mark anything you're not sure about, and anything you assumed without checking.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is where invented function names and made-up config options show up. If the explanation is vague, the code usually is too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4. Verify with something that isn't the agent
&lt;/h2&gt;

&lt;p&gt;The agent saying "this should work now" is not evidence. Evidence is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;the test suite, run by you or by CI;&lt;/li&gt;
&lt;li&gt;the exact reproduction steps of the bug, repeated;&lt;/li&gt;
&lt;li&gt;for anything touching auth, payments or data deletion, a second review with a fresh prompt:&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;You didn't write this code. Find the three most likely ways it fails in production.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What goes wrong when you skip a step
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Skip the plan:&lt;/strong&gt; the agent solves a different problem than the one you had.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skip small steps:&lt;/strong&gt; you can't tell which change broke things.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skip the explanation:&lt;/strong&gt; hallucinated APIs reach your main branch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skip verification:&lt;/strong&gt; you ship "should work".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A rule for commits
&lt;/h2&gt;

&lt;p&gt;Commit after every verified step. It costs ten seconds and turns "the agent broke something an hour ago" into a one-line revert.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;How do you keep agents on a leash?&lt;/strong&gt; I'd like to hear the rules other people use.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I work on &lt;a href="https://madgpt.io" rel="noopener noreferrer"&gt;MadGPT&lt;/a&gt;, which includes a Coder model and a VS Code agent. The loop above works with any coding agent. Drafted with AI assistance, edited by a human.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>vscode</category>
    </item>
    <item>
      <title>Context rot: why your AI assistant gets worse after 200 messages (and a 5-line fix)</title>
      <dc:creator>MadGPT</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:14:59 +0000</pubDate>
      <link>https://dev.to/madgpt/context-rot-why-your-ai-assistant-gets-worse-after-200-messages-and-a-5-line-fix-2i3n</link>
      <guid>https://dev.to/madgpt/context-rot-why-your-ai-assistant-gets-worse-after-200-messages-and-a-5-line-fix-2i3n</guid>
      <description>&lt;p&gt;You've seen it. The first hour with an AI assistant is great. By message 200 it suggests a fix you already rejected, forgets the framework you're using, and confidently reintroduces a bug from an hour ago.&lt;/p&gt;

&lt;p&gt;That's context rot, and it's not your imagination.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's going on
&lt;/h2&gt;

&lt;p&gt;Every model has a limited context window. Long chats fill it with everything: dead ends, abandoned approaches, old versions of the same file. Even when it all technically fits, the model has to decide what matters, and old noise competes with the new signal.&lt;/p&gt;

&lt;p&gt;Common symptoms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it repeats suggestions you already turned down;&lt;/li&gt;
&lt;li&gt;it mixes up two versions of the same function;&lt;/li&gt;
&lt;li&gt;it drifts away from the original goal;&lt;/li&gt;
&lt;li&gt;answers get longer and vaguer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The fix: a 5-line handoff
&lt;/h2&gt;

&lt;p&gt;When you notice the symptoms, stop. Ask the model:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Summarize this conversation in 5 lines: goal, constraints, decisions made, current state, next step.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Check the summary, fix anything wrong, then start a &lt;strong&gt;new chat&lt;/strong&gt; and paste it as the first message. Add the current version of the file you're working on.&lt;/p&gt;

&lt;p&gt;That's it. You keep everything that matters and drop the noise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Habits that prevent it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One chat per task.&lt;/strong&gt; Don't debug auth and design a landing page in the same thread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paste current code, not history.&lt;/strong&gt; "Here's the file as it is now" beats "remember the version from earlier".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write decisions down.&lt;/strong&gt; When you settle something ("we're using Postgres, not Mongo"), say it explicitly so it ends up in the summary.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this matters more with agents
&lt;/h2&gt;

&lt;p&gt;Coding agents that edit many files burn through context even faster. A clean handoff summary between big steps keeps them on track and makes their diffs easier to review.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I work on &lt;a href="https://madgpt.io" rel="noopener noreferrer"&gt;MadGPT&lt;/a&gt;. Its Coder model and VS Code agent are built for long, multi-file tasks, but the technique above works with any assistant. Drafted with AI assistance, edited by a human.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>7 prompts that turn your AI from a yes-man into a real code reviewer</title>
      <dc:creator>MadGPT</dc:creator>
      <pubDate>Wed, 04 Nov 2026 21:33:18 +0000</pubDate>
      <link>https://dev.to/madgpt/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer-4514</link>
      <guid>https://dev.to/madgpt/7-prompts-that-turn-your-ai-from-a-yes-man-into-a-real-code-reviewer-4514</guid>
      <description>&lt;p&gt;Ask an AI "is this code good?" and you'll get "Looks good! A few minor suggestions..." almost every time. That's not a review. That's politeness.&lt;/p&gt;

&lt;p&gt;The model isn't lying. You asked a yes/no question with a friendly tone, and it gave you a friendly yes. Change the question and you get a different tool. Here are seven prompts I use every day.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Ask how it breaks, not whether it's good
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;What are the 3 most likely ways this code breaks in production? Rank them by impact and give a fix for each.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This forces the model to look for failure modes instead of confirming your work. Ranking by impact stops it from burying the one real bug under five style nits.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Paste three things before asking for a fix
&lt;/h2&gt;

&lt;p&gt;Most "the AI gave me wrong code" complaints come from missing context. Before asking, paste:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The exact error.&lt;/strong&gt; Copied, not paraphrased.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The function that throws it.&lt;/strong&gt; Not the whole repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What you expected to happen.&lt;/strong&gt; This is the one people skip, and it's the one that matters most.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Ask for a plan before the code
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Before writing any code, list the files you'd change and why. Wait for my OK.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A wrong plan is cheap to fix. A wrong 200-line diff is not.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Make it explain its own diff
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Explain this diff line by line. Point out anything you're unsure about.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If the model can't explain a change clearly, the change is probably wrong. This catches hallucinated APIs fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Give it a role with a grudge
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Review this as a senior engineer who has been paged at 3 a.m. by this service twice this month.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Sounds silly, works well. It shifts the review from style to reliability: timeouts, retries, logging, error handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Ask for the result, not for permission
&lt;/h2&gt;

&lt;p&gt;Compare:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Could you maybe help me write a migration for this table?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Write a migration that adds a nullable &lt;code&gt;archived_at&lt;/code&gt; timestamp to &lt;code&gt;orders&lt;/code&gt;. Output only the SQL.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The second one gets you working output on the first try. Hedged prompts get hedged answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Reset when it starts "forgetting"
&lt;/h2&gt;

&lt;p&gt;After a long session the model mixes up old decisions and repeats itself. Don't fight it. Open a new chat and paste a five-line summary:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Goal&lt;/li&gt;
&lt;li&gt;Constraints&lt;/li&gt;
&lt;li&gt;Decisions made so far&lt;/li&gt;
&lt;li&gt;Current state&lt;/li&gt;
&lt;li&gt;Next step&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fresh context beats a long, polluted one every time.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;What's your go-to review prompt?&lt;/strong&gt; Drop it in the comments. I'm collecting the good ones.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I work on &lt;a href="https://madgpt.io" rel="noopener noreferrer"&gt;MadGPT&lt;/a&gt;, an AI workspace with 7 models and a VS Code agent. The prompts above work with any assistant. This article was drafted with AI assistance and edited by a human.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>codereview</category>
    </item>
  </channel>
</rss>
