<?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: Jongmin Lee</title>
    <description>The latest articles on DEV Community by Jongmin Lee (@hapick8350).</description>
    <link>https://dev.to/hapick8350</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%2F4277411%2Fd2bfb8ae-80d1-4bf5-853a-8f5824991caf.jpg</url>
      <title>DEV Community: Jongmin Lee</title>
      <link>https://dev.to/hapick8350</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hapick8350"/>
    <language>en</language>
    <item>
      <title>Antes de dejar nuestra base de datos en manos de una IA, pasamos muchísimo tiempo pensando en una sola línea</title>
      <dc:creator>Jongmin Lee</dc:creator>
      <pubDate>Fri, 04 Dec 2026 19:05:11 +0000</pubDate>
      <link>https://dev.to/blyck/antes-de-dejar-nuestra-base-de-datos-en-manos-de-una-ia-pasamos-muchisimo-tiempo-pensando-en-una-ni9</link>
      <guid>https://dev.to/blyck/antes-de-dejar-nuestra-base-de-datos-en-manos-de-una-ia-pasamos-muchisimo-tiempo-pensando-en-una-ni9</guid>
      <description>&lt;p&gt;Empezamos a crear Blyck porque nos cansamos de copiar la salida de la terminal y los resultados de las consultas en un chat de IA cada vez que algo fallaba en un servidor. Así que hicimos que la IA leyera directamente las terminales y bases de datos que ya teníamos abiertas, y que ejecutara comandos y consultas por sí misma cuando hiciera falta. De verdad es muy cómodo. «Limpia los pedidos cancelados del mes pasado» y, en unos segundos, ya encontró la tabla, escribió la condición y ejecutó el SQL.&lt;/p&gt;

&lt;p&gt;Pero mientras lo construíamos, había una escena que no nos dejaba tranquilos.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Esto es lo que debía salir:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'cancelled'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="s1"&gt;'2026-11-01'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;La única diferencia es la condición del final. Si lo hubiéramos escrito nosotros, seguramente nos habríamos detenido antes de pulsar Enter: «oye, esto es muy corto». Cuando la IA lo ejecuta por su cuenta, la tabla de pedidos puede quedar vacía antes de que miremos la pantalla. Lo que nos daba miedo no era que la IA se equivocara, sino que &lt;strong&gt;nadie tuviera la oportunidad de ver el error&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Así que la pregunta a la que volvíamos una y otra vez era: justo antes de que una IA cambie una base de datos, ¿qué debería ver una persona y qué debería decidir?&lt;/p&gt;

&lt;h2&gt;
  
  
  Si preguntas por todo, nadie lee nada
&lt;/h2&gt;

&lt;p&gt;La primera respuesta parecía obvia: preguntar al usuario antes de cualquier consulta que cambie datos.&lt;/p&gt;

&lt;p&gt;El problema apareció enseguida. Cuando una confirmación sale decenas de veces al día, la gente empieza a pulsar «Permitir» sin leer. La única consulta peligrosa queda enterrada entre las inofensivas.&lt;/p&gt;

&lt;p&gt;Por eso clasificamos las consultas según el daño que pueden hacer. Las de solo lectura, como &lt;code&gt;SELECT&lt;/code&gt;, se ejecutan sin más. Un &lt;code&gt;UPDATE&lt;/code&gt; o &lt;code&gt;DELETE&lt;/code&gt; con condición pregunta según el modo en que estés. Y &lt;code&gt;DROP&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt;, &lt;code&gt;ALTER&lt;/code&gt; y cualquier &lt;code&gt;UPDATE&lt;/code&gt; o &lt;code&gt;DELETE&lt;/code&gt; &lt;strong&gt;sin WHERE&lt;/strong&gt; siempre se detienen y preguntan, incluso en el modo automático, donde la IA trabaja sola (salvo que lo desactives a propósito en Ajustes). Solo al quitar las preguntas poco importantes, la importante se hace visible.&lt;/p&gt;

&lt;h2&gt;
  
  
  «¿Ejecutar?» no basta para decidir
&lt;/h2&gt;

&lt;p&gt;Lo siguiente fue pensar qué mostrar en esa confirmación.&lt;/p&gt;

&lt;p&gt;Si la tarjeta solo dice «¿Ejecutar este DELETE?», tienes que leer el SQL línea por línea y calcular el resultado de cabeza. Casi nadie lo hace cuando va con prisa. Por eso, antes de ejecutarlo, Blyck &lt;strong&gt;cuenta cuántas filas van a cambiar&lt;/strong&gt; y lo muestra también. Para la consulta rota de arriba, la tarjeta se ve así (el número es solo un ejemplo):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;📊 Filas afectadas: ~12.840 filas&lt;/p&gt;

&lt;p&gt;⚠ Sin cláusula WHERE — afecta a todas las filas de la tabla&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Querías borrar unas decenas de pedidos cancelados y ves doce mil filas. No necesitas leer el SQL para saber que algo va mal. El trabajo pasa de «leer y calcular» a «mirar un número».&lt;/p&gt;

&lt;h2&gt;
  
  
  Cierras la puerta y queda una ventana abierta
&lt;/h2&gt;

&lt;p&gt;Cuando terminamos eso, nos dimos cuenta de otra cosa. Si la IA llama a &lt;code&gt;psql&lt;/code&gt; o &lt;code&gt;sqlplus&lt;/code&gt; directamente desde una terminal en lugar de usar la herramienta de base de datos, se salta todas las comprobaciones anteriores. Para la IA es solo otro camino para hacer lo mismo.&lt;/p&gt;

&lt;p&gt;Cuando publicamos este artículo por primera vez, esa ventana estaba medio cerrada. Un comando que borra una tabla entera, como &lt;code&gt;DROP TABLE&lt;/code&gt;, ya se detenía, pero un &lt;code&gt;DELETE&lt;/code&gt; o un &lt;code&gt;UPDATE&lt;/code&gt; enviado por terminal no se miraba por dentro. Por eso, desde la 1.1.10, cuando un comando que la IA quiere ejecutar incluye un cliente de base de datos, Blyck lee el SQL de dentro con las mismas reglas que la herramienta de base de datos. Un &lt;code&gt;DELETE&lt;/code&gt; o &lt;code&gt;UPDATE&lt;/code&gt; sin WHERE, o un &lt;code&gt;DROP&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt; o &lt;code&gt;ALTER&lt;/code&gt;, se detiene y pregunta aunque vaya por terminal y aunque estés en modo automático, y la tarjeta lleva un 🔓 aviso de rodeo. Lo que este camino sigue sin poder hacer es contar las filas o hacer copia: eso solo pasa con la herramienta de base de datos.&lt;/p&gt;

&lt;p&gt;Aun así, no podemos bloquear todos los caminos solo leyendo el texto del comando. La IA podría escribir un pequeño script y cambiar la base de datos desde dentro. Por eso, para una base de datos de producción, te recomendamos darle a la IA una &lt;strong&gt;cuenta de solo lectura&lt;/strong&gt;. Así la propia base de datos se niega, venga por donde venga la IA. Cerrar una sola puerta no bastaba.&lt;/p&gt;

&lt;h2&gt;
  
  
  Aun así, la gente se equivoca
&lt;/h2&gt;

&lt;p&gt;Siendo sincero, nada de esto evita todos los accidentes. A veces ves el número y pulsas «Permitir» de todos modos. A veces la tarjeta tiene razón y tu decisión no.&lt;/p&gt;

&lt;p&gt;Así que la última pieza es &lt;strong&gt;poder deshacerlo&lt;/strong&gt;. Justo antes de que se ejecute un &lt;code&gt;UPDATE&lt;/code&gt; o un &lt;code&gt;DELETE&lt;/code&gt;, Blyck hace una copia de las filas que van a cambiar. En bases de datos de servidor —PostgreSQL, MySQL, SQL Server, Oracle— crea una tabla de copia dentro de la base de datos, y al deshacer vuelve a escribir esos valores.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdbzccm0x8bp54q9bxahe.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdbzccm0x8bp54q9bxahe.png" alt="Deshacer en Blyck — volver a escribir los valores desde la tabla de copia" width="800" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No todo se puede deshacer. &lt;code&gt;DROP&lt;/code&gt; y &lt;code&gt;TRUNCATE&lt;/code&gt; no, y las sentencias complejas que unen varias tablas se ejecutan sin copia. Precisamente por eso son las que más frenamos al principio. Confirmar y deshacer no son dos funciones separadas: cada una cubre los huecos de la otra.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lo que aprendimos
&lt;/h2&gt;

&lt;p&gt;Al principio pensábamos que este problema desaparecería a medida que la IA fuera más lista. Construirlo nos hizo cambiar de opinión. Lo esencial no es la IA, sino &lt;strong&gt;el momento en que una persona decide&lt;/strong&gt;. No provocar ese momento demasiado a menudo. Cuando llegue, dar un número con el que decidir. No dejar ninguna puerta trasera abierta. Y, si aun así sale mal, dejar un camino de vuelta. Al final, todo se reducía a esas cuatro cosas.&lt;/p&gt;




&lt;p&gt;¿Prefieres verlo en vídeo? En nuestro canal en español tienes &lt;a href="https://youtu.be/_XLuwL2yPcA" rel="noopener noreferrer"&gt;«Consulta tu base de datos sin SQL»&lt;/a&gt; y el resto de la lista &lt;a href="https://www.youtube.com/playlist?list=PLBg1YZpQYBRg" rel="noopener noreferrer"&gt;«Blyck: tutoriales básicos»&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Publicado originalmente en el &lt;a href="https://blyck.dev/es/blog/ai-dangerous-sql/?src=devto-es" rel="noopener noreferrer"&gt;blog de Blyck&lt;/a&gt;. Este artículo se escribió con un agente de IA, a partir de cómo funciona Blyck en realidad, y lo revisamos antes de publicarlo.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>spanish</category>
      <category>ai</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>We gave the AI a real debugger instead of print</title>
      <dc:creator>Jongmin Lee</dc:creator>
      <pubDate>Fri, 04 Dec 2026 06:28:32 +0000</pubDate>
      <link>https://dev.to/blyck/we-gave-the-ai-a-real-debugger-instead-of-print-3oha</link>
      <guid>https://dev.to/blyck/we-gave-the-ai-a-real-debugger-instead-of-print-3oha</guid>
      <description>&lt;p&gt;Ask an AI to "find out why this crashes" and the same thing usually happens. It puts &lt;code&gt;print&lt;/code&gt; lines here and there in the code, runs it, reads the output, then puts &lt;code&gt;print&lt;/code&gt; somewhere else. Once it finds the cause, it deletes the lines it added. Sometimes one or two get left behind and end up committed.&lt;/p&gt;

&lt;p&gt;A human developer uses a debugger for this. You set a red dot (a breakpoint) on the line you suspect, and when the program stops there, you look at the variable values at that moment. You don't change the code, so there's nothing to clean up.&lt;/p&gt;

&lt;p&gt;So we gave the AI in Blyck a &lt;strong&gt;real debugger&lt;/strong&gt;, too.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the AI uses the debugger
&lt;/h2&gt;

&lt;p&gt;Ask the AI chat something like "The worker crashes when I give it pending.txt. Find out why," and the AI follows the same steps a person takes with a debugger.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It sets a breakpoint on the line where it wants to stop (&lt;code&gt;dbg_breakpoint&lt;/code&gt;). If that file isn't open, it opens it in the pane next to the chat.&lt;/li&gt;
&lt;li&gt;It runs the program in debug mode and waits until it stops at a breakpoint or an uncaught error (&lt;code&gt;dbg_start&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;It reads the line where it stopped, the error message, the variables, the call stack and the output so far. If needed, it evaluates an expression right there and also looks at the variables of the function that called this one (&lt;code&gt;dbg_inspect&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;It continues, steps over, steps into or steps out, and looks again (&lt;code&gt;dbg_step&lt;/code&gt;). When it has seen enough, it ends the debug session.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It doesn't add a single line to the code. It looks at the values at the exact moment the program actually stopped. One thing you should know: the expressions the AI evaluates &lt;strong&gt;really run inside the program&lt;/strong&gt;. If an expression changes a value, the program's state changes too. It's the same as when a person types an expression into the debug console.&lt;/p&gt;

&lt;h2&gt;
  
  
  You see it in your own editor
&lt;/h2&gt;

&lt;p&gt;This isn't a debugger the AI uses quietly in the background. &lt;strong&gt;The debug view in your own editor moves as it works.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiiy8n2xy37l6hane9iw2.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiiy8n2xy37l6hane9iw2.png" alt="The AI stopped at a breakpoint: a yellow line, values at the end of the line, and the variables and call stack panels below" width="800" height="532"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When the AI sets a breakpoint, a red dot appears next to the line number. When it stops, that line turns yellow. The values at that moment show up faintly at the end of the line (&lt;code&gt;job = 'ORD-1042,3'&lt;/code&gt;), and the variables and call stack open in the panel below. The status bar shows &lt;strong&gt;✦ AI chat is debugging&lt;/strong&gt; in gold.&lt;/p&gt;

&lt;p&gt;So you can see what the AI is looking at, right alongside it. If you get curious partway through, you can press the buttons and step through the lines yourself. Each time the AI uses a tool, a short result like "⏸ Paused · line 15 · worker.py:15" is added to the chat, so you can also see later in what order it narrowed down the cause.&lt;/p&gt;

&lt;p&gt;It works the other way, too. If you're debugging yourself with &lt;code&gt;F5&lt;/code&gt; and press &lt;strong&gt;[✦ Ask AI]&lt;/strong&gt; where it stopped, the stopped line, variable values, call stack and output all go to the AI together. Just ask "Why does it crash here?" and the AI answers by looking at the state at that moment.&lt;/p&gt;

&lt;h2&gt;
  
  
  16 languages, each with its own quirks
&lt;/h2&gt;

&lt;p&gt;At first, only Python and JavaScript worked. Now you can debug &lt;strong&gt;Python, JavaScript, TypeScript, Go, Dart (including Flutter apps), Swift, C#, Rust, C, C++, Lua, Java, Bash, PowerShell, PHP and Ruby&lt;/strong&gt; files on this PC.&lt;/p&gt;

&lt;p&gt;We didn't put the debuggers in the installer. The first time you debug a language, Blyck shows the size, like "debugpy (Python), about 33 MB", and downloads it when you press [Download]. For languages that already come with a debugger, like Node.js, Dart and Swift, there's nothing to download.&lt;/p&gt;

&lt;p&gt;Every language we added had its own quirks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;C#&lt;/strong&gt;: Microsoft's .NET debugger is only licensed for use in Microsoft products. So we use the open-source debugger Samsung made (netcoredbg).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bash&lt;/strong&gt;: There wasn't a usable debugger. The popular one only runs through WSL on Windows, and the bashdb inside it didn't run on the old bash 3.2 that ships with the Mac. So we built a small Bash debugger right into Blyck. It runs on both Git Bash on Windows and bash 3.2 on the Mac.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rust&lt;/strong&gt;: When a &lt;code&gt;panic&lt;/code&gt; happens, it stops deep inside Rust's standard library, and looking there doesn't help. So we pick &lt;strong&gt;the top spot in your own code&lt;/strong&gt; from the call stack and show that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flutter&lt;/strong&gt;: It picks the device to run on in this order: a connected phone, a running emulator, this computer. If there's nothing, it starts an Android emulator and waits. When we timed it on a Mac mini, building on an already running Android emulator and stopping at a breakpoint took 64 seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PHP, Ruby, PowerShell&lt;/strong&gt;: "Stop on uncaught errors" doesn't work. Either the debugger doesn't have it, or it also stops on errors that were already handled, so it stops far too often in real programs. For these languages, the error message and location show in the output pane, and to stop and look, you need to set a breakpoint before that line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some things don't work yet. For Kotlin, the license terms of the available debugger aren't clear about use in a paid product, so we haven't added it yet. Files on a remote server can't be debugged yet either. In that case, the AI looks for the cause by running the program and reading the output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bugs we found along the way
&lt;/h2&gt;

&lt;p&gt;While adding languages, we ran things for real and found and fixed a lot of problems. Some of them weren't limited to one language but affected every language.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On Windows, if a breakpoint path was sent with forward slashes like &lt;code&gt;D:/…&lt;/code&gt;, the C# debugger &lt;strong&gt;silently&lt;/strong&gt; didn't set the breakpoint. Now every language converts paths to that operating system's format before sending them.&lt;/li&gt;
&lt;li&gt;Korean output from .NET and Java programs came out garbled. The programs were printing in this PC's console code page (CP949 on Korean Windows). We don't change the program; instead, we set the code page to UTF-8 when we start the debugger.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Breakpoints changed in a different file&lt;/strong&gt; from the one where debugging started weren't passed to the debugger. That problem was in every language. Now they're sent to every place that's debugging in the same language.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  But the AI rarely uses the debugger
&lt;/h2&gt;

&lt;p&gt;Here we have to be honest about something. With the debugger in place, we expected the AI to find bugs faster. So we actually timed it.&lt;/p&gt;

&lt;p&gt;We opened a new AI chat in a test copy of Blyck and gave it only the bug, without saying the word "debugger". Each bug gave a wrong value because of one line of data. In Python, a region name in a CSV had a trailing space. In JavaScript, the quantity was text, so &lt;code&gt;"4" + 1&lt;/code&gt; became &lt;code&gt;"41"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In the first test, Claude saw the JavaScript bug and &lt;strong&gt;tried to set a breakpoint on its own.&lt;/strong&gt; But it failed with "Couldn't open the file" and went back to another approach. It turned out the test copy of Blyck had 57 windows left over from earlier tests, over the limit of windows it can open (40). The problem was that the tool didn't tell the AI why. Without knowing why, the AI had no choice but to give up on the debugger. Now the tool returns the reason it couldn't open the file.&lt;/p&gt;

&lt;p&gt;In the second test, with the data grown to 3,000 lines, Claude (Python and JavaScript) and GPT (Python) all fixed it correctly in 1.3 to 2.4 minutes. But &lt;strong&gt;in all three runs, they never used the debugger once.&lt;/strong&gt; They found the odd line right away with short commands like &lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;python -c&lt;/code&gt; and &lt;code&gt;node -e&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We thought a language that needs building would be different, since you have to rebuild every time you add a &lt;code&gt;print&lt;/code&gt;. So we made a Go bug at the 3,000-line scale, where the date &lt;code&gt;2026-3-1&lt;/code&gt; couldn't be read and the running discount total became 0, and tried it three ways.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Time taken&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Left it to the AI (didn't use the debugger)&lt;/td&gt;
&lt;td&gt;2.5 minutes&lt;/td&gt;
&lt;td&gt;Fixed correctly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Find it with the debugger"&lt;/td&gt;
&lt;td&gt;3.5 minutes&lt;/td&gt;
&lt;td&gt;Fixed correctly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Find it by adding output lines"&lt;/td&gt;
&lt;td&gt;2.8 minutes&lt;/td&gt;
&lt;td&gt;Fixed correctly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The debugger was the slowest. Go builds in a few seconds, so the difference was small, and since this bug shows up if you dig through the data, the AI chose that path on its own.&lt;/p&gt;

&lt;p&gt;So we decided: &lt;strong&gt;put a debugger in every language, but let the AI choose whether to use it.&lt;/strong&gt; We didn't add any guidance like "use the debugger first in cases like this" either. There's no reason to force the debugger on a job a short command finishes quickly. Instead, we made sure the AI can use it all the way through in every language, so it doesn't get stuck the moment it needs one. There may be places where the debugger is faster, like big projects that take a long time to rebuild or phone apps, but we haven't measured those yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you really need print: @BLYCK@
&lt;/h2&gt;

&lt;p&gt;Sometimes, like with a server that keeps running or a phone app, you need to watch the flow rather than stop it. For those times, we also made a log line with a fixed format. Have the code print a &lt;code&gt;@BLYCK@ {"label": …, "vals": …}&lt;/code&gt; line, and whenever that line appears in a Blyck terminal or web preview, Blyck collects it separately and the AI reads it. There's no need to copy and paste terminal output.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F77pm73poe59rai12opmh.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F77pm73poe59rai12opmh.png" alt="@BLYCK@ lines printed in the terminal, collected separately in the Debug Bridge window" width="800" height="542"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We also took care of the "forgetting to delete what you added" problem from the start. When you're done, say "Clean up the debug lines" and the AI finds the remaining &lt;code&gt;@BLYCK@&lt;/code&gt; lines and deletes only those. You can also check separately before a release that none are left.&lt;/p&gt;

&lt;h2&gt;
  
  
  A person’s tool, for the AI too
&lt;/h2&gt;

&lt;p&gt;AI is already fast enough at changing code. What we cared about was &lt;strong&gt;how the AI finds the cause&lt;/strong&gt;. We wanted the AI to use the same debugger a human developer uses, and a person to be able to watch it on the same screen.&lt;/p&gt;

&lt;p&gt;When we measured it, the AI picked its tools more cleverly than we expected. If a short command does the job, it uses a short command, and the debugger is there to pull out when it's needed. That's what human developers do, too.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blyck.dev/en/blog/ai-real-debugger/?src=devto" rel="noopener noreferrer"&gt;Blyck blog&lt;/a&gt;. This post was written with an AI agent, based on how Blyck actually works, and reviewed by us before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>debugging</category>
      <category>devtools</category>
      <category>programming</category>
    </item>
    <item>
      <title>We made the AI open the app it just fixed and click through it like a person</title>
      <dc:creator>Jongmin Lee</dc:creator>
      <pubDate>Thu, 03 Dec 2026 04:36:14 +0000</pubDate>
      <link>https://dev.to/blyck/we-made-the-ai-open-the-app-it-just-fixed-and-click-through-it-like-a-person-fmd</link>
      <guid>https://dev.to/blyck/we-made-the-ai-open-the-app-it-just-fixed-and-click-through-it-like-a-person-fmd</guid>
      <description>&lt;p&gt;Ask an AI to fix a bug and it will change the code in no time. But "fixed it" and actually fixed are two different things. Most of the time the AI reads the code, changes it, sees the automated tests pass and calls it done. Nobody ever opened the app and pressed that button.&lt;/p&gt;

&lt;p&gt;Some bugs simply can't be seen by reading code. A Save button you can't click because another panel covers it. A total whose last digits are cut off when the window gets narrow. A screen that freezes the moment you press something. The code looks fine; the screen is broken.&lt;/p&gt;

&lt;p&gt;So we made the AI in Blyck &lt;strong&gt;open the app itself, click, type and look at the screen&lt;/strong&gt;, the way a person would. We call it app control.&lt;/p&gt;

&lt;h2&gt;
  
  
  The AI does what a person would do
&lt;/h2&gt;

&lt;p&gt;Ask it to "test this program and fix the bugs", and the AI works like this.&lt;/p&gt;

&lt;p&gt;First it opens the app and &lt;strong&gt;reproduces&lt;/strong&gt; the problem. It presses buttons, enters values and takes screenshots to confirm something is really broken. We made sure it never says it fixed a bug it couldn't reproduce. Then it changes the code, opens the app again and &lt;strong&gt;clicks through the same steps again&lt;/strong&gt;, this time to see with its own eyes that it works. Its final report separates what it checked from what it couldn't check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Only tests that were seen failing get kept
&lt;/h2&gt;

&lt;p&gt;For every bug it finds, the AI saves a &lt;strong&gt;test sequence&lt;/strong&gt;: clicks, typing, waits and checks, in order. There is one rule: &lt;strong&gt;a sequence is only "registered" if it failed before the fix and passed after it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That rule matters. A test that passes from the start proves nothing about the bug. Only if you've seen it fail before the fix can you trust it to catch the same bug if it ever comes back. Every time the code changes again, the registered sequences run again to check that old bugs haven't returned.&lt;/p&gt;

&lt;h2&gt;
  
  
  It doesn't take over your screen
&lt;/h2&gt;

&lt;p&gt;If the AI grabbed your mouse and keyboard while clicking around, you couldn't do anything else. So on Windows the test app runs on a &lt;strong&gt;separate, invisible desktop&lt;/strong&gt;. You can keep working while the AI tests. Since you can't see the test window, the AI shows you its screenshots in the chat. On the Mac, too, the app under test never jumps to the front and steals what you're typing.&lt;/p&gt;

&lt;h2&gt;
  
  
  We hid bugs on purpose to see if it would find them
&lt;/h2&gt;

&lt;p&gt;To see whether this was actually useful, we built small test programs in each language with bugs hidden on purpose, including ones that only show up on screen, like a covered Save button and a cut-off total. Then we opened a fresh AI chat and only said: "test this program and fix the bugs."&lt;/p&gt;

&lt;p&gt;We tried Electron, Flutter, WPF, WinForms, Swing, JavaFX, Tauri, Wails, Fyne, Tkinter and PySide6, plus Android, iPhone and Mac apps. The AI found and fixed every bug we had hidden. Each run took from a few minutes to about twenty, and not once did the test app pop up on the user's screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  This is how we fix Blyck, too
&lt;/h2&gt;

&lt;p&gt;The place this gets used the most is Blyck itself. Blyck is an app with a screen too, so when we fix Blyck, the AI starts a separate test copy of Blyck, clicks through it and checks.&lt;/p&gt;

&lt;p&gt;Just today we fixed three things this way: sending a message while the AI was answering stopped the answer; ranges written with a single tilde, like "3~5", were drawn as strikethrough in AI answers; and entering a blank-page address in the web pane caused an error. All three were reproduced in the test app first, and we only called them done after the same steps passed again after the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nothing is left in the app you ship
&lt;/h2&gt;

&lt;p&gt;For the AI to drive an app, the app needs a small &lt;strong&gt;test hook&lt;/strong&gt; inside. That hook only goes into test (debug) builds, never into release builds. Just in case, before a release build we check that no hook was left behind. If one is, you're told not to ship it.&lt;/p&gt;

&lt;p&gt;There are still things it can't do. Windows that appear outside the program, like a file picker or a permission prompt, can't be clicked by the AI. Those are listed in the report as "needs a human check".&lt;/p&gt;

&lt;h2&gt;
  
  
  Before the AI says "fixed"
&lt;/h2&gt;

&lt;p&gt;If the AI changes the code and finishes its answer without opening the app to check, Blyck reminds it once to open the app and verify. That works the same with Claude and ChatGPT (Codex).&lt;/p&gt;

&lt;p&gt;What we wanted was simple. A human developer clicks through once after fixing something. We wanted the AI to do the same, so that "fixed" actually means fixed.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blyck.dev/en/blog/ai-tests-like-a-person/?src=devto" rel="noopener noreferrer"&gt;Blyck blog&lt;/a&gt;. This post was written with an AI agent, based on how Blyck actually works, and reviewed by us before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>devtools</category>
      <category>automation</category>
    </item>
    <item>
      <title>Before we let an AI touch our database, we spent the longest time on one line</title>
      <dc:creator>Jongmin Lee</dc:creator>
      <pubDate>Wed, 02 Dec 2026 08:59:56 +0000</pubDate>
      <link>https://dev.to/blyck/before-i-let-an-ai-touch-my-database-i-spent-the-longest-time-on-one-line-3h3l</link>
      <guid>https://dev.to/blyck/before-i-let-an-ai-touch-my-database-i-spent-the-longest-time-on-one-line-3h3l</guid>
      <description>&lt;p&gt;We started building Blyck because we got tired of copying terminal output and query results into an AI chat every time something broke on a server. So we made the AI read the terminals and databases we already had open, and run commands and queries itself when it needed to. It really is convenient. "Clean up last month's cancelled orders" — and a few seconds later it has found the table, written the condition and run the SQL.&lt;/p&gt;

&lt;p&gt;But while building it, one scene kept bothering us.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is what was supposed to go out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'cancelled'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="s1"&gt;'2026-11-01'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The only difference is the condition at the end. If we had typed it ourselves, we would probably have paused before hitting Enter — "huh, that's short." When an AI runs it on its own, the orders table can be empty before we even look at the screen. What scared us wasn't that the AI might be wrong. It was that &lt;strong&gt;nobody gets a chance to see it being wrong.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So the question we kept coming back to was: right before an AI changes a database, what should a person see, and decide?&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask about everything, and nobody reads anything
&lt;/h2&gt;

&lt;p&gt;The first answer seemed obvious: just ask the user before every query that changes data.&lt;/p&gt;

&lt;p&gt;It didn't take long to see the problem. When a confirmation pops up dozens of times a day, people start clicking "Allow" without reading. The one dangerous query gets buried among the harmless ones.&lt;/p&gt;

&lt;p&gt;So we sort queries by how much damage they can do. Read-only queries like &lt;code&gt;SELECT&lt;/code&gt; just run. An &lt;code&gt;UPDATE&lt;/code&gt; or &lt;code&gt;DELETE&lt;/code&gt; with a condition asks depending on the mode you're in. And &lt;code&gt;DROP&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt;, &lt;code&gt;ALTER&lt;/code&gt;, and any &lt;code&gt;UPDATE&lt;/code&gt; or &lt;code&gt;DELETE&lt;/code&gt; &lt;strong&gt;without a WHERE&lt;/strong&gt; always stop and ask — even in auto mode, where the AI otherwise works on its own (unless you deliberately turn that off in Settings). Fewer unimportant questions is what makes the important one stand out.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Run this?" is not enough to decide
&lt;/h2&gt;

&lt;p&gt;The next question was what to show in that confirmation.&lt;/p&gt;

&lt;p&gt;If the card only says "Run this DELETE?", you have to read the SQL line by line and work out the result in your head. Almost nobody does that when they're busy. So before running it, Blyck &lt;strong&gt;counts how many rows will change&lt;/strong&gt; and shows that too. For the broken query above, the card looks like this (the number is just an example):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;📊 Affected rows: ~12,840 rows&lt;/p&gt;

&lt;p&gt;⚠ No WHERE clause — affects all rows in the table&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You meant to remove a few dozen cancelled orders and you see twelve thousand rows. You don't need to read the SQL to know something is off. The job goes from "read and calculate" to "glance at one number."&lt;/p&gt;

&lt;h2&gt;
  
  
  Lock the door, and there's still a window
&lt;/h2&gt;

&lt;p&gt;Once that was done, we noticed something else. If the AI calls &lt;code&gt;psql&lt;/code&gt; or &lt;code&gt;sqlplus&lt;/code&gt; straight from a terminal instead of going through the database tool, it skips every check above. From the AI's point of view, it's just another way to do the same job.&lt;/p&gt;

&lt;p&gt;When we first published this post, that window was only half locked. A command that wipes a whole table, like &lt;code&gt;DROP TABLE&lt;/code&gt;, already stopped, but a &lt;code&gt;DELETE&lt;/code&gt; or &lt;code&gt;UPDATE&lt;/code&gt; sent through a terminal wasn't looked inside. So starting with 1.1.10, when a command the AI wants to run includes a database client, Blyck reads the SQL inside it by the same rules as the database tool. A &lt;code&gt;DELETE&lt;/code&gt; or &lt;code&gt;UPDATE&lt;/code&gt; without WHERE, or &lt;code&gt;DROP&lt;/code&gt;, &lt;code&gt;TRUNCATE&lt;/code&gt; or &lt;code&gt;ALTER&lt;/code&gt;, stops and asks even through a terminal and even in auto mode, and the card gets a 🔓 bypass warning. What this path still can't do is count the rows or back them up — that only happens through the database tool.&lt;/p&gt;

&lt;p&gt;Even after that, we can't block every path just by reading command text. The AI could write a small script and change the database from inside it. So for a production database, we recommend giving the AI a &lt;strong&gt;read-only account&lt;/strong&gt;. Then the database itself refuses, whichever path the AI takes. Locking one door wasn't enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  People still get it wrong
&lt;/h2&gt;

&lt;p&gt;To be honest, none of this prevents every accident. Sometimes you see the number and click "Allow" anyway. Sometimes the card is right and your judgment is wrong.&lt;/p&gt;

&lt;p&gt;So the last piece is &lt;strong&gt;being able to undo&lt;/strong&gt;. Right before an &lt;code&gt;UPDATE&lt;/code&gt; or &lt;code&gt;DELETE&lt;/code&gt; runs, Blyck backs up the rows that are about to change. On server databases — PostgreSQL, MySQL, SQL Server, Oracle — it creates a backup table inside the database, and undo writes those values back.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpnahubh872obc9en5pj4.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpnahubh872obc9en5pj4.png" alt="Undo in Blyck — writing the values back from the backup table" width="800" height="346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not everything can be undone. &lt;code&gt;DROP&lt;/code&gt; and &lt;code&gt;TRUNCATE&lt;/code&gt; can't, and complex statements that join several tables run without a backup. That's exactly why those are the ones we stop hardest at the start. Confirmation and undo aren't two separate features; each one covers the other's gaps.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we learned
&lt;/h2&gt;

&lt;p&gt;At first we thought this problem would go away as AI got smarter. Building it changed our minds. The heart of it isn't the AI — it's &lt;strong&gt;the moment a person decides&lt;/strong&gt;. Don't create that moment too often. When you do, give people a number to decide with. Don't leave a side door open. And when they still get it wrong, leave a way back. In the end, it came down to those four things.&lt;/p&gt;

&lt;p&gt;Next time we'll write about applying the same thinking to commands on SSH servers. On a production server, one &lt;code&gt;rm -rf&lt;/code&gt; is even scarier than a &lt;code&gt;DELETE&lt;/code&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://blyck.dev/en/blog/ai-dangerous-sql/?src=devto" rel="noopener noreferrer"&gt;Blyck blog&lt;/a&gt;. This post was written with an AI agent, based on how Blyck actually works, and reviewed by us before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>database</category>
      <category>sql</category>
      <category>security</category>
    </item>
  </channel>
</rss>
