<?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: Matteo Cavalleri</title>
    <description>The latest articles on DEV Community by Matteo Cavalleri (@cvlmtg).</description>
    <link>https://dev.to/cvlmtg</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%2F4225025%2F8efde05b-2fd3-4dde-bab7-242352d14928.png</url>
      <title>DEV Community: Matteo Cavalleri</title>
      <link>https://dev.to/cvlmtg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cvlmtg"/>
    <language>en</language>
    <item>
      <title>Select first, then act: a tour of HUME</title>
      <dc:creator>Matteo Cavalleri</dc:creator>
      <pubDate>Thu, 05 Nov 2026 21:41:49 +0000</pubDate>
      <link>https://dev.to/cvlmtg/select-first-then-act-a-tour-of-hume-294f</link>
      <guid>https://dev.to/cvlmtg/select-first-then-act-a-tour-of-hume-294f</guid>
      <description>&lt;p&gt;After sharing a bit of my journey with HUME and Claude Code, I'll try to show you what I think are the nice touches of HUME, and if I manage to spark your curiosity, you'll find some links at the end of the article to download and try it.&lt;/p&gt;

&lt;p&gt;If you are new to modal editors, there are many introductions on the web, including this brief &lt;a href="https://cvlmtg.github.io/HUME/getting-started.html" rel="noopener noreferrer"&gt;page&lt;/a&gt; on HUME's user manual.&lt;br&gt;
To keep this article short, I'll assume you are already familiar with the main concepts of modal editors.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Select first, then act
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi5023nvrnj24q9bz7zhv.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi5023nvrnj24q9bz7zhv.gif" alt=" " width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What's the fuss about this paradigm? Vim's grammar is verb first, object second: &lt;code&gt;dw&lt;/code&gt; deletes a word, &lt;code&gt;ci"&lt;/code&gt; changes inside quotes. You type the whole command blind and find out what it did afterwards.&lt;/p&gt;

&lt;p&gt;Kakoune, Helix and HUME turn that around. Motions select, and operators act on whatever is selected: &lt;code&gt;w&lt;/code&gt; selects the next word, then &lt;code&gt;d&lt;/code&gt; deletes it. The selection is always visible, so you see exactly what &lt;code&gt;d&lt;/code&gt; will hit before you press it. There is no invisible "cursor as a point": the cursor is just a one-character selection.&lt;/p&gt;

&lt;p&gt;Vim has visual mode for this, but that means two models: operators that take a motion, and operators that act on a visual selection. In a select-then-act editor you have to learn just one model.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Keybinds and muscle memory
&lt;/h2&gt;

&lt;p&gt;HUME embraces the Helix and Kakoune model, but since I've been a Vim user for a long time, you'll probably find HUME's keybinds a mix of both worlds. I tried to make them as intuitive and pragmatic as possible, keeping muscle memory when it made sense, and changing when there was (in my humble opinion) a better option.&lt;/p&gt;

&lt;p&gt;For example: you are moving your cursor and want to select the current word. In Vim that means typing &lt;code&gt;vaw&lt;/code&gt;; in HUME you press &lt;code&gt;mm&lt;/code&gt;. One letter, faster, easier to remember.&lt;/p&gt;

&lt;p&gt;Why &lt;code&gt;mm&lt;/code&gt;? Because &lt;code&gt;m&lt;/code&gt; is the prefix for a lot of &lt;em&gt;match&lt;/em&gt; commands, like &lt;code&gt;mi"&lt;/code&gt; (match inside quotes) or &lt;code&gt;ms(&lt;/code&gt; (match the surrounding parens). Think of &lt;code&gt;mm&lt;/code&gt; as a shortcut for &lt;code&gt;maw&lt;/code&gt; (match around the word).&lt;/p&gt;

&lt;p&gt;Every select-then-act editor needs a way to extend selections. In HUME every movement or selection command has a &lt;code&gt;Ctrl-&lt;/code&gt; counterpart that extends instead of moving or selecting, so &lt;code&gt;f.&lt;/code&gt; &lt;em&gt;moves&lt;/em&gt; to the next full stop, while &lt;code&gt;Ctrl-f.&lt;/code&gt; &lt;em&gt;extends&lt;/em&gt; to the next full stop (this requires a terminal that supports the kitty keyboard protocol, and many modern ones do: iTerm2, WezTerm, kitty, Ghostty etc).&lt;/p&gt;

&lt;p&gt;There's also an extend mode if you prefer one (like Vim's visual mode or Helix's select mode), but one-shot extends spare you the mode switch. Normal mode stays predictable: its commands only move or select, never extend. In Helix, for example, &lt;code&gt;x&lt;/code&gt; selects the current line, and pressing it again extends the selection to the next one. In HUME, &lt;code&gt;x&lt;/code&gt; only selects, and &lt;code&gt;Ctrl-x&lt;/code&gt; is what extends. Extending lives only in extend mode or behind &lt;code&gt;Ctrl-&lt;/code&gt;, so you always know what a key will do.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. A paste that does what you meant
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukl0rj1502eqp4569fug.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukl0rj1502eqp4569fug.gif" alt=" " width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every Vim user knows this one. You yank a word, select another word, and paste over it. Then you try to paste the same word somewhere else, and you get the word you just replaced. Some of the oldest code in my &lt;code&gt;vimrc&lt;/code&gt; is a couple of functions and a custom keybind that juggle registers for this exact reason.&lt;/p&gt;

&lt;p&gt;In HUME this works right out of the box, since the overwritten text is simply discarded. Paste again and you get a second copy instead, since replacing text with itself would make no sense.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fysm0rutf9xoz9emk7w19.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fysm0rutf9xoz9emk7w19.gif" alt=" " width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;HUME also keeps a kill ring of your last 10 deletes and yanks, and &lt;code&gt;p&lt;/code&gt; tries to guess whether you want the last thing you cut here or something you copied in another app.&lt;/p&gt;

&lt;p&gt;Right after a paste, &lt;code&gt;[&lt;/code&gt; and &lt;code&gt;]&lt;/code&gt; swap it for an older or newer kill-ring entry, so "&lt;em&gt;the thing I deleted three edits ago&lt;/em&gt;" is two keystrokes away.&lt;/p&gt;

&lt;p&gt;And if you just don't like guessing, the &lt;code&gt;core:classic-paste&lt;/code&gt; plugin gives you &lt;code&gt;p&lt;/code&gt; for the kill ring and &lt;code&gt;Ctrl-v&lt;/code&gt; for the clipboard, GUI style.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Everything is Scheme
&lt;/h2&gt;

&lt;p&gt;I've always been fascinated by Lisp, so HUME uses Scheme for everything: your config, your keybinds and your plugins. There's no &lt;code&gt;vimrc&lt;/code&gt; and no separate plugin language. Your &lt;code&gt;init.scm&lt;/code&gt; is a real program, with conditionals, loops and functions.&lt;/p&gt;

&lt;p&gt;Vim's &lt;code&gt;autocmd FileType&lt;/code&gt; becomes a hook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight scheme"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;register-hook!&lt;/span&gt; &lt;span class="ss"&gt;'on-language-set&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;pane&lt;/span&gt; &lt;span class="nv"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;when&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;equal?&lt;/span&gt; &lt;span class="nv"&gt;lang&lt;/span&gt; &lt;span class="s"&gt;"python"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;set-buffer-option!&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt; &lt;span class="s"&gt;"indent-width"&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;set-buffer-option!&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt; &lt;span class="s"&gt;"indent-style"&lt;/span&gt; &lt;span class="s"&gt;"soft"&lt;/span&gt;&lt;span class="p"&gt;))))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  A plugin in ten lines
&lt;/h3&gt;

&lt;p&gt;A plugin is just a directory with a &lt;code&gt;plugin.scm&lt;/code&gt; in it. Here's a complete one that adds a &lt;code&gt;:trim-trailing&lt;/code&gt; command, removing trailing spaces and tabs from the selected lines, or from the whole buffer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight scheme"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;define-typed-command!&lt;/span&gt; &lt;span class="s"&gt;"trim-trailing"&lt;/span&gt;
  &lt;span class="s"&gt;"Remove trailing spaces and tabs."&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;pane&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;when&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;selections-charwise?&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;select-all&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;when&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;sift-within&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt; &lt;span class="s"&gt;"(?m)[ \t]+$"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;delete-selection&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;keep-primary-selection&lt;/span&gt; &lt;span class="nv"&gt;pane&lt;/span&gt;&lt;span class="p"&gt;))))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at what it does: select the buffer, narrow the selection to every run of trailing whitespace, delete. That's the same select-then-act sequence you'd type by hand (&lt;code&gt;%&lt;/code&gt;, &lt;code&gt;s&lt;/code&gt;, &lt;code&gt;d&lt;/code&gt;). The scripting API speaks the same language as the keys, so once you know how to do something interactively, you mostly know how to script it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Plugins all the way down
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0dikhyzq4ei69bth50ut.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0dikhyzq4ei69bth50ut.gif" alt=" " width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The big features are built on the same API that's available to you. The fuzzy pickers, LSP support, live git diff and the undo tree are all core plugins: HUME starts lean, and you turn each one on with a single line in your config. If you don't like how one works, you can replace it with your own. &lt;a href="https://github.com/cvlmtg/grep.hume" rel="noopener noreferrer"&gt;grep.hume&lt;/a&gt;, a live grep picker, is an example of a plugin living in its own repo.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://cvlmtg.github.io/HUME/writing-plugins.html" rel="noopener noreferrer"&gt;Writing Plugins&lt;/a&gt; guide covers the rest: hooks, custom pickers, completion sources, async processes, lazy loading.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's missing, and what's next
&lt;/h2&gt;

&lt;p&gt;There are still a few features missing, and some are already being worked on, like persistent undo and persistent sessions. Other planned features are in &lt;a href="https://github.com/cvlmtg/HUME/blob/main/docs/ROADMAP.md" rel="noopener noreferrer"&gt;ROADMAP.md&lt;/a&gt;, many other will come as I continue using and developing it.&lt;/p&gt;

&lt;p&gt;The Scheme API will expand too. I add commands only when I have a real use case for them, so many will likely be added as soon as I (or someone else) write a new plugin. I have a couple of them on my roadmap too...&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Getting started takes a few minutes: download the archive for your platform from the &lt;a href="https://github.com/cvlmtg/HUME/releases" rel="noopener noreferrer"&gt;releases page&lt;/a&gt;, run HUME, then type &lt;code&gt;:tutor&lt;/code&gt; for the interactive tutorial.&lt;/p&gt;

&lt;p&gt;The migration guides map what you already know onto HUME:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/from-vim.html" rel="noopener noreferrer"&gt;Coming from Vim/Neovim&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/from-helix.html" rel="noopener noreferrer"&gt;Coming from Helix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/from-kakoune.html" rel="noopener noreferrer"&gt;Coming from Kakoune&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything else is in the &lt;a href="https://cvlmtg.github.io/HUME/" rel="noopener noreferrer"&gt;user manual&lt;/a&gt; and the &lt;a href="https://github.com/cvlmtg/HUME" rel="noopener noreferrer"&gt;repository&lt;/a&gt;. Feedback, bug reports and contributions are very welcome, and if you write a plugin, I'd love to see it!&lt;/p&gt;

</description>
      <category>vim</category>
      <category>neovim</category>
      <category>helix</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Writing a text editor in the age of agentic programming</title>
      <dc:creator>Matteo Cavalleri</dc:creator>
      <pubDate>Wed, 04 Nov 2026 16:17:31 +0000</pubDate>
      <link>https://dev.to/cvlmtg/writing-a-text-editor-in-the-age-of-agentic-programming-294k</link>
      <guid>https://dev.to/cvlmtg/writing-a-text-editor-in-the-age-of-agentic-programming-294k</guid>
      <description>&lt;h2&gt;
  
  
  Why a text editor?
&lt;/h2&gt;

&lt;p&gt;In March I started a new project to keep experimenting with Claude Code. I wanted something real, not a toy: something I would actually use, and something hard enough to show me how far (and how well) you can go writing software with an AI agent.&lt;/p&gt;

&lt;p&gt;The answer was easy. The tool I spend most of my day in is my editor. I've used Vim and then Neovim for many years, to the point where I just can't use anything that isn't modal. I'd also been curious for a long time about the Kakoune and Helix approach, where you select first and then act.&lt;/p&gt;

&lt;p&gt;So I decided to be bold and write my own modal editor. I called it &lt;a href="https://github.com/cvlmtg/HUME" rel="noopener noreferrer"&gt;HUME&lt;/a&gt;, as in "HUME's Unfinished Modal Editor" (because who doesn't like recursive acronyms?).&lt;/p&gt;

&lt;p&gt;It was a chance to build my dream editor, and it also turned out to be a great benchmark, because under the hood an editor is full of hard problems: UTF-8 everywhere, undo trees, rendering, terminal quirks, LSP, plugins.&lt;/p&gt;

&lt;h2&gt;
  
  
  The irony: I stopped using my editor
&lt;/h2&gt;

&lt;p&gt;About a month in, I realized something: all the code I was producing was written by an agent. I was building a text editor, and I was basically no longer using one.&lt;/p&gt;

&lt;p&gt;That could have been the end of the project. Why build the perfect tool for a job you no longer do? I have two reasons:&lt;/p&gt;

&lt;p&gt;The first one: checking the diff, reviewing the code and doing small edits here and there are definitely better with a full-featured editor (HUME has a live inline diff and LSP-backed navigation and diagnostics for precisely this reason).&lt;/p&gt;

&lt;p&gt;The second one took me a few months to figure out. I understand HUME well at a high level, but reviewing code means catching the small, hard details, and that skill fades if you don’t practice it. Writing code myself is how I keep it sharp, so I plan to keep doing it, even if only on a small side project. And for that, I still want a good editor.&lt;/p&gt;

&lt;p&gt;So I kept going, and today HUME is my daily editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  What HUME is today
&lt;/h2&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%2Fcvqylrnv0e1p8dmqnp50.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%2Fcvqylrnv0e1p8dmqnp50.png" alt=" " width="800" height="537"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;HUME is a pragmatic, extensible modal editor. It has all the bells and whistles a modern editor should have, it reuses what I think works well in Vim, Kakoune and Helix, and adds a few ideas of its own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scheme as the embedded scripting language (I've always been fascinated by Lisp...).&lt;/li&gt;
&lt;li&gt;Most of the big features are written as plugins, so you can turn them on or off, customize them, or replace them with your own.&lt;/li&gt;
&lt;li&gt;A "smart" paste that does what you most likely meant, with multiple registers and a kill ring.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Oh, and it supports the Helix theme format: why reinvent the wheel?&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 1: how do you review code you can't read?
&lt;/h2&gt;

&lt;p&gt;One thing I find exhilarating about agentic coding is that it lets you write a program in a language you don't know. I've worked for many years with Ruby, JavaScript and then TypeScript, plus SQL, bash and so on. But Rust? Never.&lt;/p&gt;

&lt;p&gt;I know what a struct or an array is, and what an &lt;code&gt;if&lt;/code&gt; or a &lt;code&gt;for&lt;/code&gt; loop does. I think I get the idea behind the borrow checker (traits, less so). But I think that's not enough to properly review the code Claude writes.&lt;/p&gt;

&lt;p&gt;So how do you review code you don't understand? You can ask the agent to review it, but then you're trusting the same LLM that wrote it in the first place. It's almost a philosophical problem.&lt;/p&gt;

&lt;p&gt;Learning some Rust along the way certainly helps, and so does pushing back on the agent every time something doesn’t fully convince me. But that alone isn’t enough: I also want a workflow that works, and rules that are enforced automatically. I don’t have a perfect answer, but I found a few things that help.&lt;/p&gt;

&lt;h3&gt;
  
  
  The basic workflow
&lt;/h3&gt;

&lt;p&gt;The first thing you learn is the basic workflow: plan, implement, review. These are the basics for a reason: they work.&lt;/p&gt;

&lt;p&gt;The real lesson here is that asking the LLM to review the code it just wrote works better than trying to get it perfect on the first pass. And since the LLM is fast at writing code, iterating is the way to go.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let the machine check what I can't
&lt;/h3&gt;

&lt;p&gt;If I can't reliably judge the code by reading it, I want as many rules as possible enforced mechanically. In Rust, one way is to use newtypes everywhere a plain integer could be confused with another (a byte offset is not a char offset is not a line number). On top of that, I added strict clippy rules and architecture lints that stop modules from reaching where they shouldn't. Last but not least, CI runs on macOS, Windows and Linux.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review only works when it's grounded
&lt;/h3&gt;

&lt;p&gt;This lesson took me longer to learn: agent code review works well only when the agent can see the real thing it's reviewing against.&lt;/p&gt;

&lt;p&gt;An example: say you build a generic API meant to serve two different kinds of consumers, but you only write one of them. Ask the agent to review that API and it will keep finding "bugs" for the second consumer. It doesn't know what that consumer looks like, so it guesses, and every guess produces a new hypothetical problem. You end up chasing ghosts.&lt;/p&gt;

&lt;p&gt;The fix is boring: don't build for consumers that don't exist yet. Write the real second consumer, or drop the generality until you need it. Once the code is grounded in concrete use, the reviews get much shorter and much more useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 2: notice the pattern, fix it once
&lt;/h2&gt;

&lt;p&gt;The most valuable habit I built wasn't about prompting. It was about watching.&lt;/p&gt;

&lt;p&gt;Agents have tendencies, and the same bad move shows up again and again. For example, I noticed Claude widening the visibility of a method, or relaxing a restriction, just to get a test to green faster. The test passed, but the design got a little worse every time.&lt;/p&gt;

&lt;p&gt;Correcting it in the moment fixes one diff. Writing it down fixes every future one. So every time I spot a pattern like this, I add a rule to my global CLAUDE.md so it doesn't happen again.&lt;/p&gt;

&lt;p&gt;Another example: Claude would skip an architectural fix because it was "not worth the churn". So I tried to teach it that correct code (or a correct algorithm) is always worth the churn, even when it doesn't seem to buy you anything.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gs"&gt;**Cost is not a verdict on correctness.**&lt;/span&gt; "One call site", "not worth the churn", "non-trivial for now" never license a known-wrong design. Either fix it, or measure the cost and report the number — never assert it. A wrong pattern at N=1 is the template for N=2, and the site may itself grow before anyone revisits it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I've caught and fixed many other patterns this way. If you're curious, my dotfiles repo is &lt;a href="https://github.com/cvlmtg/dotfiles" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rest of the journey
&lt;/h2&gt;

&lt;p&gt;HUME is already usable (and, dare I say, powerful), but there are still many features I plan to add, and probably a few bugs to fix (what software doesn't have bugs?).&lt;/p&gt;

&lt;p&gt;In the next post I’ll dig into what makes HUME different: select-then-act, smart paste, and writing a plugin in Scheme.&lt;/p&gt;

&lt;p&gt;If you're curious to try it, here are a few links to get started. Feedback and contributions will be highly appreciated!&lt;/p&gt;

&lt;h3&gt;
  
  
  Prebuilt binaries
&lt;/h3&gt;

&lt;p&gt;Currently available for macOS (Apple Silicon), Windows and x86_64 Linux:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/cvlmtg/HUME/releases" rel="noopener noreferrer"&gt;Releases&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works best in a terminal that supports the kitty keyboard protocol (such as iTerm2, WezTerm, Ghostty, foot, etc.).&lt;/p&gt;

&lt;h3&gt;
  
  
  Documentation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/" rel="noopener noreferrer"&gt;User manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/from-vim.html" rel="noopener noreferrer"&gt;Coming from Vim/Neovim&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/from-helix.html" rel="noopener noreferrer"&gt;Coming from Helix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cvlmtg.github.io/HUME/from-kakoune.html" rel="noopener noreferrer"&gt;Coming from Kakoune&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>rust</category>
      <category>vim</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
