<?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: Andrey Bodrov</title>
    <description>The latest articles on DEV Community by Andrey Bodrov (@andre-bodro).</description>
    <link>https://dev.to/andre-bodro</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%2F3963008%2F60422174-d1d8-4713-9114-0ec6f2d8585c.png</url>
      <title>DEV Community: Andrey Bodrov</title>
      <link>https://dev.to/andre-bodro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andre-bodro"/>
    <language>en</language>
    <item>
      <title>Almost a year without writing code by hand: what broke, and the rules that fixed it</title>
      <dc:creator>Andrey Bodrov</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:06:18 +0000</pubDate>
      <link>https://dev.to/andre-bodro/almost-a-year-without-writing-code-by-hand-what-broke-and-the-rules-that-fixed-it-3npb</link>
      <guid>https://dev.to/andre-bodro/almost-a-year-without-writing-code-by-hand-what-broke-and-the-rules-that-fixed-it-3npb</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a shortened translation of an article I published in Russian on Habr in February 2026: &lt;a href="https://habr.com/ru/articles/993896/" rel="noopener noreferrer"&gt;https://habr.com/ru/articles/993896/&lt;/a&gt;. Tools, models and prices are from that time.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A disclaimer first. If you run Claude Code on a paid plan and everything works, that is normal. If you tried vibe coding and got a pile of useless code, that is normal too. Experience differs, and each camp is right in its own way. I am not going to teach anyone "the right way". Everything I know, I know from getting it wrong. I can only tell you what not to do if you want to keep your nerves and your budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experiment
&lt;/h2&gt;

&lt;p&gt;A little less than a year ago I decided to stop writing code by hand. Completely. Infrastructure too. I went through the phase where a chatbot tells you that you are a genius, and through the hangover where its answers meet production.&lt;/p&gt;

&lt;p&gt;Here is what I closed in that time without typing a line of product code myself, on almost free models (Gemini, Qwen, Z.ai) and command-line tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a single-page app, a psychological questionnaire, in TypeScript and React;&lt;/li&gt;
&lt;li&gt;a scientific paper in LaTeX built on that questionnaire's results;&lt;/li&gt;
&lt;li&gt;a wake-word model trained in PyTorch for a voice assistant in an apartment building;&lt;/li&gt;
&lt;li&gt;a proprietary audio codec and DSP SDK integrated into ESPHome on ESP32, in C++, for the same assistant;&lt;/li&gt;
&lt;li&gt;a Telegram bot that teaches a full DBT skills course, where the lessons, the tests, the deployment and even the product analytics were done by LLMs;&lt;/li&gt;
&lt;li&gt;a chat-to-data layer over ClickHouse: an agent writes the SQL, fixes the dialect and returns the data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can pick at every item. But this is paid work with ClickHouse, C++ and PyTorch in it, not a "Hello World" from a tutorial.&lt;/p&gt;

&lt;p&gt;Let me be straight. I am not a data scientist, not an ML engineer, and not a C++ developer, though I was one in a past life. Mostly I am a DevOps engineer, a Python developer and a data analyst. And I have a confession to make: I hate programming. Shuffling JSON, fighting dependencies and writing boilerplate is routine that kills the creative part, and I am glad I no longer do it myself.&lt;/p&gt;

&lt;p&gt;Development is turning into operating a CNC machine. The machine is a set of LLM agents. The drawing is a strict structure of rules and XML contracts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three stages of failure
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Honeymoon.&lt;/strong&gt; You write "build me such and such a service". Code appears, you pile on features, the AI reports that everything is done. It may even work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hangover.&lt;/strong&gt; A second module shows up, say a frontend next to your backend, and everything starts to fall apart. There are no real tests and no development rules. The model grunts, produces version after version, quietly simplifies the tests and the features, and keeps telling you that everything is ready. This is where people go online to write that vibe coding is garbage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Architect of chaos.&lt;/strong&gt; You step back and rework the documentation from scratch. Everything goes into text: functional requirements, contracts in the code, state and screen structures. Once it is in XML, the agent can reflect on the structure of the application itself. Add rules, and it starts fixing architectural mistakes on its own and delivering stable quality. At this stage you watch the rules and the documentation. You can stop reading most of the code, because a steady stream of reflection over a rigid structure gives stable results, even when the model hallucinates a little.&lt;/p&gt;

&lt;p&gt;Nothing stops you from starting at stage three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agents get stupid
&lt;/h2&gt;

&lt;p&gt;A model is a network that predicts the next token. An agent is a wrapper program with a system prompt, tools and file access. Treat both as consumables. If your process depends on the magic of one particular model, you do not have a process.&lt;/p&gt;

&lt;p&gt;The model inside an agent sits in a dark room. Its only contact with your project is a few primitive tools: list files, read a file, search text. Until it lists the directory, it knows nothing about the structure of your project.&lt;/p&gt;

&lt;p&gt;So every new session, and every automatic context compression, is a lobotomy. You know the feeling: two hours into polishing some logic, the model forgets that five messages ago you agreed not to use that library, or proposes the solution you already rejected. That is context rot.&lt;/p&gt;

&lt;p&gt;This is why contracts save you. When memory is wiped, the agent reads one rules file and restores its picture of the world. It is your external hard drive.&lt;/p&gt;

&lt;p&gt;One more thing people miss. Everyone writes a role for the agent ("you are a senior engineer") and forgets the user profile, which matters more. Tell it who you are, what you need and why. If it is an MVP, say that you need a Python script that solves the problem today, not shards and Kubernetes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The method: GRACE and PCAM
&lt;/h2&gt;

&lt;p&gt;"Just prompting" does not hold up on complex projects. To get stable work you have to stop being a coder and become a bureaucrat.&lt;/p&gt;

&lt;p&gt;The methodology is not mine. Its author is Vladimir Ivanov. What follows is my reading of it and what I built on top.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GRACE&lt;/strong&gt; (Graph-RAG Anchored Code Engineering) is the skeleton: how to structure code and documentation. An LLM that meets ambiguity starts to improvise, and that improvisation is what breaks production. GRACE answers with explicit intent and semantic markup. Important blocks are wrapped in XML tags such as &lt;code&gt;&amp;lt;architecture&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;rules&amp;gt;&lt;/code&gt;. In a long context the middle gets lost, and in my experience a distinctive tag works as an anchor that the model keeps hold of. The same tags give a search agent a deterministic path: requirements, then contract, then function.&lt;/p&gt;

&lt;p&gt;Why XML and not JSON or YAML? JSON is strict about syntax and carries no meaning of its own. YAML depends on indentation, which models get wrong. XML looks like HTML, which every model has seen in huge amounts, and it tolerates small mistakes.&lt;/p&gt;

&lt;p&gt;The process is a chain of files: requirements written as actor, action, goal; the stack with pinned library versions; a development plan with mandatory "mental tests", where the algorithm is walked through before any code is written.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PCAM&lt;/strong&gt; (Purpose Centric Agent Methodology) is the brain: how to steer behaviour. Rigid to-do lists turn an agent into a script runner. The principles, briefly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the agent must know why, not only what, so the task is set as a goal;&lt;/li&gt;
&lt;li&gt;guides instead of scripts: recommended strategies and sources, like a map instead of turn-by-turn directions;&lt;/li&gt;
&lt;li&gt;self-healing: if an SQL query fails, the agent looks at the table schema, sees that the column does not exist, and rewrites the query itself;&lt;/li&gt;
&lt;li&gt;strictness belongs in interfaces, not in plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point has a catch. Agents are brilliant inside one module and terrible at the seams. Ask one for a button and another for an API, and you get camelCase against snake_case. API contracts are the one place where I give no freedom. They are written by hand or pinned down rigidly, and I fix mine in Protobuf. The seams between systems are the human's job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules written in blood
&lt;/h2&gt;

&lt;p&gt;My rules repository is not a set of linters. It is a cemetery of my mistakes. Before an agent writes a line, it has to read how I suffered before it.&lt;/p&gt;

&lt;p&gt;In the wake-word project the agent kept "helping" by launching training its own way, which broke dependencies, paths and logging. So a rule appeared. Translated and softened, it reads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;REMEMBER FOREVER: DAMN IT, wake word is not ordinary classification!
A 100:1 class imbalance is normal here!
100% accuracy on synthetic speech is NOT normal!

CRITICAL RULE: DO NOT HALF-ASS IT.
If you create a new task, ADD IT TO THE XML!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The original is in Russian and a good deal ruder. And it works. I write architecture in English and swear in Russian, and in my experience the caps and the switch of language tell the model that this instruction is not to be ignored.&lt;/p&gt;

&lt;p&gt;A few more habits from the same repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The rule of two mistakes.&lt;/strong&gt; If the agent makes the same mistake twice, do not argue in the chat. Say: "You did it again. Formulate a rule so that this never happens, and add it to the rules file." Let it write its own prohibition. The rules repository gets smarter with every failure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No imitation of work.&lt;/strong&gt; Agents love green tests that check nothing, like accepting 200, 400 and 500 as valid. My rule file says: never write a test that accepts any status code, never check only that the response is not empty, never accept both success and failure. That rule appeared after the agent tried to hand me &lt;code&gt;assert True&lt;/code&gt; three times. With it in the context, the agent started catching its own useless tests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tests first.&lt;/strong&gt; When a black box writes the code, tests are the only judge. The agent writes a failing test from the requirements, then the code that makes it pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Notes for future agents.&lt;/strong&gt; Comments are now written for the next generation run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# &amp;lt;LLM_NOTE&amp;gt;&lt;/span&gt;
&lt;span class="c1"&gt;# CRITICAL: Do NOT optimize this loop!&lt;/span&gt;
&lt;span class="c1"&gt;# It causes memory spike on large datasets. Keep it iterative.&lt;/span&gt;
&lt;span class="c1"&gt;# &amp;lt;/LLM_NOTE&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;A golden sample.&lt;/strong&gt; When all the code is generated, the model starts learning from its own average output. Sometimes you need one module written properly, by hand or by a stronger model, so that you can say "write like this".&lt;/p&gt;

&lt;h2&gt;
  
  
  Survival notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The filesystem is the best database.&lt;/strong&gt; Keep files small, name them by meaning, keep the tree flat. &lt;code&gt;auth_login_validation.py&lt;/code&gt; tells the agent its role before the file is opened. &lt;code&gt;utils.py&lt;/code&gt; has to be read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents live in the past.&lt;/strong&gt; They write code for the library version they were trained on. Do not trust the model's memory of a library. Make it check the installed version, or feed it the current README.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No blocking processes.&lt;/strong&gt; An agent that starts a web server will wait for it forever. My rules forbid running anything blocking without a timeout or the background.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three loops and stop.&lt;/strong&gt; If the agent proposes the same fix for the third time, a miracle will not happen. Read the code yourself and give it a narrow context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commit by hand, after every step.&lt;/strong&gt; Your main interface is now the diff, and any tool call has a small chance of destroying a file. Code from an agent has to be cemented in Git at once, because regenerating from the plan gives different code each time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never trust "all done".&lt;/strong&gt; I get more nervous when the result looks clean than when it throws syntax errors. Clean code from an AI is often a facade over an invented API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be ready to kill the session.&lt;/strong&gt; Keep a current plan, a short summary and a limited scope, so that a new session can simply continue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not feed it secrets.&lt;/strong&gt; On free tiers you pay with your data. No &lt;code&gt;.env&lt;/code&gt; files, no API keys, no proprietary configs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I ran on
&lt;/h2&gt;

&lt;p&gt;I work in a terminal and I am not ashamed of it. My computer is not young, and the agent does not care whether it has a GUI. It needs a shell.&lt;/p&gt;

&lt;p&gt;In February 2026 the stack was a Z.ai subscription at about three dollars a month, the free tier of Gemini, and Qwen-Coder for DevOps chores. No complex orchestration: handing out roles to the same model inside one chat is pointless, and it is simpler to open three terminals. For now the human is the data bus between agents. I am not selling the dream that it works by itself. You will have to think harder than before, only your hands will be free.&lt;/p&gt;

&lt;h2&gt;
  
  
  What nobody tells you
&lt;/h2&gt;

&lt;p&gt;After half a year in this mode some things show up that the evangelists keep quiet about.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code obesity.&lt;/strong&gt; Agents do not pay per character. Where a senior writes one line of pandas, an agent writes twenty lines of loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt rot.&lt;/strong&gt; Rules age. What one model version needed, the next does not. The rules repository is a new kind of technical debt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reverse sync.&lt;/strong&gt; Sooner or later someone edits the code directly and the plans go stale. Once a week I make the agent read the current code and update the plan and the architecture document.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skill atrophy.&lt;/strong&gt; I am getting worse as a writer of code and better as an architect. It is a deliberate trade of muscle memory for project scale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is a solo weapon.&lt;/strong&gt; In a team you would also have to agree on the rules with each other.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is my invention. The industry sees the same problems and solves them: vendors use markup, guides become skills, contracts become spec-driven development.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this will fail in your company
&lt;/h2&gt;

&lt;p&gt;Companies look for a silver bullet: buy the tool, lay off the juniors. This method is an exoskeleton. It strengthens the strong and crushes anyone without the discipline to maintain documentation. An LLM is tuned to be pleasant, not right. It will never tell a junior that the architecture is wrong. It will say "of course, here is the code for it".&lt;/p&gt;

&lt;p&gt;It takes high qualification to stop coding. To write the wake-word rule you have to know how ML works. To write the architecture file you have to be an architect. AI does not lower the entry bar, it raises it. We are burning the ladder we climbed ourselves.&lt;/p&gt;

&lt;p&gt;Three changes in the process make agents work. Document every decision, because for a model everything is text, and code is not the clearest kind. Refactor without mercy, because code is now free and bad naming makes an agent stumble every time. Close the feedback loop, so that the agent can run the tests and fix its own mistakes without you.&lt;/p&gt;

&lt;p&gt;The main conclusion: code is secondary. It is a by-product of generation. The real source is the rules repository and the requirements. The value has moved from the implementation to the specification.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update, November 2026.&lt;/strong&gt; Since this was written, the same way of working has gone further down the stack: a port of the Mali-400 graphics driver to FreeBSD on ARM64, with two fixes from that work merged into FreeBSD's drm-kmod. Agents wrote the code. I directed the work and accepted it by measurement on the board. That story is next.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Driver port and hardware test results: &lt;a href="https://github.com/bzdOS/lima-freebsd" rel="noopener noreferrer"&gt;https://github.com/bzdOS/lima-freebsd&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Merged fixes: &lt;a href="https://github.com/freebsd/drm-kmod/pull/512" rel="noopener noreferrer"&gt;https://github.com/freebsd/drm-kmod/pull/512&lt;/a&gt; and &lt;a href="https://github.com/freebsd/drm-kmod/pull/514" rel="noopener noreferrer"&gt;https://github.com/freebsd/drm-kmod/pull/514&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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