<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hans L'Hoest]]></title><description><![CDATA[Hans L'Hoest]]></description><link>https://hans.lhoest.eu</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 09:26:50 GMT</lastBuildDate><atom:link href="https://hans.lhoest.eu/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[The Unification of Commands and Skills in Claude Code]]></title><description><![CDATA[In Claude Code, a skill is a modular function-like component that can process requests — like /code-review or /commit. As of version 2.1.1, these skills…]]></description><link>https://hans.lhoest.eu/the-unification-of-commands-and-skills-in-claude-code</link><guid isPermaLink="true">https://hans.lhoest.eu/the-unification-of-commands-and-skills-in-claude-code</guid><category><![CDATA[claude-code]]></category><category><![CDATA[skills]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Mon, 19 Jan 2026 12:10:49 GMT</pubDate><content:encoded><![CDATA[<p>In Claude Code, a <em>skill</em> is a modular function-like component that can process requests — like <code>/code-review</code> or <code>/commit</code>. As of version 2.1.1, these skills can be directly invoked through slash commands. So a <code>code-review</code> skill can also be invoked directly as <code>/code-review</code>. I understand why they added this feature. Sometimes it is not clear how exactly a skill will be triggered using natural language. To help, I had already started creating custom commands that did exactly this: simply invoke the skill directly and nothing else.</p>
<p><em>For background, because you may be noticing them in some of the outputs and inputs to Claude Code, I want to combine two skills:</em></p>
<ul>
<li><p><code>text-grader</code><em>: grade a text for correct UK English spelling and grammar</em></p>
</li>
<li><p><code>til-rules-checker</code><em>: check my</em> <a target="_blank" href="https://hanlho.com/p/til-rules-to-remember/"><em>'Today I Learned' format rules</em></a> <em>for my</em> <a target="_blank" href="https://til.hanlho.com"><em>Today I Learned site</em></a></p>
</li>
</ul>
<p>But today I wanted to combine two skills. Composition is one of the main features of skills. I asked Claude Code to create a custom slash command for direct invocation. This would save me from having to guess a phrasing that triggers both skills at once. (Alternatively, I could have manually created a simple markdown file in <code>commands</code>. However, I suspected Claude Code might have a more sophisticated mechanism in place.)</p>
<p>Interestingly Claude Code did not want to go this way, instead it suggested to me:</p>
<pre><code class="lang-rust">In Claude Code, user-invokable commands like /review-code or /commit ARE skills. There<span class="hljs-symbol">'s</span> no separate <span class="hljs-string">"command"</span> concept - skills are what provide the /command-name interface.

The standard pattern <span class="hljs-keyword">for</span> what you want is exactly a skill that composes other skills/agents.
</code></pre>
<p>When I pushed for a custom slash command, Claude Code kept resisting. Below, I interleave its output with some of my comments:</p>
<pre><code class="lang-bash">❯ I would like you to create a custom slash <span class="hljs-built_in">command</span> that invokes those two skills. I <span class="hljs-keyword">do</span> not want a specific skill <span class="hljs-keyword">for</span> this.
</code></pre>
<p>Here is its thinking output:</p>
<pre><code class="lang-markdown">∴ Thinking…

  The user wants a "custom slash command" that invokes two skills, but doesn't want to create a new skill for this.

  Let me think about what options exist in Claude Code:

<span class="hljs-bullet">  1.</span> Skills - These ARE the slash commands. /grade-text is a skill.
<span class="hljs-bullet">  2.</span> Agents - These are invoked via the Task tool, not directly as slash commands.
<span class="hljs-bullet">  3.</span> Hooks - These are shell commands that run in response to events, not user-invokable commands.
</code></pre>
<p>Note: it 'thinks' Commands are not an option.</p>
<pre><code class="lang-markdown">  There's no separate "custom slash command" mechanism outside of skills. Skills ARE the slash commands.
</code></pre>
<p>Interesting, <code>Skills ARE the slash commands.</code>.</p>
<pre><code class="lang-markdown">I think the user might be confused about the terminology, or they want something that doesn't exist in the current Claude Code architecture. Let me clarify this.

Actually, wait - maybe they want something in their shell? Like a bash alias or script that invokes Claude Code with specific prompts?

Or perhaps they want me to just explain that what they're asking for doesn't exist as a separate concept - slash commands ARE skills in Claude Code.

Let me be direct about this - there's no "custom slash command" mechanism separate from skills. The only way to create a /something command is to create a skill.
</code></pre>
<p>The end of its 'thinking'. Conclusion:</p>
<pre><code class="lang-markdown">
⏺ There's no "custom slash command" mechanism separate from skills in Claude Code. Skills ARE the slash commands - /grade-text exists because there's a grade-text skill.

  Your options:

<span class="hljs-bullet">  1.</span> Create a skill (what I proposed) - This IS how you get a custom /command
<span class="hljs-bullet">  2.</span> Use a shell alias/script - A bash function that invokes Claude with a specific prompt
<span class="hljs-bullet">  3.</span> Just ask me directly each time - "Run til-rules-checker and grade-text on this file"

  There's no middle ground where you get a /review-til command without defining a skill. That's how the architecture works.
</code></pre>
<p>First, I thought it had hallucinated, although it sounded pretty convinced. Then I asked Claude Code to <code>list all available skills</code> and it turns out it includes all commands too, even those that do not have a skill associated with it. So it seems to actually be the case that Claude Code sees <em>every</em> custom command as a shortcut to skills.</p>
<p>I checked the docs, but there is no explicit statement of that, but <a target="_blank" href="https://code.claude.com/docs/en/skills#when-to-use-skills-versus-other-options">I found</a> : <em>The key difference: Skills are triggered automatically by Claude based on your request, while slash commands require you to type /command explicitly.</em> This can be interpreted as having a much deeper meaning than how I initially read it.</p>
<p>The <code>commands</code> directory, where you define custom commands, still exists and can be used. What you create there will be listed as a skill too, which can be confusing. I do hope they do not remove it entirely because the concept of a command is easier to understand and has a lower-barrier to entry.</p>
<p>In other words, in Claude Code you do not have to build custom commands, you can build skills instead. Direct invocation of the skill? Just call it via an associated slash</p>
<p><strong><em>A note on naming</em></strong> <em>Just last week, while reviewing my</em> <a target="_blank" href="https://github.com/lhohan/agent-chisels/tree/aacea41462dd5f7ec256bd7a90b0c6ab303968de/skills/evaluating-skills"><em>skill evaluator</em></a><em>, I came across the following</em> <a target="_blank" href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices#naming-conventions"><em>naming conventions on Claude Code</em></a><em>: We recommend using gerund form (verb + -ing) for Skill names, as this clearly describes the activity or capability the Skill provides. ... Acceptable alternatives:</em></p>
<ul>
<li><p><em>Noun phrases: pdf-processing, spreadsheet-analysis</em></p>
</li>
<li><p><em>Action-oriented: process-pdfs, analyze-spreadsheets</em></p>
</li>
</ul>
<p><em>I changed my public skills based on this. However, given the close relation between skills and commands that now appears evident, I think the action-oriented convention is more appropriate. I will be changing my skills back to action-oriented naming:</em> <code>documenting-architectural-decisions</code> <em>—&gt;</em> <code>document-decision</code><em>,</em> <code>detecting-jujutsu</code> <em>-&gt;</em> <code>detect-vcs</code><em>,</em> <code>evaluating-skills</code> <em>-&gt;</em> <code>evaluate-skill</code><em>, etc.</em></p>
<h2 id="heading-are-commands-capabilities">Are commands capabilities?</h2>
<p>At first, not being a language expert, it seemed strange to equate 'capability' and 'command'. But given this definition of capability, it does not sound <em>too</em> far-fetched: <em>"Capability refers to the overall potential or capacity to achieve outcomes, integrating skills, knowledge, tools, behaviours, and resources."</em>. This sounds like what a command can do too.</p>
<p>I am not a fan of being imprecise with naming, but for me, this is good enough. I am stepping over this semantics rabbit hole for now. We are seeing bleeding-edge evolution where features are developed as they are learned from. It is probably logical to see these shifts in naming until they settle. I expect this is not the end of it.</p>
<h2 id="heading-where-this-seems-to-be-heading-speculation">Where this seems to be heading (speculation)</h2>
<p>If skills are becoming the primary unit of capability, this is starting to look more like a <strong>"composable agentic API"</strong>. In this model, commands are no longer only instructions but direct entry points into a modular system of capabilities.</p>
<p>This solves the friction point I mentioned: the "discovery problem". Relying on an LLM to automatically trigger the right skill is powerful but unpredictable. By unifying skills and commands, Claude Code allows for a hybrid approach: automatic detection for speed, and direct invocation for precision.</p>
<p>If this pattern holds, the future of "LLM agents" may contain libraries of discrete, callable capabilities that can be orchestrated by both humans and other agents.</p>
<h2 id="heading-how-about-other-agentic-coding-tools">How about other agentic coding tools?</h2>
<p>Note that making every skill also a command is currently a Claude Code-specific feature. However, I think it would make sense if other CLI agents adopted this approach too. As I mentioned, I was already doing the same thing manually.</p>
<p>Would I recommend only building skills? The main argument against is lock-in into Claude Code. Some tools may follow suit, others not, which would mean you cannot make use of the skills you build. Fortunately, it is relatively low effort to create 'wrapper' commands for skills, create the command markdown and trigger the skill, but it is a little more friction.</p>
<p>I never use Claude Code solely, but I like the fact you can combine skills, so I will probably try out resorting to simple command wrappers for now.</p>
<p>If Claude Code's model unifies commands and skills, and commands are only shortcuts to skills, it pushes LLM agents closer to something like a composable agentic API where every capability can be modular and directly callable.</p>
]]></content:encoded></item><item><title><![CDATA[Agent Chisels: My LLM Agent Skills and Workflows]]></title><description><![CDATA[I have been meaning to share more about my LLM workflows and tooling for a while, partly to have a reference for conversations, but mostly to learn in…]]></description><link>https://hans.lhoest.eu/agent-chisels-my-llm-agent-skills-and-workflows</link><guid isPermaLink="true">https://hans.lhoest.eu/agent-chisels-my-llm-agent-skills-and-workflows</guid><category><![CDATA[claude-code]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[llm]]></category><category><![CDATA[opencode]]></category><category><![CDATA[ADR]]></category><category><![CDATA[jj]]></category><category><![CDATA[jujutsu]]></category><category><![CDATA[developer experience]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Tue, 13 Jan 2026 20:15:54 GMT</pubDate><content:encoded><![CDATA[<p>I have been meaning to share more about my LLM workflows and tooling for a while, partly to have a reference for conversations, but mostly to learn in public.</p>
<p><a target="_blank" href="https://github.com/lhohan/agent-chisels">Agent Chisels</a> is where I will be sharing the custom artefacts (primarily <code>skills</code>, with <code>commands</code> and <code>agents</code> to follow) that I find most useful and actively use in my daily workflow.</p>
<h2 id="heading-skills">Skills</h2>
<p>I have shared two <a target="_blank" href="https://agentskills.io/home">skills</a> I use almost daily. In addition, I've also included a third skill, more of a meta-skill for evaluating other skills, which I used when reviewing these for release. I actively use this skill to iterate and improve my skills so it fits the goal of this project.</p>
<ul>
<li><code>documenting-architectural-decisions</code>: Document and manage architectural decisions using ADRs. Supports Y-statement and traditional ADR formats. Used for creating, reviewing, or searching decision records. This repository contains several examples of decision logs created with this skill, for example, <a target="_blank" href="https://github.com/lhohan/agent-chisels/blob/main/plugins/jj/decision-log.md">here</a> is the one for the <code>jj</code> plugin.</li>
</ul>
<p>I use <a target="_blank" href="https://www.jj-vcs.dev/latest/"><code>jj</code> or <code>Jujutsu</code></a>, an alternative version control system, in all my projects. Getting LLMs to work reliably with it is quite a challenge, so I have a skill to detect and remind an LLM to use <code>jj</code> and one to add the capability of using <code>jj</code>. The <a target="_blank" href="https://code.claude.com/docs/en/plugins">Claude Code plugin</a> also adds a <code>use-jj</code> command and a hook to remind an LLM of using <code>jj</code>.</p>
<ul>
<li><p><code>detecting-jujutsu</code> — Verify if the current repository uses Jujutsu (jj) instead of git. Used when confirming VCS state before operations.</p>
</li>
<li><p><code>using-jujutsu</code> — Detailed guidance on Jujutsu (jj) VCS operations including committing, pushing, searching history, and working with revisions/revsets.</p>
</li>
</ul>
<p>And finally, there is the meta-skill to evaluate skills. <a target="_blank" href="https://github.com/lhohan/agent-chisels/blob/main/skills/evaluating-skills/examples/EXAMPLE.md">Here is an example</a> of a report generated by this skill.</p>
<ul>
<li><code>evaluating-skills</code> — A skill to evaluate skills against best practices for size, structure, examples, and prompt engineering. Use when reviewing skills for deployment, optimisation, or standards compliance.</li>
</ul>
<p>To use these, you can use the Claude Code plugin system or install them manually; take a look at the <a target="_blank" href="https://github.com/lhohan/agent-chisels/tree/main?tab=readme-ov-file#installation">installation section</a> for more details.</p>
<h2 id="heading-a-little-on-the-setup-of-the-repository">A little on the setup of the repository</h2>
<p>I use symbolic links liberally to avoid duplication. For example, symbolic links allow me to share the independent skills with the Claude Code plugin while also using them in this project itself.</p>
<p>All skills I share in this repo are dynamically linked to my <code>~/.claude/skills</code> directory. Note that this is also the easiest way to make these skills <a target="_blank" href="https://agentskills.io/home#adoption">available to other LLM CLI agents</a> like Opencode, Codex, and Mistral Vibe. In this repo, I have mostly worked with <a target="_blank" href="https://opencode.ai">Opencode</a> and the skills in the <code>.claude</code> location just work with it.</p>
<pre><code class="lang-bash">❯ ls -l .claude/skills
l... detecting-jujutsu -&gt; ../../skills/detecting-jujutsu
l... documenting-architectural-decisions -&gt; ../../skills/documenting-architectural-decisions
l... evaluating-skills -&gt; ../../skills/evaluating-skills
l... using-jujutsu -&gt; ../../skills/using-jujutsu
d... verify-release-readiness
</code></pre>
<p>The <code>l</code> at the beginning of each line stands for symbolic link. You'll notice one real directory in there, that is a skill only relevant to this repository.</p>
<h2 id="heading-future-plans">Future plans</h2>
<p>I'll be adding LLM artefacts as I move my own setup more and more to this repository. Since I'm trying to reuse as much as possible (within reason) between different LLM agents, I need a central location anyway, preferably vendor neutral yet pragmatic (e.g. using the <code>.claude/skills</code> location to share skills). Also, my hope is to make this repository a more live and automatically up-to-date version of the artefacts I use day to day.</p>
<p>Related to this, I am thinking of creating a setup similar to <a target="_blank" href="https://github.com/webpro/awesome-dotfiles">dotfiles</a> (where developers share configuration files) but for LLM agent configurations: 'agentfiles'. I intend to share my LLM agent configurations and how I integrate them. Let me know if you would be interested in this or are already sharing.</p>
]]></content:encoded></item><item><title><![CDATA[My Best Technical Decision of 2025: Moving to Proton for Peace of Mind]]></title><description><![CDATA[This year I bit the bullet and moved mail, calendar and drive from Google to Proton. Knowing that my family is not being profiled when, for example, I plan…]]></description><link>https://hans.lhoest.eu/my-best-technical-decision-of-2025-moving-to-proton-for-peace-of-mind</link><guid isPermaLink="true">https://hans.lhoest.eu/my-best-technical-decision-of-2025-moving-to-proton-for-peace-of-mind</guid><category><![CDATA[Proton]]></category><category><![CDATA[privacy]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Mon, 22 Dec 2025 23:00:00 GMT</pubDate><content:encoded><![CDATA[<p>This year I bit the bullet and moved mail, calendar and drive from Google to Proton. Knowing that my family is not being profiled when, for example, I plan a doctor's appointment feels liberating.</p>
<p>Sure, there were fun and useful technical improvements, like getting a podcast microphone because these days I am literally talking to my computer more than ever because of LLM agents. And definitely, CLI agents like Claude Code are changing software development dramatically. Either of those probably would make a flashier blog post. But when it comes to giving me <em>peace of mind</em>, moving to a private and European alternative to Big Tech beats everything.</p>
<p>There are quite a few reasons why.</p>
<p>The main trigger was actually ... my wife. When she realised all the documents we had on Google Drive that related to our children she came on board. Without her moving with me, we would still be sharing email and calendars in Google, which made it all a lot more futile. It is strange, we have always found privacy important but sort of accepted the convenience of it all until we came to realise: how we act and what we share online on which platforms, more likely than not, will impact our children too.</p>
<p>Other reasons for moving:</p>
<ul>
<li><p>The US-Europe relationship has fundamentally shifted. The policymakers in the US are using Big Tech platforms to put political pressure on Europe. And the other way around, Big Tech, all US-based, use the shifted policies to put pressure on our European privacy protections because it goes against their business models.</p>
</li>
<li><p>The rise of AI. While I use it a lot, AI is also trained on the data we provide, online and while using their products. They already have a lot on us but AI has added a whole new dimension. And even if a platform says they do not use it to train, in the end what matters is that they <em>can</em> and we have to <em>trust</em> them that they do not. They can change policy when they want to. <a target="_blank" href="https://pluralistic.net/2023/01/21/potemkin-ai/#hey-guys">Enshittification</a> is real.</p>
</li>
</ul>
<p>So to be explicit, we moved mail, calendar and drive, which we all had on Google, to Proton. We also stopped using Google Photos to back up our photos. Since we had at least 3 accounts to move, we are now on the <a target="_blank" href="https://proton.me/family">family plan</a>. Meanwhile I am also using Proton Authenticator and Proton Pass.</p>
<p>Was it hard to migrate? Not really. For mail and calendar you can import all your mails easily with Proton's 'Easy Switch' (it worked). Drive was a bit more involved but pretty straightforward too (it makes use of Google Takeout). Note: I mail from my own domain so I did not need to change email addresses. My family has a shared Gmail address, but since Gmail supports e-mail forwarding, we’ve been able to migrate the most important accounts first and move the rest gradually. Less and less mail is passing through Gmail.</p>
<p>Why Proton and not one of the other services? When I researched it came down to Proton or Tuta. I chose Proton because their pricing did not scale linearly with the number of users as it would with Tuta: Proton has a family plan which means we could have a lot more users for a lower price. Also, Proton offers a lot more included services, all privacy-oriented.</p>
<p>Migrating is not all roses but I honestly have had no second thoughts in light of my 'whys of moving'. Proton Drive in particular is not at the level of Google Drive (slow).</p>
<p>Of course, almost everyone I interact with is on some Big Tech provider platform, I am under no illusions on where my data is, but at least for our family's internal planning and communication it makes a difference.</p>
<p>Thank you for reading, Hans</p>
<p>PS (really): This post is not intended as a promotional post for Proton. But <em>if</em> you decide to give it a try or move, please consider using my <a target="_blank" href="https://pr.tn/ref/SNHEFJYZ">referral link</a> (details on the referral program <a target="_blank" href="https://proton.me/support/referral-program">here</a>).</p>
]]></content:encoded></item><item><title><![CDATA[Implementing an Urgent Feature with Opencode, Claude, and Zed]]></title><description><![CDATA[This is a short post to share a positive experience I had using an LLM agent to quickly add a feature to an existing personal CLI time-tracking…]]></description><link>https://hans.lhoest.eu/implementing-an-urgent-feature-with-opencode-claude-and-zed</link><guid isPermaLink="true">https://hans.lhoest.eu/implementing-an-urgent-feature-with-opencode-claude-and-zed</guid><category><![CDATA[testing dsl]]></category><category><![CDATA[opencode]]></category><category><![CDATA[llm]]></category><category><![CDATA[claude-code]]></category><category><![CDATA[Zed]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Wed, 17 Dec 2025 23:00:00 GMT</pubDate><content:encoded><![CDATA[<p>This is a short post to share a positive experience I had using an LLM agent to quickly add a feature to an existing personal CLI <a target="_blank" href="https://github.com/lhohan/simple-time-tracker">time-tracking application</a>. Below, I describe how I added it using Zed, Opencode and Claude.</p>
<p>To start, I wasn't even sure the feature I needed existed in a text-based time-tracking application I use day-to-day to keep track of what I work on. My application <em>has</em> a way of getting the information I needed out, but the feature that should make this easy was missing details on <em>what</em> I had actually worked on.</p>
<p>So, should I invest the time and expand the feature, or accept that it was missing for now and spend a lot more time on manual work? I could try an LLM agent and see if it could help me implement the change quickly. Each choice had downsides: spending <em>more</em> time digging through time-tracking information to fill in timesheets is not very appealing, and implementing the feature (with or without agents) could become a time sink. I also had lots of other work planned for the day.</p>
<p>I decided to implement it, telling myself I’d stop if it didn’t look like I had a clear path to finish it within one hour.</p>
<p>Because I think it is relevant to the (spoiler) successful implementation, let me share a little about this project. It is a Rust codebase that I use to test development practices, and I think it is structured and implemented fairly well. The CLI, the main part of the application, has over 95% coverage using behaviour-driven, DSL-style acceptance tests. This setup gives the LLM models both structure and plenty of examples to follow when adding tests. I will not go into the details here, but I have added a brief example at the end. Also noteworthy: this is a small project, which definitely makes a difference.</p>
<p>For this implementation, I used Zed with its Opencode integration. Lately, I have been on the command line building smaller apps prompt-driven, without worrying much about the fine details. But for this project the actual implementation mattered to me, so I wanted to track changes more closely in an IDE. Opencode taps into my Claude subscription; I can use Opus for planning and Haiku for implementation.</p>
<p>Honestly, I was very pleased with how smoothly this feature was implemented. What contributed to this was the plan-first approach before implementing anything. For anything non-trivial, always plan first!</p>
<p>Here is a high-level overview of my interaction with Opencode in Zed:</p>
<ul>
<li><p>Investigate</p>
<ul>
<li>I started with Claude Opus and asked whether the feature I needed already existed, rather than looking it up myself because I was under time pressure. It didn't.</li>
</ul>
</li>
<li><p>Plan</p>
<ul>
<li><p>I asked Claude to plan the feature and use a test-driven approach. It broke the work into nine tests, and I asked it to pause after each one for me to review.</p>
</li>
<li><p>Before starting any implementation, I asked it to write the plan to a Markdown file in the backlog.</p>
</li>
<li><p><em>Then I reviewed the plan.</em> That sounds more superficial than what I did, but I cannot say much more than that it simply looked good.</p>
</li>
</ul>
</li>
<li><p>Implementation</p>
<ul>
<li><p>I switched to Claude Haiku for implementation.</p>
</li>
<li><p>It started off well and asked for feedback after each test cycle, and I asked for a refactor to remove duplication.</p>
</li>
<li><p>While it was implementing, I discovered I wanted a different kind of description for the tasks, so I told it to change that in the plan. I did not switch models for this.</p>
</li>
<li><p>The plan was updated in all the correct places.</p>
</li>
<li><p>After this, the workflow changed: it stopped asking me for feedback after each step, and before I realised it, seven of nine tests were running. Not the TDD flow I asked for, but it worked.</p>
</li>
<li><p>Instead of asking it to redo anything, I reviewed the implementation (it was not a lot of code) and continued.</p>
</li>
<li><p>I ran the program against my own data and everything worked as intended. Aside from the one refactoring to remove duplication, I did not change the code.</p>
</li>
<li><p>One loose end I had to remind it of: update the documentation.</p>
</li>
</ul>
</li>
</ul>
<p>I have shared the full session here: <a target="_blank" href="https://opncd.ai/share/aBYozahW">https://opncd.ai/share/aBYozahW</a>.</p>
<p>There were some pitfalls of using LLMs that I ran into, and I admittedly leaned into them. Speed beating accuracy is a real risk. The feature works and the code looks good, but if I were coding hands-on I probably would have reviewed more thoroughly. It is hard to tell if the end result would have been <em>drastically</em> better. It requires discipline to not start running along with the agent and to not start accepting everything if the outcome is as expected. The LLM gave me what I needed and any follow-up changes should be small, but I still see little things I would have done differently if I done it manually (which other developers may disagree with too, to be fair). For example, some of the tests could do with fewer assertions. The current code organisation makes that easy to address later. <em>If</em> any tech debt was added, it is very small and under control, so I stopped, generated my reports and filled in my timesheets.</p>
<p>Overall, working in Zed made it easy to review the code, and combining Opencode's plan phases kept things organised. The existing, structured DSL-based test approach with plenty of examples also helped.</p>
<h2 id="heading-extra-how-an-llm-can-work-better-with-a-well-structured-dsl">Extra: How an LLM can work better with a well-structured DSL</h2>
<p>To give some context, what the application needed was to combine two existing flags: <code>breakdown</code> and <code>details</code>. The time <code>breakdown</code> reports were already implemented but were only reporting time spent per day, week, month or year. What I needed were details of the projects I had worked on. The application already had a <code>details</code> flag but it was not implemented for this view.</p>
<p>In the test DSL, the flags are set by calling methods in the <code>given</code> setup phase: <code>breakdown_flag(...)</code> and <code>details_flag()</code>. The breakdown feature did not implement the <code>details</code> flag, so it was not used in the tests for this feature. What is nice (and I credit this way of testing for it) is that the LLM was able to figure out the <code>details_flag</code> was already present and decided to re-use it: <code>Cmd::given().details_flag()....</code>. Here is an example of such a DSL test:</p>
<pre><code class="lang-rust"><span class="hljs-meta">#[test]</span>
<span class="hljs-function"><span class="hljs-keyword">fn</span> <span class="hljs-title">breakdown_day_with_details_should_show_tasks_per_day</span></span>() {
    <span class="hljs-keyword">let</span> some_content = <span class="hljs-string">r"## TT 2020-01-01
- #project-a 1h Task A
- #project-b 2h Task B"</span>;

    Cmd::given()
        .details_flag()
        .breakdown_flag(<span class="hljs-string">"day"</span>)
        .tags_filter(&amp;[<span class="hljs-string">"project-a"</span>, <span class="hljs-string">"project-b"</span>])
        .at_date(<span class="hljs-string">"2020-01-01"</span>)
        .a_file_with_content(some_content)
        .when_run()
        .should_succeed()
        .expect_task_with_duration(<span class="hljs-string">"project-a"</span>, <span class="hljs-string">"1h 00m"</span>)
        .expect_task_with_duration(<span class="hljs-string">"project-b"</span>, <span class="hljs-string">"2h 00m"</span>);
}
</code></pre>
<p>Thank you for reading,</p>
<p>Hans</p>
]]></content:encoded></item><item><title><![CDATA[TIL rules to remember]]></title><description><![CDATA[I have been writing "Today I Learned" posts (TILs) for a few weeks now and I started writing them as a complement to long form blogging. But I found myself…]]></description><link>https://hans.lhoest.eu/til-rules-to-remember</link><guid isPermaLink="true">https://hans.lhoest.eu/til-rules-to-remember</guid><category><![CDATA[writing]]></category><category><![CDATA[TIL]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Mon, 15 Dec 2025 23:00:00 GMT</pubDate><content:encoded><![CDATA[<p>I have been writing "Today I Learned" posts (<a target="_blank" href="https://tils.hanlho.com">TILs</a>) for a few weeks now and I started writing them as a complement to long form blogging. But I found myself spending 45-60 minutes, sometimes longer, per TIL instead of 15-25. This defeated the purpose of quickly recording and internalizing learnings.</p>
<p>So I went back to the <a target="_blank" href="https://dev.to/jbranchaud/how-i-built-a-learning-machine-45k9">source</a> and came up with these reminders to myself:</p>
<ul>
<li><p><strong>Keep them short and focused.</strong> Target less than 250 words.</p>
</li>
<li><p><strong>Spend less than 25 minutes on writing.</strong> Ideally 15.</p>
<ul>
<li><strong>Write only about what is clearly figured out.</strong> Too much research while writing endangers the constraints.</li>
</ul>
</li>
<li><p><strong>Remember: a TIL is <em>not</em> blogging.</strong></p>
</li>
<li><p><strong>Experiment with including more high-level technical learnings as well.</strong> So far most TILs have been tooling and LLM tips. Also include architecture, design, testing, process.</p>
</li>
</ul>
<p><em>TILs should be quick captures, not polished essays. The value is in consistency and volume, not perfection.</em></p>
]]></content:encoded></item><item><title><![CDATA[DORA Research: Evidence-Based and Scientifically Grounded Software Engineering]]></title><description><![CDATA[Years ago, the book Accelerate changed my view on software development and delivery fundamentally. Of course, there are its findings (dare I say…]]></description><link>https://hans.lhoest.eu/dora-research-evidence-based-and-scientifically-grounded-software-engineering</link><guid isPermaLink="true">https://hans.lhoest.eu/dora-research-evidence-based-and-scientifically-grounded-software-engineering</guid><category><![CDATA[dora]]></category><category><![CDATA[grounded]]></category><category><![CDATA[Software Engineering]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Thu, 09 Oct 2025 09:18:25 GMT</pubDate><content:encoded><![CDATA[<p>Years ago, the book <a target="_blank" href="[https://itrevolution.com/product/accelerate/](https://itrevolution.com/product/accelerate/)">Accelerate</a> changed my view on software development and delivery fundamentally.</p>
<p>Of course, there are its findings (dare I say 'revolutionary'?) on which technical and organisational factors drive high performance software delivery. But that is not what I want to highlight here.</p>
<p><strong>What makes this book so valuable is that it is grounded in scientific research.</strong></p>
<p>The first years of DORA research formed the basis for the book and documented their scientific approach. And every year they keep on publishing their research results. A few weeks ago their latest report came out. This is the best part, as is with science, when the landscape changes, other evidence surfaces and these reports keep on giving valuable insights.</p>
<p>This approach is completely different from other frameworks in the industry that are adopted because of popularity (I have done that) or commercial interests.</p>
<p>Inevitably this year's report is influenced heavily by the impact of AI, so much so that this year they named their report: "The State of AI-assisted Software Development".</p>
<p>Links to the most recent science-based research:</p>
<ul>
<li><p>DORA Report 2025 Infographic, if you want to get the high-level overview: <a target="_blank" href="https://dora.dev/research/2025/2025-DORA-Report-Infographic.pdf">https://dora.dev/research/2025/2025-DORA-Report-Infographic.pdf</a></p>
</li>
<li><p>The full report, +100 pages but if you are into this topic it's an evening's read: <a target="_blank" href="https://dora.dev/research/2025/dora-report/">https://dora.dev/research/2025/dora-report/</a></p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[My agentic coding stack for October 2025]]></title><description><![CDATA[After wrapping my head around the constant changes in LLM subscriptions and performance, here’s my new coding stack for October 2025: Warp Pro: my go-to…]]></description><link>https://hans.lhoest.eu/my-agentic-coding-stack-for-october-2025</link><guid isPermaLink="true">https://hans.lhoest.eu/my-agentic-coding-stack-for-october-2025</guid><category><![CDATA[llm]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[Warp]]></category><category><![CDATA[Zed]]></category><category><![CDATA[open source]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Sun, 05 Oct 2025 22:00:00 GMT</pubDate><content:encoded><![CDATA[<p>After wrapping my head around the constant changes in LLM subscriptions and performance, here’s my new coding stack for October 2025:</p>
<ul>
<li><p>Warp Pro: my go-to agentic CLI, speedy and reliable for coding and task automation. Supports most top end LLMs.</p>
</li>
<li><p>Zed Pro (using the $20 trial, then €10/month)</p>
</li>
<li><p>OpenCode for agentic CLI dev (local + cloud models, easy swapping, no lock-in)</p>
</li>
</ul>
<p>I dropped Claude Code and did not subscribe to Codex. If this turns out to be a bad idea, I can always resubscribe again.</p>
<p>My main decision influences: cost control, flexibility and avoiding vendor lock-in (Claude Code's past month changes have this effect).</p>
<p>After spending a few months in the CLI I want to look again at working more in an IDE, hence Zed is on this list.</p>
<p>Note: I do not subscribe to Max plans, I combine multiple lower cost plans.</p>
]]></content:encoded></item><item><title><![CDATA[Grounded decision records from AI conversations]]></title><description><![CDATA[If you've read some of my posts before or worked with me, you know I like using Architectural Decision Records (ADRs) for lots of reasons. To me the most…]]></description><link>https://hans.lhoest.eu/grounded-decision-records-from-ai-conversations</link><guid isPermaLink="true">https://hans.lhoest.eu/grounded-decision-records-from-ai-conversations</guid><category><![CDATA[decision-records]]></category><category><![CDATA[claude-code]]></category><category><![CDATA[ADR]]></category><category><![CDATA[architecture-decisions]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[llm]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Tue, 02 Sep 2025 08:09:08 GMT</pubDate><content:encoded><![CDATA[<p>If you've read some of my posts before or worked with me, you know I like using Architectural Decision Records (ADRs) <a target="_blank" href="https://hans.lhoest.eu/less-mentioned-benefits-of-architecture-decision-records">for lots of reasons</a>. To me the most important one is documenting the why of a decision.</p>
<p>If you've worked with AI models before, you've probably asked them for options when brainstorming solution ideas when you're not sure about direction. In this situation, I've found it quite easy, maybe even more logical, to document the decision in a decision record with help from the AI model you have been working with. After all, you got feedback from it anyway.</p>
<p>This post briefly explains how I use Claude Code to write decision records (not necessarily architectural ones) when it's helped me make a decision. My goal isn't to dive into an elaborate investigation into the pros and cons of this approach, but I will touch upon a few points. The process is not specific to Claude Code but can be adapted to other AI models or tools as well.</p>
<p>Here's the process I've been following:</p>
<p><strong>1. Ask for the decision record during the conversation</strong></p>
<p>After going back and forth on options and reaching a decision, I ask something like:</p>
<pre><code class="lang-bash">Given your feedback, I think Option 2 is the way I want to implement.

Principally I <span class="hljs-keyword">do</span> not want to complicate things with 2 tools at the moment.

Before implementing, summarise this into an ADR <span class="hljs-keyword">in</span> the <span class="hljs-string">'adr/'</span> directory as a way of confirming our mutual understanding.

So, write an ADR first, <span class="hljs-keyword">then</span> ask me to confirm the ADR. Once I <span class="hljs-keyword">do</span>, <span class="hljs-built_in">continue</span> implementing.
</code></pre>
<p>The phrasing is a bit sloppy, as this is what I actually wrote in my recent changes, but that's OK, Claude Code can work with this.</p>
<p><strong>2. Review and edit the generated draft</strong></p>
<p>What it comes up with initially is actually pretty good. A lot will depend on the conversation you had with it and the input you gave it, of course. But the decision record mostly contains what was discussed and decided quite well. The text will be structured like an ADR even without me having to explain what an ADR is. It even picked up the decision record's next number too.</p>
<p>Usually content editing is needed, but having a complete draft to start with makes a big difference instead of starting from a blank page. So after the draft is written, I edit it mostly on content only.</p>
<p><strong>3. Use as implementation foundation</strong></p>
<p>When done, the decision is basically documented and it can serve as the basis of our next step. To make the continuation based on the decision record only, at this point you could clear or restart the Claude Code session to start fresh.</p>
<p>This last step is meant to ground the decision record in reality. When you include the decision record as basis for implementation, it becomes living documentation that creates a feedback loop. During implementation you may encounter issues not anticipated during the decision making process. These can then be documented in the decision record, creating a continuous improvement cycle.</p>
<p>I often use my home projects as playgrounds to experiment with new ideas, technologies, and methodologies I want to try out because they're new to me or because I want to confirm they're still useful. This is why most of my home projects serve two purposes: build the thing and apply what I think are best practices.</p>
<p>In this particular project, I felt the need to create decision records. They aren't necessarily architecture related decisions but more decisions I'd like to document to remember why I went this way. I mainly make use of the markdown format of ADRs to document my decisions.</p>
<p>Generally speaking, this is mostly an experiment at the moment. I'm trying this out in the setting of personal projects, but I think it may lower the bar for writing decision records in general. Not everyone wants to go to great lengths to record decisions, even if they see the value. Personally, I think it doesn't need to take a lot of time to document a decision, yet I often end up spending much more time on it than I anticipated or hoped for when I started writing one.</p>
<p><a target="_blank" href="https://github.com/lhohan/references/blob/main/adr-example/005-enhanced-notes-status-tracking-build-command.md">Here</a> is a decision record example for those interested. It is written by an LLM mostly. I know this may be controversial, but it is also useful. I do not think this is 'AI slop', if you review it and it all makes sense, I don't see much need for a complete rewrite. Having a documented decision is worth more than not documenting because it was written by AI. I haven't tried this in a team or organisational setting, but I'm curious to see how it works out and how people would feel about it. In any case, whoever created the decision record with help of an AI is always responsible for the decision and its recording.</p>
<p>Also, "working with an LLM replaces thinking" is an often heard argument. I agree and it's a reason for concern for me too, the impact on my own thinking. But an LLM also comes up with good ideas. It is easy and tempting to simply accept what's there. Maybe not all decisions require deep thinking though, and we just want to note down why we're doing the thing we're doing this way.</p>
<p>I am also thinking it may be useful to add to the decision record to what extent an LLM was used to generate the content. Firstly it will get it out of the way when people are suspicious of AI being used and to what extent. I think this is comparable to time or other constraints one has when writing ADRs or decision records in general: this may be worthwhile to document too. Sometimes there is not enough time to think deeply about the decision or consider more options and you have to make a decision with quite some unknowns. In these cases I recommend documenting this in the decision record too.</p>
<p>Finally, there are quite some interesting things that can be done next. When working with Claude Code, if you would create decision records more often it makes sense to create a command to use as 'saved prompt'. I actually created an agent for this as well (to try out agents mostly, I admit).</p>
<p>I've written about ADRs before, if you want to read more about them:</p>
<ul>
<li><p><a target="_blank" href="https://hans.lhoest.eu/less-mentioned-benefits-of-architecture-decision-records">Less Mentioned Benefits of Architecture Decision Records</a></p>
</li>
<li><p><a target="_blank" href="https://hans.lhoest.eu/ground-your-adrs-with-a-verification-section">Ground Your ADRs with a Verification Section</a></p>
</li>
</ul>
<p>Thank you for reading, Hans</p>
]]></content:encoded></item><item><title><![CDATA[Examples of using Claude Code's output styles]]></title><description><![CDATA[A very short post on Claude Code’s new output styles feature which I have been experimenting with in the past days. Here are some actual examples of how…]]></description><link>https://hans.lhoest.eu/examples-of-using-claude-codes-output-styles</link><guid isPermaLink="true">https://hans.lhoest.eu/examples-of-using-claude-codes-output-styles</guid><category><![CDATA[claude-code]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Fri, 22 Aug 2025 19:33:12 GMT</pubDate><content:encoded><![CDATA[<p>A very short post on Claude Code’s new <a target="_blank" href="https://hans.lhoest.eu/claude-code-output-styles">output styles</a> feature which I have been experimenting with in the past days.</p>
<p>Here are some actual examples of how you can leverage output styles to change ‘hard-configured’ Claude Code behaviour:</p>
<ul>
<li><p><a target="_blank" href="https://hans.lhoest.eu/remove-claude-code-branding-from-commit-messages-using-output-styles">Remove Claude Code branding from commit messages</a></p>
</li>
<li><p><a target="_blank" href="https://hans.lhoest.eu/how-to-use-jujutsu-jj-with-claude-code">Use Jujutsu with Claude Code</a></p>
</li>
</ul>
<p>Thanks for reading,</p>
<p>Hans</p>
]]></content:encoded></item><item><title><![CDATA[How to Use Jujutsu (jj) with Claude Code]]></title><description><![CDATA[I prefer Jujutsu (jj) over Git for version control, but getting Claude Code to work with jj proved tricky since Claude Code defaults to git. This post…]]></description><link>https://hans.lhoest.eu/how-to-use-jujutsu-jj-with-claude-code</link><guid isPermaLink="true">https://hans.lhoest.eu/how-to-use-jujutsu-jj-with-claude-code</guid><category><![CDATA[jj-vcs]]></category><category><![CDATA[jujutsu]]></category><category><![CDATA[claude-code]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Fri, 22 Aug 2025 19:17:36 GMT</pubDate><content:encoded><![CDATA[<p>I prefer <a target="_blank" href="https://jj-vcs.github.io/jj/latest/">Jujutsu</a> (<code>jj</code>) over Git for version control, but getting Claude Code to work with <code>jj</code> proved tricky since Claude Code defaults to <code>git</code>. This post explains how to configure Claude Code to use <code>jj</code> instead of Git for version control operations and file change detection.</p>
<p>I'll show you three possible approaches to get Claude Code working properly with Jujutsu repositories, from simple configuration changes to advanced system prompt modifications.</p>
<h2 id="heading-quick-solution-claudemdhttpclaudemd-configuration">Quick Solution: <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> Configuration</h2>
<p>For most users, this addition to your project's <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> file should configure Claude Code to start using Jujutsu:</p>
<pre><code class="lang-markdown"><span class="hljs-section">## Version Control</span>

<span class="hljs-strong">**CRITICAL: This repository uses Jujutsu (jj), not git.**</span> Always use <span class="hljs-code">`jj`</span> commands for version control operations.

<span class="hljs-bullet">-</span> Use <span class="hljs-code">`jj st --no-pager`</span> to check status (like <span class="hljs-code">`git status`</span>)
<span class="hljs-bullet">-</span> Use <span class="hljs-code">`jj log --no-pager`</span> to view history (like <span class="hljs-code">`git log`</span>)
<span class="hljs-bullet">-</span> Use <span class="hljs-code">`jj commit -m "message"`</span> to create commits (like <span class="hljs-code">`git commit`</span>)
<span class="hljs-bullet">-</span> Use <span class="hljs-code">`jj split -m "message" file1 file2`</span> to commit specific files only
<span class="hljs-bullet">-</span> Use <span class="hljs-code">`jj bookmark set main -r @- &amp;&amp; jj git push`</span> to push to remote repository

<span class="hljs-bullet">-</span> ALWAYS check for any sensitive information that shouldn't be committed
</code></pre>
<p>The <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> file contains instructions that Claude Code reads for each project.</p>
<p>Before I came up with this configuration I tried quite a number of different instructions. I suspect this one works because of the combination of:</p>
<ul>
<li><p><strong>The 'CRITICAL' keyword</strong>: Signals high priority to Claude Code's instruction processing</p>
</li>
<li><p><strong>Explicit repository type declaration</strong>: Removes ambiguity about which version control system to use</p>
</li>
<li><p><strong>Specific</strong> <code>jj</code> <strong>command mapping</strong>: Provides concrete alternatives to built-in Git commands</p>
</li>
</ul>
<p>You can expand the command list to match your workflow, but these core commands worked for me and should get you started.</p>
<h2 id="heading-why-claude-code-uses-git">Why Claude Code uses Git</h2>
<p>Claude Code has Git instructions hardcoded into its system promp, the internal directions that override user preferences. Here is <a target="_blank" href="https://github.com/lhohan/references/blob/c5501c775496b2e8500eb307a632a0abae48e2f1/claude/default-system-prompt-1.0.85.md?plain=1#L248-L287">part of the Git configuration in the system prompt</a> from Claude Code 1.0.85:</p>
<pre><code class="lang-markdown"><span class="hljs-section"># Committing changes with git</span>

When the user asks you to create a new git commit, follow these steps carefully:

<span class="hljs-bullet">1.</span> You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following bash commands in parallel, each using the Bash tool:
<span class="hljs-bullet">   -</span> Run a git status command to see all untracked files.
<span class="hljs-bullet">   -</span> Run a git diff command to see both staged and unstaged changes that will be committed.
<span class="hljs-bullet">   -</span> Run a git log command to see recent commit messages, so that you can follow this repository's commit message style.
<span class="hljs-bullet">2.</span> Analyze all staged changes (both previously staged and newly added) and draft a commit message:
<span class="hljs-bullet">   -</span> Summarize the nature of the changes (eg. new feature, enhancement to an existing feature, bug fix, refactoring, test, docs, etc.). Ensure the message accurately reflects the changes and their purpose (i.e. "add" means a wholly new feature, "update" means an enhancement to an existing feature, "fix" means a bug fix, etc.).
<span class="hljs-bullet">   -</span> Check for any sensitive information that shouldn't be committed
<span class="hljs-bullet">   -</span> Draft a concise (1-2 sentences) commit message that focuses on the "why" rather than the "what"
</code></pre>
<p>As you can see, Claude Code's system prompt contains hardcoded Git configuration to commit changes. Since system instructions override user prompts when you mention committing or version control, it defaults to Git commands even in Jujutsu repositories. Or at least this i how I interpret Claude Code's behaviour.</p>
<p>If the <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> approach above doesn't work consistently, here are more advanced alternatives:</p>
<h2 id="heading-advanced-solution-custom-output-style">Advanced Solution: Custom Output Style</h2>
<p><a target="_blank" href="https://docs.anthropic.com/en/docs/claude-code/output-styles">Output styles</a> let you override Claude Code's system prompt entirely, giving you complete control over its behaviour. <a target="_blank" href="https://hans.lhoest.eu/claude-code-output-styles">Here is my own summary</a> of Claude Code output styles if you want to know more about this feature.</p>
<p><a target="_blank" href="https://hans.lhoest.eu/claude-code-output-styles"><strong>Setup step</strong></a><strong>s:</strong></p>
<ol>
<li><p>Start <code>claude</code> and run <code>/output-style:new</code></p>
</li>
<li><p>Name your style (e.g., <code>jj-support</code>) and complete the wizard</p>
</li>
</ol>
<ul>
<li>The initial content you enter doesn't matter since we'll replace it entirely in the next step</li>
</ul>
<ol start="3">
<li><p>Find the created <code>.md</code> file in <code>.claude/output-styles/</code> (project or home) directory</p>
</li>
<li><p>Replace its contents with a modified system prompt that includes Jujutsu support</p>
</li>
</ol>
<p>You can use <a target="_blank" href="https://raw.githubusercontent.com/lhohan/references/refs/heads/main/claude-config-example/.claude/output-styles/jj-support.md">my pre-built version</a> based on Claude Code 1.0.85's system prompt. <a target="_blank" href="https://github.com/lhohan/references/blob/87e6cf7bbabf3e07bd6a99aa367d1695d40ceb6f/claude-config-example/.claude/output-styles/jj-support.md?plain=1#L247-L299">These are the directives I added to add 'jj' support</a>.</p>
<p>The critical addition is automatic repository type detection:</p>
<pre><code class="lang-markdown"><span class="hljs-section">### MANDATORY FIRST STEP FOR ALL COMMITS</span>

Before ANY commit-related commands, you MUST:
<span class="hljs-bullet">1.</span> Run <span class="hljs-code">`bash: if jj root &gt;/dev/null 2&gt;&amp;1; then echo "jj"; elif git rev-parse --git-dir &gt;/dev/null 2&gt;&amp;1; then echo "git"; else echo "none"; fi`</span>
<span class="hljs-bullet">2.</span> If output is "jj" → use jj commands
<span class="hljs-bullet">3.</span> If output is "git" → use git commands
<span class="hljs-bullet">4.</span> If output is "none" → not a repository, inform user

NEVER use git commands if .jj directory exists, regardless of environment info.

NOTE: Environment "git repo" status may be misleading when both .jj and .git exist. Always use directory detection as the authoritative source.
</code></pre>
<p>(Turns out you can add logic inside a system prompt.)</p>
<p><strong>Trade-offs</strong>:</p>
<ul>
<li><p>✅ Most reliable solution</p>
</li>
<li><p>✅ Works even when <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> is ignored or 'forgotten'</p>
</li>
<li><p>❌ Requires maintenance when Claude Code updates, that is if you want to keep in sync with the latest default system prompt</p>
</li>
<li><p>❌ Claude Code will request permission to run the detection command</p>
</li>
</ul>
<p>Select your custom output style with <code>/output-style</code> and test by asking Claude to "commit the changes".</p>
<h3 id="heading-experimental-solution-command-line-flag">Experimental Solution: Command-Line Flag</h3>
<p>The <code>--append-system-prompt</code> flag adds system instructions directly after Claude Code's system prompt at startup.</p>
<pre><code class="lang-bash">claude-code --append-system-prompt <span class="hljs-string">"In jj repositories, use jj commands instead of git commands."</span>
</code></pre>
<p><strong>Note</strong>: Simple instructions like the example above don't work. You'd need to pass the same comprehensive instructions used in the output style approach. I did not try this myself yet as for now I am done <a target="_blank" href="https://www.hanselman.com/blog/yak-shaving-defined-ill-get-that-done-as-soon-as-i-shave-this-yak">shaving this yak</a> for now. I am sure you can pass the inputs from a file to the prompt making it more manageable as well.</p>
<p><strong>Trade-offs</strong>:</p>
<ul>
<li><p>✅ No file modifications needed</p>
</li>
<li><p>✅ Easy to test different configurations</p>
</li>
<li><p>✅ Works at system level like hardcoded instructions</p>
</li>
<li><p>❌ Must be added each time you start Claude Code (needs helper command)</p>
</li>
</ul>
<h2 id="heading-choosing-the-right-approach">Choosing the Right Approach</h2>
<p><strong>Start with</strong> <a target="_blank" href="http://CLAUDE.md"><strong>CLAUDE.md</strong></a> <strong>configuration</strong>. It's simple, requires no system modifications, and should work for most users.</p>
<p><strong>Upgrade to custom output style</strong> if:</p>
<ul>
<li><p>Claude Code frequently ignores your <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> instructions</p>
</li>
<li><p>You work with multiple Jujutsu repositories</p>
</li>
<li><p>You want the most reliable solution</p>
</li>
<li><p>You are willing to update the output style to the latest system prompts when it changes (significantly), or accept running with an outdated configuration version.</p>
</li>
</ul>
<p><strong>Consider the command-line flag</strong> for:</p>
<ul>
<li><p>When you want to stay up to date with the latest system context versions without having to update the output style each time.</p>
</li>
<li><p>Testing different configurations quickly</p>
</li>
</ul>
<h2 id="heading-important-considerations">Important Considerations</h2>
<h3 id="heading-missing-git-features">Missing Git Features</h3>
<p>When you override Claude Code's Git behaviour, you lose may some built-in safety features:</p>
<ul>
<li><p>Automatic sensitive information checking</p>
</li>
<li><p>Commit message formatting guidelines</p>
</li>
<li><p>Built-in branching workflow guidance</p>
</li>
</ul>
<p>Consider adding these to your <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> configuration if they're important to your workflow.</p>
<h3 id="heading-bonus-no-more-claude-branding-in-commit-messages">Bonus: No More Claude Branding in commit messages</h3>
<p>A pleasant side effect is that Claude Code stops adding its promotional footer to commit messages:</p>
<pre><code class="lang-markdown">🤖 Generated with [<span class="hljs-string">Claude Code</span>](<span class="hljs-link">https://claude.ai/code</span>)

Co-Authored-By: Claude <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">noreply@anthropic.com</span>&gt;</span></span>
</code></pre>
<h2 id="heading-summary">Summary</h2>
<p>To integrate Jujutsu workflows in Claude Code, but these three solutions exist:</p>
<ol>
<li><p><a target="_blank" href="http://CLAUDE.md"><strong>CLAUDE.md</strong></a> <strong>configuration</strong>: Simple and effective for most users</p>
</li>
<li><p><strong>Custom output styles</strong>: Most reliable but requires maintenance</p>
</li>
<li><p><strong>Command-line flags</strong>: Less maintenance and best for testing</p>
</li>
</ol>
<p>Start with the <a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a> approach. If Claude Code continues defaulting to Git commands despite your configuration, escalate to a custom output style for complete system-level control.</p>
<p>Thank you for reading, Hans</p>
]]></content:encoded></item><item><title><![CDATA[Remove Claude Code branding from commit messages using output styles]]></title><description><![CDATA[When Claude Code creates git commits for you, it automatically adds its own signature to every commit message, including a promotional link and co-author…]]></description><link>https://hans.lhoest.eu/remove-claude-code-branding-from-commit-messages-using-output-styles</link><guid isPermaLink="true">https://hans.lhoest.eu/remove-claude-code-branding-from-commit-messages-using-output-styles</guid><category><![CDATA[claude-code]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Fri, 22 Aug 2025 11:39:44 GMT</pubDate><content:encoded><![CDATA[<p>When Claude Code creates git commits for you, it automatically adds its own signature to every commit message, including a promotional link and co-author attribution. Personally I think this is pretty annoying but especially for professional work or team repositories you may prefer cleaner commit messages.</p>
<p>By default, Claude Code adds these lines to every commit:</p>
<pre><code class="lang-bash">🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude &lt;noreply@anthropic.com&gt;
</code></pre>
<p>Since version 1.0.81, Claude Code supports <a target="_blank" href="https://docs.anthropic.com/en/docs/claude-code/output-styles">'output styles'</a> (here is <a target="_blank" href="https://hans.lhoest.eu/claude-code-output-styles">my own summary</a>). Output styles are configuration files that allow you to customise Claude Code's behaviour by modifying its system prompt (the internal instructions that control how Claude responds).</p>
<p>This feature allows us to remove Claude Code's behaviour of adding itself to every commit message.</p>
<div data-node-type="callout">
<div data-node-type="callout-emoji">💡</div>
<div data-node-type="callout-text">The below is an exercise in output styles. Claude Code has a general setting that allows you to configure whether to include the <code>co-authored-by Claude</code> byline in git commits and pull requests. The default value of this setting is <code>true</code>. See <a target="_self" href="https://docs.claude.com/en/docs/claude-code/settings#available-settings">settings.json</a> and set the value to <code>false</code>.</div>
</div>

<h2 id="heading-creating-the-custom-output-style">Creating the Custom Output Style</h2>
<ol>
<li><p>Start <code>claude</code>.</p>
</li>
<li><p>Create a new output-style using the <code>/output-style:new</code> command. Name it, I used <code>no-claude-in-commit-msg</code>.</p>
</li>
<li><p>Complete the creation wizard. The initial content you enter doesn't matter since we'll replace it entirely in the next step.</p>
</li>
</ol>
<h2 id="heading-configuring-the-system-prompt">Configuring the System Prompt</h2>
<ol start="4">
<li><p>Locate the new output style file. Look for a <code>.md</code> file with your chosen name in the <code>.claude/output-styles/</code> directory (either in your project folder or home directory) and open it in your text editor.</p>
</li>
<li><p>Replace the entire file content with a modified system prompt that excludes commit message branding. You have two options:</p>
<ul>
<li><p><strong>Manual approach</strong>: Find the system prompt yourself to remove Claude Code references</p>
</li>
<li><p><strong>Ready-to-use version</strong>: Use <a target="_blank" href="https://raw.githubusercontent.com/lhohan/references/refs/heads/main/claude-config-example/.claude/output-styles/no-claude-in-commit-msg.md">my version based on the system prompt of Claude Code 1.0.85</a></p>
</li>
</ul>
</li>
</ol>
<p>    If you're curious about the changes, <a target="_blank" href="https://github.com/lhohan/references/commit/c5501c775496b2e8500eb307a632a0abae48e2f1">view the diff</a> showing exactly which lines were removed to eliminate Claude Code self-references in commits and pull requests.</p>
<ol start="6">
<li><p>Save the file.</p>
</li>
<li><p>In <code>claude</code>: <code>/output-style</code> should now show the updated style.</p>
</li>
</ol>
<h2 id="heading-testing-the-changes">Testing the Changes</h2>
<p>Now let's verify that our custom output style works as expected:</p>
<h3 id="heading-before-default-output-style">Before: Default Output Style</h3>
<p>First, let's see what happens with the default output style:</p>
<pre><code class="lang-bash">&gt; /output-style
  ⎿  Set output style to default

&gt; commit changes
╭───────────────
│ Bash <span class="hljs-built_in">command</span>            
│                         
│   git commit -m <span class="hljs-string">"chore(claude): Add default output 
│   style configuration                              
│                                                    
│   🤖 Generated with [Claude Code](https://claude.ai/code)
│                                                    
│   Co-Authored-By: Claude &lt;noreply@anthropic.com&gt;"</span>  
╰───────────────
</code></pre>
<p>Notice the Claude Code branding and co-author attribution in the commit message.</p>
<h3 id="heading-after-custom-output-style">After: Custom Output Style</h3>
<p>Now let's switch to our custom output style and try the same operation:</p>
<pre><code class="lang-bash">&gt; /output-style
  ⎿  Set output style to <span class="hljs-string">'no-claude-in-commit-msg'</span>

&gt; commit changes
╭───────────────
│ Bash <span class="hljs-built_in">command</span>            
│                         
│   git commit -m <span class="hljs-string">"chore(claude): set output style
│   to no-claude-in-commit-msg"</span>                   
╰───────────────
</code></pre>
<p>Nice! The commit message is now clean, containing only the actual commit description without any Claude Code references.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>You've successfully customised Claude Code to remove its self-referential branding from commit messages. Your git history will now be cleaner and more professional, containing only the essential commit information without promotional content.</p>
<p>For more details on output styles, check the <a target="_blank" href="https://docs.anthropic.com/en/docs/claude-code/output-styles">official documentation</a> or my <a target="_blank" href="https://hans.lhoest.eu/claude-code-output-styles">own summary</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Output Styles in Claude Code]]></title><description><![CDATA[Claude Code's output styles control how the AI responds to your requests. This summary covers the built-in styles and when to use each one. TLDR: Output…]]></description><link>https://hans.lhoest.eu/claude-code-output-styles</link><guid isPermaLink="true">https://hans.lhoest.eu/claude-code-output-styles</guid><category><![CDATA[claude-code]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Fri, 22 Aug 2025 09:26:15 GMT</pubDate><content:encoded><![CDATA[<p>Claude Code's output styles control how the AI responds to your requests. This summary covers the built-in styles and when to use each one.</p>
<blockquote>
<p><strong>TLDR:</strong> Output styles = stored system prompts that change Claude's behaviour. Slash commands = stored user prompts for quick actions.</p>
</blockquote>
<p>Use the 'default' style for classic coding, 'Explanatory' for learning, 'Learning' for hands-on practice, and create custom styles as needed to match your workflow or creative needs (start from the default system prompt for inspiration).</p>
<blockquote>
<p><strong>Note:</strong> Requires Claude Code version 1.0.81 or later</p>
</blockquote>
<h2 id="heading-default-and-built-in-output-styles">Default and Built-in Output Styles</h2>
<ol>
<li><p><strong>Default Output Style</strong></p>
<ul>
<li><p>Purpose: Optimized for software engineering tasks.</p>
</li>
<li><p>Features: Includes system prompt instructions for concise code generation, automatic code verification, and test integration.</p>
</li>
<li><p>Context: This is the initial state, designed for efficient programming workflows.</p>
</li>
</ul>
</li>
<li><p><strong>Explanatory Output Style</strong></p>
<ul>
<li><p>Purpose: Adds educational value and explanations to its software engineering help.</p>
</li>
<li><p>Example: When planning a project, it might explain why it's choosing one database over another, or the reasoning behind selecting a store over React context.</p>
</li>
<li><p>Best for: If you want to enhance your learning while coding or need insight into design decisions.</p>
</li>
</ul>
</li>
<li><p><strong>Learning Output Style</strong></p>
<ul>
<li><p>Purpose: Mimics a pair-programming experience to help you learn by doing.</p>
</li>
<li><p>Features:</p>
<ul>
<li><p>Provides code insights as you go.</p>
</li>
<li><p>Assigns you small, strategic coding tasks (adds "to-do human" items).</p>
</li>
<li><p>Checks your work and offers feedback or explanations based on your solutions.</p>
</li>
</ul>
</li>
<li><p>Best for: Developers who want to upskill or learn new patterns interactively.</p>
</li>
</ul>
</li>
</ol>
<h2 id="heading-custom-output-styles">Custom Output Styles</h2>
<ul>
<li><p>You can create your own Output Style.</p>
</li>
<li><p>Behind the scenes: Claude generates a new output-style file and modifies the system prompt accordingly.</p>
</li>
<li><p>Impact: Output styles are tightly coupled to the system prompt, so customisations can drastically change behaviour. <strong><em>Switching to a non-default output style removes software-engineering–specific logic from the system prompt.</em></strong> This potentially reduces coding efficiency but broadens capability in other domains (research, creative writing, etc.).</p>
</li>
</ul>
<p>Put differently: output styles introduce the ability to change the _system prompt_ which can be very powerful! Here is an example where I change the behaviour with respect to Claude Code’s commit behaviour.</p>
<h2 id="heading-how-to-use-amp-select-output-styles">How to Use &amp; Select Output Styles</h2>
<ul>
<li><p>Use the CLI to create/select/explore output styles (<code>output-style:new</code>, then select from available styles).</p>
</li>
<li><p>Output styles can be selected per session or per project as needed.</p>
</li>
</ul>
<h2 id="heading-advanced-tips">Advanced Tips</h2>
<ul>
<li><p>Output style selection is part of a broader "system prompt + user message" structure.</p>
</li>
<li><p>You can further manipulate prompts using <code>--append-system-prompt</code> to add final adjustments to the behaviour.</p>
</li>
<li><p>For customisation, consider starting from the default system prompt (you can use Claude tracing for this but here is <a target="_blank" href="https://github.com/lhohan/references/blob/main/claude/default-system-prompt-1.0.85.md?plain=1">the default system prompt of Claude Code 1.0.85</a>).</p>
</li>
</ul>
<h2 id="heading-further-resources">Further Resources</h2>
<ul>
<li><p><a target="_blank" href="https://youtube.com/watch?v=_OILd7UDZvI&amp;si=G--uWYh90wPOP5y0">Ray Amjad's Youtube video</a></p>
</li>
<li><p><a target="_blank" href="https://docs.anthropic.com/en/docs/claude-code/output-styles">Anthropic Output Styles documentation</a></p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Grounding AI Instructions in Living Documentation]]></title><description><![CDATA[Context engineering shows interesting potential to ground documentation to actual code, or as how I sometimes refer to it: reality. Linking AI instruction…]]></description><link>https://hans.lhoest.eu/grounding-ai-instructions-in-living-documentation</link><guid isPermaLink="true">https://hans.lhoest.eu/grounding-ai-instructions-in-living-documentation</guid><category><![CDATA[living documentation]]></category><category><![CDATA[llm]]></category><category><![CDATA[context engineering]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Mon, 28 Jul 2025 09:22:47 GMT</pubDate><content:encoded><![CDATA[<p>Context engineering shows interesting potential to <em>ground</em> documentation to actual code, or as how I sometimes refer to it: reality.</p>
<p>Linking AI instruction files (<a target="_blank" href="http://CLAUDE.md">CLAUDE.md</a>, .rules, .cursorrules, etc) to development documentation may turn static docs into living resources. Each code generation cycle tests documentation accuracy and real-world application. This creates a direct feedback loop that keeps documentation aligned with actual development workflows.</p>
<p>Also, this coupling of documentation and implementation may create friction but I expect this to a good thing long-term. It signals opportunities for documentation improvement, encouraging streamlined, practical documentation that genuinely serves developers, while also identifying code that diverges from documented standards.</p>
<p><strong>Some quick thoughts:</strong></p>
<ul>
<li><p>The feedback loop is fuzzy given how LLMs work, but an LLM can likely explain why it implemented something based on the documentation.</p>
</li>
<li><p>Documentation will likely become more actionable and directive.</p>
</li>
<li><p>The 'why' behind guidelines typically belongs elsewhere, but could become an evaluation against actual code.</p>
</li>
<li><p>Developer documentation may work better in the code repository (and in markdown).</p>
</li>
<li><p>LLMs currently work best with concise instruction files - this constraint likely benefits developer documentation too.</p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Using Code Coverage as a Check for Test Refactoring]]></title><description><![CDATA[TLDR: Use code coverage reports to verify that test refactorings haven't accidentally changed what functionality you're testing. Same coverage percentage…]]></description><link>https://hans.lhoest.eu/using-code-coverage-as-a-check-for-test-refactoring</link><guid isPermaLink="true">https://hans.lhoest.eu/using-code-coverage-as-a-check-for-test-refactoring</guid><category><![CDATA[AI Assisted Refactoring]]></category><category><![CDATA[Testing]]></category><category><![CDATA[refactoring]]></category><category><![CDATA[code coverage]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Thu, 03 Jul 2025 05:03:52 GMT</pubDate><content:encoded><![CDATA[<p><strong>TLDR:</strong> Use code coverage reports to verify that test refactorings haven't accidentally changed what functionality you're testing. Same coverage percentage before and after refactoring gives confidence your tests still cover the same code paths.</p>
<p>If we refactor code, tests should cover us from breaking things. But what about refactoring tests? How do we know our tests are still testing the same functionality as before?</p>
<p>While test refactoring isn't widely discussed I found myself refactoring the tests of my applications whilst reviewing and researching testing approaches.</p>
<h2 id="heading-why-am-i-refactoring-tests">Why am I refactoring tests?</h2>
<h3 id="heading-experimentation-with-executable-specifications">Experimentation with executable specifications</h3>
<p>I often use Fluent Test DSLs to develop executable specifications. The DSL may change if it expresses the functionality more clearly or concisely. This might involve renaming a method, changing an assertion, or refactoring the DSL implementation. These changes are usually low risk, but it's helpful to verify we haven't accidentally missed any behaviour.</p>
<h3 id="heading-optimise-assertions">Optimise assertions</h3>
<p>Sometimes a single test ends up testing too much and you start trimming the test to only validate the exact behaviour you intended to test, possibly aiming for a single clean <code>assert</code>. This sometimes means creating multiple tests to cover the same functionality.</p>
<p>The opposite may also happen. You have too many tests that affect feedback time and you want to combine tests to improve performance. Not ideal but may be a pragmatic approach at times.</p>
<h3 id="heading-consistent-test-naming">Consistent test naming</h3>
<p>Test naming can grow organically and become inconsistent over time. This happens especially when tests use sentence descriptions. Small changes pile up until your tests all follow slightly different naming styles.</p>
<p>You might adopt <a target="_blank" href="https://hans.lhoest.eu/test-naming-guidelines">Testing naming guidelines</a> for consistency. When you start applying them, you realise you haven't reviewed all tests together recently because you've been adding features one by one instead.</p>
<p>During this naming cleanup, you often find other small improvements you want to make. Some tests may no longer seem relevant in the wider context. This leads to more small refactorings.</p>
<h2 id="heading-ai-supported-test-refactoring">AI-supported test refactoring</h2>
<p>You might want to use AI to help with these refactorings.</p>
<p>Take the consistent test naming example above. I use AI agents for this task, asking them to review my current tests and align with <a target="_blank" href="https://hans.lhoest.eu/test-naming-guidelines">testing guidelines</a>. I also ask the AI to check for small cleanup opportunities.</p>
<p>An AI assistant can make a plan and list all the changes I need to implement. I then work through them one by one, often by copy-pasting. This isn't the most exciting work, so it would be easier if the AI could make these changes directly after I approve them.</p>
<p>This raises a question: how do I know I'm still testing the same functionality without checking every line of code?</p>
<p>Test renaming shouldn't change the test logic, but splitting or trimming tests might. You might even let an AI agent change code directly, which could lead to unintended changes.</p>
<h2 id="heading-verifying-test-refactorings-with-code-coverage">Verifying test refactorings with code coverage</h2>
<p>The first check after any refactoring is obvious: do the tests still compile and run?</p>
<p>But how do we know the tests still cover the same functionality after refactoring?</p>
<p>I use code coverage as a basic check for this. Code coverage shows which code lines your tests execute, and it can catch obvious mistakes during test refactoring. If I have exactly the same coverage percentage before and after refactoring (like <code>94.614%</code>), it suggests I haven't accidentally deleted entire tests or changed which code paths are exercised.</p>
<p>This isn't code coverage's intended purpose, and it has clear limitations - it won't catch changes in test logic or assertions that still execute the same code lines. But it's a useful test for catching the most obvious refactoring mistakes.</p>
<h2 id="heading-when-to-refactor-tests">When to refactor tests</h2>
<p>I wanted to include the types of test refactorings that code coverage can help verify. These fall into two categories: individual test refactorings are usually relatively easy to manage, but sometimes we need to, or should, refactor tests at the level of entire test suites.</p>
<p><strong>Refactor individual tests when:</strong></p>
<ul>
<li><p>The test is too complex or difficult to understand</p>
</li>
<li><p>The test asserts too many behaviours at once</p>
</li>
<li><p>The test is too slow or resource-intensive</p>
</li>
<li><p>The test doesn't match the rest of the test suite style</p>
</li>
<li><p>The test is outdated or no longer relevant</p>
</li>
</ul>
<p><strong>Refactor entire test suites when:</strong></p>
<ul>
<li><p>The test suite fails with almost every production code change</p>
</li>
<li><p>The test suite lacks consistency across tests</p>
</li>
<li><p>The test suite doesn't align with current testing guidelines</p>
</li>
<li><p>The test suite has become too large or complex to manage</p>
</li>
<li><p>The test framework or design needs upgrading</p>
</li>
</ul>
<h2 id="heading-conclusion">Conclusion</h2>
<p>Using code coverage as a basic check for test refactorings isn't comprehensive, but it's a simple technique that catches obvious mistakes.</p>
<p>I'm curious how others approach this challenge. Do you have other methods for ensuring your tests haven't been unintentionally modified during refactoring?</p>
<p>Thank you for reading, Hans</p>
]]></content:encoded></item><item><title><![CDATA[Rust code coverage: use 'llvm-cov' over 'tarpaulin']]></title><description><![CDATA[A few days ago, I wrote about an issue I encountered where the code coverage for one of my projects failed on CI but worked fine locally. [I also discussed…]]></description><link>https://hans.lhoest.eu/rust-code-coverage-use-llvm-cov-over-tarpaulin</link><guid isPermaLink="true">https://hans.lhoest.eu/rust-code-coverage-use-llvm-cov-over-tarpaulin</guid><category><![CDATA[Rust]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Fri, 27 Jun 2025 17:42:26 GMT</pubDate><content:encoded><![CDATA[<p>A few days ago, I wrote about an issue I encountered where the code coverage for one of my projects failed on CI but worked fine locally. [I also discussed a solution](<a target="_blank" href="https://hans.lhoest.eu/rust-when-cargo-code-coverage-works-locally-but-fails-in-ci">https://hans.lhoest.eu/rust-when-cargo-code-coverage-works-locally-but-fails-in-ci</a>). It turns out there's an even better alternative: switch code coverage tools entirely and use [llvm-cov](<a target="_blank" href="https://github.com/taiki-e/cargo-llvm-cov">https://github.com/taiki-e/cargo-llvm-cov</a>) instead of `tarpaulin`.</p>
<p>The main reasons I switched to <code>llvm-cov</code> are that it feels more modern, and more importantly, the time required to run code coverage improved dramatically—from 4 minutes down to just 1 minute and 30 seconds. One contributing factor was an OpenSSL build dependency in my Cargo configuration, introduced by tarpaulin, which took a long time to compile. (To be fair, I probably could have installed OpenSSL as a binary, but I didn't want to introduce another program just for a coverage tool.) Switching to llvm-cov allowed me to remove this redundant dependency, which my project didn't really need in the first place.</p>
<p>That's it—just a short update I thought was worth sharing.</p>
<p>Thank you for reading,<br />Hans</p>
]]></content:encoded></item><item><title><![CDATA[Test Naming Guidelines]]></title><description><![CDATA[TLDR: Below are test naming guidelines that help me write consistent, clear test names. This is quick post with the Test Naming Guidelines I have been…]]></description><link>https://hans.lhoest.eu/test-naming-guidelines</link><guid isPermaLink="true">https://hans.lhoest.eu/test-naming-guidelines</guid><category><![CDATA[Testing]]></category><category><![CDATA[Behavior-Driven Development (BDD)]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Thu, 26 Jun 2025 08:28:07 GMT</pubDate><content:encoded><![CDATA[<p><strong>TLDR</strong>: Below are test naming guidelines that help me write consistent, clear test names.</p>
<p>This is quick post with the Test Naming Guidelines I have been using to make my test names consistent across multiple projects. I use also these with LLMs when writing tests or refactoring multiple tests to this style.</p>
<p>I used one of my personal projects as a basis to develop, refine and structure these guidelines with help from an LLM.</p>
<p>Below are the guidelines.</p>
<h2 id="heading-format">Format</h2>
<pre><code class="lang-bash">[subject]_should_[expected_behavior]_[optional_when_condition]
</code></pre>
<h2 id="heading-components">Components</h2>
<p><strong>Subject</strong>: The component, feature, or system under test</p>
<ul>
<li>Examples: <code>user</code>, <code>api</code>, <code>filter</code>,<code>time_report</code></li>
</ul>
<p><strong>Expected Behaviour</strong>: What should happen, described as an action or outcome</p>
<ul>
<li>Examples: <code>return_success</code>, <code>validate_input</code>, <code>fail_with_error</code></li>
</ul>
<p><strong>Optional When Condition</strong>: Include only when necessary for clarity or disambiguation</p>
<ul>
<li><p>Format: <code>when_[condition]</code></p>
</li>
<li><p>Examples: <code>when_input_valid</code>, <code>when_user_authenticated</code></p>
</li>
</ul>
<h2 id="heading-guidelines-for-when-conditions">Guidelines for When Conditions</h2>
<h3 id="heading-include-whencondition-if">Include <code>when_[condition]</code> if:</h3>
<ul>
<li><p><strong>Essential for understanding</strong>: The condition is crucial to know what's being tested</p>
</li>
<li><p><strong>Multiple variants exist</strong>: Similar tests with different conditions need distinction</p>
</li>
<li><p><strong>Specific circumstances</strong>: The behavior only occurs under particular conditions</p>
</li>
</ul>
<h3 id="heading-omit-whencondition-for">Omit <code>when_[condition]</code> for:</h3>
<ul>
<li><p><strong>Basic/default behavior</strong>: Standard functionality that doesn't require special conditions</p>
</li>
<li><p><strong>Self-evident scenarios</strong>: Cases where the expected behavior already implies the context</p>
</li>
<li><p><strong>Overly obvious conditions</strong>: When the condition adds no meaningful information</p>
</li>
</ul>
<h2 id="heading-examples">Examples</h2>
<p><strong>Good (concise when appropriate):</strong></p>
<pre><code class="lang-bash">health_check_should_return_200
user_should_be_created
</code></pre>
<p><strong>Avoid (unnecessarily verbose):</strong></p>
<pre><code class="lang-bash">health_check_should_return_200_when_request_valid  // <span class="hljs-string">"valid"</span> is implied by 200 response
user_should_be_created_when_data_provided  // data is obviously needed
</code></pre>
<p><strong>Good (meaningful distinctions):</strong></p>
<pre><code class="lang-bash">user_should_login_successfully_when_credentials_valid
user_should_be_rejected_when_credentials_invalid
</code></pre>
<h2 id="heading-principle">Principle</h2>
<p>Keep test names <strong>as short as possible while maintaining clarity</strong>. The <code>when_</code> clause is a tool for disambiguation, not a mandatory requirement.</p>
]]></content:encoded></item><item><title><![CDATA[Rust: When Cargo Code Coverage Works Locally But Fails in CI]]></title><description><![CDATA[A short post to help if you run into the same issue. TLDR: If your code coverage reports show vastly different results between local development and CI…]]></description><link>https://hans.lhoest.eu/rust-when-cargo-code-coverage-works-locally-but-fails-in-ci</link><guid isPermaLink="true">https://hans.lhoest.eu/rust-when-cargo-code-coverage-works-locally-but-fails-in-ci</guid><category><![CDATA[Rust]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Thu, 26 Jun 2025 07:52:13 GMT</pubDate><content:encoded><![CDATA[<p>A short post to help if you run into the same issue.</p>
<p><strong>TLDR:</strong> If your code coverage reports show vastly different results between local development and CI, explicitly set <code>--engine llvm</code> in your cargo tarpaulin command.</p>
<p>I recently ran into a frustration you may be familiar with: your code works perfectly on your machine, but fails on CI. The most annoying part are the waiting times for CI to finish. You context-switch to other work, if you do not forget, return to debug. It breaks flow and wastes time. Stuff you do not want to be spending time on.</p>
<h2 id="heading-the-issue">The issue</h2>
<p>My Rust code coverage reports were showing different results between local development (94%) and CI (22%). Same codebase, same test suite.</p>
<p>The original cargo command:</p>
<pre><code class="lang-bash">cargo tarpaulin --out xml
</code></pre>
<p>Relevant in this case: I test most of my functionality in the <code>tests</code> directory (integration/acceptance tests) and this is the coverage that seemed to be missing.</p>
<h2 id="heading-the-solution">The Solution</h2>
<p>Add the <code>--engine llvm</code> flag to your cargo tarpaulin command:</p>
<pre><code class="lang-bash">cargo tarpaulin --engine llvm --out xml
</code></pre>
<p>This forces <code>tarpaulin</code> to use the coverage engine <em>that works</em> in all environments.</p>
<h2 id="heading-explanation">Explanation</h2>
<p>Cargo tarpaulin uses different default engines on different platforms. On Linux (CI), it defaults to the <code>ptrace</code> engine. On macOS (my local machine), it uses the <code>llvm</code> engine.</p>
<p>The <code>ptrace</code> engine traces system calls to measure coverage. The <code>ptrace</code> engine struggles with tests that spawn subprocesses (like acceptance tests running your compiled binary), whilst the <code>llvm</code> engine handles this correctly.</p>
]]></content:encoded></item><item><title><![CDATA[Continuous Deployment for Personal CLI Tools]]></title><description><![CDATA[Git pre-push hooks can automate local installation of your personal CLI tools, creating a development workflow where your working environment always has…]]></description><link>https://hans.lhoest.eu/continuous-deployment-for-personal-cli-tools</link><guid isPermaLink="true">https://hans.lhoest.eu/continuous-deployment-for-personal-cli-tools</guid><category><![CDATA[development experience]]></category><category><![CDATA[Git]]></category><category><![CDATA[cli]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Tue, 25 Mar 2025 13:37:07 GMT</pubDate><content:encoded><![CDATA[<p>Git pre-push hooks can automate local installation of your personal CLI tools, creating a development workflow where your working environment always has the latest version of your code.</p>
<p>When developing CLI tools, for example for personal use, I often want to run the latest version locally to quickly identify issues and get a feel for changes. Constantly installing updates manually or running from source creates unnecessary friction. This article shows how to automate this process using Git pre-push hooks.</p>
<h2 id="heading-a-simple-solution-local-continuous-deployment">A Simple Solution: Local Continuous Deployment</h2>
<p>Automatically installing an updated CLI command locally whenever you push changes to your repository creates a featherweight continuous deployment pipeline. This keeps your local environment in sync with your latest code changes with minimal effort.</p>
<h2 id="heading-what-are-git-hooks">What Are Git Hooks?</h2>
<p>Git hooks are scripts that Git executes before or after events like commit, push, or receive. Pre-push hooks run automatically before your code is pushed to a remote repository.</p>
<h2 id="heading-implementation-git-pre-push-hooks">Implementation: Git Pre-Push Hooks</h2>
<p>The implementation is straightforward. Use git's pre-push hooks to trigger installation automatically:</p>
<ol>
<li>Edit the git <code>pre-push</code> hook file:</li>
</ol>
<pre><code class="lang-bash">vim .git/hooks/pre-push
</code></pre>
<ol start="2">
<li>Make it executable:</li>
</ol>
<pre><code class="lang-bash">chmod +x .git/hooks/pre-push
</code></pre>
<ol start="3">
<li>Add installation commands to the hook:</li>
</ol>
<pre><code class="lang-bash"><span class="hljs-meta">#!/bin/sh</span>
install.sh
<span class="hljs-built_in">exit</span> $? <span class="hljs-comment"># Propagate the exit code</span>
</code></pre>
<p>The <a target="_blank" href="http://install.sh"><code>install.sh</code></a> script in this example should contain whatever commands you would normally use to install your CLI tool locally. If you use build tools like <code>make</code> or <code>just</code>, you can call those commands directly.</p>
<p>For a tool written in Rust your <a target="_blank" href="http://install.sh"><code>install.sh</code></a> script may contain:</p>
<pre><code class="lang-bash">cargo install --path .
</code></pre>
<p>This approach automatically rebuilds and installs your application on every push to the repository and ensures you're always using the latest version without any manual steps.</p>
<p>Note:</p>
<ul>
<li><p>This works best when developing directly on the main branch. If you work with feature branches, you'll need to consider which version you want running locally at any given time.</p>
</li>
<li><p>For added robustness, you can extend this approach to run tests or lint your code before installation.</p>
</li>
<li><p>Hooks are not pushed to your repository by default. You will need to set them up on each development machine.</p>
</li>
</ul>
<p>Thank you for reading, Hans</p>
]]></content:encoded></item><item><title><![CDATA[Ground Your ADRs with a Verification Section]]></title><description><![CDATA[Making architectural decisions is one thing, but have you ever wondered how to make them more effective? Adding a Verification section to Architecture…]]></description><link>https://hans.lhoest.eu/ground-your-adrs-with-a-verification-section</link><guid isPermaLink="true">https://hans.lhoest.eu/ground-your-adrs-with-a-verification-section</guid><category><![CDATA[ADR]]></category><category><![CDATA[architecture]]></category><category><![CDATA[decision making]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Wed, 11 Dec 2024 10:09:23 GMT</pubDate><content:encoded><![CDATA[<p>Making architectural decisions is one thing, but have you ever wondered how to make them more effective? Adding a Verification section to Architecture Decision Records (ADRs) can make the difference. This simple addition bridges the gap between theory and practice, making decisions actionable and measurable.</p>
<p>If you're new to ADRs, check out <a target="_blank" href="https://hans.lhoest.eu/less-mentioned-benefits-of-architecture-decision-records">my post on their benefits</a> first.</p>
<h2 id="heading-common-adr-challenges">Common ADR Challenges</h2>
<p>Architecture Decision Records (ADRs) are a valuable tool for capturing architectural choices. However, they can suffer from the following weaknesses:</p>
<ol>
<li><p>Decisions can be made, or become, detached from implementation</p>
</li>
<li><p>Intent and success criteria remain vague or unmeasurable</p>
</li>
</ol>
<p>These challenges can lead to:</p>
<ul>
<li><p>Architectural decisions that exist only on paper</p>
</li>
<li><p>Difficulty in assessing whether decisions are being followed</p>
</li>
<li><p>Missed opportunities for feedback and improvement</p>
</li>
</ul>
<h2 id="heading-introducing-verification">Introducing Verification</h2>
<p>Adding a 'Verification' section to ADRs helps ground these decisions in reality and improve their quality. This section details how decisions will be evaluated or implemented, creating a clear path from decision to implementation.</p>
<p>Writing an ADR is often only the beginning, not the end. Establishing feedback loops helps to crystallise our decisions in actual implementation.</p>
<h3 id="heading-grounding-architectural-decisions-in-reality">Grounding Architectural Decisions in Reality</h3>
<p>It is a good idea to state goals in measurable and verifiable ways, and this applies equally to architecture and engineering. This is similar to writing requirements in parallel with the tests for these requirements. Or how writing code can put an analysis to the test. Each of these practices grounds our work in reality and provides feedback on our intentions.</p>
<p>Architecture decisions benefit from a similar grounding. Just as business analysts and developers can collaborate through behavioural tests, architects and developers can collaborate through verification criteria. More broadly, regardless of roles, the architecture function benefits from verification criteria. This creates feedback loops that improve quality.</p>
<p>Importantly, verification works in both directions. Architecture and implementation connect and as such developers engage with the architecture and in return the architect receives feedback on what is working and what is not. When decisions aren't being acted upon, it becomes visible, which is a sign to investigate why and adapt.</p>
<p>A key benefit of keeping verification in mind: ADRs become more actionable and effective.</p>
<h2 id="heading-verification-approaches">Verification Approaches</h2>
<p>You might think this adds substantial work to your process. Not necessarily so. Verification methods can range from simple to sophisticated. Different architectural decisions require different verification approaches. Or you may, to get started, decide to go for a very light-weight approach.</p>
<p>Choose an approach that matches your context and needs. Here are some options:</p>
<ol>
<li><p>Ask questions: the simplest approach uses straightforward questions for self-assessment.</p>
</li>
<li><p>Automated tests / fitness functions: integrate checks in your development pipeline, look for ways to assess architectural characteristics objectively.</p>
</li>
<li><p>Define metrics: what can you measure to determine if decisions are effective?</p>
</li>
<li><p>Architecture Hoisting: the most comprehensive and strict approach, as described by George Fairbanks:</p>
</li>
</ol>
<blockquote>
<p>"Architecture hoisting is a stricter kind of architecture-focused design. When following an architecture hoisting approach, developers design the architecture with the intent of guaranteeing a goal or property of the system. Guarantees are difficult to come by in any kind of software design, but architecture hoisting strives to guarantee a goal or property through architecture choices. The idea is that once a goal or property has been hoisted into the architecture, developers should not need to write any additional code to achieve it."</p>
</blockquote>
<p>Let's see some examples.</p>
<h2 id="heading-examples">Examples</h2>
<h3 id="heading-simple">Simple</h3>
<p>Suppose the recorded decision is to put all code in a mono-repo. Then the verification step could be as simple as:</p>
<pre><code class="lang-json">## Verification

Is your service in our mono-repo &lt;include name&gt;?
</code></pre>
<p>This looks too easy right? In some cases it simply can be. Especially if your ADRs apply to multiple teams, and verification is not handled centrally, your verification tends to be more questions or check-based than actual steering towards an implementation.</p>
<h3 id="heading-self-assessment">Self-Assessment</h3>
<p>For another example, suppose your cross-team decision is to adopt Continuous Delivery:</p>
<pre><code class="lang-json">## Verification

- Is the CI pipeline automated?
- Can you deploy to production without manual steps?
- If not, what manual gates are in place?
- Are feature flags used for in-progress work?
- Are branches short-lived?
</code></pre>
<p>Note the self-assessment tone. This style can be adopted when architecture is an enabling and supporting function.</p>
<h3 id="heading-automated">Automated</h3>
<p>An example requiring effort but providing more guarantees to compliance:</p>
<p>Suppose we are all working in the previously mentioned mono-repo and discover that teams are not respecting service boundaries. We decide to establish naming conventions to be able to enforce no inappropriate, accidental dependencies are created. We could again simply ask a question in the Verification section if naming conventions are followed, but automating this checking is relatively easy, so we decide to automate this check.</p>
<p>Here we make compliance with our ADR automatic by hoisting the decision in our way of working.</p>
<p>The verification section in the initial ADR may then look like this:</p>
<pre><code class="lang-json">## Verification

A dependency checker will be written and integrated in our build tooling for each service.

- Are all of your services' build tooling integrated with the dependency checker?
</code></pre>
<p><strong>Roles and organizational structures can heavily influence the verification section.</strong> If you have, say, a Developer Experience Team they may likely work with the teams and makes sure this gets integrated in their CI-pipeline. Other times seniors in the teams may take this upon them. Ideally these responsibilities are made clear in the Verification section as well.</p>
<p>More examples of self-assessment questions can be found at <a target="_blank" href="https://engineering-principles.jlp.engineering/self-assessment/">John Lewis' Software Engineering Principles Self-Assessment</a>.</p>
<h2 id="heading-implementing-the-verification-section">Implementing the Verification section</h2>
<p><code>Verification</code> is my recommended term because of this definition:</p>
<blockquote>
<p>[!quote] "VERIFY implies the establishing of correspondence of actual facts or details with those proposed or guessed at." (Merriam-Webster)</p>
</blockquote>
<p>However, depending on your environment a different name could be a pragmatic choice. <code>Compliance</code> often resonates better in regulated environments. I have used 'Validation' before. While regularly validating or evaluating our decisions is good practice, here we are aiming to put a system in place to check if our decisions are implemented.</p>
<p>Here is an example of a <code>Verification</code> section you could include in your ADR template:</p>
<pre><code class="lang-json">## Verification

How will we ensure compliance with this decision?

Consider:

- Questions for self-assessment
- Specific metrics
- Verifications in the form of tests or fitness functions
- Implementation guidance
- Making it easy to adopt
</code></pre>
<p>Based on this, a more extended example for a Continuous Delivery ADR:</p>
<pre><code class="lang-json">## Verification

Questions:
- Is the CI pipeline automated?
- Can you deploy to production without manual steps?
- Are feature flags used for in-progress work?

Metrics:
- Deployment frequency (target: daily)
- Lead time for changes (target: &lt; <span class="hljs-number">1</span> day)
- Change failure rate (target: &lt; <span class="hljs-number">15</span>%)

Implementation:
- Teams must implement automated deployment, Delivery Platform Team will assist
- Regular metrics reporting (data can be collected manually)
</code></pre>
<h2 id="heading-considerations">Considerations</h2>
<p>Won't adding this section complicate writing these ADRs?</p>
<p>Well yes, there is another section to write and you need to think about how to make your ADRs more effective. But I hope by now I have shown you this does not need to be complex. Making them more effective and actionable is something you would want regardless, so the thinking part about this should not be skipped. Instead, incorporate verification thinking while writing the ADR: state decisions in measurable and verifiable ways.</p>
<p>Now if you ask me, is it better to have a record of <em>a</em> decision without this section than not having one at all? Then my answer would be yes. Don't let perfection stop you from adopting or recording your decisions - use verification to improve them over time.</p>
<h2 id="heading-making-it-work-in-practice">Making It Work in Practice</h2>
<p>Here are some tips that helped me in the past and may inspire you:</p>
<h3 id="heading-build-assessment-lists">Build Assessment Lists</h3>
<p>If you're generating documentation from your ADRs in markdown (perhaps as a static site), consider extracting the verification sections to create a comprehensive assessment list. This provides teams with a single reference point for alignment checking, rather than requiring them to wade through individual ADRs.</p>
<h3 id="heading-conduct-regular-reviews">Conduct Regular Reviews</h3>
<p>Conduct annual team reviews using the verification sections:</p>
<ul>
<li><p>Hold two-way discussions to identify outdated or unfit decisions</p>
</li>
<li><p>Create prioritised action lists from review findings</p>
</li>
<li><p>Plan top-priorities with stakeholders as needed</p>
</li>
</ul>
<p>This is often also a good time to evaluate the ADR process itself:</p>
<ul>
<li><p>What's working well?</p>
</li>
<li><p>What needs improvement?</p>
</li>
<li><p>How can we enhance the process?</p>
</li>
</ul>
<h2 id="heading-key-takeaways">Key Takeaways</h2>
<p>Architecture benefits from being grounded in implementation. Adding a Verification section to your ADRs creates feedback loops and improves their quality.</p>
<p>The verification section serves as more than a checklist. It:</p>
<ul>
<li><p>Connects architecture with implementation</p>
</li>
<li><p>Provides a mechanism for feedback in both directions</p>
</li>
<li><p>Reveals when decisions aren't being acted upon</p>
</li>
<li><p>Makes ADRs more actionable and effective</p>
</li>
</ul>
<p>This grounding helps prevent architectural decisions from remaining theoretical or becoming shelfware.</p>
]]></content:encoded></item><item><title><![CDATA[Notes on Preparatory Refactoring]]></title><description><![CDATA[Notes inspired by Emily Bache's short Youtube video Design Better Code with Preparatory Refactoring in TDD | Demo. A preparatory refactoring is a…]]></description><link>https://hans.lhoest.eu/notes-on-preparatory-refactoring</link><guid isPermaLink="true">https://hans.lhoest.eu/notes-on-preparatory-refactoring</guid><category><![CDATA[TDD (Test-driven development)]]></category><category><![CDATA[refactoring]]></category><dc:creator><![CDATA[Hans L'Hoest]]></dc:creator><pubDate>Fri, 06 Dec 2024 12:36:53 GMT</pubDate><content:encoded><![CDATA[<p>Notes inspired by Emily Bache's short Youtube video <a target="_blank" href="https://youtu.be/kHwzVlXTOw8?si=4q5GpbGYioN1VE_4">Design Better Code with Preparatory Refactoring in TDD | Demo</a>.</p>
<p>A preparatory refactoring is a refactoring to make future changes to accommodate new requirements easy. By definition, current behavior should not be changed. Instead of using tests to drive changes, you use them to verify you are not breaking existing behavior.</p>
<p>A practical tip: add a pending test as a mental note to remember the goal of your refactoring. Say you have a new requirement coming in. TDD's mantra Red-Green-Refactor would require you to write a failing test first. However, it turns out, the current design is not really well-suited to accommodate this change. This means you may be facing Red status for a while if you decide to keep the test in. In addition, when you start refactoring to change the design, you may accidentally break existing functionality. This means you will have tests that are failing expectedly <em>and</em> unexpectedly. When refactoring you would ideally only see the tests fail when you made a mistake. An in-between approach could be: add the test for the new behavior, see it fail, set it to 'pending' and then proceed with the refactoring.</p>
<p>Green-Refactor-Green instead of Red-Green-Refactor. Preparatory refactoring does not mean we cannot use small steps to do the refactoring. Make a small change to the code, see the test still pass, continue; if a test fails roll back or fix. Green-Refactor-Green, keep an eye on your pending test.</p>
<p>Two further resources which include an example of how one could approach such a refactoring:</p>
<ul>
<li><p>Video: <a target="_blank" href="https://youtu.be/kHwzVlXTOw8?si=4q5GpbGYioN1VE_4">Design Better Code with Preparatory Refactoring in TDD | Demo</a> by Emily Bache.</p>
</li>
<li><p>Blog post: <a target="_blank" href="https://martinfowler.com/articles/preparatory-refactoring-example.html">An example of preparatory refactoring</a> by Martin Fowler.</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>