<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Cloud Rumble Blog</title>
        <link>https://cloudrumble.net/blog</link>
        <description>Cloud Rumble Blog</description>
        <lastBuildDate>Sat, 07 Nov 2026 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <item>
            <title><![CDATA[One AI Agent, Too Many Jobs]]></title>
            <link>https://cloudrumble.net/blog/one-agent-becomes-three</link>
            <guid>https://cloudrumble.net/blog/one-agent-becomes-three</guid>
            <pubDate>Sat, 07 Nov 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[How one overloaded AI assistant became three roles with separate context, bounded workers and a place for results to survive. What failed, what got smaller, and what I have not measured.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="A tangled stream of amber light separates into three glass chambers, each doing one job, before a few finished results emerge" src="https://cloudrumble.net/assets/images/agents-hero-e9336df0c64b0c2f5add2ba9db7f5d02.png" width="1672" height="941" class="img_ev3q"></p>
<style>
article .markdown img { max-width: 100%; height: auto; }
article .markdown p:not(:first-of-type) img { max-width: 700px; }
@media (max-width: 996px) {
  html.blog-post-page:has(img[alt^="A tangled stream"]) .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.blog-post-page:has(img[alt^="A tangled stream"]) .container.margin-vert--lg {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 0 12px !important;
    flex-shrink: 0;
    padding: 36px 0 0 !important;
  }
  html.blog-post-page:has(img[alt^="A tangled stream"]) main.col.col--7 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
  }
  html.blog-post-page:has(img[alt^="A tangled stream"]) .markdown :is(pre, table) {
    max-width: 100%;
    overflow-x: auto !important;
  }
}
</style>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="introduction">Introduction<a href="https://cloudrumble.net/blog/one-agent-becomes-three#introduction" class="hash-link" aria-label="Direct link to Introduction" title="Direct link to Introduction" translate="no">​</a></h2>
<p>I came back to my AI assistant's terminal and could not find its answer. Notifications had pushed it out of view. The assistant had done the work. I still had to find it.</p>
<p>This was happening often enough that I told it: "the moment I cycle back, I never see your response". I move between messages, browser tabs, pull requests and terminal sessions. An answer that needs me to watch a pane at the right moment does not fit that loop.</p>
<p>The same assistant also watched incoming events, answered one-off questions, read logs, supervised workers and learned from my corrections. Every new responsibility brought tools and instructions. Its role file more than tripled in length in a little over a month. I had hired an assistant and given it my entire inbox.</p>
<blockquote>
<p>Hence a wealth of information creates a poverty of attention.</p>
<p>Herbert A. Simon, <a href="https://gwern.net/doc/design/1971-simon.pdf" target="_blank" rel="noopener noreferrer" class="">Designing Organizations for an Information-Rich World</a>, 1971</p>
</blockquote>
<p>In the <a class="" href="https://cloudrumble.net/blog/recursive-harness-self-improvement">previous post</a>, I described a loop that turns the assistant's mistakes into hooks and tools with regression tests. That loop can improve individual mechanisms. I still had to decide which jobs belonged in the same session.</p>
<p>This post follows the attempts that led me to three roles: a main session that manages my attention and supervises work, an intake session that watches incoming events, and a dispatcher that handles one-off requests. Each needed its own context, memory and way to deliver results.</p>
<p>The dispatcher is a day old. My launch notes record smaller starting contexts, and the job store shows recovery after restarts. I still need to find out whether the split makes a working day cheaper or leaves me with fewer interruptions.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="who-is-this-blog-for">Who is this blog for?<a href="https://cloudrumble.net/blog/one-agent-becomes-three#who-is-this-blog-for" class="hash-link" aria-label="Direct link to Who is this blog for?" title="Direct link to Who is this blog for?" translate="no">​</a></h3>
<p>If you keep an AI agent running all day and every request, notification and lesson ends up in its conversation, this is for you. If you mostly ask a question and close the session, a second permanent agent may be another thing to maintain.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="four-attempts-at-a-smaller-job">Four attempts at a smaller job<a href="https://cloudrumble.net/blog/one-agent-becomes-three#four-attempts-at-a-smaller-job" class="hash-link" aria-label="Direct link to Four attempts at a smaller job" title="Direct link to Four attempts at a smaller job" translate="no">​</a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-more-rules">#1 More rules<a href="https://cloudrumble.net/blog/one-agent-becomes-three#1-more-rules" class="hash-link" aria-label="Direct link to #1 More rules" title="Direct link to #1 More rules" translate="no">​</a></h3>
<p>My first response to a repeated mistake was to tell the assistant what it should do next time. The lesson became another paragraph in its instructions. Some lessons later became mechanisms through the improvement loop, but direct corrections could still accumulate as text.</p>
<p>The result was a role file that mixed a job description with operating procedures, exceptions and reminders. When a session needed to decide whether something required my attention, it also carried instructions for tasks it was not doing. Adding the next rule was easy. Deciding what no longer belonged there took work.</p>
<p>The missing answer made the limit visible. A rule saying "make your answer clear" cannot keep that answer from scrolling away under the next event. The delivery path had to change.</p>
<p><a href="https://cloudrumble.net/assets/files/agents-wave-1-14029fba3a1f1a1dd84ec9cf9ad20e22.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="One overloaded assistant receives incoming events, user requests and a large shared toolkit; its answer gets lost in the stream" src="https://cloudrumble.net/assets/images/agents-wave-1-14029fba3a1f1a1dd84ec9cf9ad20e22.png" width="1400" height="780" class="img_ev3q"></a></p>
<p>I gave finished work a place outside the conversation. A result needs a record that I can return to. If it leaves a step only I can take, it belongs on a separate decision list with the outcome, that one step, and enough context to act without opening the transcript.</p>
<p>"Here is the answer to your lookup" is a result. "The change is ready; you need to merge it" is a handoff. Sending both to a decision list turns an assistant's output back into an inbox of chores.</p>
<p>The instructions also needed a boundary. The role file now states the job and how the assistant should behave; procedures belong in skills loaded when needed. A size ceiling means each addition needs a cut elsewhere. I still have to judge whether the rules that remain help the assistant do its job.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-a-separate-intake-session">#2 A separate intake session<a href="https://cloudrumble.net/blog/one-agent-becomes-three#2-a-separate-intake-session" class="hash-link" aria-label="Direct link to #2 A separate intake session" title="Direct link to #2 A separate intake session" translate="no">​</a></h3>
<blockquote>
<p>Make each program do one thing well.</p>
<p>M. D. McIlroy, E. N. Pinson and B. A. Tague, <a href="https://mirror.math.princeton.edu/pub/unixarchive/Documentation/Papers/BSTJ/bstj57-6-1899.pdf" target="_blank" rel="noopener noreferrer" class="">UNIX Time-Sharing System: Foreword</a>, 1978</p>
</blockquote>
<p>The next attempt was to move the event stream into an intake session. Its job is to check what happened, settle routine events at the source, and pass exceptions to the main session. A notification that a task finished is a reason to check its result, not proof that the work is done.</p>
<p>This gave the main session fewer reasons to wake up. It also gave each conversation a clearer purpose: incoming events in one, my decisions and ongoing work in the other.</p>
<p>But both sessions still started from the same working folder and inherited the same configuration. At one point a resume picked up the other session's conversation and identity. The hooks followed the wrong conversation. The windows were separate, but their configuration and conversation history were still entangled.</p>
<p><a href="https://cloudrumble.net/assets/files/agents-wave-2-c7d0694a05a124af41eeadbbac375062.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="The event stream moves to an intake session, but both sessions still inherit the same oversized toolkit and instructions" src="https://cloudrumble.net/assets/images/agents-wave-2-c7d0694a05a124af41eeadbbac375062.png" width="1400" height="780" class="img_ev3q"></a></p>
<p>Giving each role its own working folder separated project history and local notes. It did not yet stop both loading the same collection of skills, plugins and tool servers. The intake session still loaded tools for every other job on the machine.</p>
<p>That was the next problem to measure. In a two-week census, the intake session had used one skill regularly and only a few others at all. Its skill menu contained dozens of entries. Most of that menu was there before an event arrived, whether intake needed it or not.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="3-tool-profiles">#3 Tool profiles<a href="https://cloudrumble.net/blog/one-agent-becomes-three#3-tool-profiles" class="hash-link" aria-label="Direct link to #3 Tool profiles" title="Direct link to #3 Tool profiles" translate="no">​</a></h3>
<p>I tried profiles that named the skills each role should use. They hid entries without reliably removing the other skills. A hidden skill could still be invoked by name, and plugin-provided skills did not all follow the same profile rules.</p>
<p>There are several surfaces to inspect: what the menu lists, what the model sees in context, what it can invoke directly, and what it can reach through another tool. A shorter menu answers only the first question.</p>
<p><a href="https://cloudrumble.net/assets/files/agents-wave-3-2cb9d53c1d8bb4aa421f3086374bbe56.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="A short visible menu hides a large inherited toolbox behind a curtain; changing the menu has not removed the baggage" src="https://cloudrumble.net/assets/images/agents-wave-3-2cb9d53c1d8bb4aa421f3086374bbe56.png" width="1400" height="780" class="img_ev3q"></a></p>
<p>Anthropic's <a href="https://www.anthropic.com/research/effective-context-engineering-for-ai-agents" target="_blank" rel="noopener noreferrer" class="">context-engineering guidance</a> treats context as a finite resource and warns about overlapping tool sets. It also describes focused subagents that work in their own context and return condensed findings. That helps explain the design; I would need separate evidence to judge answer quality in my setup.</p>
<p>Routing work away from the session was another way to reduce its load. I tried automatic quota routing, which estimated usage pressure and nudged work toward another runtime. Short bursts produced alarming forecasts; the warnings themselves woke sessions and consumed context. The control had become another source of work. I removed the quota gates and kept routing by capability. I now choose workers for the job they can do well.</p>
<p>The remaining change was more basic: decide what a role loads before it starts.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="4-separate-launch-configurations">#4 Separate launch configurations<a href="https://cloudrumble.net/blog/one-agent-becomes-three#4-separate-launch-configurations" class="hash-link" aria-label="Direct link to #4 Separate launch configurations" title="Direct link to #4 Separate launch configurations" translate="no">​</a></h3>
<blockquote>
<p>the only available technique for effective ordering of one's thoughts, that I know of.</p>
<p>Edsger W. Dijkstra, on separation of concerns, <a href="https://www.cs.utexas.edu/~EWD/transcriptions/EWD04xx/EWD447.html" target="_blank" rel="noopener noreferrer" class="">On the role of scientific thought</a>, 1974</p>
</blockquote>
<p>Each role now starts from a folder containing its own instructions, selected skills, worker definitions and tool-server configuration. A launcher builds that folder from the role's profile. Shared guard hooks travel with it; removing an irrelevant skill must not remove a protection.</p>
<p>In Claude Code, the launch uses <code>--setting-sources project,local</code> to select project and local settings instead of user settings. MCP server selection is a separate concern: the CLI also has <code>--strict-mcp-config</code> for loading only an explicit server configuration. These flags have different jobs, and neither turns a folder into a sandbox. The <a href="https://code.claude.com/docs/en/cli-reference" target="_blank" rel="noopener noreferrer" class="">CLI reference</a> explains their scopes.</p>
<p>The global instructions stay short and shared. Role instructions refer to them, then describe that role's own job. A worker gets the procedures and context needed for its assignment. I do not want three copies of a rule slowly becoming three different rules.</p>
<p><a href="https://cloudrumble.net/assets/files/agents-wave-4-7f8ddb9672f5691fceb016d3fbc605c2.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="Three roles start with smaller toolkits suited to their jobs; bounded workers receive only the tools and brief for one assignment" src="https://cloudrumble.net/assets/images/agents-wave-4-7f8ddb9672f5691fceb016d3fbc605c2.png" width="1400" height="780" class="img_ev3q"></a></p>
<p>The third role, a dispatcher, handles requests that belong to no ongoing stream: a question, a lookup, a command to run. It records a job, starts a bounded worker and delivers the result. The main session keeps the longer view and supervises work that crosses jobs. Intake keeps watching events while either is occupied.</p>
<p>Those roles have different useful lifetimes. Intake needs continuity across an event stream. Supervision needs continuity across decisions and workers. A one-off lookup should be able to finish without leaving its exploration in the main conversation for the rest of the day.</p>
<p>One dispatcher with short-lived workers could be enough in a simpler setup. I already had a continuous event stream and ongoing supervision to separate. That is how I arrived at three roles. A different workload may need fewer.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="starting-context">Starting context<a href="https://cloudrumble.net/blog/one-agent-becomes-three#starting-context" class="hash-link" aria-label="Direct link to Starting context" title="Direct link to Starting context" translate="no">​</a></h2>
<p>The token figures below are historical readings from my 7 November launch notes. I did not rerun them for this revision. The probe output survives, but I could not recover the original captures for the live comparisons. The notes record a headless intake launch on Haiku going from 57,546 to 48,875 tokens after its profile was applied.</p>
<p>The later folder changes also reached subagents, which start much more often than the main sessions. The notes include two examples of first-request context. Parentheses give the number of recorded runs; each probe is a separate single run after the change.</p>
<table><thead><tr><th>Worker role</th><th>Before, live tokens (runs)</th><th>After, live tokens (runs)</th><th>Separate probe, tokens</th></tr></thead><tbody><tr><td>History investigation</td><td>47,174 (8)</td><td>32,597 (4)</td><td>22,989</td></tr><tr><td>GitHub investigation</td><td>52,748 (24)</td><td>29,660 (1)</td><td>21,698</td></tr></tbody></table>
<p>These columns are not a replay of the same task. A real investigation and a short probe have different inputs, and the post-change sample is tiny. The readings suggest that the profile removed inherited context. They leave accuracy, total job cost and saved attention unmeasured.</p>
<p>Delegation can also cost more. In its own <a href="https://www.anthropic.com/research/multi-agent-research-system" target="_blank" rel="noopener noreferrer" class="">multi-agent research system</a>, Anthropic reports much higher token use than ordinary chats and describes parallel research as a better fit than tightly dependent work. That result belongs to its system and evaluation. In mine, a smaller worker context still has to pay for the brief, the worker, the return and the supervisor reading it.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="architecture">Architecture<a href="https://cloudrumble.net/blog/one-agent-becomes-three#architecture" class="hash-link" aria-label="Direct link to Architecture" title="Direct link to Architecture" translate="no">​</a></h2>
<p>Each role owns a different stream of work, loads its own context and has a delivery path. The picture shows roles rather than the names of my running sessions. A shared set of guardrails sits underneath them; a smaller toolkit is not a new grant of authority.</p>
<p><a href="https://cloudrumble.net/assets/files/agents-components-0b578dc778a46aa902cb4fd6a3a1d5c9.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="Role diagram showing event intake, a main supervising session, a request dispatcher, bounded workers, stored results and a separate human decision list" src="https://cloudrumble.net/assets/images/agents-components-0b578dc778a46aa902cb4fd6a3a1d5c9.png" width="1568" height="1722" class="img_ev3q"></a></p>
<p>Intake receives events and checks their source. An event that needs no action can settle there. An exception goes to the main session with evidence of what happened and what remains unresolved. Sending every event onward would recreate the original stream in another window.</p>
<p>The main session owns the longer-running work: priorities, exceptions, worker supervision and questions that cross assignments. It can delegate an investigation without importing every search result into its own context. Its job is still to assess the returned evidence and decide what follows.</p>
<p>The dispatcher owns a request from receipt to delivery. It records the request before starting a worker, including where the result should return. The worker receives one goal, the relevant context, the allowed actions and a result contract: what to answer, which evidence to include and where to save it.</p>
<p>The result contract asks for the command or source behind a claim and the output or passage that supports it. A sentence saying "checks passed" is not the check output. I can inspect the result, though an agent can still misread or invent evidence. Important conclusions still need verification at their source.</p>
<p>A routine answer returns to the place I asked from, with a stored result I can revisit. A decision handoff goes to the decision list. That list should contain finished work awaiting my step, not progress updates or a transcript of the assistant's day. Delivery is part of the job, and keeping a result is separate from interrupting me about it.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="request-delivery-and-restart-recovery">Request delivery and restart recovery<a href="https://cloudrumble.net/blog/one-agent-becomes-three#request-delivery-and-restart-recovery" class="hash-link" aria-label="Direct link to Request delivery and restart recovery" title="Direct link to Request delivery and restart recovery" translate="no">​</a></h3>
<p><a href="https://cloudrumble.net/assets/files/agents-sequence-937e0efd8b83060707f0d8f1f5a282fe.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="A request is recorded before dispatch, a worker saves its result, and delivery branches into a routine answer or a decision handoff; interrupted work returns through recovery" src="https://cloudrumble.net/assets/images/agents-sequence-937e0efd8b83060707f0d8f1f5a282fe.png" width="1568" height="1348" class="img_ev3q"></a></p>
<p>One early request asked for a count of commits since midnight. It needed an answer. Yet the dispatcher had been sending routine results to my decision list as though I owed each one a decision. The first 17 requests include seven deliveries to that list and one rejection as a chore. I changed the dispatcher to answer in the pane by default; the records include ten answer deliveries.</p>
<p>The request is first written to an append-only job store. Dispatch records that a worker is starting, and the worker writes its result to a file. Completion lets the dispatcher read that file, judge whether it answers the request and choose the delivery path. The store keeps the state outside the conversation.</p>
<p>The first afternoon also included two jobs whose dispatching session restarted before they returned. Recovery requeued both on the next start. The next session could see unfinished work without remembering the conversation that created it. Requeuing is not proof of exactly-once execution. A worker that can make changes needs a way to detect an action already taken before repeating it.</p>
<p>There was a related surprise in a separate <code>/clear</code> experiment. Background work launched before the clear could finish and report into a fresh conversation that no longer knew what it had asked for. Clearing the parent's conversation had not cancelled its children. For this dispatcher, a fresh process after draining recorded work was easier to reason about than clearing a busy conversation.</p>
<p>The record of that first afternoon contains 17 requests, eight of them test probes. It shows mistaken handoffs, interrupted jobs and recovery, but cannot establish a success rate for real use.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="a-small-trial">A small trial<a href="https://cloudrumble.net/blog/one-agent-becomes-three#a-small-trial" class="hash-link" aria-label="Direct link to A small trial" title="Direct link to A small trial" translate="no">​</a></h3>
<p>You can test the idea without copying my launcher. Pick a read-only job you already do, such as investigating a failed check. Write down the question, where its evidence lives, what counts as a complete answer and where that answer should be saved. Give it to a separate worker with only the tools it needs. Keep the same model and task when comparing configurations.</p>
<p>Record the context at the first request, the final result, total usage and the time you spent briefing and reviewing. Repeat across several representative jobs. A short startup probe is useful for seeing what loads; a completed task is needed to see what the reduced setup can still do. Include a task that needs a rarely used tool, so a smaller profile cannot pass merely by avoiding its missing capability.</p>
<p>Then test delivery. Close the conversation and reopen it after the worker finishes. Check that you can find the result from the stored job alone. In a throwaway test, restart the dispatcher while a read-only job is running. Check that the next process can distinguish unfinished work from a completed result awaiting delivery. Watch what happens to the original worker as well as to the new session.</p>
<p>Only after that would I add continuous intake. A second permanent conversation adds routing, recovery and another place to look. It should remove a failure you can name.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="security">Security<a href="https://cloudrumble.net/blog/one-agent-becomes-three#security" class="hash-link" aria-label="Direct link to Security" title="Direct link to Security" translate="no">​</a></h2>
<p>Separating roles creates more places where text, tools and state cross a boundary. The checks below apply whether your system has two agents or twenty.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="input-trust">Input trust<a href="https://cloudrumble.net/blog/one-agent-becomes-three#input-trust" class="hash-link" aria-label="Direct link to Input trust" title="Direct link to Input trust" translate="no">​</a></h3>
<p>A worker may read a message that tells it to change its task, reveal data or contact another service. Passing that text through an intake agent does not make it trusted. The original source and the owner's request need to stay distinct throughout delegation, including in the worker's brief.</p>
<p>Check which inputs can create work, which can only supply evidence, and whether an instruction embedded in a retrieved document can change either. A supervisor's summary should preserve that distinction instead of laundering a stranger's request into its own authority.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="effective-permissions">Effective permissions<a href="https://cloudrumble.net/blog/one-agent-becomes-three#effective-permissions" class="hash-link" aria-label="Direct link to Effective permissions" title="Direct link to Effective permissions" translate="no">​</a></h3>
<p>A role-specific folder selects what normally loads. It does not, by itself, deny access to the rest of the machine or prevent a shell command from reaching a service whose dedicated tool was removed. Credentials, filesystem access and network access need their own controls. Claude Code documents its <a href="https://code.claude.com/docs/en/sandboxing" target="_blank" rel="noopener noreferrer" class="">shell sandbox</a> separately from settings and tool selection.</p>
<p>Check the effective permissions of the running role, including alternate tool paths and the credentials inherited by workers. Also check that narrowing the role did not drop the shared guard hooks. The shared protections need to survive the move.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="retries-and-repeated-actions">Retries and repeated actions<a href="https://cloudrumble.net/blog/one-agent-becomes-three#retries-and-repeated-actions" class="hash-link" aria-label="Direct link to Retries and repeated actions" title="Direct link to Retries and repeated actions" translate="no">​</a></h3>
<p>A read-only lookup is usually safe to retry. A worker that already submitted a change can do it twice if the dispatcher loses the completion record. An append-only store helps reconstruct events; it cannot undo an external action or make that action atomic with a local write.</p>
<p>Check how each job detects work already completed, how many retries it gets and when it stops for a person. Test the awkward interval after the action succeeds but before completion is recorded. Keep irreversible actions behind an explicit authority boundary.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="spending-limits">Spending limits<a href="https://cloudrumble.net/blog/one-agent-becomes-three#spending-limits" class="hash-link" aria-label="Direct link to Spending limits" title="Direct link to Spending limits" translate="no">​</a></h3>
<p>A supervisor can keep creating workers while each worker appears to make progress. Bound concurrency, queued work, runtime and attempts in the dispatch mechanism. A request in the prompt to be brief does not enforce a deadline.</p>
<p>Check every route that can start a worker, including shell jobs and other providers. Record dispatches that are refused as well as those that start. A job that keeps returning to the queue should become a visible failure, not an endless source of compute.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="credentials-and-saved-results">Credentials and saved results<a href="https://cloudrumble.net/blog/one-agent-becomes-three#credentials-and-saved-results" class="hash-link" aria-label="Direct link to Credentials and saved results" title="Direct link to Credentials and saved results" translate="no">​</a></h3>
<p>Generated settings and tool-server files can carry credentials, and a result file can contain the sensitive text a worker read. Moving them into per-role folders adds places to secure and exclude from version control.</p>
<p>Check file permissions, retention and backups, and what leaves the machine when a task goes to another provider. A small result is still a disclosure if it contains the wrong data.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="observability">Observability<a href="https://cloudrumble.net/blog/one-agent-becomes-three#observability" class="hash-link" aria-label="Direct link to Observability" title="Direct link to Observability" translate="no">​</a></h2>
<p>A crowded pane was visibly busy. Several quiet panes can hide a stalled stream. Silence is useful only if I can tell it from failure.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="job-lifecycle">Job lifecycle<a href="https://cloudrumble.net/blog/one-agent-becomes-three#job-lifecycle" class="hash-link" aria-label="Direct link to Job lifecycle" title="Direct link to Job lifecycle" translate="no">​</a></h3>
<p>For each job, retain when it was received, dispatched, completed and delivered, plus the result location. Look for jobs with a start and no completion, and results saved but never delivered. Recovery should say which jobs it requeued and why. These records let you investigate a failure without asking the agent to remember its own story.</p>
<p>Watch event freshness too. If events keep arriving but checked outcomes stop, the intake path may be stuck even when no process has crashed. The earlier improvement loop taught me that a skipped run or a message held by the wrong session can produce no error at all.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="loaded-context-and-tools">Loaded context and tools<a href="https://cloudrumble.net/blog/one-agent-becomes-three#loaded-context-and-tools" class="hash-link" aria-label="Direct link to Loaded context and tools" title="Direct link to Loaded context and tools" translate="no">​</a></h3>
<p>Use the runtime's context view after a fresh start, then inspect a real worker's first request. The role's menu, selected settings, effective tools and inherited worker context can differ. Repeat the check after a profile change or a runtime update, and run a task that needs one of the retained capabilities.</p>
<p>A startup count is a regression signal for configuration size. Pair it with completed-task results. The reduced setup still needs to finish the job.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="attention-and-compute">Attention and compute<a href="https://cloudrumble.net/blog/one-agent-becomes-three#attention-and-compute" class="hash-link" aria-label="Direct link to Attention and compute" title="Direct link to Attention and compute" translate="no">​</a></h3>
<p>My target is useful work advanced per unit of my attention and compute. I need to count completed jobs, unnecessary decision handoffs, results I could not find and times I had to intervene to keep work moving. My own corrections are another signal, provided I account for how much work the system attempted.</p>
<p>Those measures can disagree. Fewer complaints might mean fewer jobs, and fewer handoffs might mean stalled delivery. Read them together with the raw job records and sample the underlying work. The dispatcher should not be the only judge of whether its output was useful.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="conclusion">Conclusion<a href="https://cloudrumble.net/blog/one-agent-becomes-three#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion" translate="no">​</a></h2>
<p>The improvement loop in the previous post helped me turn corrections into mechanisms. Splitting the assistant meant looking at the jobs themselves: which needed continuity, which could end after one answer, and where those answers belonged. Separate launch configurations let me give each role a smaller starting context.</p>
<p>The launch notes and early job records give me a starting point. Whether the split gives back more attention than its upkeep consumes is still open.</p>
<p>Simon wrote about information consuming its recipients' attention. An assistant can sort that information and still consume mine if I have to find its answers, explain every handoff or supervise its restarts. Before you add another agent, choose the job it will own, the context it needs and the place its result will survive. Then check whether you have less work to do when you come back.</p>]]></content:encoded>
            <category>ai</category>
            <category>development</category>
            <category>automation</category>
        </item>
        <item>
            <title><![CDATA[You're Absolutely Right: Now Fix Your Harness]]></title>
            <link>https://cloudrumble.net/blog/recursive-harness-self-improvement</link>
            <guid>https://cloudrumble.net/blog/recursive-harness-self-improvement</guid>
            <pubDate>Fri, 23 Oct 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[The model is fixed and the harness is mutable. How an observer, an independent judge and an improving agent turn my Claude Code assistant's mistakes into hooks and tools with regression tests, and what a quiet day after a change does and does not show.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="A flawless crystal floats at the center of a ring of stone blocks; on one side the blocks are cracked with glowing cyan seams, and around the ring they give way to new blocks of glowing amber glass while old fragments fall away" src="https://cloudrumble.net/assets/images/rhsi-hero-d98bcab035c21bdce77bc329deffe0b1.png" width="1536" height="864" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
@media (max-width: 996px) {
  html.blog-post-page:has(img[alt^="A flawless crystal floats at the center"]) .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.blog-post-page:has(img[alt^="A flawless crystal floats at the center"]) .container.margin-vert--lg {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 0 12px !important;
    flex-shrink: 0;
    padding: 36px 0 0 !important;
  }
  html.blog-post-page:has(img[alt^="A flawless crystal floats at the center"]) main.col.col--7 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
  }
  html.blog-post-page:has(img[alt^="A flawless crystal floats at the center"]) .markdown :is(pre, table) {
    max-width: 100%;
    overflow-x: auto !important;
  }
}
</style>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="introduction">Introduction<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#introduction" class="hash-link" aria-label="Direct link to Introduction" title="Direct link to Introduction" translate="no">​</a></h2>
<p>RSI stands for Recursive Self-Improvement: an AI system that improves itself, then uses the improved version to improve itself again. It is one of the milestones AI is expected to reach one day. In 1965, the mathematician I. J. Good put it like this:</p>
<blockquote>
<p>Let an ultraintelligent machine be defined as a machine that can far surpass all the intellectual activities of any man however clever. Since the design of machines is one of these intellectual activities, an ultraintelligent machine could design even better machines; there would then unquestionably be an 'intelligence explosion,' and the intelligence of man would be left far behind.</p>
<p>I. J. Good, <a href="https://en.wikipedia.org/wiki/I._J._Good" target="_blank" rel="noopener noreferrer" class="">Speculations Concerning the First Ultraintelligent Machine</a>, 1965</p>
</blockquote>
<p>My own agent is a long way from an intelligence explosion. It is an agentic session in Claude Code that runs all day as my assistant, and like any assistant it makes mistakes. When I corrected it, it apologized and wrote the lesson down in <code>CLAUDE.md</code>, a skill or a memory: one more line competing with everything else in its context. Often it made the same mistake a day later, and nothing told me whether a lesson had changed anything.</p>
<blockquote>
<p>What would you do if you were stuck in one place, and every day was exactly the same, and nothing that you did mattered?</p>
<p>Phil Connors, <a href="https://en.wikiquote.org/wiki/Groundhog_Day_(film)" target="_blank" rel="noopener noreferrer" class="">Groundhog Day</a>, 1993</p>
</blockquote>
<p>Self-improvement doesn't have to mean retraining the model, though. If the prompt is what you ask and the context is everything the model sees when it answers, the harness is what builds that context and acts on the answers: instruction files, skills, memory, hooks, tools and permissions. The model can stay fixed while the agent improves its harness, including the parts that do the improving. That loop has a working name: Recursive Harness Self-Improvement, or RHSI. It is an idea, and my own setup is where I am testing it.</p>
<p>By the end of this blog, you will know how my own loop evolved and how it is built. You will also see what it changed in its first two days, and why none of it counts as proven yet.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="who-is-this-blog-for">Who is this blog for?<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#who-is-this-blog-for" class="hash-link" aria-label="Direct link to Who is this blog for?" title="Direct link to Who is this blog for?" translate="no">​</a></h3>
<p>If you use an AI agent in a terminal or a desktop app and are tired of hearing "You're absolutely right, I should have...", this blog is for you. If you build the harness around your agent, the second half covers how my loop is built, where it can go wrong, and how to watch it.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="attempts-to-solve-the-problem">Attempts to solve the problem<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#attempts-to-solve-the-problem" class="hash-link" aria-label="Direct link to Attempts to solve the problem" title="Direct link to Attempts to solve the problem" translate="no">​</a></h2>
<p>RHSI didn't occur to me right away. I tried two other ideas first, and each one failed in a way that pointed to the next.</p>
<blockquote>
<p>A complex system that works is invariably found to have evolved from a simple system that worked.</p>
<p>John Gall, <a href="https://en.wikiquote.org/wiki/John_Gall" target="_blank" rel="noopener noreferrer" class="">Systemantics</a>, 1975</p>
</blockquote>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-stick-and-carrot-but-for-ai">#1 Stick and carrot, but for AI<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#1-stick-and-carrot-but-for-ai" class="hash-link" aria-label="Direct link to #1 Stick and carrot, but for AI" title="Direct link to #1 Stick and carrot, but for AI" translate="no">​</a></h3>
<p>My first attempt, in late 2025, was a scoreboard. When Claude got something wrong, I typed a strike with a reason; when it got something right, a praise. A script kept the score in a CSV file, and a Stop hook told Claude to "IMPLEMENT all pending feedback" in its prompts, <code>CLAUDE.md</code> or skills. I liked it enough to show it in <a href="https://www.youtube.com/watch?v=09dggS8KwBc" target="_blank" rel="noopener noreferrer" class="">a video</a>.</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-wave-1-130a84e2cf6dad65ae7751a1887c1e86.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="I record a strike with a reason, a CSV keeps the score, a Stop hook bell tells Claude to implement all pending feedback, Claude reports that it updated CLAUDE.md and marked the feedback implemented, and I look tired" src="https://cloudrumble.net/assets/images/rhsi-wave-1-130a84e2cf6dad65ae7751a1887c1e86.png" width="1400" height="720" class="img_ev3q"></a></p>
<p>It was too simple, and it kept me in the loop. I collected the evidence and judged it myself, and Claude graded its own homework: "implemented" meant Claude said so. Nothing checked whether the mistake came back. Around the turn of the year I removed it; the last commit says it "added friction without measurable benefit".</p>
<blockquote>
<p>The first principle is that you must not fool yourself, and you are the easiest person to fool.</p>
<p>Richard Feynman, <a href="https://en.wikiquote.org/wiki/Richard_Feynman" target="_blank" rel="noopener noreferrer" class="">Galileo Symposium lecture</a>, 1964</p>
</blockquote>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-a-clinical-trial-for-every-instruction">#2 A clinical trial for every instruction<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#2-a-clinical-trial-for-every-instruction" class="hash-link" aria-label="Direct link to #2 A clinical trial for every instruction" title="Direct link to #2 A clinical trial for every instruction" translate="no">​</a></h3>
<p>In August 2026 the pendulum swung the other way: a session-eval harness that works like a drug trial. For each moment I was unhappy, a model proposes one instruction that would have prevented it. The harness replays that moment five times without the instruction and five times with it, a blind judge picks the better answer, and a binomial test decides.</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-evals-f0b03b9d1bffd8aaacd9d5ef17cd4777.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="One recorded moment is frozen and replayed as one answer with no tools and no later turns; five test tubes run without the instruction and five with it; a blind judge says B, 5 of 5, p = 0.031; each candidate costs ten or more replays, the result is one more line of text, 43 candidates gave 4 findings, and I ask: and three turns later?" src="https://cloudrumble.net/assets/images/rhsi-evals-f0b03b9d1bffd8aaacd9d5ef17cd4777.png" width="1400" height="720" class="img_ev3q"></a></p>
<p>In its first week, it tested 43 candidate instructions and kept four. It was also too heavy and too low level. Every candidate cost at least ten replays, and each replay was one answer, without tools, at the moment I complained, so a mistake that played out over tool calls or later turns was out of its reach. And the four findings were, once again, lines of text.</p>
<blockquote>
<p>I think the problem, to be quite honest with you, is that you've never actually known what the question is.</p>
<p>Deep Thought, in Douglas Adams' <a href="https://en.wikiquote.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy" target="_blank" rel="noopener noreferrer" class="">The Hitchhiker's Guide to the Galaxy</a>, 1979</p>
</blockquote>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="3-physician-heal-thyself">#3 Physician, heal thyself<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#3-physician-heal-thyself" class="hash-link" aria-label="Direct link to #3 Physician, heal thyself" title="Direct link to #3 Physician, heal thyself" translate="no">​</a></h3>
<p>The third attempt is the RHSI loop. I built it in October 2026, and it went through three steps.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="a-referee-from-another-league">A referee from another league<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#a-referee-from-another-league" class="hash-link" aria-label="Direct link to A referee from another league" title="Direct link to A referee from another league" translate="no">​</a></h4>
<p>This time I keep no scoreboard, and nothing is replayed. My complaints are already in the transcript. When the agent told me something was "waiting on you since 01:24 (40bd)", I had to ask whether "bd" meant business days. It was an unlabeled task id, and my question was the complaint a model can find.</p>
<p>Every two hours, a cron job sends the slice of the agent's transcript since the last run to a judge from another model family, which can read but not write. Models are lenient judges of their own work: one "scores its own outputs higher than others' while human annotators consider them of equal quality" (<a href="https://arxiv.org/abs/2404.13076" target="_blank" rel="noopener noreferrer" class="">Panickssery et al.</a>). Another family lowers that risk, though it does not remove it.</p>
<p>The rubric's first rule is "Evidence or nothing": every verdict quotes the transcript. A strike the judge finds without a complaint from me is a silent strike, and it waits for a repeat. Before relying on the judge, I ran it on a frozen day with 26 of my complaints and praises. It found all 26.</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-wave-2-5f815adc31ade05f965be86242904c48.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="Every two hours, a two-hour slice of the agent&amp;#39;s session goes to a judge robot in referee stripes from another provider, which hands out a strike for an unlabeled task id read as business days and a praise for warning that approving a PR would deploy it to prod; every verdict becomes a ledger row" src="https://cloudrumble.net/assets/images/rhsi-wave-2-5f815adc31ade05f965be86242904c48.png" width="1400" height="720" class="img_ev3q"></a></p>
<p>Every verdict lands in the ledger, an append-only JSONL file in git, and every strike in it waits for a fix.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="another-note-on-the-fridge">Another note on the fridge<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#another-note-on-the-fridge" class="hash-link" aria-label="Direct link to Another note on the fridge" title="Direct link to Another note on the fridge" translate="no">​</a></h4>
<p>The first strike was one I wrote by hand. I had answered a question in Slack that a form's hint should have answered, and the agent left it at that. I told it: "if you propose good actions, that's what differentiates junior platform engineer from senior".</p>
<p>I fixed it the familiar way: a rule in the agent's skill to propose the source fix, plus a test that the rule stays in the file. The next day, the judge caught the agent twice more doing the same thing.</p>
<blockquote>
<p>Sammy Jankis had the same problem, but he really had no system. He wrote himself a ridiculous amount of notes, but he'd get them all mixed up.</p>
<p>Leonard Shelby, <a href="https://en.wikiquote.org/wiki/Memento_(film)" target="_blank" rel="noopener noreferrer" class="">Memento</a>, 2000</p>
</blockquote>
<p>The test passed the whole time: it checked that the text was there, and it was. In SkillsBench, skill packs that agents wrote for themselves before solving a task "provide no benefit on average" (<a href="https://arxiv.org/abs/2602.12670v3" target="_blank" rel="noopener noreferrer" class="">v3</a>); the latest version still finds that they "do not substitute for curated ones" (<a href="https://arxiv.org/html/2602.12670v4" target="_blank" rel="noopener noreferrer" class="">v4</a>). Has anything ever checked the lines in your own <code>CLAUDE.md</code>?</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-wave-3-eb9b4bd3d6f6e6917e5f2f3e9c551d6f.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="I correct the agent in chat, it adds a rule to a long skill file, and the next day it closes a question without proposing a fix, again" src="https://cloudrumble.net/assets/images/rhsi-wave-3-eb9b4bd3d6f6e6917e5f2f3e9c551d6f.png" width="1400" height="720" class="img_ev3q"></a></p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="trust-but-verify">Trust, but verify<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#trust-but-verify" class="hash-link" aria-label="Direct link to Trust, but verify" title="Direct link to Trust, but verify" translate="no">​</a></h4>
<p>Since then, a fix has to be a mechanism, tried in this order:</p>
<ol>
<li class="">Right-time context: a hook that injects the relevant fact at the moment it matters</li>
<li class="">A hook that enforces or automates the behaviour</li>
<li class="">A deterministic tool or script</li>
<li class="">A check by a small model, for the rare case that needs judgement</li>
</ol>
<p>The first is what Andrej Karpathy calls context engineering:</p>
<blockquote>
<p>...context engineering is the delicate art and science of filling the context window with just the right information for the next step.</p>
<p>Andrej Karpathy, <a href="https://x.com/karpathy/status/1937902205765607626" target="_blank" rel="noopener noreferrer" class="">on X</a>, 2025</p>
</blockquote>
<p>A strike none of these can fix stays open. The strike about proposing fixes got a hook. When a TaskWarrior task closes and its text looks like a question someone asked, a small model picks where the answer should have lived: an announcement, a form, a tooltip, a doc, an alert, a runbook or nowhere. Any pick but nowhere adds one line to the task-closed notice, asking the agent to propose that edit.</p>
<p>One of the repeats was "will sessions be recorded?", asked in the thread under my office-hours announcement. I answered with a reaction, the task closed, and nobody proposed putting the answer in the announcement itself.</p>
<p>The hook's tests replay that closed task with a stand-in for the small model and check that the added line names the announcement. In the day since, the family has drawn no new strike and three praises for proposed fixes. That fits the hook working, and it proves nothing yet.</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-wave-4-91e9e88887967796a9c1cdcc16582158.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="A worker takes each strike, picks the first fix that fits from a ladder of right-time context, a hook, a deterministic tool and a small-model check, with a line in the skill crossed out, writes a regression test from the real trace, and the judge&amp;#39;s next run says no strike of this family since the fix, which earns only a quiet-for-a-day label, or on a repeat, the next fix on the list" src="https://cloudrumble.net/assets/images/rhsi-wave-4-91e9e88887967796a9c1cdcc16582158.png" width="1400" height="720" class="img_ev3q"></a></p>
<p>Each fix gets a regression test from the strike's own quotes. Strikes that share one cause form a family, and the loop labels a fix verified after a day with no new strike of its family. That label is a weak signal: a quiet day can mean the fix worked, the situation never came up, or the judge missed it. A repeat sends the agent to the next fix on the list.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="architecture">Architecture<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#architecture" class="hash-link" aria-label="Direct link to Architecture" title="Direct link to Architecture" translate="no">​</a></h2>
<p>The loop has three roles, and each does one job. The observer collects evidence and interprets nothing. The judge hands out strikes and praise but cannot touch the harness. The improving agent, a subagent of my agent, makes the change and writes its test but cannot vouch for its own fix; only later judge runs add evidence. The diagram shows one run, from the transcript slice to the next run's check for the same family.</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-sequence-41a0c0ef338673c816e374c5e27aed6d.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="Sequence diagram: cron starts the judge script, which skips if a lock is held; the script slices the agent&amp;#39;s transcript since the last run and sends the rubric, the cares file, the live extension points, the known families and the slice to a frontier model through the Codex CLI; the model returns strikes and praise as JSON with quotes and fixes; the script appends the rows to the ledger, runs verify, and sends the agent one record with the counts; the agent hands the open ids to a reflect worker, which reads each verdict, checks for a repeat, writes the first valid fix with a regression test as one local commit, and closes the row; a repeat whose next fix needs my authority, because it touches the mission, a permission, an external write or spending, goes to my board; two hours later the next run checks whether the family came back" src="https://cloudrumble.net/assets/images/rhsi-sequence-41a0c0ef338673c816e374c5e27aed6d.png" width="4752" height="2712" class="img_ev3q"></a></p>
<p>A cron job starts the judge script every two hours. If the previous run still holds the lock, the new one exits without judging, so two runs never judge the same slice. The script cuts the agent's transcript since the last run into a slice of my messages, the agent's replies and the event lines it received; tool results and thinking are dropped and long texts are capped. Beside it, a cheap check runs every 30 minutes and compares my Slack archive with what reached the agent. A message that never arrived becomes a strike without a model call.</p>
<p>The judge is a frontier model from another vendor, called through the Codex CLI in a read-only sandbox. Besides the slice, it gets the rubric, a file of what I care about in my own words, a live listing of every hook, script and setting a fix may target, and the families of strikes it already knows. It answers in JSON: each strike or praise with its quotes from the slice, a family, and up to three fixes, best first.</p>
<p>The script appends the verdicts to the ledger and runs verify, which labels a fixed family verified once a day has passed with no new strike of it. Then it sends my agent one record with the counts, the time window and the top strike. The record carries no ids: I read the agent's pane, and a list of hex ids is noise to me.</p>
<p>My agent hands the open ids to a reflect worker, a subagent that takes strikes first. It reads each verdict and checks whether a fix for the same family landed in the past week. If none did, it takes the first suggested fix whose target is on the live listing and writes a regression test from the strike's own quotes. It commits the change locally with the ledger id in a trailer, then closes the row with the layer, the family and why it chose that fix. If one did, the family came back and that fix failed, so the worker takes the next untried fix. That fix goes to my board instead when it touches the mission, a permission, an external write or spending. A praise gets a keep-test that pins the behaviour that earned it.</p>
<p>Once a day, a discovery step reads the Claude Code and Codex release notes for a built-in feature that could fix an open family or replace one of my own mechanisms. When a built-in covers a hook or script of mine, the candidate is a removal: retire mine, switch to theirs, and keep my tests to show the behaviour survived the switch.</p>
<p>Two hours later, the next run judges the next slice and checks whether each fixed family came back.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="harness-components">Harness components<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#harness-components" class="hash-link" aria-label="Direct link to Harness components" title="Direct link to Harness components" translate="no">​</a></h3>
<p>The harness is everything around the fixed model: what fills its context window, what runs before and after each tool call, and the tools themselves.</p>
<p>The loop sits on top of the setup I already use: 86 hook commands on 19 events, 68 allow and 21 deny permission rules, 10 MCP servers, 50 skills, 11 subagents and 231 scripts. Hooks also retrieve relevant memories and repository context before a search or a file read, and on request. The diagram colors these parts in four layers, session, context, harness and tools, and every change the loop makes names the layer it lands in.</p>
<p>Most strikes are about behaviour: 146 of 299, counting a second agentic session, sit in the session layer. Almost no fixes land there. Of the 174 strikes closed with a committed fix, 92 changed a tool, 52 the harness and one the session; 29 edited text, all but one before I stopped accepting text.</p>
<p>A commit is not a result, though. Of those 174, 36 stayed quiet for a day, 107 were too young for even that, and 31 already saw their family come back. The 31 are hard evidence of failure; the 36 are only the absence of it.</p>
<p><a href="https://cloudrumble.net/assets/files/rhsi-components-f9864a9e3c086d57dad0eeb8716c460b.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="The harness around one turn: hooks on session start and on each prompt fill the context window with repo and git context, the skill catalog and RAG on request; the agent session, a fixed model with memory, makes tool calls that pass guard hooks, permission rules and memory and repo RAG before the tool, run built-ins, MCP servers, CLIs, scripts or subagents, and pass formatters, linters and an injection guard after the tool, with the result going back into the context window; the answer triggers stop and session-end hooks; colors mark the session, context, harness and tools layers" src="https://cloudrumble.net/assets/images/rhsi-components-f9864a9e3c086d57dad0eeb8716c460b.png" width="3552" height="2322" class="img_ev3q"></a></p>
<p>Every later session reuses the changed hooks and tools, which reminds me of Geoffrey Hinton's description of digital intelligence:</p>
<blockquote>
<p>It's as if there were 10,000 of us, and as soon as one person learns something, all of us know it.</p>
<p>Geoffrey Hinton, <a href="https://www.technologyreview.com/2023/05/02/1072528/geoffrey-hinton-google-why-scared-ai/" target="_blank" rel="noopener noreferrer" class="">MIT Technology Review</a>, 2023</p>
</blockquote>
<p>The loop is part of its own harness. The judge once struck the agent for not telling me the judge had failed, and once struck its own slicer for skipping turns after a <code>/clear</code>. Both fixes came through the same loop.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="security">Security<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#security" class="hash-link" aria-label="Direct link to Security" title="Direct link to Security" translate="no">​</a></h3>
<blockquote>
<p>When a measure becomes a target, it ceases to be a good measure.</p>
<p><a href="https://en.wikipedia.org/wiki/Goodhart%27s_law" target="_blank" rel="noopener noreferrer" class="">Goodhart's law</a>, as it is usually stated</p>
</blockquote>
<p>A loop that edits its own harness is an agent with write access to its own guardrails. Every risk below has the same shape: something the loop reads or writes changes what the agent may do, and no human decided it.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="gaming-the-score">Gaming the score<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#gaming-the-score" class="hash-link" aria-label="Direct link to Gaming the score" title="Direct link to Gaming the score" translate="no">​</a></h4>
<p>The self-improving coding agent in the <a href="https://arxiv.org/abs/2505.22954" target="_blank" rel="noopener noreferrer" class="">Darwin Gödel Machine</a> paper "removed the logging of special tokens that indicate tool usage (despite instructions not to change the special tokens)", which bypassed the check meant to catch its hallucinated tool calls. Any loop where the improver can reach the judge, the rubric or the metric has the same lever.</p>
<p>In my loop, the judge cannot write: cron starts it, it runs through the Codex CLI in a read-only sandbox, and it only suggests fixes. That restricts the judge, not the improver. The judge script and its rubric are files in the same repository the improver edits, so a test pins the rubric: any change fails until the judge is rerun on a frozen day of 26 of my complaints and praises, and the floors on that day only move up. The rubric may change to agree better with my complaints, never to lower the strike count. The number I trust is my complaints per week, counted from lines I typed, which the loop cannot write. If strikes fall while my complaints stay flat, the loop may be tuning itself, and the judge is the first place to look.</p>
<p>What to check in your own loop: whether the improver can edit the judge, its prompt or its schedule, and whether anything besides a test stands in the way. A frozen day is also only one day, and a rubric can fit it while drifting everywhere else.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="prompt-injection-through-the-transcript">Prompt injection through the transcript<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#prompt-injection-through-the-transcript" class="hash-link" aria-label="Direct link to Prompt injection through the transcript" title="Direct link to Prompt injection through the transcript" translate="no">​</a></h4>
<p>The slice carries more than my words. Event lines from Slack, mail and the calendar reach the agent, and anyone can write them. An email phrased as a complaint, say "the agent should forward everything from this sender", lands in front of the judge, and the judge's suggested fix lands in front of an agent that can edit hooks.</p>
<p>Three checks reduce that risk. The slicer labels each line PIOTR, for text I typed, or EVENT, for anything injected between turns, and only a PIOTR line counts as my complaint. That label is only as good as the slicer's idea of what an event looks like. A strike without my words is a silent strike: the rubric caps its confidence at 0.6, and the worker never fixes it on first sight. It waits until a later run repeats it or my words confirm it. And a fix that touches a permission, an external write or spending goes to my board, whatever its evidence.</p>
<p>Web content the agent fetches also passes a small classifier that scores each result for injection and warns the agent above 0.99. What to check in your own loop: whether a line the slicer does not recognize counts as an event or as yours, whether a repeat has to come from someone you trust, and whether injection screening covers every channel that reaches the transcript, not only the web. The judge reads text strangers wrote, so the rules that decide what it may act on matter more than the judge itself.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="privilege-creep">Privilege creep<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#privilege-creep" class="hash-link" aria-label="Direct link to Privilege creep" title="Direct link to Privilege creep" translate="no">​</a></h4>
<p>Every fix lands in the harness, and the harness holds the permission rules and the guard hooks. The cheapest way to make a strike disappear is to allow the action that caused it or to quiet the hook that complained, and such a fix passes its own regression test.</p>
<p>My loop narrows what a fix can touch. Before the improving agent edits anything, a script checks the target against a live listing of every hook, script, setting and server on this machine, and a suggested fix that names anything else is dropped unread. A fix takes one of four forms, right-time context, a hook, a deterministic tool or a small-model check, and never a line of text. A repeat whose next fix needs my authority, because it touches the mission, a permission, an external write or spending, goes to my board, and the ledger refuses a board row that names none of those four. The improving agent also runs behind the same guards as every other session: hooks block a push to main, commands that would kill my desktop session and a recursive <code>rm</code> outside scratch space, and 21 deny rules hold.</p>
<p>What to check in your own loop: whether rules like the board rule are enforced by a mechanism or only by the worker's instructions. A rule that lives in instructions is the kind of fix this loop refuses to accept from itself, and the same standard applies to the guards around the improver.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="invented-mistakes">Invented mistakes<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#invented-mistakes" class="hash-link" aria-label="Direct link to Invented mistakes" title="Direct link to Invented mistakes" translate="no">​</a></h4>
<p>A judge that finds a mistake where none happened produces a fix for nothing, and every such fix is one more guard the agent has to work around. Self-improving harnesses can "hallucinate mistakes that never happened" (<a href="https://arxiv.org/abs/2607.13083" target="_blank" rel="noopener noreferrer" class="">Phantom Guardrails</a>).</p>
<p>The silent-strike rule covers this too: one verdict without my words cannot add a guard. The frozen-day run shows that the judge finds my complaints; it says nothing about how many it invents. When a rerun corrects a verdict, the wrong row stays in the ledger as superseded, and 33 rows carry that status so far. That counts the mistakes a rerun happened to catch; it is not an error rate.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="data-leaving-the-machine">Data leaving the machine<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#data-leaving-the-machine" class="hash-link" aria-label="Direct link to Data leaving the machine" title="Direct link to Data leaving the machine" translate="no">​</a></h4>
<p>The judge is another vendor's model. Every two hours, it receives my messages, the agent's replies and event lines from Slack, mail and the calendar, including messages other people wrote to me. Tool output and thinking are dropped and long texts are capped, but nothing is redacted. Before you ship a transcript out on a schedule, check what your agreements allow to leave the machine, how long the vendor keeps it, and whether secrets ever pass through your agent's chat.</p>
<h4 class="anchor anchorTargetStickyNavbar_Vzrq" id="rollback">Rollback<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#rollback" class="hash-link" aria-label="Direct link to Rollback" title="Direct link to Rollback" translate="no">​</a></h4>
<p>Each fix is one local commit with the ledger id in a trailer, and nothing is pushed. <code>git log</code> shows what changed and why, and <code>git revert</code> undoes one fix without touching the others. The catch is that the repository is the live harness: a fix takes effect the moment the worker writes it, before its test runs or its commit lands, and a revert cannot undo what it did in between.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="observability-and-visibility">Observability and visibility<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#observability-and-visibility" class="hash-link" aria-label="Direct link to Observability and visibility" title="Direct link to Observability and visibility" translate="no">​</a></h3>
<p>The loop runs unattended, so a judge crash, a fix that stops working or a stalled delivery path shows nothing unless something reports it. My ledger, an append-only JSONL file in git that records every verdict and what became of it, has a <code>view</code> command. In its output, fixed means a change was committed and its family has not yet stayed quiet for a day, and verified is the loop's label for a quiet day. The 174 committed fixes show up as 138 fixed plus 36 verified, and the 31 failures sit inside the 138. On the evening of 23 October it printed this:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">verdicts 407: strikes 299, praises 101, discoveries 4, answers 3</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">open 78 (strikes 78)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">fixed 138 not yet verified: 107 under 24h, 31 with a later strike of the family, 0 verify at the next run</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">closed adopted 1, board 5, dropped 18, fixed 138, kept 98, superseded 33, verified 36</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">strikes by layer context 16, harness 55, session 146, tools 81, unset 1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">complaints per week (strikes in Piotr's own words)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  2026-W43 138</span><br></div></code></pre></div></div>
<p>What to watch, and how:</p>
<ul>
<li class="">Anchor metrics: my complaints per week, families that came back after a fix, fixes that stayed quiet, and strikes no mechanism can fix. The raw strike count says little on its own. Compute these from the raw ledger rows, never from a report the improving agent writes about itself.</li>
<li class="">Judge mistakes: 33 verdicts were superseded by a corrected rerun. Never delete a wrong verdict; close it as superseded so corrections stay visible. To estimate an error rate, sample verdicts at random and check each one by hand against the transcript, and rerun the frozen day after every rubric change.</li>
<li class="">Failure alerts: a failed judge run raises a critical desktop notice with the cause from the judge log. Send failures through a channel the loop does not own, because a broken loop cannot report itself in its own record.</li>
<li class="">Skipped runs: log every run, including the ones that skip because the lock is held. On 23 October that log was the only witness. A background job the judge starts inherited its lock, so the second session's pass skipped every run for ten hours, and when one finally ran, its slice was 182 characters over the judge's input limit of 1,048,576. Another background job failed three runs out of three because it could not find the agent's CLI. None of it raised an alert, because a skip is not a failure. The fix closes the lock in the background job and judges a backlog in two-hour windows, split further when a prompt is too large.</li>
<li class="">Stalled delivery: for about twelve hours, the second session held the notification stream and logged the main session's records as receipts, so the reflect step never ran. Records now go to the main session as direct messages. No error showed it, so watch freshness: when verdicts keep arriving and fixes stop, something between the judge and the worker is broken.</li>
<li class="">Daily view: the one-line record after each run is the only loop output I read, in the pane I already watch. Put the summary where you already look, and keep ids and details in the ledger.</li>
<li class="">Audit trail: the ledger id in each fix commit's trailer links the code to the verdict. Searching <code>git log</code> for the trailer answers why a hook exists, and the ledger shows whether its family came back.</li>
<li class="">Cost and latency: one 142 KB slice took the judge over 12 minutes, and rerunning the frozen day after a rubric change is estimated at about 250k input tokens. Log the slice size and wall time of every run; a slice that keeps growing means the window or the caps need attention.</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="conclusion">Conclusion<a href="https://cloudrumble.net/blog/recursive-harness-self-improvement#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion" translate="no">​</a></h2>
<p>Waiting for RSI shouldn't stop us from improving the agents we already have. RHSI keeps the model fixed and lets the agent improve its harness: an outside judge finds the mistakes in my own words, the agent turns each one into a hook, a tool or a check, and later runs show whether the mistake comes back. After two days, 31 fixes have already failed, 36 have stayed quiet for a day, and nothing is proven. The agent still tells me that nothing needs my attention more often than it should, and the loop finds mistakes faster than it fixes them: once the skipped hours were judged, open strikes rose from 78 to 133 in one evening. The open question is whether the loop cuts my corrections enough to pay for its cost and upkeep, or piles up guards that become friction of their own.</p>
<p>The next time your agent says "You're absolutely right, I should have...", don't let it write another note on the fridge. Ask it which check would catch the next repeat, what that check can miss, and who will look tomorrow.</p>
<p>Phil Connors only got out of Groundhog Day by changing himself. My agent can't change its model, but it can change its harness, and every two hours someone checks whether it did.</p>]]></content:encoded>
            <category>ai</category>
            <category>development</category>
            <category>automation</category>
        </item>
        <item>
            <title><![CDATA[Text, Structure, Meaning: grep, ast-grep and a Local LLM Classifier]]></title>
            <link>https://cloudrumble.net/blog/ast-grep-text-structure-meaning</link>
            <guid>https://cloudrumble.net/blog/ast-grep-text-structure-meaning</guid>
            <pubDate>Sun, 18 Oct 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[grep reads code as text, ast-grep reads its syntax tree, and a local model judges what a line means. A Go migration from log.Printf to log/slog shows what each tool can do and where each one stops.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Three readers looking at the same line of code: one sees letters, one sees a tree, one sees what the line is for" src="https://cloudrumble.net/assets/images/ast-grep-text-structure-meaning-hero-2914cc867bfcd1823f7daf6da95858e5.png" width="1400" height="788" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
@media (max-width: 996px) {
  html.blog-post-page:has(img[alt="Three readers looking at the same line of code: one sees letters, one sees a tree, one sees what the line is for"]) .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.blog-post-page:has(img[alt="Three readers looking at the same line of code: one sees letters, one sees a tree, one sees what the line is for"]) .container.margin-vert--lg {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 0 12px !important;
    flex-shrink: 0;
    padding: 36px 0 0 !important;
  }
  html.blog-post-page:has(img[alt="Three readers looking at the same line of code: one sees letters, one sees a tree, one sees what the line is for"]) main.col.col--7 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
  }
  html.blog-post-page:has(img[alt="Three readers looking at the same line of code: one sees letters, one sees a tree, one sees what the line is for"]) .markdown :is(pre, table) {
    max-width: 100%;
    overflow-x: auto !important;
  }
}
</style>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="introduction">Introduction<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#introduction" class="hash-link" aria-label="Direct link to Introduction" title="Direct link to Introduction" translate="no">​</a></h2>
<p>Every codebase eventually needs the same change in many places: a library swap, an API that changed shape, a convention the team agreed on last week. You know the usual options. Find and replace sees only text. Doing it by hand works for ten places and falls apart at three hundred. An AI assistant will happily make all three hundred edits, and then someone has to review each one.</p>
<p>In this blog, we will look at three tools that read code at three different levels. grep reads text. ast-grep reads structure, the syntax tree your editor already builds. A small local model, asked through classif, reads meaning. They are separate tools, each takes the part of the job it can see, and the interesting part is where each one stops.</p>
<p>The running example is a change many Go teams face: moving a service from <code>log.Printf</code> to <code>log/slog</code>, the structured logger that has been in the standard library since Go 1.21. With slog, every value you log gets a name you can filter on, so <code>log.Printf("login failed: %v", err)</code> becomes <code>slog.Error("login failed", "err", err)</code>. Don't worry if you don't write Go. The example is small, and the ideas carry over to any language ast-grep supports.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="who-is-this-blog-for">Who is this blog for?<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#who-is-this-blog-for" class="hash-link" aria-label="Direct link to Who is this blog for?" title="Direct link to Who is this blog for?" translate="no">​</a></h3>
<p>If you have ever written a regex to find some code and then patched it three times, or scrolled through a long AI-generated diff wishing the change had one source you could read, this blog is for you. You don't need any compiler background; I will explain syntax trees when we get there.</p>
<p>By the end of this blog, you will know how to search and rewrite code by its structure with ast-grep, how to keep a rewrite as a tested rule that runs in the shell and in Neovim, and where a local model's judgment helps and where it cannot be trusted alone.</p>
<p>The post goes with my video on the same topic. The rules, examples and scripts live in <a href="https://github.com/Piotr1215/youtube/tree/main/nvim-luasnip-ai-alternative" target="_blank" rel="noopener noreferrer" class="">the video's repository</a>, so you can run everything below yourself.</p>
<!--$?--><template id="B:0"></template><!--/$-->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="three-ways-to-read-code">Three ways to read code<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#three-ways-to-read-code" class="hash-link" aria-label="Direct link to Three ways to read code" title="Direct link to Three ways to read code" translate="no">​</a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-text-grep">#1 Text: grep<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#1-text-grep" class="hash-link" aria-label="Direct link to #1 Text: grep" title="Direct link to #1 Text: grep" translate="no">​</a></h3>
<p>grep compares characters. That makes it fast and predictable, and it's the first tool most of us reach for. I use ripgrep, <code>rg</code>, but any grep behaves the same here. Ask it for every <code>log.Printf</code> and it finds them all instantly.</p>
<p>The trouble starts when the question is about code rather than letters. Say we want only the calls that log an error, because those have an obvious slog replacement. The example file has three of them, written the way real code ends up: one on a single line, one split over lines 13 and 14, and one commented out on line 15. Here is the regex you would write first, and what it returns:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">$ rg -n 'log\.Printf\(.*, err\)' examples/calls.go</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">12:	log.Printf("login failed: %v", err)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">15:	// log.Printf("failed: %v", err)</span><br></div></code></pre></div></div>
<p>It found one real call, missed the split one, and matched a line that is only a comment. You can patch the regex for each case: let it span lines, skip lines that start with <code>//</code>. Every new layout needs another patch, though, because a regex never knows what a call is. To grep, code is a stream of characters, and the same call can be spelled with many different characters.</p>
<p><a href="https://cloudrumble.net/assets/files/ast-grep-level-1-1500b7d33d3c32e0381bf0896181a9e0.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="An ant with a magnifying glass reads a grep pattern letter by letter: it finds the one-line call, misses the call split over two lines, and flags a commented-out line" src="https://cloudrumble.net/assets/images/ast-grep-level-1-1500b7d33d3c32e0381bf0896181a9e0.png" width="1400" height="660" class="img_ev3q"></a></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-structure-syntax-trees-and-ast-grep">#2 Structure: syntax trees and ast-grep<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#2-structure-syntax-trees-and-ast-grep" class="hash-link" aria-label="Direct link to #2 Structure: syntax trees and ast-grep" title="Direct link to #2 Structure: syntax trees and ast-grep" translate="no">​</a></h3>
<p>To see code instead of characters, we read it the way a compiler does, as a syntax tree. A call becomes a node with two children: the function it calls and its list of arguments. Line breaks and spacing don't change the tree, and a comment becomes a comment node, nowhere near a call.</p>
<p>Your editor already builds this tree. Neovim parses code with Tree-sitter, and <code>:InspectTree</code> opens the tree beside the buffer. Move the cursor through the split call and the whole call lights up across both lines, while the commented line shows as a comment. If you have never opened it, try it on your own code.</p>
<p><a href="https://ast-grep.github.io/" target="_blank" rel="noopener noreferrer" class="">ast-grep</a> searches that tree, and here is the neat part: you write the search as code. You write the code you want to find, with a placeholder where it may differ:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">$ ast-grep run -p 'log.Printf($FMT, err)' examples/calls.go</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">examples/calls.go:12:	log.Printf("login failed: %v", err)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">examples/calls.go:13:	log.Printf(</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">examples/calls.go:14:		"server stopped: %v", err)</span><br></div></code></pre></div></div>
<p>ast-grep parses the pattern too, so it matches by shape. <code>$FMT</code> stands for any single argument, and <code>err</code> has to be exactly <code>err</code>. The split call is one call in the tree, so it's found. The comment isn't a call at all, so it's skipped. No regex patching required.</p>
<p><a href="https://cloudrumble.net/assets/files/ast-grep-level-2-aaad6745da0d848c42629ec0512d4394.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="A squirrel sits by a syntax tree: the call_expression node has a function child and an arguments child holding the format string and err; the split call is matched as one call and the commented-out line falls away like a leaf" src="https://cloudrumble.net/assets/images/ast-grep-level-2-aaad6745da0d848c42629ec0512d4394.png" width="1400" height="760" class="img_ev3q"></a></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="rules-a-search-you-keep">Rules: a search you keep<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#rules-a-search-you-keep" class="hash-link" aria-label="Direct link to Rules: a search you keep" title="Direct link to Rules: a search you keep" translate="no">​</a></h3>
<p>Finding is half the job. The placeholders remember what they matched, so the new line can be built from the old one: the message without its format verb, and the error as a named field. You could rewrite on the spot with <code>ast-grep run -r</code>, but a search is gone once it has run. The next time someone writes <code>log.Printf("...: %v", err)</code>, you are back where you started.</p>
<p>So we write it down as a rule. A rule is a small YAML file that holds the pattern, the limits on what the placeholders may match, how to reshape them, and the fix. This is the whole error rule from the repository:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">id</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> log</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">error</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">language</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> go</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">severity</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> info</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">message</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> An error goes to slog.Error</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">rule</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">pattern</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> log.Printf($FMT</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> err)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">inside</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> expression_statement</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">constraints</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">FMT</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">regex</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'^"[^%]*%(\+v|[vsd])[^%]*"$'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">transform</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">BARE</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">replace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">source</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> $FMT</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">replace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'\s*%[-+# 0-9.]*[a-zA-Z]'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">by</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">''</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">MSG</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">replace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">source</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> $BARE</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">replace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">':"$'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">by</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'"'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">fix</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'slog.Error($MSG, "err", err)'</span><br></div></code></pre></div></div>
<p>Read it top to bottom. Match <code>log.Printf($FMT, err)</code> when it stands as a statement, and only when the format string holds a single plain verb (<code>%v</code>, <code>%+v</code>, <code>%s</code> or <code>%d</code>). Strip the verb, then the trailing colon. Write <code>slog.Error</code> with the cleaned message and the error as a named field. <code>ast-grep scan</code> runs the rule over a file or a whole service and shows each change as a diff before anything is written, so <code>log.Printf("login failed: %v", err)</code> becomes <code>slog.Error("login failed", "err", err)</code>, and the split call becomes one tidy line too.</p>
<p>Because the rule is a file, you can read it, commit it and share it with your team. It also gets tests. Next to each rule sits a test file listing code the rule must flag and code it must leave alone, such as <code>log.Printf("read failed: %q", err)</code>, where slog would lose the quoting. <code>ast-grep test</code> runs them all, so an edit that breaks a rule fails before it touches your code. All 17 rule tests in the repository pass.</p>
<p>Not every line can be rewritten by a rule, and that's fine. slog keeps the value but not printf formatting, so a <code>%x</code> line would lose its hex. A second rule flags those lines for a person instead of letting them slip by unseen.</p>
<p>Writing rules takes practice, and this is where an AI assistant earns its place. In the repository, Claude drafted a working rule and its tests from one sentence asking for exactly this rewrite, and <code>ast-grep test</code> passed. That was one recorded run, so I wouldn't promise that every draft comes out right. What matters is what you review. You don't trust the draft: you run its tests and read twenty lines of YAML, instead of reviewing three hundred edits. From then on the rule makes every edit, the same way every time, with no model involved.</p>
<p>The same rules run in your editor. ast-grep ships a language server, and with it Neovim underlines every line a rule flags, with the fix one code action away. Write a new <code>log.Printf</code> with an error tomorrow and it's flagged as you type, so the change you made once stays made. The repository's <a href="https://github.com/Piotr1215/youtube/blob/main/nvim-luasnip-ai-alternative/demo-init.lua" target="_blank" rel="noopener noreferrer" class="">demo-init.lua</a> shows the setup: it enables the <code>ast_grep</code> server from nvim-lspconfig, which reads the rules through the project's <code>sgconfig.yml</code>.</p>
<p><a href="https://cloudrumble.net/assets/files/ast-grep-level-rules-8dc8a0683782129fc7264fb2b44d91b7.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="An octopus drafts a rule from one sentence; the rule card holds the pattern, the fix and passing tests; a person reads twenty lines instead of three hundred edits; the rule rewrites error calls in the shell and underlines a new one in Neovim as it is typed" src="https://cloudrumble.net/assets/images/ast-grep-level-rules-8dc8a0683782129fc7264fb2b44d91b7.png" width="1400" height="760" class="img_ev3q"></a></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="3-meaning-a-local-models-answer">#3 Meaning: a local model's answer<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#3-meaning-a-local-models-answer" class="hash-link" aria-label="Direct link to #3 Meaning: a local model's answer" title="Direct link to #3 Meaning: a local model's answer" translate="no">​</a></h3>
<p>Once the error lines are done, the lines left over look the same to the tree. Here are three from the example service: <code>log.Printf("got here %v", r.URL)</code>, <code>log.Printf("listening on %s", addr)</code> and <code>log.Printf("retrying in %v", backoff)</code>. Each one is a call with a message and a value, <code>log.Printf($FMT, $ARG)</code>, yet each needs a different change. The first is a debug print someone forgot, and it should go. The second is a startup event, and it should become <code>slog.Info</code>. The third could be either. What sets them apart is what each line means, and no pattern can see that.</p>
<p>Telling what text means is what language models are good at. The catch is that a chat model answers in free text and likes to rewrite code along the way, which is exactly what we wanted to avoid. <a href="https://github.com/Piotr1215/classif" target="_blank" rel="noopener noreferrer" class="">classif</a> is a small tool I built for this case. It asks a model on your own machine one question, and the model may only answer from your list: <code>debug</code> or <code>info</code>, or yes or no. Each answer comes with a score. I wrote about how it works in <a class="" href="https://cloudrumble.net/blog/classif-semantic-decisions">classif: A Bridge Between Code and Semantic Reasoning</a>, so here I'll focus on how it meets the rules.</p>
<p>The question lives in the rule, next to the fix each answer points to. Two rules match these lines: <code>log-debug</code>, whose fix removes the line, and <code>log-info</code>, whose fix writes <code>slog.Info</code>. Each carries its own answer in its metadata:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">choose</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> What is this log line for</span><span class="token punctuation" style="color:rgb(248, 248, 242)">?</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">option</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">&gt;</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    info=an event someone operating the service wants in the logs</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> like</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    startup</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> a sign</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">in</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> a request outcome or a duration</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">min_p</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">0.85</span><br></div></code></pre></div></div>
<p>A small script, <code>triage.sh</code>, sits between ast-grep and classif. It reads ast-grep's findings as JSON, asks the question once per call with both answers on the list, and lets the answer pick which rule's fix to suggest. ast-grep still builds every fix; the model only picks one. Here is the run on those three lines, with the Winnow 12B model on a 12 GB laptop GPU:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">$ ast-grep scan --json=stream --include-metadata examples/shape.go | ./triage.sh --pick</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">✓ examples/shape.go:11  log.Printf("got here %v", r.URL)  debug 0.96</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    fix › (the line is removed)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">✓ examples/shape.go:12  log.Printf("listening on %s", addr)  info 0.99</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    fix › slog.Info("listening on", "addr", addr)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">✗ examples/shape.go:13  log.Printf("retrying in %v", backoff)  debug 0.72 unsure</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    left for a person</span><br></div></code></pre></div></div>
<p>The retry line came back at 0.72, below the 0.85 floor set in the rule, so no fix is suggested and it waits for a person. That's my favorite row of the three.</p>
<p>A second question looks at the same lines from another side: does the value hold a secret or personal data? A line can be a perfectly good event and still print an email address. A third rule asks that question of every match, and a yes holds back every fix. On <code>log.Printf("user %v logged in", creds.Email)</code> the model picked <code>info</code> at 0.92, but the personal-data question came back yes at 0.99, so the line goes to a person with no fix at all.</p>
<p><a href="https://cloudrumble.net/assets/files/ast-grep-level-3-a77b2a7c47d08e55bc0bd5e16e77d456.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="A squirrel sees four calls with the same shape; a fox reads each one: debug 0.96 suggests removing the line, info 0.99 suggests slog.Info, debug 0.72 is below the floor so a person decides, and a line printing an email address answers yes to the personal data question, so no fix is suggested" src="https://cloudrumble.net/assets/images/ast-grep-level-3-a77b2a7c47d08e55bc0bd5e16e77d456.png" width="1400" height="840" class="img_ev3q"></a></p>
<p>With the model already loaded, each question took about a quarter of a second on my machine, and the code never left it.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="how-the-pieces-fit">How the pieces fit<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#how-the-pieces-fit" class="hash-link" aria-label="Direct link to How the pieces fit" title="Direct link to How the pieces fit" translate="no">​</a></h2>
<p>The diagram below follows one call through the meaning check. ast-grep finds the call and builds every possible fix. triage.sh asks classif the rule's question, then the personal-data question, and only an answer that is sure enough, with no veto, picks a fix. Everything else is left for a person, including a model that is down or gives no answer.</p>
<p><a href="https://cloudrumble.net/assets/files/ast-grep-meaning-sequence-14226ab90e6105ec35866a40f0959884.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="Sequence diagram: you run ast-grep scan; it sends findings with each rule&amp;#39;s fix, question, option and min_p to triage.sh; triage.sh asks classif what the log line is for; classif asks Winnow 12B on Ollama for a one-token answer and gets a score per option; classif returns debug 0.96; triage.sh asks the personal data question and gets no; if the answer is sure enough with no veto you get the chosen fix as a diff, otherwise the line is left for a person" src="https://cloudrumble.net/assets/images/ast-grep-meaning-sequence-14226ab90e6105ec35866a40f0959884.png" width="3936" height="2124" class="img_ev3q"></a></p>
<p><em><a href="https://cloudrumble.net/assets/files/ast-grep-meaning-sequence-14226ab90e6105ec35866a40f0959884.png" target="_blank" class="">Open the diagram full size</a></em></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="where-each-one-stops">Where each one stops<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#where-each-one-stops" class="hash-link" aria-label="Direct link to Where each one stops" title="Direct link to Where each one stops" translate="no">​</a></h2>
<p>grep stops at layout. It answers questions about characters, which is perfect for prose, logs and plain strings, and fragile the moment the same code can be written in more than one way.</p>
<p>ast-grep stops at meaning. It answers any question you can phrase as a shape, and it answers it the same way every time. Two lines with the same shape and different purposes look identical to it.</p>
<p>The model stops at what it can see, and this is the part to take seriously. Its score ranks the answers against each other, and a high score can still be wrong. In the video I describe a 0.96 as the model being 96% sure; the test below is why I now read the score as a ranking instead. The repository keeps a harder test: twenty pairs of identical log lines placed in different functions, written by an agent that never saw the rules, with that agent's intent as the answer key. On those 40 lines, measured on 2026-10-17 (I read these results and did not rerun them for this post), Winnow 12B picked the right label 25 times, and 6 of its wrong answers scored above the 0.85 floor. A larger 35B model on a Mac got 32 right. Whether a line is a leftover often lives only in its author's head, and no score can recover it from the code.</p>
<p>The personal-data question is different in kind: whether a value is an email address is written in the code the model reads. I expect it to hold up better, but I haven't yet measured it on real log lines a person labelled, so for now that part is my expectation. The rule of thumb I took from all this: ask the model about what the code shows, not about what its author meant, and read its answers as suggestions.</p>
<p>Put together, here is how I pick:</p>
<table><thead><tr><th>Tool</th><th>Reads</th><th>Reach for it when</th><th>It stops at</th></tr></thead><tbody><tr><td>grep</td><td>characters</td><td>the text itself is the question</td><td>the same code written another way</td></tr><tr><td>ast-grep rule</td><td>the syntax tree</td><td>you can describe the change by its shape</td><td>lines with the same shape and different purposes</td></tr><tr><td>local model via classif</td><td>what a line means</td><td>every possible change can be written as a rule, but structure cannot pick between them, and a wrong pick is easy to catch in the diff</td><td>facts that live outside the code it reads</td></tr></tbody></table>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="conclusion">Conclusion<a href="https://cloudrumble.net/blog/ast-grep-text-structure-meaning#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion" translate="no">​</a></h2>
<p>Rules fit any change you can describe by its shape: a library swap, a review comment you keep writing, a pattern your team has banned. A model's question fits only where a person would decide by reading the code in front of them, and where a wrong answer costs you a second look at a diff.</p>
<p>What I find most compelling is how the model shows up here. We usually treat a language model as an external service: you send it a prompt and get prose back. A small classifier that may only pick from your list, answers in a fraction of a second, and runs on your own GPU behaves more like a building block. You can slot it into a deterministic program, here a set of ast-grep rules, at exactly the point where structure runs out.</p>
<p>I made the video and this post partly as a counterweight to a feeling I hear from a lot of engineers lately: that there is no point learning tools anymore, because AI will do everything faster and cheaper. Economically, that may even be true for some work. I still find real value in understanding what my tools see. It keeps me in control of the change, and it lets me use AI as one more tool on the belt.</p>
<p>Benefits:</p>
<ul>
<li class="">A rule is one file you can read, test and commit, and it makes the same edit every time</li>
<li class="">The same rule runs from the shell and in your editor as you type</li>
<li class="">An AI assistant can draft the rule while its tests check the draft, so you review twenty lines instead of hundreds of edits</li>
<li class="">A local model adds a judgment on meaning in about a quarter of a second per question, without your code leaving the machine</li>
</ul>
<p>Challenges:</p>
<ul>
<li class="">ast-grep's patterns, constraints and transforms take practice; the <a href="https://ast-grep.github.io/playground.html" target="_blank" rel="noopener noreferrer" class="">playground</a> and the <a href="https://ast-grep.github.io/guide/rule-config.html" target="_blank" rel="noopener noreferrer" class="">rule guide</a> help</li>
<li class="">slog keeps values but not printf formatting, so some lines always need a person</li>
<li class="">A high score can still be a wrong answer, and questions about intent are weak</li>
<li class="">The classif part needs Ollama and a GPU that can hold a 12B model; the <a href="https://github.com/Piotr1215/classif" target="_blank" rel="noopener noreferrer" class="">classif README</a> covers the setup</li>
</ul>
<p>To try it, you need <a href="https://ast-grep.github.io/guide/quick-start.html" target="_blank" rel="noopener noreferrer" class="">ast-grep</a> for the rules, Neovim with nvim-lspconfig for the editor part, and Ollama with classif for the meaning check. Clone the repository, change into <code>nvim-luasnip-ai-alternative</code>, and every command above runs as shown. If you are not sure where to start, pick a review comment you keep writing, and make it a rule.</p>]]></content:encoded>
            <category>neovim</category>
            <category>development</category>
            <category>ai</category>
            <category>cli</category>
        </item>
        <item>
            <title><![CDATA[classif: A Bridge Between Code and Semantic Reasoning]]></title>
            <link>https://cloudrumble.net/blog/classif-semantic-decisions</link>
            <guid>https://cloudrumble.net/blog/classif-semantic-decisions</guid>
            <pubDate>Sat, 03 Oct 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[How programs make decisions about text, from grep to a local model that answers with one token, and how classif reads documents far bigger than the model can hold.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="A bridge between deterministic code and semantic reasoning" src="https://cloudrumble.net/assets/images/classif-semantic-decisions-hero-6149dda9c1c49779a9f75e6b1bf6bc44.png" width="1672" height="941" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
@media (max-width: 996px) {
  html.blog-post-page:has(img[alt="A bridge between deterministic code and semantic reasoning"]) .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.blog-post-page:has(img[alt="A bridge between deterministic code and semantic reasoning"]) .container.margin-vert--lg {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 0 12px !important;
    flex-shrink: 0;
    padding: 36px 0 0 !important;
  }
  html.blog-post-page:has(img[alt="A bridge between deterministic code and semantic reasoning"]) main.col.col--7 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
  }
  html.blog-post-page:has(img[alt="A bridge between deterministic code and semantic reasoning"]) .markdown :is(pre, table) {
    max-width: 100%;
    overflow-x: auto !important;
  }
}
</style>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="introduction">Introduction<a href="https://cloudrumble.net/blog/classif-semantic-decisions#introduction" class="hash-link" aria-label="Direct link to Introduction" title="Direct link to Introduction" translate="no">​</a></h2>
<p>In this blog, we will look at how programs make decisions about text, and how that changed once small language models started running on our own machines. Along the way, I will introduce <a href="https://github.com/Piotr1215/classif" target="_blank" rel="noopener noreferrer" class="">classif</a>, a small command-line tool I built that lets a shell script ask a local model a question and act on the answer.</p>
<p>A semantic decision is a question about what a piece of text means, asked by a program that needs a short answer it can act on. "Does this diff touch credentials?" is one. "Is this log line a real failure or just noise?" is another. Programs have always made decisions about text, but for most shell scripts that meant checking which characters the text contains.</p>
<p>A few changes made semantic decisions practical:</p>
<ul>
<li class="">Open-weight models small enough to run on a gaming GPU</li>
<li class="">Ollama, which serves those models locally and exposes the probability behind each answer</li>
<li class="">Research on reading documents far bigger than a model can hold at once</li>
</ul>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="who-is-this-blog-for">Who is this blog for?<a href="https://cloudrumble.net/blog/classif-semantic-decisions#who-is-this-blog-for" class="hash-link" aria-label="Direct link to Who is this blog for?" title="Direct link to Who is this blog for?" translate="no">​</a></h3>
<p>If you write shell scripts, pipe logs and diffs from one tool to another, or run local models with Ollama, this article is for you. You don't need any machine learning background to follow along; I will explain the few model terms we need as we go.</p>
<p>By the end of this blog, you will have classif running on your machine and answering questions inside your own shell pipelines.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="decisions-about-text-evolution">Decisions about text: evolution<a href="https://cloudrumble.net/blog/classif-semantic-decisions#decisions-about-text-evolution" class="hash-link" aria-label="Direct link to Decisions about text: evolution" title="Direct link to Decisions about text: evolution" translate="no">​</a></h2>
<p>Let's look at how each wave changed the way programs decide things about text.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-matching-text">#1 Matching text<a href="https://cloudrumble.net/blog/classif-semantic-decisions#1-matching-text" class="hash-link" aria-label="Direct link to #1 Matching text" title="Direct link to #1 Matching text" translate="no">​</a></h3>
<p>For decades, the tool a shell script reached for to decide something about text was pattern matching. <code>grep</code>, <code>sed</code>, <code>awk</code> and regular expressions are fast and predictable, and they cost nothing to run. They are also completely literal. Ask grep whether a diff touches secrets and the best it can do is look for words like <code>token</code> or <code>password</code>.</p>
<p>The trouble is that words carry more than one meaning. <code>token</code> appears in a change to an API client, but also in a change to how many tokens a model may read, and in a parser that splits text into tokens. grep flags all three. Meanwhile, a change that quietly makes a storage bucket public may never use any of those words, and grep lets it through.</p>
<p><img decoding="async" loading="lazy" alt="A robot running grep flags three papers that contain the word token, only one of which is a real secret, while a ninja carries a public bucket change past it" src="https://cloudrumble.net/assets/images/classif-wave-1-2d4575b6c036e112d91aeeae6af7165f.png" width="1400" height="720" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-asking-a-chatbot">#2 Asking a chatbot<a href="https://cloudrumble.net/blog/classif-semantic-decisions#2-asking-a-chatbot" class="hash-link" aria-label="Direct link to #2 Asking a chatbot" title="Direct link to #2 Asking a chatbot" translate="no">​</a></h3>
<p>Then large language models arrived, and a program could finally ask about meaning. Send the diff to a chat API, ask "does this touch secrets?", and the model reads it. The <code>token</code> in a model budget no longer confuses anyone, and the bucket change gets noticed.</p>
<p>The catch is in the answer. A chat model replies the way it talks to people: a few friendly paragraphs, some caveats, maybe an offer to help further. Your script wanted a yes or a no, and now it has to dig one out of the prose. Ask the same question twice and the wording changes. You can ask for JSON, which helps, but the script still has no idea how sure the model was. On top of that, every diff you check travels to someone else's computer, and you pay for every word of the reply.</p>
<p><img decoding="async" loading="lazy" alt="The robot sends a diff to a parrot in the cloud, which answers with a long paragraph, and the robot asks whether that was a yes" src="https://cloudrumble.net/assets/images/classif-wave-2-88ab8b029f82352c139e4a818c0a68fb.png" width="1400" height="780" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="3-one-token-answers-on-your-own-machine">#3 One-token answers on your own machine<a href="https://cloudrumble.net/blog/classif-semantic-decisions#3-one-token-answers-on-your-own-machine" class="hash-link" aria-label="Direct link to #3 One-token answers on your own machine" title="Direct link to #3 One-token answers on your own machine" translate="no">​</a></h3>
<p>Here comes the trick that makes this practical. A language model writes its reply one small piece at a time, and those pieces are called tokens. Before it picks each token, the model scores every candidate it could write next. Ollama can hand those scores back to us as log probabilities, or logprobs for short.</p>
<p>So instead of letting the model write a paragraph, we let it produce exactly one token and look at the scores of the answers we care about. If <code>yes</code> scores 0.97 and <code>no</code> scores 0.03, we have our answer and a measure of how sure the model is, from one short call. I first saw this approach in <a href="https://github.com/TheoLeeCJ/SemIf-OpenJev" target="_blank" rel="noopener noreferrer" class="">SemIf-OpenJev</a>, and <a href="https://docs.typesafe.ai/introduction" target="_blank" rel="noopener noreferrer" class="">Jev</a> shaped the bigger idea of treating such decisions as building blocks inside programs.</p>
<p>An answer like that maps neatly onto something every shell already understands: an exit code. In classif, exit 0 means the first answer won (<code>yes</code> by default) and exit 1 means another answer won. Exit 3 means the text doesn't hold enough evidence to answer, and exit 2 means something went wrong before the model could be scored. A script branches on that with <code>if</code> or <code>&amp;&amp;</code>, exactly like it branches on <code>grep</code>. And because the model runs locally, the diff never leaves your machine.</p>
<p><img decoding="async" loading="lazy" alt="An owl sitting on a local computer holds a card saying yes 0.97, and the road splits at highway signs: exit 0 to a security reviewer, exit 1 to carry on, and exit 3 to ask a human" src="https://cloudrumble.net/assets/images/classif-wave-3-a02ab30128d53131f6a0e0dbffcd400b.png" width="1400" height="800" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="almost-perfect-so-what-is-missing">Almost perfect… so what is missing?<a href="https://cloudrumble.net/blog/classif-semantic-decisions#almost-perfect-so-what-is-missing" class="hash-link" aria-label="Direct link to Almost perfect… so what is missing?" title="Direct link to Almost perfect… so what is missing?" translate="no">​</a></h3>
<p>For short text, this picture is almost perfect… almost. So what is missing? Well, long text.</p>
<p>Every model has a context window, the amount of text it can read in one go. The model I use has a window of 32k tokens, which is roughly a hundred thousand characters of English. A novel, a long log file or a big man page doesn't fit.</p>
<p>There are two obvious ways around it, and neither is great. The first is to cut the text until it fits. Ollama does this by default, and it does it quietly, so the model ends up answering confidently about a text it has only partly seen. The second is to read everything: split the text into pieces, ask the model about each one, and combine the answers. That is thorough but slow. When I asked an early version of classif whether Elizabeth dies in <em>Pride and Prejudice</em>, a 772 KB novel, it read for 4 minutes and 21 seconds and then answered <code>insufficient</code>.</p>
<p><img decoding="async" loading="lazy" alt="On the left, an owl sees only the part of a long scroll inside the model window and says it seems fine; on the right, an owl buried in books is still reading after 4 minutes 21 seconds and answers insufficient" src="https://cloudrumble.net/assets/images/classif-wave-4-ec98865daf64612b4a5a7446a79810ea.png" width="1400" height="800" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="search-first-read-more-only-when-needed">Search first, read more only when needed<a href="https://cloudrumble.net/blog/classif-semantic-decisions#search-first-read-more-only-when-needed" class="hash-link" aria-label="Direct link to Search first, read more only when needed" title="Direct link to Search first, read more only when needed" translate="no">​</a></h3>
<p>How do we keep the speed of the one-token answer and still read a whole book? The idea that unlocked it for me came from the <a href="https://arxiv.org/abs/2512.24601" target="_blank" rel="noopener noreferrer" class="">Recursive Language Models</a> paper by Zhang, Kraska and Khattab. Their approach keeps the long input outside the model's context and lets the model work through it in smaller steps. classif borrows that idea with one twist: a fixed program decides how to read the text, and the model only answers small, well-defined questions along the way.</p>
<p>For a question that one passage can settle, like "does she die?", classif searches first. Code cuts the book into short passages, ranks them by matching words and by meaning, and hands the model the closest ones, about 30,000 characters in total. The model reads those and answers with one token, as before. Code then checks whether that answer may stand. Only when the search can't settle the question does classif fall back to the slower, thorough read.</p>
<p>The Elizabeth question that used to take over four minutes now comes back in about 17 seconds, and in under 3 seconds once the passage index is cached. (She doesn't die, in case you were worried.)</p>
<p><img decoding="async" loading="lazy" alt="The robot uses a card index to pick a few pages from a 772 KB novel, the owl reads them and says no, she lives, and a traffic light checks the answer before the finish line: 17 seconds on the first run, under 3 seconds cached" src="https://cloudrumble.net/assets/images/classif-wave-5-c8d4f6d66b0559c59677efc7a16d341a.png" width="1400" height="760" class="img_ev3q"></p>
<p><em>Before we move on to the architecture, a quick note on the cast. The robot is our code, which follows instructions to the letter, and the owl is the language model, which reads. I picked owls for their reputation as careful readers, and the cuteness level helped.</em></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="classif-architecture">classif architecture<a href="https://cloudrumble.net/blog/classif-semantic-decisions#classif-architecture" class="hash-link" aria-label="Direct link to classif architecture" title="Direct link to classif architecture" translate="no">​</a></h2>
<p>What makes classif different from calling a model in a loop? Code decides how to read the text and whether an answer is good enough. The model's job stays narrow: read what it is given and pick one answer. That split keeps every model call small and every result something a program can check.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="components">Components<a href="https://cloudrumble.net/blog/classif-semantic-decisions#components" class="hash-link" aria-label="Direct link to Components" title="Direct link to Components" translate="no">​</a></h3>
<p>A word of warning: this part goes deeper than the rest of the blog. If you mostly want to try the tool, feel free to skip to the demo and come back later. The diagram below shows the main components and how they work together.</p>
<p><a href="https://cloudrumble.net/assets/files/classif-components-66701ac4cdde21179b6a0b9c49a2c619.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="classif component diagram: your script calls the classif CLI, short text goes to Ollama in one call, long text goes through the Router to the Search, Linked lines and Full read plans, then the Gate returns a label, probability and exit code" src="https://cloudrumble.net/assets/images/classif-components-66701ac4cdde21179b6a0b9c49a2c619.png" width="1803" height="1332" class="img_ev3q"></a></p>
<p><em><a href="https://cloudrumble.net/assets/files/classif-components-66701ac4cdde21179b6a0b9c49a2c619.png" target="_blank" class="">Open the diagram full size</a></em></p>
<p>Your script runs <code>classif</code> with a question and some text. When the text fits the model's window, classif sends it in one call and reads the answer from that single token. This short path covers most everyday uses: commit messages, log lines, diffs, comments.</p>
<p>When the text is too long, classif finds out from Ollama itself. It switches off the quiet cut, so the server refuses an oversized request instead of trimming it, and that refusal hands the work to the Router. The Router asks the model one question about the question: is it about something that happens at least once in the text, about the latest state of something, about every case, or about the text as a whole? The answer picks a reading plan.</p>
<p>The plans run from cheap to thorough. Search reads the closest passages, as we saw with the novel. Linked lines follows names and identifiers through the text, for example from an invoice to its supplier and on to the supplier's city. Full read goes through every passage, keeps each answer in a table, and lets code count and compare them before the model makes the final call.</p>
<p>Finally, the Gate decides whether the answer may leave. If the reading didn't cover what the question needs, classif answers <code>insufficient</code> and exits with 3, so your script knows the text did not settle it. With <code>--cache</code>, the passage vectors and readings are saved on disk, so a second question about the same text skips the expensive indexing.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="a-long-question-step-by-step">A long question, step by step<a href="https://cloudrumble.net/blog/classif-semantic-decisions#a-long-question-step-by-step" class="hash-link" aria-label="Direct link to A long question, step by step" title="Direct link to A long question, step by step" translate="no">​</a></h3>
<p>Here is the same flow as a sequence, using the Elizabeth question from earlier.</p>
<p><a href="https://cloudrumble.net/assets/files/classif-sequence-c7ce20538fdc83aad82bcc1dfb2ea001.png" target="_blank" class=""><img decoding="async" loading="lazy" alt="Sequence diagram of classif reading a long text: the CLI sends the whole novel, Ollama refuses it as too long, the Router asks which kind of question it is, Search embeds and ranks passages, Winnow-12B answers no from the closest 30,000 characters, and the Gate returns no with exit 1" src="https://cloudrumble.net/assets/images/classif-sequence-c7ce20538fdc83aad82bcc1dfb2ea001.png" width="2247" height="1316" class="img_ev3q"></a></p>
<p><em><a href="https://cloudrumble.net/assets/files/classif-sequence-c7ce20538fdc83aad82bcc1dfb2ea001.png" target="_blank" class="">Open the diagram full size</a></em></p>
<p>Two steps are worth a closer look. In step 3, the server refuses the text, and that refusal is the only thing that sends classif down the long path; it never guesses token counts up front. In step 15, the Gate applies a simple rule: a <code>yes</code> stands because the model saw a passage that shows it, but a <code>no</code> stands only when the passages were ranked by meaning. If the embedding model is missing and the ranking used words alone, classif keeps reading.</p>
<p>To make sure the answers come from the text and not from the model remembering a famous book, I renamed the characters and wrote in a death that isn't in the original. The search answered all nine test questions correctly, at about 4 seconds each once the index was built.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="demo-scenario">Demo scenario<a href="https://cloudrumble.net/blog/classif-semantic-decisions#demo-scenario" class="hash-link" aria-label="Direct link to Demo scenario" title="Direct link to Demo scenario" translate="no">​</a></h2>
<p>The demo shows classif making decisions inside ordinary shell commands, from a two-line diff to a whole novel.</p>
<p>The scenario flow:</p>
<ul>
<li class="">pick out a staged change that needs a security review</li>
<li class="">sort a change description into bug, feature or chore</li>
<li class="">ask several questions about one message in a single call</li>
<li class="">ask a question about a 772 KB novel, first building the passage index and then reusing it</li>
<li class="">clean up</li>
</ul>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="prerequisites">Prerequisites<a href="https://cloudrumble.net/blog/classif-semantic-decisions#prerequisites" class="hash-link" aria-label="Direct link to Prerequisites" title="Direct link to Prerequisites" translate="no">​</a></h3>
<p>To follow along, you will need a Linux or macOS machine with a GPU that has about 12 GB of memory; the tested setup loads the model in about 8 GB. Ollama also runs on the CPU, but I haven't measured how classif performs there.</p>
<p>Locally installed you will need:</p>
<ul>
<li class=""><a href="https://ollama.com/" target="_blank" rel="noopener noreferrer" class="">Ollama</a>, running at <code>localhost:11434</code>; I measured the timings in this blog with version 0.34.3 and reran the demos on 0.40.0</li>
<li class="">Python 3.12, with no extra packages</li>
<li class="">git and curl</li>
<li class=""><code>ifne</code> from moreutils, for the pipeline example</li>
</ul>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="demo-setup">Demo setup<a href="https://cloudrumble.net/blog/classif-semantic-decisions#demo-setup" class="hash-link" aria-label="Direct link to Demo setup" title="Direct link to Demo setup" translate="no">​</a></h3>
<p>Start by cloning the repository:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> clone https://github.com/Piotr1215/classif.git</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">cd</span><span class="token plain"> classif</span><br></div></code></pre></div></div>
<p>classif works with any Ollama model that returns logprobs. I use Winnow-12B, a Gemma 4 fine-tune trained for exactly this kind of typed decision, and I published a <a href="https://huggingface.co/Piotr1215/Winnow-12B-GGUF" target="_blank" rel="noopener noreferrer" class="">quantized version on Hugging Face</a> so you don't have to build one yourself. Create it in Ollama with this Modelfile:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">cat</span><span class="token plain"> </span><span class="token operator">&gt;</span><span class="token plain"> Modelfile </span><span class="token operator">&lt;&lt;</span><span class="token string" style="color:rgb(255, 121, 198)">'MODEL'</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">FROM hf.co/Piotr1215/Winnow-12B-GGUF:Q4_K_M</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">TEMPLATE {{ .Prompt }}</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">RENDERER gemma4</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">PARSER gemma4</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">PARAMETER temperature 1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">PARAMETER top_k 64</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">PARAMETER top_p 0.95</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">MODEL</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">ollama create winnow:12b-q4_K_M </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f</span><span class="token plain"> Modelfile</span><br></div></code></pre></div></div>
<p>The search on long text also needs a small embedding model, about 300M parameters:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">ollama pull embeddinggemma</span><br></div></code></pre></div></div>
<p>Check that everything works:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">./classif </span><span class="token string" style="color:rgb(255, 121, 198)">"Is this about Kubernetes?"</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"The pod keeps crashlooping."</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">yes 0.95</span><br></div></code></pre></div></div>
<p>The output is the winning answer and its probability. Your number may differ slightly; what matters is the label.</p>
<blockquote>
<p>If your GPU has less memory, <code>llama3.2:3b</code> works too. It is lighter and faster, but it scored worse on my test sets.</p>
</blockquote>
<p>The demos run classif from other directories, so put it on your <code>PATH</code>. A symlink is enough, since classif finds its own modules through it:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">mkdir</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-p</span><span class="token plain"> ~/.local/bin</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">ln</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-s</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$PWD</span><span class="token string" style="color:rgb(255, 121, 198)">/classif"</span><span class="token plain"> ~/.local/bin/classif</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">export</span><span class="token plain"> </span><span class="token assign-left variable environment constant" style="color:rgb(189, 147, 249);font-style:italic">PATH</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$HOME</span><span class="token string" style="color:rgb(255, 121, 198)">/.local/bin:</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$PATH</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># if ~/.local/bin is not on your PATH yet</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="observability">Observability<a href="https://cloudrumble.net/blog/classif-semantic-decisions#observability" class="hash-link" aria-label="Direct link to Observability" title="Direct link to Observability" translate="no">​</a></h3>
<p>A few ways to see what is going on under the hood:</p>
<ul>
<li class=""><code>-j</code> prints the full result as JSON, with the score of every answer and, for long text, a report of what was read</li>
<li class=""><code>--why</code> reads line by line and prints the lines the answer rests on</li>
<li class=""><code>ollama ps</code> shows which models are loaded and how much memory they use</li>
</ul>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="demo-1-pick-out-changes-for-a-security-review">Demo 1: Pick out changes for a security review<a href="https://cloudrumble.net/blog/classif-semantic-decisions#demo-1-pick-out-changes-for-a-security-review" class="hash-link" aria-label="Direct link to Demo 1: Pick out changes for a security review" title="Direct link to Demo 1: Pick out changes for a security review" translate="no">​</a></h3>
<p>Let's start with the secrets example from the first wave. Create a throwaway repository with two small files:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">mkdir</span><span class="token plain"> /tmp/classif-demo </span><span class="token operator">&amp;&amp;</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">cd</span><span class="token plain"> /tmp/classif-demo</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> init </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-q</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">printf</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'def api_headers():\n    return {"Content-Type": "application/json"}\n'</span><span class="token plain"> </span><span class="token operator">&gt;</span><span class="token plain"> api.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">printf</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'MAX_CONTEXT_TOKENS = 4096\n'</span><span class="token plain"> </span><span class="token operator">&gt;</span><span class="token plain"> model.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">add</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">.</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-c</span><span class="token plain"> </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">user.name</span><span class="token operator">=</span><span class="token plain">demo </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-c</span><span class="token plain"> </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">user.email</span><span class="token operator">=</span><span class="token plain">demo@example.invalid commit </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-qm</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"baseline"</span><br></div></code></pre></div></div>
<p>Now make a change that reads an API key from the environment and stage it:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">cat</span><span class="token plain"> </span><span class="token operator">&gt;</span><span class="token plain"> api.py </span><span class="token operator">&lt;&lt;</span><span class="token string" style="color:rgb(255, 121, 198)">'EOF'</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">import os</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">def api_headers():</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">    headers = {"Content-Type": "application/json"}</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">    api_key = os.environ["API_KEY"]</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">    headers["Authorization"] = f"Bearer {api_key}"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">    return headers</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">EOF</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">add</span><span class="token plain"> api.py</span><br></div></code></pre></div></div>
<p>Ask classif whether the staged change needs a security look:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">diff</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--staged</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-p</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Does this change handle secrets, credentials or who may access what?"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"exit </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$?</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><br></div></code></pre></div></div>
<p>With <code>-p</code>, classif passes its input through unchanged when the answer is <code>yes</code>, so the diff comes back out:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">diff --git a/api.py b/api.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">index 73f1822..597fce8 100644</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">--- a/api.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+++ b/api.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">@@ -1,2 +1,7 @@</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+import os</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"> def api_headers():</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">-    return {"Content-Type": "application/json"}</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+    headers = {"Content-Type": "application/json"}</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+    api_key = os.environ["API_KEY"]</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+    headers["Authorization"] = f"Bearer {api_key}"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+    return headers</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">exit 0</span><br></div></code></pre></div></div>
<p>Now undo that change and stage one that contains the word "tokens" but has nothing to do with secrets:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> restore </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--staged</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--worktree</span><span class="token plain"> api.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">printf</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'MAX_CONTEXT_TOKENS = 8192\n'</span><span class="token plain"> </span><span class="token operator">&gt;</span><span class="token plain"> model.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">add</span><span class="token plain"> model.py</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">diff</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--staged</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-p</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Does this change handle secrets, credentials or who may access what?"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"exit </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$?</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">exit 1</span><br></div></code></pre></div></div>
<p>This time nothing comes through, and the exit code says the answer was another label. Both decisions took about 0.3 seconds on my machine. A <code>grep -i token</code> would have flagged the second change and missed the first.</p>
<p>Here is how I use it day to day. <code>ifne</code> from moreutils runs a command only when it receives input, so the expensive reviewer starts only for changes that need it:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">diff</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--staged</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-p</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Does this change handle secrets, credentials or who may access what?"</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  ifne claude </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-p</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Review this change for security issues"</span><br></div></code></pre></div></div>
<blockquote>
<p>One thing to keep in mind: in a pipeline, the shell reports the exit code of the last command, so classif's own exit code gets lost. When you want to send unsure answers somewhere else, run classif as its own step and check <code>$?</code>.</p>
</blockquote>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="demo-2-name-the-kind-of-change">Demo 2: Name the kind of change<a href="https://cloudrumble.net/blog/classif-semantic-decisions#demo-2-name-the-kind-of-change" class="hash-link" aria-label="Direct link to Demo 2: Name the kind of change" title="Direct link to Demo 2: Name the kind of change" translate="no">​</a></h3>
<p>Yes and no are only the default answers. With <code>-e</code>, you give classif your own options, each with a short description that tells the model when to pick it. The descriptions only guide the model; the output is the option name and its probability:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">printf</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'Fix a startup crash when the config file is missing.\n'</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif </span><span class="token string" style="color:rgb(255, 121, 198)">"What kind of change is this?"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-e</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"bug=repairs broken behavior"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-e</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"feature=adds a capability"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-e</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"chore=maintenance with no behavior change"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"exit </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$?</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">bug 1.00</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">exit 0</span><br></div></code></pre></div></div>
<p><code>bug</code> is the first option, so it exits with 0; <code>feature</code> or <code>chore</code> would exit with 1. classif also adds a <code>none</code> option for text that fits none of yours. Add <code>--why</code> to see which lines the answer rests on:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">printf</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'Fix a startup crash when the config file is missing.\n'</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif </span><span class="token string" style="color:rgb(255, 121, 198)">"What kind of change is this?"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-e</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"bug=repairs broken behavior"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-e</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"feature=adds a capability"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-e</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"chore=maintenance with no behavior change"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--why</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">bug 1.00</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  1: Fix a startup crash when the config file is missing.</span><br></div></code></pre></div></div>
<p>With a one-line input there is not much to see, but on a long log it points you straight at the lines that mattered.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="demo-3-ask-several-questions-at-once">Demo 3: Ask several questions at once<a href="https://cloudrumble.net/blog/classif-semantic-decisions#demo-3-ask-several-questions-at-once" class="hash-link" aria-label="Direct link to Demo 3: Ask several questions at once" title="Direct link to Demo 3: Ask several questions at once" translate="no">​</a></h3>
<p>Often one answer is not enough. When a message lands in my inbox, I want to know both how urgent it is and whether it asks something of me. Two separate calls would make the model read the message twice. <code>classif tag</code> asks all the questions in one call, so the text is read once:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Prod login is down since the 3pm deploy. Can you roll back now?"</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif tag </span><span class="token string" style="color:rgb(255, 121, 198)">'urgency=today,this week,no deadline'</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'kind=asks me,fyi,newsletter'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"exit </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$?</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">urgency  today    1.00</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kind     asks me  1.00</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">exit 0</span><br></div></code></pre></div></div>
<p>Each argument is one question: a name, an equals sign and the options, separated by commas. The output has one line per question with the name, the winning option and its probability. A newsletter gets a different pair of answers:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Our March newsletter: five talks we loved and a new meetup in Berlin."</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  classif tag </span><span class="token string" style="color:rgb(255, 121, 198)">'urgency=today,this week,no deadline'</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'kind=asks me,fyi,newsletter'</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">urgency  no deadline  1.00</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kind     newsletter   1.00</span><br></div></code></pre></div></div>
<p>Under the hood, the model no longer stops after one token. It writes a single line of JSON with one key per question and one digit after each key, the number of the option it picked, or 0 for the <code>none</code> option classif adds, as it does with <code>-e</code>. classif reads the scores behind each digit, the same way it reads <code>yes</code> and <code>no</code>. The keys matter: without them, the model tended to copy its first answer into the second.</p>
<p>A few things work differently from a single question. Options take no descriptions, so pick names the model can understand on their own. The exit code covers all questions together: 0 when every question got an answer, 2 when any could not be scored, and 3 when any answer fell below the <code>-t</code> floor. To act on a specific answer, read the output or add <code>-j</code>. And the whole text has to fit in the model's window. Point <code>tag</code> at the novel from the next demo and it exits with 2 and tells you to ask one question at a time.</p>
<p>Is one call always faster? Not for short text. Each extra question adds a few generated tokens, so for a short email three separate calls finished slightly sooner than one <code>tag</code> call. The gain grows with the text. The <a href="https://github.com/Piotr1215/classif/blob/main/docs/reference.md#several-questions-one-text" target="_blank" rel="noopener noreferrer" class="">classif reference</a> records three questions about a 44,000-character document taking 2.2 seconds with <code>tag</code> against 4.4 seconds as three calls. Accuracy held up too: on the public test set of 36 texts with two claims each, asked in both orders, <code>tag</code> got 137 of 144 answers right against 138 for separate calls.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="demo-4-ask-a-question-about-a-whole-novel">Demo 4: Ask a question about a whole novel<a href="https://cloudrumble.net/blog/classif-semantic-decisions#demo-4-ask-a-question-about-a-whole-novel" class="hash-link" aria-label="Direct link to Demo 4: Ask a question about a whole novel" title="Direct link to Demo 4: Ask a question about a whole novel" translate="no">​</a></h3>
<p>Time for the long text. Download <em>Pride and Prejudice</em> from Project Gutenberg, all 772 KB of it:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-fsSL</span><span class="token plain"> https://www.gutenberg.org/cache/epub/1342/pg1342.txt </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-o</span><span class="token plain"> pg1342.txt</span><br></div></code></pre></div></div>
<p>Ask the question from earlier, with <code>--cache</code> so the passage index is saved:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">time</span><span class="token plain"> classif </span><span class="token string" style="color:rgb(255, 121, 198)">"Does Elizabeth die in this book?"</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-i</span><span class="token plain"> pg1342.txt </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--cache</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">no 0.99</span><br></div></code></pre></div></div>
<p>The first run took 16.8 seconds on my machine, with the model already loaded and no saved index. Most of that time goes into cutting the book into passages and embedding each one. Run the same command again and the index comes from the cache:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">no 0.99</span><br></div></code></pre></div></div>
<p>The second run took 2.7 seconds. Both runs exited with 1, since <code>no</code> is not the first label.</p>
<p>Remember what a <code>no</code> from the search means: the passages closest to the question don't show Elizabeth dying. The answer rests on those passages, and a search can miss one. Add <code>-j</code> and the read report says so with <code>"plan": "search"</code>. A claim about every line, such as "is every entry in this log from the same day?", needs the full read, and that can take minutes.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="exit-codes-cheat-sheet">Exit codes cheat sheet<a href="https://cloudrumble.net/blog/classif-semantic-decisions#exit-codes-cheat-sheet" class="hash-link" aria-label="Direct link to Exit codes cheat sheet" title="Direct link to Exit codes cheat sheet" translate="no">​</a></h3>
<ul>
<li class=""><code>0</code>: the first answer won, <code>yes</code> by default</li>
<li class=""><code>1</code>: another answer won, including <code>unknown</code> and <code>none</code></li>
<li class=""><code>2</code>: the answer could not be scored, for example when Ollama is not running</li>
<li class=""><code>3</code>: not enough evidence, a deadline (<code>-d</code>) ran out, or the score fell below the <code>-t</code> floor</li>
</ul>
<p><code>classif tag</code> reports on all its questions at once: <code>0</code> when every question got an answer, <code>2</code> when any could not be scored, and <code>3</code> when any answer fell below <code>-t</code>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="cleanup">Cleanup<a href="https://cloudrumble.net/blog/classif-semantic-decisions#cleanup" class="hash-link" aria-label="Direct link to Cleanup" title="Direct link to Cleanup" translate="no">​</a></h3>
<p>Remove the demo files, the cache and the command link:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">cd</span><span class="token plain"> ~</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">rm</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-rf</span><span class="token plain"> /tmp/classif-demo ~/.cache/classif</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">rm</span><span class="token plain"> ~/.local/bin/classif</span><br></div></code></pre></div></div>
<p>If you don't plan to keep using classif, remove the models too:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">ollama </span><span class="token function" style="color:rgb(80, 250, 123)">rm</span><span class="token plain"> winnow:12b-q4_K_M</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">ollama </span><span class="token function" style="color:rgb(80, 250, 123)">rm</span><span class="token plain"> hf.co/Piotr1215/Winnow-12B-GGUF:Q4_K_M</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">ollama </span><span class="token function" style="color:rgb(80, 250, 123)">rm</span><span class="token plain"> embeddinggemma</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="conclusion">Conclusion<a href="https://cloudrumble.net/blog/classif-semantic-decisions#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion" translate="no">​</a></h2>
<p>classif gives shell scripts a way to branch on what text means, using the tools scripts already understand: exit codes, <code>if</code>, <code>&amp;&amp;</code> and pipes. It started as a small helper for my own dotfiles and grew one question at a time, until it could read a whole novel to answer one of them.</p>
<p>Benefits:</p>
<ul>
<li class="">A question in plain English replaces a growing pile of regular expressions</li>
<li class="">Each answer comes with a probability, so a script can act only when the model is sure enough (<code>-t 0.8</code>)</li>
<li class="">Everything runs on your machine, so diffs, logs and documents stay private</li>
<li class="">Long text is read in full or searched, and an answer the reading can't support comes back as <code>insufficient</code></li>
</ul>
<p>Challenges:</p>
<ul>
<li class="">The tested setup needs a GPU with about 12 GB of memory</li>
<li class="">My test sets are small (344 cases for short decisions), so treat the numbers as a good sign rather than a benchmark</li>
<li class="">A claim about every line of a long text still needs a full read, which takes minutes and can still be wrong</li>
<li class="">A probability tells you how sure the model is, which is different from being right</li>
<li class="">A model can only judge what it is shown. I tried classif as a relevance filter for the context my coding agent retrieves and removed it again, because the filter saw the prompt but never the conversation around it</li>
</ul>
<p>If you want to dig deeper, the <a href="https://github.com/Piotr1215/classif/blob/main/docs/architecture.md" target="_blank" rel="noopener noreferrer" class="">architecture document</a> covers the reading plans, the cache and the full measurements. And if you try classif in your own scripts, I would love to hear which questions you end up asking.</p>]]></content:encoded>
            <category>ai</category>
            <category>development</category>
        </item>
        <item>
            <title><![CDATA[Seven Ways to Edit Many Lines in Neovim, Scored in Keystrokes]]></title>
            <link>https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing</link>
            <guid>https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing</guid>
            <pubDate>Tue, 29 Sep 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Every Neovim method for editing many lines at once, from :norm and :s to macros and the new built-in multicursor, with a rule of thumb and a keystroke scoreboard.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Cursors sitting at the same spot on every line of a terminal editor" src="https://cloudrumble.net/assets/images/nvim-multi-line-editing-hero-333dbfd776febd0dd6ddf08b6f42ae28.png" width="1280" height="720" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>Sooner or later you make the same small edit on line one, then line two, then line three. Neovim has had several ways to avoid that loop for years, and a newer one arrives with 0.13: built-in multicursor. This post walks through each method with a small example, covers multicursor in depth, and ends with a rule of thumb and a keystroke count for nine exercises. Multicursor is available only in nightly builds until Neovim 0.13 ships; every other method works in any Neovim, and in Vim.</p>
<p>The post goes with the video <a href="https://youtu.be/S5kfUZQNzhU" target="_blank" rel="noopener noreferrer" class="">Neovim Multi-Line Editing Overview, Multicursor Included</a>, which plays three of the exercises live.</p>
<!--$?--><template id="B:0"></template><!--/$-->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-edit-loop">The edit loop<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#the-edit-loop" class="hash-link" aria-label="Direct link to The edit loop" title="Direct link to The edit loop" translate="no">​</a></h2>
<p>Every multiline edit starts the same way: find the spot, make the edit, go to the next line.</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">find the spot ──▶ make the edit ──▶ next line</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">     ▲                                  │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">     └──────────────────────────────────┘</span><br></div></code></pre></div></div>
<p>Each extra line is another trip around the loop. Ten lines are tolerable. A few hundred are a reason to look for another way.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="targets-and-edit">Targets and edit<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#targets-and-edit" class="hash-link" aria-label="Direct link to Targets and edit" title="Direct link to Targets and edit" translate="no">​</a></h2>
<p>Every multiline edit answers two questions: where the targets are (lines, search matches, or spots you pick by hand), and what the edit is (a set of keys, a command, a substitution). Each method below is one pair of answers.</p>
<p>The Vim grammar already helps with the second question. A motion finds its own target on every line. Take these two lines:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">[INFO] server started on port 8080</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">[ERROR 503] connection failed: timeout after 30s</span><br></div></code></pre></div></div>
<p><code>f]</code> stops at the <code>]</code> on each line, even though the two brackets sit in different columns. Replay the motion on each line and it finds that line's own bracket. Most methods below lean on that property.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="two-method-families">Two method families<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#two-method-families" class="hash-link" aria-label="Direct link to Two method families" title="Direct link to Two method families" translate="no">​</a></h2>
<p>The methods split by how you work.</p>
<p>Command methods describe the edit and run it: <code>:norm</code>, <code>:g</code> and <code>:v</code>, <code>:s</code>, <code>:!</code> external commands, and macros. You see the result and none of the individual keys.</p>
<p>Cursor methods make the edit on screen and let you watch it land: visual block and multicursor. You see every key take effect.</p>
<p>The two families combine. <code>:g/pat/normal! Q</code> lets a command pick the lines while you type the edit live, and later sections show how.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="classic-methods">Classic methods<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#classic-methods" class="hash-link" aria-label="Direct link to Classic methods" title="Direct link to Classic methods" translate="no">​</a></h2>
<p>Each of these predates multicursor. The examples come from nine exercises that appear again in the scoreboard.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="visual-block">Visual block<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#visual-block" class="hash-link" aria-label="Direct link to Visual block" title="Direct link to Visual block" translate="no">​</a></h3>
<p><code>CTRL-V</code> selects a rectangle and <code>I</code> types into every row of it. To turn a list of tasks into bullets:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">CTRL-V  G  I  - &lt;Esc&gt;</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">Buy milk                                 - Buy milk</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Call the dentist tomorrow morning   ──▶  - Call the dentist tomorrow morning</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Fix bug                                  - Fix bug</span><br></div></code></pre></div></div>
<p>Visual block fits the same column on every line. It does not fit targets that move from line to line, because the rectangle has fixed edges.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="normal-on-a-range">Normal on a range<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#normal-on-a-range" class="hash-link" aria-label="Direct link to Normal on a range" title="Direct link to Normal on a range" translate="no">​</a></h3>
<p><code>:norm</code> runs normal-mode keys on each line of a range. To strip the brackets from log levels:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:%norm xf]D</span><br></div></code></pre></div></div>
<p>Read it from the right: <code>D</code> deletes to the end of the line, <code>f]</code> jumps to the <code>]</code>, <code>x</code> deletes the <code>[</code>, and <code>%</code> is every line. You type it once on the command line and see only the result.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="global-command">Global command<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#global-command" class="hash-link" aria-label="Direct link to Global command" title="Direct link to Global command" translate="no">​</a></h3>
<p><code>:g/pattern/cmd</code> runs <code>cmd</code> on lines that match. <code>:v/pattern/cmd</code> runs it on lines that do not. To prefix every line that has no colon:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:v/:/s/^/[ok] /</span><br></div></code></pre></div></div>
<p>Here the target is a condition that no screen position can express.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="substitution">Substitution<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#substitution" class="hash-link" aria-label="Direct link to Substitution" title="Direct link to Substitution" translate="no">​</a></h3>
<p><code>:s</code> rewrites every match of a pattern. To turn <code>snake_case</code> into <code>camelCase</code>:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:%s/\v_(.)/\u\1/g</span><br></div></code></pre></div></div>
<p><code>\v</code> is very magic mode, where <code>( )</code> group without backslashes. <code>_(.)</code> matches an underscore and the letter after it, <code>\u\1</code> writes that letter back in uppercase, and <code>g</code> applies to every match on the line. Substitution also combines with <code>:cdo</code> and <code>:argdo</code> to reach many files.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="external-commands">External commands<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#external-commands" class="hash-link" aria-label="Direct link to External commands" title="Direct link to External commands" translate="no">​</a></h3>
<p><code>:{range}!cmd</code> pipes lines through a command-line tool and keeps what it prints.</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:%!sort -u</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:'&lt;,'&gt;!column -t</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:%!jq .</span><br></div></code></pre></div></div>
<p>These sort and deduplicate, align a selection into columns, and pretty-print JSON. Any tool that reads stdin and writes stdout becomes an edit.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="macros">Macros<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#macros" class="hash-link" aria-label="Direct link to Macros" title="Direct link to Macros" translate="no">​</a></h3>
<p>Record an edit once and replay it anywhere:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">qq … +q</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">4@q</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">"qp</span><br></div></code></pre></div></div>
<p><code>qq</code> starts recording into register <code>q</code>, and ending the edit with <code>+</code> moves to the next line so each replay starts fresh. <code>4@q</code> replays four times. <code>"qp</code> pastes the macro as text so you can fix a typo, and the register keeps the macro for later, in any file.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="multicursor">Multicursor<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#multicursor" class="hash-link" aria-label="Direct link to Multicursor" title="Direct link to Multicursor" translate="no">​</a></h2>
<p>Built-in multicursor is the newest method. It sits beside the classics without replacing them. <code>:help mcursor</code> describes it as extra cursors that repeat operations at each cursor as you type. Unlike a macro, which is a stream of keys without context, multicursor replays actions semantically: it re-runs the command at each cursor.</p>
<p>Because it is a nightly feature until 0.13, check <code>nvim --version</code> before relying on any key below.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="placing-cursors">Placing cursors<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#placing-cursors" class="hash-link" aria-label="Direct link to Placing cursors" title="Direct link to Placing cursors" translate="no">​</a></h3>
<p>Four keys place cursors:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">{Visual}Q     " a cursor on each selected line</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">Q             " toggle a cursor where you stand</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">zqgn          " a cursor on every match of the last search</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">CTRL-click    " add a cursor with the mouse</span><br></div></code></pre></div></div>
<p>After that you type, and the edit lands at every cursor as you go. A first example is the bullet list again:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">VGQI- &lt;Esc&gt;</span><br></div></code></pre></div></div>
<p><code>V</code> selects the line, <code>G</code> extends to the last line, <code>Q</code> puts a cursor on each, and <code>I- &lt;Esc&gt;</code> inserts the prefix at all of them. A few details from the help are worth knowing. A Visual <code>Q</code> also enables follow mode (<code>q=</code>), where motions such as <code>w</code> and <code>f]</code> replay per cursor. And <code>zq</code> is an operator that places a cursor at every target of a motion, so <code>/_&lt;CR&gt;zqgn</code> puts a cursor at every underscore, even several on one line. A count on <code>Q</code> forces it instead of toggling: <code>1Q</code> adds a cursor, <code>2Q</code> removes one.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="scripted-placement">Scripted placement<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#scripted-placement" class="hash-link" aria-label="Direct link to Scripted placement" title="Direct link to Scripted placement" translate="no">​</a></h3>
<p><code>Q</code> is a normal-mode command, so any Ex command can place cursors:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:g/pat/normal! nQ         " on every match</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:g/ERROR/normal! f]Q      " after the ] on ERROR lines only</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:v/:/normal! Q            " on lines without a colon</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:cdo normal! Q            " at each quickfix item</span><br></div></code></pre></div></div>
<p>From Lua, an extmark in the <code>nvim.multicursor</code> namespace places a cursor anywhere: <code>vim.api.nvim_buf_set_extmark(0, vim.api.nvim_create_namespace("nvim.multicursor"), r, c, {})</code>. A command picks the spots and you type the edit live. The <code>:g</code> and <code>:v</code> conditions from the classic section now drive cursor placement instead of a fixed edit.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="command-replay">Command replay<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#command-replay" class="hash-link" aria-label="Direct link to Command replay" title="Direct link to Command replay" translate="no">​</a></h3>
<p>Neovim replays the command at each cursor. It does not replay the raw keys.</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">typed once      runs at every cursor</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">f]         ──▶  each line's own ]</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">dt=        ──▶  each line's own text, cut to its own register</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">@q         ──▶  the whole macro</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">u          ──▶  one undo for every cursor</span><br></div></code></pre></div></div>
<p>This is why a motion that lands in a different column on each line still works, and why macros run at every cursor too. Undo is atomic: one <code>u</code> reverts the edits from all cursors at once. A cursor whose edit cannot start is removed, so <code>ct;</code> drops the cursor on any line with no <code>;</code>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="per-cursor-registers">Per-cursor registers<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#per-cursor-registers" class="hash-link" aria-label="Direct link to Per-cursor registers" title="Direct link to Per-cursor registers" translate="no">​</a></h3>
<p>Each cursor reads and writes its own registers. Flipping an assignment shows it:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">VGQ  dt=  A=&lt;Esc&gt;  p  0x</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">name=john      ──▶  john=name</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">age=30         ──▶  30=age</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">city=london    ──▶  london=city</span><br></div></code></pre></div></div>
<p><code>dt=</code> cuts the text before the <code>=</code> into that cursor's own register, <code>A=&lt;Esc&gt;</code> appends an equals sign, <code>p</code> pastes each cursor's own text, and <code>0x</code> removes the leading <code>=</code>. When the session ends, the yanks join into one register, a line each. Paste with <code>p</code> after <code>A=&lt;Esc&gt;</code>: an <code>x</code> before the paste would overwrite each cursor's register.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="session-keys">Session keys<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#session-keys" class="hash-link" aria-label="Direct link to Session keys" title="Direct link to Session keys" translate="no">​</a></h3>
<p>A few more keys work while cursors are active:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">q=          " follow mode: motions move every cursor</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">CTRL-L      " clear the cursors</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">gQ          " bring the last cursors back</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">]C  [C      " jump to the next or previous cursor</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">g CTRL-A    " number the cursors 1, 2, 3</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">u           " undo the last edit at every cursor</span><br></div></code></pre></div></div>
<p>If <code>CTRL-L</code> is taken in your setup, clear the cursors by clearing the <code>nvim.multicursor</code> namespace, for example from a mapping on <code>&lt;Esc&gt;</code>. The help also notes that <code>]CQ</code> removes cursors one at a time.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="limits">Limits<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#limits" class="hash-link" aria-label="Direct link to Limits" title="Direct link to Limits" translate="no">​</a></h3>
<p>From <code>:help mcursor-limitations</code> and the cursor rules:</p>
<ul>
<li class="">Cursors live in one buffer. Edits across many files still need <code>:cdo</code>.</li>
<li class=""><code>Q</code> is not allowed while a macro records or runs.</li>
<li class="">The explicit clipboard registers <code>"+</code> and <code>"*</code> are global and shared by all cursors.</li>
<li class=""><code>g-</code>, <code>g+</code>, and <code>:earlier</code> clear every cursor.</li>
<li class="">Same-line cursors may be lost or misplaced by an edit that shifts columns, such as inserting text.</li>
<li class="">Reloading or unloading a buffer clears its cursors.</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="rule-of-thumb">Rule of thumb<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#rule-of-thumb" class="hash-link" aria-label="Direct link to Rule of thumb" title="Direct link to Rule of thumb" translate="no">​</a></h2>
<p>Ask from the top of the list. The first yes picks the method.</p>
<ol>
<li class="">Is it a job a command-line tool already does? Use a <code>:%!</code> external command.</li>
<li class="">Is it across files, or too many lines to watch? Use <code>:s</code> or <code>:norm</code> with <code>:cdo</code>.</li>
<li class="">Is it an edit you will replay later? Record a macro.</li>
<li class="">Is it one column on adjacent lines? Use visual block.</li>
<li class="">Are the lines picked by a pattern? Use <code>:g</code> or <code>:v</code>.</li>
<li class="">Is it one fixed string swapped for another? Use <code>:s</code>.</li>
<li class="">Is it anything else that you can see on screen? Use multicursor.</li>
</ol>
<p>Multicursor handles whatever the earlier questions leave. Visual block still wins the column prefix. <code>:v</code> wins the conditional prefix. An external command beats everything when a tool already exists.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="keystroke-golf">Keystroke golf<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#keystroke-golf" class="hash-link" aria-label="Direct link to Keystroke golf" title="Direct link to Keystroke golf" translate="no">​</a></h2>
<p>Nine exercises, each with a <code>.before</code> file and a <code>.solution</code> file. Every row was run on Neovim 0.13-dev nightly with <code>--clean</code>, with the cursor starting on line 1, column 1. The table lists the shortest non-multicursor method found for each exercise and the multicursor solution, in keys typed.</p>
<table><thead><tr><th>Exercise</th><th>Shortest other method</th><th>Multicursor</th></tr></thead><tbody><tr><td>01 add-prefix</td><td>visual block <code>&lt;C-V&gt;GI- &lt;Esc&gt;</code>, 6 keys</td><td><code>VGQI- &lt;Esc&gt;</code>, 7 keys</td></tr><tr><td>02 log-levels</td><td>macro <code>qqxf]D+q4@q</code>, 11 keys</td><td><code>VGQxf]D</code>, 7 keys</td></tr><tr><td>03 brackets-to-quotes</td><td>macro <code>qqr"f]r"+q4@q</code>, 13 keys</td><td><code>VGQr"f]r"</code>, 9 keys</td></tr><tr><td>04 first-field</td><td>:s<!-- --> <code>:%s/,.*&lt;CR&gt;</code>, 8 keys</td><td><code>VGQf,D</code>, 6 keys</td></tr><tr><td>05 add-semicolons</td><td>:s<!-- --> <code>:%s/$/;&lt;CR&gt;</code>, 8 keys</td><td><code>VGQA;&lt;Esc&gt;</code>, 6 keys</td></tr><tr><td>06 wrap-parens</td><td>macro <code>qqwi(&lt;Esc&gt;A)&lt;Esc&gt;+q4@q</code>, 14 keys</td><td><code>VGQwi(&lt;Esc&gt;A)&lt;Esc&gt;</code>, 10 keys</td></tr><tr><td>07 flip-assignment</td><td>macro <code>qqdt=A=&lt;Esc&gt;p0xjq4@q</code>, 16 keys</td><td><code>VGQdt=A=&lt;Esc&gt;p0x</code>, 12 keys</td></tr><tr><td>08 conditional-prefix</td><td>:v<!-- --> <code>:v/:/s/^/[ok] &lt;CR&gt;</code>, 15 keys</td><td><code>/^\w*$&lt;CR&gt;zqgnI[ok] &lt;Esc&gt;</code>, 18 keys</td></tr><tr><td>09 snake-to-camel</td><td>:s<!-- --> <code>:%s/\v_(.)/\u\1/g&lt;CR&gt;</code>, 18 keys</td><td><code>/_&lt;CR&gt;zqgnx~</code>, 9 keys</td></tr></tbody></table>
<p>Multicursor is shorter on seven of the nine. The two exceptions match the rule of thumb. Visual block takes the prefix in 01 by one key. In 08 the condition is the whole task, and <code>:v/:/</code> states it directly, while the multicursor version has to find the lines with a search pattern first.</p>
<p>A few notes on the counts:</p>
<ul>
<li class="">A macro that steps to the next line before <code>q</code> and replays with <code>4@q</code> costs its edit plus 7 keys. That beats <code>:norm</code> and <code>:s</code> on 02, 03, 06, and 07. <code>+</code> steps to the first word, and <code>j</code> keeps the column, which breaks 06 but suits 07, whose edit ends in column 1.</li>
<li class="">The other methods for a few rows: <code>:%norm I- &lt;CR&gt;</code> (11) on 01, <code>:%s/ \zs.*/(&amp;)&lt;CR&gt;</code> (15) on 06, <code>:%s/\v(.*)\=(.*)/\2=\1&lt;CR&gt;</code> (23) on 07, and <code>:v/:/norm! Q&lt;CR&gt;I[ok] &lt;Esc&gt;</code> (20) on 08.</li>
<li class="">Exercise 09 puts several cursors on one line: <code>zqgn</code> adds one at every <code>_</code> match. The video uses <code>1Q</code> on 08 and 09, which placed a cursor at every match until Neovim added <code>zq</code> on September 29; <code>1Q</code> now forces a single cursor.</li>
</ul>
<p>Keys typed is one measure. A <code>:s</code> command shows only the result, and a macro replays from a register long after the session ends. The rule of thumb weighs those properties as well as the count.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="getting-started">Getting started<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#getting-started" class="hash-link" aria-label="Direct link to Getting started" title="Direct link to Getting started" translate="no">​</a></h2>
<p>Grab a nightly build from the <a href="https://github.com/neovim/neovim/releases/tag/nightly" target="_blank" rel="noopener noreferrer" class="">Neovim releases page</a>, open <code>:help mcursor</code> for every key with examples, and run the exercises. The runner script checks each result against its <code>.solution</code> file, and the exercise files are in the repository linked below. Press <code>VGQ</code> on a few lines and type an edit to see it land at every cursor.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="resources">Resources<a href="https://cloudrumble.net/blog/2026/09/29/nvim-multi-line-editing#resources" class="hash-link" aria-label="Direct link to Resources" title="Direct link to Resources" translate="no">​</a></h2>
<ul>
<li class=""><a href="https://youtu.be/S5kfUZQNzhU" target="_blank" rel="noopener noreferrer" class="">Video: Neovim Multi-Line Editing Overview, Multicursor Included</a></li>
<li class=""><a href="https://www.reddit.com/r/neovim/comments/1x2akdv/neovim_multiline_editing_overview_multicursor/" target="_blank" rel="noopener noreferrer" class="">Discussion on r/neovim</a></li>
<li class=""><a href="https://github.com/Piotr1215/youtube/blob/main/nvim-multi-line-editing/presentation.md" target="_blank" rel="noopener noreferrer" class="">Presentation source</a></li>
<li class=""><a href="https://github.com/Piotr1215/youtube/tree/main/nvim-multi-line-editing/exercises" target="_blank" rel="noopener noreferrer" class="">The nine exercises</a></li>
<li class=""><a href="https://github.com/neovim/neovim/pull/41587" target="_blank" rel="noopener noreferrer" class="">Multicursor pull request, neovim/neovim#41587</a></li>
<li class=""><code>:help mcursor</code> in a nightly build</li>
<li class=""><a href="https://blog.olimorris.com/2026/09/02/multiple-cursors-in-neovim-0.13" target="_blank" rel="noopener noreferrer" class="">Multiple cursors in Neovim 0.13, Oli Morris</a></li>
</ul>]]></content:encoded>
            <category>neovim</category>
            <category>vim</category>
            <category>terminal</category>
            <category>productivity</category>
            <category>cli</category>
        </item>
        <item>
            <title><![CDATA[Paste tmux Scrollback by Typing the Words You Remember]]></title>
            <link>https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex</link>
            <guid>https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex</guid>
            <pubDate>Sat, 05 Sep 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Search tmux scrollback with the landmarks you remember, watch the exact range highlight in the pane, then paste it at your cursor without submitting it.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="tmux pane regex picker highlighting an error in scrollback" src="https://cloudrumble.net/assets/images/tmux-pane-regex-hero-7af05f18d787e8a2b7ac73a1632d5a19.png" width="1280" height="720" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>The text you need next is usually already on your screen. A pod name three commands back, the error string you want to search for, a URL a tool printed, the long flag you typed twenty minutes ago. Getting it into your current prompt means reaching for the mouse, and the mouse gets it wrong: a soft-wrapped line comes back with a newline in the middle, and a newline in a shell paste runs the command. This post covers a tmux plugin that selects the range by the words you remember, shows you the selection in the real pane while you type, and pastes it without submitting it.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-the-mouse-and-copy-mode-each-cost-you">What the mouse and copy-mode each cost you<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#what-the-mouse-and-copy-mode-each-cost-you" class="hash-link" aria-label="Direct link to What the mouse and copy-mode each cost you" title="Direct link to What the mouse and copy-mode each cost you" translate="no">​</a></h2>
<p>Mouse selection has no idea where a logical line begins. tmux wraps a long command across three display rows, you drag across all three, and you paste something with two line breaks in it. In a shell that is not a paste, it is three commands.</p>
<p>Copy-mode is precise and it takes you out of the pane. You press prefix, search backwards, move to the start, begin selection, move to the end, copy, quit, then paste. Every step is a keystroke you have to plan, and you are no longer looking at the prompt you were writing.</p>
<p>Shell history search only covers commands you typed. It cannot reach the output those commands produced, which is where most of the text you want to reuse lives.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="typing-the-landmarks">Typing the landmarks<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#typing-the-landmarks" class="hash-link" aria-label="Direct link to Typing the landmarks" title="Direct link to Typing the landmarks" translate="no">​</a></h2>
<p>You press <code>prefix + R</code>, a small popup opens, and you type the parts you remember. The selectors are regular expressions with a few shorthands for prose and terminal output.</p>
<table><thead><tr><th>Query</th><th>Selection</th></tr></thead><tbody><tr><td><code>^start\3f,</code></td><td>Through the third comma</td></tr><tr><td><code>^start\2tout</code></td><td>Stops before the second <code>out</code> and the whitespace ahead of it</td></tr><tr><td><code>^start.*stop\2</code></td><td>Through the second <code>stop</code></td></tr><tr><td><code>^start.*stop\2t</code></td><td>Stops before the second <code>stop</code></td></tr><tr><td><code>^\u</code></td><td>Newest URL, with Up to visit older ones</td></tr><tr><td><code>^github\u</code></td><td>Newest URL containing <code>github</code></td></tr><tr><td><code>^word$</code></td><td>Latest logical line containing <code>word</code></td></tr><tr><td><code>^start.*end</code></td><td>From <code>start</code> downward through the first <code>end</code></td></tr><tr><td><code>^start$$</code></td><td>From <code>start</code> through that logical line's last visible character</td></tr><tr><td><code>^start.*end$$</code></td><td>Through the last visible character on the ending line</td></tr><tr><td><code>^start\ss</code></td><td>Through the first <code>.</code>, <code>?</code>, or <code>!</code></td></tr><tr><td><code>^word\l</code></td><td>The whole logical line holding <code>word</code>, like vim <code>V</code></td></tr><tr><td><code>^word\p</code></td><td>The whole paragraph holding <code>word</code>, like vim <code>vip</code></td></tr><tr><td><code>^start\zsword</code></td><td>Selects from <code>word</code>, with <code>start</code> matched as context</td></tr><tr><td><code>^word\zeend</code></td><td>Selects <code>word</code>, with <code>end</code> matched but left out</td></tr><tr><td><code>^price\$</code></td><td>A literal final dollar sign</td></tr></tbody></table>
<p>Up walks to an older occurrence, Down to a newer one. Enter or Tab pastes. Ctrl+Y copies the selection to the clipboard instead, through tmux's OSC 52 path. Your terminal must allow clipboard writes; no clipboard helper is needed. Esc closes the popup without pasting. When launched by an inline text expander, cancellation also removes the trigger and recovered query text.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="count-the-word-or-punctuation-you-need">Count the word or punctuation you need<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#count-the-word-or-punctuation-you-need" class="hash-link" aria-label="Direct link to Count the word or punctuation you need" title="Direct link to Count the word or punctuation you need" translate="no">​</a></h3>
<p>The <code>f</code> and <code>t</code> motions take a count and a literal target. <code>^start\3f,</code> includes the third comma; <code>^start\3t,</code> stops before it. Leave out the count for the first occurrence. Unlike vim's single-character motions, the target can be a whole word: <code>^change\2fout</code> reaches the second <code>out</code>. Each hop stops at the nearest target. Writing <code>(out){2}</code> in a regex would instead ask for <code>outout</code>.</p>
<p>If you already typed a landmark range, append the count: <code>^start.*stop\2</code>. You can change the final digit without moving back through the query. Only the hop after the last <code>.*</code> or <code>.+</code> repeats, and its target remains a regex. For example, <code>^start.*(stop|end)\3</code> reaches the third occurrence of either word. A period is literal in <code>\2f.</code>, but needs escaping in a regex landmark.</p>
<p>Counts preserve valid backreferences. If your query has two capture groups, <code>\2</code> still refers to the second group. A trailing count applies only where Python would reject that group reference. A bare <code>.+</code> stays greedy; adding a count, as in <code>^start.+stop\1</code>, makes that hop lazy.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="copy-a-url-out-of-scrollback">Copy a URL out of scrollback<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#copy-a-url-out-of-scrollback" class="hash-link" aria-label="Direct link to Copy a URL out of scrollback" title="Direct link to Copy a URL out of scrollback" translate="no">​</a></h3>
<p><code>^\u</code> selects the newest URL. Up walks to older URLs, and <code>^github\u</code> filters them to those containing <code>github</code>. Ctrl+Y copies the selected URL; Enter pastes it into the source pane.</p>
<p>The selector recognizes <code>scheme://</code> URLs and trims trailing sentence punctuation and unmatched closing brackets. In <code>(see https://example.com/a_(b)).</code>, it selects <code>https://example.com/a_(b)</code>. Balanced brackets within the URL stay intact, and soft wrapping does not split the copied address.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-feedback-lives-in-the-pane-not-the-popup">The feedback lives in the pane, not the popup<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#the-feedback-lives-in-the-pane-not-the-popup" class="hash-link" aria-label="Direct link to The feedback lives in the pane, not the popup" title="Direct link to The feedback lives in the pane, not the popup" translate="no">​</a></h2>
<p>The popup shows your query and a three-line legend with the controls and shortcuts. The selection is painted in the source pane using tmux's own search highlight and copy-mode selection styles, so what you see is the real text in its real place, wrapped the way the terminal wrapped it.</p>
<p>The current match gets an exact selection, including single words, single characters, and ranges whose selected text starts with a regex operator such as <code>.*</code>. Other nearby matches stay highlighted so you can see where Up and Down will land. For a multiline match, the hint paints its first line. With <code>\zs</code> and <code>\ze</code>, context can appear in the search highlight, but only the selected range is copied or pasted.</p>
<p>These hints have a size limit: the plugin keeps the nearest matches within a 4 KB search-pattern budget to fit tmux's command limit. Navigation still searches all retained history.</p>
<p>That choice is what makes the range easy to trust. A preview inside the popup would be a copy of the text, reflowed to a different width, and you would have to decide whether it matched the thing you were looking at. Here the thing you are looking at is the answer.</p>
<p>The selection also survives refinement. Add another character to the query and the highlight moves rather than resetting, so you can narrow a range by watching it shrink.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="how-it-works">How it works<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#how-it-works" class="hash-link" aria-label="Direct link to How it works" title="Direct link to How it works" translate="no">​</a></h2>
<p><img decoding="async" loading="lazy" alt="How the picker turns a query into a paste" src="https://cloudrumble.net/assets/images/01-pane-regex-flow-dd238799167dd93708239666866b8487.png" width="3136" height="644" class="img_ev3q"></p>
<p>The script captures the whole retained history with <code>tmux capture-pane -p -J -S -</code>, so tmux's <code>history-limit</code> decides how far back a query can reach. The <code>-J</code> is what joins tmux's soft wraps back into logical lines, so a command that occupies three display rows is one line to the matcher, and selecting it gives you one line back.</p>
<p>Captured text carries terminal decoration that no one wants in a paste. A cleanup pass strips leading margins, including the <code>•</code> and <code>›</code> bullets a picker draws and the <code>●</code> and <code>⎿</code> gutter an agent CLI draws down the left of its own output, and removes Unicode private-use characters with the space that usually follows them. Those are the glyphs a Nerd Font prompt draws, and without this pass a range starting at a prompt line would paste an invisible icon into your shell. Indentation is recorded per line rather than discarded, so an indented YAML block pastes with the shape it had on screen. Only the whitespace before the first selected character is left out.</p>
<p>Python then matches against the cleaned text and computes the exact source range. Rendering that range is handed back to tmux: the plugin drives <code>send-keys -X</code> with tmux's native search and <code>begin-selection</code>, so the highlight is drawn by the same code that draws it when you search by hand.</p>
<p>Once the selection stops, another native search paints the nearby matches without clearing it. That search uses literal text from the matches Python found, because tmux's search cannot express the plugin's lazy hops, selection markers, or multiline ranges.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-paste-that-never-submits">The paste that never submits<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#the-paste-that-never-submits" class="hash-link" aria-label="Direct link to The paste that never submits" title="Direct link to The paste that never submits" translate="no">​</a></h2>
<p>Accepting writes the match to a named tmux buffer and delivers it with <code>paste-buffer -p</code>. The <code>-p</code> is the whole point. Without it, tmux replays the buffer as keystrokes, and a multiline range means every newline arrives as Enter, which submits each line as a command. With it, the text is wrapped in bracketed-paste markers, and your shell or editor treats it as inserted text.</p>
<p>Delivery is also deferred by a fraction of a second, because the paste has to land after the popup closes and the target pane has focus again:</p>
<div class="language-sh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-sh codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">tmux run-shell </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"sleep 0.15; tmux paste-buffer -p -b '</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$buffer</span><span class="token string" style="color:rgb(255, 121, 198)">' -t '</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$target</span><span class="token string" style="color:rgb(255, 121, 198)">' -d"</span><br></div></code></pre></div></div>
<p>The text arrives at your cursor. You still have to press Enter yourself, which is the correct default for anything assembled out of old output.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="gotchas-worth-knowing">Gotchas worth knowing<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#gotchas-worth-knowing" class="hash-link" aria-label="Direct link to Gotchas worth knowing" title="Direct link to Gotchas worth knowing" translate="no">​</a></h2>
<p>The first <code>.*</code> in a landmark range stops at the first viable ending locator, scanning downward. If you write <code>^ERROR.*retry</code> and the pane has three retries under that error, you get the range to the first one. Press Up to walk to an older occurrence of the whole match.</p>
<p>Matches are case-insensitive by default, and the pane highlight follows tmux's smart case, so a lowercase query lights up every case variant. Put <code>\C</code> in front of the locator to make a query case-sensitive: <code>^\Cpython$$</code> selects from lowercase <code>python</code> through its line end. tmux has no case-sensitive switch of its own, so for a <code>\C</code> query the plugin appends an impossible uppercase branch to the native search pattern, which turns smart case off without adding a match.</p>
<p>A straight apostrophe matches a smart one. Typing <code>don't</code> builds <code>don['’]t</code> internally, so prose copied from a rendered document still matches what you can type on a keyboard.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="install">Install<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#install" class="hash-link" aria-label="Direct link to Install" title="Direct link to Install" translate="no">​</a></h2>
<p>With TPM:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">set</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-g</span><span class="token plain"> @plugin </span><span class="token string" style="color:rgb(255, 121, 198)">'Piotr1215/tmux-pane-regex'</span><br></div></code></pre></div></div>
<p>Or clone it and load it near the end of <code>.tmux.conf</code>:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">run-shell </span><span class="token string" style="color:rgb(255, 121, 198)">'~/.tmux/plugins/tmux-pane-regex/tmux-pane-regex.tmux'</span><br></div></code></pre></div></div>
<p>It needs tmux 3.7b or newer, Python 3.10 or newer, and fzf.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="configure">Configure<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#configure" class="hash-link" aria-label="Direct link to Configure" title="Direct link to Configure" translate="no">​</a></h2>
<p>The key is read before the plugin binds it, so set it first:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">set</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-g</span><span class="token plain"> @pane-regex-key </span><span class="token string" style="color:rgb(255, 121, 198)">'P'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">run-shell </span><span class="token string" style="color:rgb(255, 121, 198)">'~/.tmux/plugins/tmux-pane-regex/tmux-pane-regex.tmux'</span><br></div></code></pre></div></div>
<p>The plugin publishes its own path as <code>@pane-regex-script</code>. An external text expander can read that option and call the script directly, passing its trigger length so the trigger characters get erased before the paste:</p>
<div class="language-sh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-sh codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">tmux show-option </span><span class="token string variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-gqv</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic"> @pane-regex-script</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token number">3</span><br></div></code></pre></div></div>
<p>The tmux binding passes <code>--pane '#{pane_id}'</code> and needs no X11 focus detection. Only the global expander launcher depends on <code>xdotool</code>.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="resources">Resources<a href="https://cloudrumble.net/blog/2026/09/05/tmux-pane-regex#resources" class="hash-link" aria-label="Direct link to Resources" title="Direct link to Resources" translate="no">​</a></h2>
<ul>
<li class=""><a href="https://github.com/Piotr1215/tmux-pane-regex" target="_blank" rel="noopener noreferrer" class="">tmux-pane-regex</a></li>
<li class=""><a href="https://github.com/Piotr1215/tmux-pane-regex#use" target="_blank" rel="noopener noreferrer" class="">Selector reference and controls</a></li>
<li class=""><a href="https://github.com/Piotr1215/tmux-pane-regex/blob/main/scripts/pane_regex.py" target="_blank" rel="noopener noreferrer" class="">Matching and native tmux highlighting</a></li>
</ul>]]></content:encoded>
            <category>tmux</category>
            <category>terminal</category>
            <category>productivity</category>
            <category>cli</category>
            <category>python</category>
        </item>
        <item>
            <title><![CDATA[Running Work and Personal Claude Code on One Machine]]></title>
            <link>https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation</link>
            <guid>https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation</guid>
            <pubDate>Fri, 05 Jun 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Run a work and a personal Claude Code account on one machine without them leaking into each other: one config repo as the source of truth, a disposable per-account overlay, and routing by the directory you're in.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Two Claude Code accounts on one machine" src="https://cloudrumble.net/assets/images/claude-account-isolation-hero-f391f162f92467b38b9d266b75c38e57.png" width="1536" height="1024" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>If you run more than one Claude Code account on a machine (work and personal, two clients, a locked-down login next to a sandbox), you switch between them by hand. Claude Code holds one active login at a time, so forgetting to switch means running the wrong account. This post shows how to make the switch automatic: the right account loads from the directory you are in, with nothing to remember.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-isolate-the-accounts">Why isolate the accounts<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#why-isolate-the-accounts" class="hash-link" aria-label="Direct link to Why isolate the accounts" title="Direct link to Why isolate the accounts" translate="no">​</a></h2>
<p>Compartmentalized accounts must not share an identity. Work and personal is the example below; the same reasons apply to any split:</p>
<ul>
<li class=""><strong>Security and data.</strong> Work credentials, session history, and connectors must stay out of personal chats, and personal experiments must not run against the work seat or land in its history. A spill either direction crosses a hard boundary.</li>
<li class=""><strong>Admin-managed settings.</strong> An employer pushes an admin-controlled <code>settings.json</code> into the work account to enforce permissions and policy. Those rules must not govern a personal session, and a personal tweak must not override them on the work side.</li>
<li class=""><strong>Injected context.</strong> A managed <code>CLAUDE.md</code> or system policy shipped with the work account must shape work sessions only. In personal sessions it is noise at best, a leak at worst.</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="claude_config_dir-one-config-directory-per-account">CLAUDE_CONFIG_DIR: one config directory per account<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#claude_config_dir-one-config-directory-per-account" class="hash-link" aria-label="Direct link to CLAUDE_CONFIG_DIR: one config directory per account" title="Direct link to CLAUDE_CONFIG_DIR: one config directory per account" translate="no">​</a></h2>
<p>The supported way to do this is the <a href="https://docs.claude.com/en/docs/claude-code/settings#environment-variables" target="_blank" rel="noopener noreferrer" class=""><code>CLAUDE_CONFIG_DIR</code></a> environment variable. By default Claude Code stores its entire config under <code>~/.claude</code>: auth, plugins, settings, and history. Set the variable and it reads from that path instead. Point it at a second directory and Claude builds a fully independent tree there, with its own <code>.claude.json</code> (auth and identity), plugins, settings, and session history. Verify this before building on it: <a href="https://github.com/anthropics/claude-code/issues/30538" target="_blank" rel="noopener noreferrer" class="">open bugs</a> show the variable is not honored in every corner of the tool.</p>
<p>Full isolation goes too far. Two copies of your skills, agents, and scripts drift apart. You want the <em>code</em> identical and only the <em>login</em> different.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-overlay-shared-config-repo-plus-per-account-auth">The overlay: shared config repo plus per-account auth<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#the-overlay-shared-config-repo-plus-per-account-auth" class="hash-link" aria-label="Direct link to The overlay: shared config repo plus per-account auth" title="Direct link to The overlay: shared config repo plus per-account auth" translate="no">​</a></h2>
<p><code>~/.claude</code> is the git repo and the personal account's config. The work account lives in <code>~/.claude-work</code>, an overlay that symlinks shared content back to <code>~/.claude</code> and keeps only its own auth and history as real files.</p>
<!-- -->
<p>Skills, local MCP servers, settings, hooks, and plugins are identical for both accounts. Only the login, with its sessions and history, differs, routed by folder.</p>
<p>What falls on each side:</p>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Item</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Shared or isolated</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Why</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">scripts, skills, agents, commands</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Shared (symlink)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Account-agnostic. Same automation regardless of who is logged in.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">settings.json, hooks, plugins, CLAUDE.md</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Shared (symlink)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Same behavior and same installed tools for both accounts.</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">.claude.json, .credentials.json</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Isolated (real file)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Auth tokens and account identity. The whole point of the split.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">projects/, sessions/, history.jsonl</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Isolated (real file)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Per-account session data and memory should not cross over.</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">statsig/, caches, mcp-needs-auth-cache.json</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Isolated (real file)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Per-account state that is meaningless to copy.</td></tr></tbody></table></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="build-the-overlay-with-a-denylist">Build the overlay with a denylist<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#build-the-overlay-with-a-denylist" class="hash-link" aria-label="Direct link to Build the overlay with a denylist" title="Direct link to Build the overlay with a denylist" translate="no">​</a></h2>
<p>Building the overlay means deciding which entries in <code>~/.claude</code> to share. An allowlist names what to share and skips the rest. A denylist is the inverse: name the few things to isolate (auth and data), share everything else.</p>
<p>Use a denylist. A generator script symlinks <em>everything</em> from <code>~/.claude</code> into the overlay except a short list of auth and data. The core is a few lines:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">overlay</span><span class="token operator">=~</span><span class="token plain">/.claude-work</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">deny</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">".claude.json .credentials.json projects sessions statsig cache .git"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">for</span><span class="token plain"> </span><span class="token for-or-select variable" style="color:rgb(189, 147, 249);font-style:italic">entry</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">in</span><span class="token plain"> ~/.claude/*</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">do</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">name</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable function" style="color:rgb(80, 250, 123);font-style:italic">basename</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable string variable" style="color:rgb(189, 147, 249);font-style:italic">$entry</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">case</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">" </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$deny</span><span class="token string" style="color:rgb(255, 121, 198)"> "</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">in</span><span class="token plain"> *</span><span class="token string" style="color:rgb(255, 121, 198)">" </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$name</span><span class="token string" style="color:rgb(255, 121, 198)"> "</span><span class="token plain">*</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">continue</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">esac</span><span class="token plain">   </span><span class="token comment" style="color:rgb(98, 114, 164)"># isolated: skip</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token function" style="color:rgb(80, 250, 123)">ln</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-sfn</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$entry</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$overlay</span><span class="token string" style="color:rgb(255, 121, 198)">/</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$name</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain">                 </span><span class="token comment" style="color:rgb(98, 114, 164)"># shared: symlink</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">done</span><br></div></code></pre></div></div>
<p>With an allowlist, every new skill, agent, or script needs an entry, and the day you forget is the day the work account silently loses a tool. With a denylist, anything new is shared by default; you touch the list only to <em>isolate</em> something. Adding shared content costs zero edits.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="local-mcp-servers-load-only-from-claudejson">Local MCP servers load only from .claude.json<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#local-mcp-servers-load-only-from-claudejson" class="hash-link" aria-label="Direct link to Local MCP servers load only from .claude.json" title="Direct link to Local MCP servers load only from .claude.json" translate="no">​</a></h2>
<p>Claude Code loads local stdio MCP servers from <code>.claude.json</code> only. Servers mirrored into <code>settings.json</code> are ignored, though it is natural to assume settings.json is the place, since so much else lives there.</p>
<p><code>.claude.json</code> is isolated, so a freshly logged-in work account starts with <em>zero</em> local MCP servers. Every code-execution server and local tool is gone, with no error to point at it.</p>
<p>Because those servers are account-agnostic, the generator does one thing beyond symlinking: it copies the <code>mcpServers</code> block from the personal <code>~/.claude.json</code> into the overlay's <code>.claude.json</code> in an atomic write, preserving the overlay's own auth keys. Personal is the source for the server list; work derives from it. Add a server in personal, then rerun the generator to resync. The generator never touches auth, identity, projects, or credentials, so running it twice is safe.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="routing-and-re-login">Routing and re-login<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#routing-and-re-login" class="hash-link" aria-label="Direct link to Routing and re-login" title="Direct link to Routing and re-login" translate="no">​</a></h2>
<p>The paths are generic (<code>~/work</code>, <code>~/.claude-work</code>); swap in your own.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="step-1-pick-the-account-from-your-shell">Step 1: Pick the account from your shell<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#step-1-pick-the-account-from-your-shell" class="hash-link" aria-label="Direct link to Step 1: Pick the account from your shell" title="Direct link to Step 1: Pick the account from your shell" translate="no">​</a></h3>
<p>You do not need a launcher for this. The switch is a few lines in <code>~/.bashrc</code> or <code>~/.zshrc</code>, so it loads in every interactive shell with nothing to install.</p>
<p>The simplest version is a pair of aliases, one per account:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">alias</span><span class="token plain"> claude-work</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">'CLAUDE_CONFIG_DIR=~/.claude-work claude'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">alias</span><span class="token plain"> claude-home</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">'claude'</span><span class="token plain">   </span><span class="token comment" style="color:rgb(98, 114, 164)"># personal: the default ~/.claude</span><br></div></code></pre></div></div>
<p>That is explicit: you choose the account each time you launch. To remove the choice, set <code>CLAUDE_CONFIG_DIR</code> from the current directory instead, so a plain <code>claude</code> picks the right account on its own. Replace the aliases with a small function in the same file:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function-name function" style="color:rgb(80, 250, 123)">claude</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">case</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$PWD</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">in</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$HOME</span><span class="token string" style="color:rgb(255, 121, 198)">/work"</span><span class="token operator">|</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$HOME</span><span class="token string" style="color:rgb(255, 121, 198)">/work"</span><span class="token plain">/*</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"> </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">CLAUDE_CONFIG_DIR</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string environment constant" style="color:rgb(189, 147, 249)">$HOME</span><span class="token string" style="color:rgb(255, 121, 198)">/.claude-work"</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">command</span><span class="token plain"> claude </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$@</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    *</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain">                           </span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">unset</span><span class="token plain"> CLAUDE_CONFIG_DIR</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">command</span><span class="token plain"> claude </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$@</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain">   </span><span class="token comment" style="color:rgb(98, 114, 164)"># personal default</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">esac</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<!-- -->
<p>Two details keep this from misfiring. Match the exact root, not a substring, so a personal repo containing a <code>work/</code> subdirectory stays personal. Treat the directory as the <em>sole</em> signal: the personal branch unsets <code>CLAUDE_CONFIG_DIR</code> in a subshell, so a value leaked from a parent shell cannot misroute a session. Because the function lives in your shell rc, every interactive shell inherits it, and a status line that reads the variable can show which account is active.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="step-2-resync-after-a-re-login">Step 2: Resync after a re-login<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#step-2-resync-after-a-re-login" class="hash-link" aria-label="Direct link to Step 2: Resync after a re-login" title="Direct link to Step 2: Resync after a re-login" translate="no">​</a></h3>
<p>Running <code>claude login</code> on the work account rewrites the overlay's <code>.claude.json</code> from scratch and drops the synced <code>mcpServers</code> block, so its local servers fall out of sync with personal. Rerun the generator on the overlay to relink new shared content and restore the server list. It is idempotent and non-destructive, so nothing else changes. To make this automatic, call it from the work branch of the function above, before <code>command claude</code>, so each work session resyncs itself.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="caveats-and-edge-cases">Caveats and edge cases<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#caveats-and-edge-cases" class="hash-link" aria-label="Direct link to Caveats and edge cases" title="Direct link to Caveats and edge cases" translate="no">​</a></h2>
<ul>
<li class=""><strong>Claude Code updates can create new files in the config dir.</strong> Anything new exists only in the account that created it until the generator runs again. The auto-resync in the work branch covers shells that go through the function; anything that calls the binary directly (a cron job, a keybinding hitting it by full path) skips the function and needs a manual run.</li>
<li class=""><strong><code>settings.json</code> is shared, including its hook definitions.</strong> A hook that should behave differently per account cannot live there; it needs <code>settings.local.json</code> or a cwd check inside the hook.</li>
<li class=""><strong><code>CLAUDE_CONFIG_DIR</code> is not honored everywhere.</strong> Open issues (<a href="https://github.com/anthropics/claude-code/issues/30538" target="_blank" rel="noopener noreferrer" class="">#30538</a>, <a href="https://github.com/anthropics/claude-code/issues/16899" target="_blank" rel="noopener noreferrer" class="">#16899</a>) show corners where it is ignored. Verify isolation holds.</li>
</ul>
<p>The overlay is disposable. If it gets into a bad state, delete it and regenerate; only a lost login needs a re-auth.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">rm</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-rf</span><span class="token plain"> ~/.claude-work</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># rerun your generator to relink the overlay, then re-auth only if needed:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">CLAUDE_CONFIG_DIR</span><span class="token operator">=~</span><span class="token plain">/.claude-work claude login   </span><span class="token comment" style="color:rgb(98, 114, 164)"># only if the login was lost</span><br></div></code></pre></div></div>
<p>A third account is the same recipe with a different folder, plus one edit to the routing predicate if it should auto-route.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="resources">Resources<a href="https://cloudrumble.net/blog/2026/06/05/claude-code-account-isolation#resources" class="hash-link" aria-label="Direct link to Resources" title="Direct link to Resources" translate="no">​</a></h2>
<ul>
<li class=""><a href="https://docs.claude.com/en/docs/claude-code/settings" target="_blank" rel="noopener noreferrer" class="">Claude Code settings docs</a>: <code>CLAUDE_CONFIG_DIR</code> and config layout</li>
<li class=""><a href="https://github.com/anthropics/claude-code/issues/30538" target="_blank" rel="noopener noreferrer" class="">Open issue #30538</a> and <a href="https://github.com/anthropics/claude-code/issues/16899" target="_blank" rel="noopener noreferrer" class="">#16899</a>: corners where <code>CLAUDE_CONFIG_DIR</code> is not yet honored</li>
</ul>]]></content:encoded>
            <category>claude-code</category>
            <category>ai-tools</category>
            <category>dotfiles</category>
            <category>productivity</category>
            <category>workflow</category>
        </item>
        <item>
            <title><![CDATA[A Great Release Isn't Always Right for Your Config: Neovim 0.12]]></title>
            <link>https://cloudrumble.net/blog/2026/05/30/neovim-012-migration</link>
            <guid>https://cloudrumble.net/blog/2026/05/30/neovim-012-migration</guid>
            <pubDate>Sat, 30 May 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Neovim 0.12 ships a native plugin manager, :restart, and stock LSP defaults. I went through my config area by area, asking what to adopt. The most useful answer was no.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Neovim 0.12 Migration" src="https://cloudrumble.net/assets/images/neovim-features-hero-c5a29975639fdb2e01bd2e15caa5985d.png" width="1280" height="720" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>Neovim 0.12 landed with a pile of things that used to be plugins: a native plugin manager (<code>vim.pack</code>), a native <code>:restart</code>, stock LSP keymaps, treesitter incremental selection. The release notes read like a checklist of things to rip out of your config.</p>
<p>So I went through mine, one area at a time, asking each the same question: should this move to the 0.12 way of doing it?</p>
<p>Four of the seven came back with some flavor of "no," and that turned out to be the useful part. Three earned a yes and I made the changes. The rest I left alone on purpose. The features are real and they work, but whether <em>your</em> config should adopt them is a different question, and the honest answer was mostly to leave it alone.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-verdict-matrix">The verdict matrix<a href="https://cloudrumble.net/blog/2026/05/30/neovim-012-migration#the-verdict-matrix" class="hash-link" aria-label="Direct link to The verdict matrix" title="Direct link to The verdict matrix" translate="no">​</a></h2>
<p>I split the migration into seven areas and checked each against the actual config rather than the release notes. Every area got a verdict and a reason.</p>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Area</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Verdict</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Bottom line</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">A. vim.pack (plugin manager)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">NO-GO</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">vim.pack can't express dev=true local plugins, build hooks, or dependency ordering. Keep lazy.nvim.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">B. Native :restart</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">GO</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Replaces a custom tmux-respawn script. Delete the script, reflash one keyboard macro.</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">C. Stock LSP keymaps</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">GO (low urgency)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Pure dedup. Retire maps that now duplicate stock grt / grn / gra. Zero hard conflicts.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">D. Treesitter an / in selection</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">N/A</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">mini.ai already owns an / in at runtime. Native selection never surfaces; a config-only scan missed the plugin.</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">E. ui2 / extui (new UI)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">NO-GO / WAIT</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Experimental, and it fights the existing mini.cmdline + nvim-notify stack.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">F. undotree / difftool built-ins</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">SKIP</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Both ship via vim.pack. Since A keeps lazy.nvim, adopting them means running two managers for one optional tool.</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">G. System-wide defaults</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">GO (1 line)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">0.12 drops /tmp scratch files from :oldfiles. One-line shada fix keeps them.</td></tr></tbody></table></div>
<p>The two GOs that mattered both <em>deleted</em> code rather than adding it. <code>:restart</code> replaced a 22-line shell script. The stock LSP keymaps let me drop six of my own mappings that now just duplicated them. No new features, less to maintain. The big, tempting migration, moving everything to the native plugin manager, was the one to turn down. Boring wins, impressive no.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-only-no-thats-interesting-vimpack">The only "no" that's interesting: vim.pack<a href="https://cloudrumble.net/blog/2026/05/30/neovim-012-migration#the-only-no-thats-interesting-vimpack" class="hash-link" aria-label="Direct link to The only &quot;no&quot; that's interesting: vim.pack" title="Direct link to The only &quot;no&quot; that's interesting: vim.pack" translate="no">​</a></h2>
<p><code>vim.pack</code> is the headline feature, a plugin manager built into Neovim with no bootstrap clone. Shedding a dependency is tempting, and the usual objection ("I'd lose lazy-loading") doesn't even apply to me: of 108 plugin specs, maybe seven or eight are actually deferred.</p>
<p>The real problem is that <code>vim.pack</code> can't describe my config. Five plugins load from local checkouts because I'm actively writing them. Four run a build step on install. About ten declare an order they have to load in. lazy.nvim handles all three; <code>vim.pack</code> handles none. So lazy.nvim stays, not out of habit, but because the native manager literally can't model the setup. The two can coexist if I ever want one bundled built-in, but the wholesale migration is off the table.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="three-gotchas-worth-passing-on">Three gotchas worth passing on<a href="https://cloudrumble.net/blog/2026/05/30/neovim-012-migration#three-gotchas-worth-passing-on" class="hash-link" aria-label="Direct link to Three gotchas worth passing on" title="Direct link to Three gotchas worth passing on" translate="no">​</a></h2>
<p><strong>The keymap that was never there.</strong> 0.12 adds native visual-mode selection on <code>an</code> and <code>in</code>. A grep of my config said those keys were free, so I marked it a free win. Then I asked the running editor instead of the files: <code>maparg('an')</code> pointed at <code>mini.ai</code>, not Neovim. The plugin already owns those keys, and the native feature never surfaces. Nothing broke, but the verdict went from "free win" to "doesn't apply." A grep of your Lua tells you what the config <em>says</em>. Only the live editor tells you what the keys actually <em>do</em>.</p>
<p><strong>The command that outlived its script.</strong> I had a shell script that restarted Neovim by respawning a tmux pane. 0.12 ships <code>:restart</code> (mapped to <code>ZR</code>), so I deleted the script. The catch: the thing that <em>triggered</em> the old script was never a Neovim keymap. It's a macro burned into my keyboard's firmware. Deleting the script doesn't touch the macro; it just leaves it typing keystrokes at a command that no longer exists. The fix lives in Oryx/QMK, outside the repo, and it has to ship at the same moment as the delete. Not every keybinding you own lives where your code does.</p>
<p><strong>The silent default that ate my scratch files.</strong> I live in <code>/tmp</code> scratch buffers and find them again through Telescope's recent-files picker. 0.12 quietly started treating <code>/tmp</code> as removable media and dropped it from that list. Nothing errored; the files just stopped showing up. One line put them back:</p>
<div class="language-lua codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-lua codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">set.shada:remove "r/tmp/"</span><br></div></code></pre></div></div>
<p>Subtractive, so it inherits every other shada default and never drifts. The kind of change you only make because you noticed the absence.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-it-was-actually-about">What it was actually about<a href="https://cloudrumble.net/blog/2026/05/30/neovim-012-migration#what-it-was-actually-about" class="hash-link" aria-label="Direct link to What it was actually about" title="Direct link to What it was actually about" translate="no">​</a></h2>
<p>Splitting the upgrade into seven separate questions forced a real decision on each one instead of a blanket "migrate everything." And the decisions cluster: the small, boring changes were worth doing, and the big, impressive one was the one to decline, because it couldn't model my config.</p>
<p>A release being impressive and a release being right for <em>your</em> config are different questions. Most of the value here was permission to say no to the impressive part.</p>
<hr>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://neovim.io/doc/user/" target="_blank" rel="noopener noreferrer" class="">Neovim 0.12 documentation</a></li>
<li class=""><a href="https://neovim.io/doc/user/news-0.12.html" target="_blank" rel="noopener noreferrer" class=""><code>:help news-0.12</code></a></li>
<li class=""><a href="https://github.com/folke/lazy.nvim" target="_blank" rel="noopener noreferrer" class="">lazy.nvim</a></li>
<li class=""><a href="https://github.com/Piotr1215/dotfiles/pull/23" target="_blank" rel="noopener noreferrer" class="">The migration, commit by commit</a></li>
</ul>]]></content:encoded>
            <category>neovim</category>
            <category>vim</category>
            <category>lua</category>
            <category>productivity</category>
            <category>editor</category>
        </item>
        <item>
            <title><![CDATA[Your AI Agent Should Read Your Notes Before Answering]]></title>
            <link>https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes</link>
            <guid>https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes</guid>
            <pubDate>Tue, 24 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[R2R on Kubernetes, pgvector for storage, Ollama for embeddings, and a Python hook that searches your knowledge on every prompt in under 100ms.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="RAG Architecture" src="https://cloudrumble.net/assets/images/01-architecture-1ba1662b18b37a74e9180038571a2312.png" width="2892" height="1935" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>I have 395 notes in Obsidian and ~2,800 memories from past AI sessions. My AI agent knows none of it unless I paste it in manually. And I can only paste what I remember to paste — which defeats the point of having a knowledge store.</p>
<p>So I built a hook that fires before every prompt, searches a unified vector store, and injects the relevant context before the agent thinks. R2R as the RAG backend, pgvector for storage, Ollama for embeddings, all on a homelab Kubernetes cluster. Total latency: under 100ms. Zero tokens consumed in the retrieval path.</p>
<p>The value isn't the search itself. It's what surfaces when you stop choosing what's relevant. Ask about a Kubernetes pattern and a six-month-old Obsidian note appears. Debug a tmux issue and a memory from a previous session shows up with the exact fix. The agent answers from your accumulated knowledge, not just its training data.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="architecture">Architecture<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#architecture" class="hash-link" aria-label="Direct link to Architecture" title="Direct link to Architecture" translate="no">​</a></h2>
<p>Three backend services and one client-side hook.</p>
<p><img decoding="async" loading="lazy" alt="Architecture" src="https://cloudrumble.net/assets/images/01-architecture-1ba1662b18b37a74e9180038571a2312.png" width="2892" height="1935" class="img_ev3q"></p>
<p>Each prompt follows this path:</p>
<ol>
<li class="">You type a prompt in Claude Code</li>
<li class="">The <code>UserPromptSubmit</code> hook fires before the agent sees it</li>
<li class="">The hook searches R2R's unified index (~90ms) containing both Obsidian notes and agent memories</li>
<li class="">Relevant chunks get injected as <code>system-reminder</code> context</li>
<li class="">The agent sees your prompt plus the matched knowledge</li>
<li class="">If a note title looks relevant, the agent drills deeper via the Obsidian MCP server</li>
</ol>
<p>Two data sources feed a single vector store. A local cron syncs the Obsidian vault into R2R every 30 minutes. A Kubernetes CronJob syncs agent-memory entries every hour. Both land in pgvector with the same embedding model, so a single search covers your curated notes and your session-derived insights.</p>
<table><thead><tr><th>Component</th><th>Purpose</th><th>Storage</th><th>Latency</th></tr></thead><tbody><tr><td>R2R (SciPhi)</td><td>Unified search (notes + memories)</td><td>pgvector on K8s, 10Gi PVC</td><td>~90ms</td></tr><tr><td>Obsidian sync</td><td>Vault ingestion into R2R</td><td>Local cron, every 30min</td><td>batch</td></tr><tr><td>Memory sync</td><td>Agent-memory ingestion into R2R</td><td>K8s CronJob, every hour</td><td>batch</td></tr><tr><td>Ollama</td><td>nomic-embed-text embeddings</td><td>System76 Serval WS (RTX 5070 Ti)</td><td>&lt;100ms</td></tr><tr><td>Anthropic Haiku</td><td>R2R completions via LiteLLM</td><td>Cloud API</td><td>on-demand</td></tr></tbody></table>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="how-vector-search-works">How Vector Search Works<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#how-vector-search-works" class="hash-link" aria-label="Direct link to How Vector Search Works" title="Direct link to How Vector Search Works" translate="no">​</a></h2>
<p>The search pipeline runs without an LLM. The key component is an embedding model: nomic-embed-text (274MB), running on Ollama. It converts text into a 768-dimensional vector — a list of 768 floating-point numbers that represent the text's meaning as coordinates in high-dimensional space.</p>
<p>The model was trained on millions of text pairs so that texts with similar meaning land near each other. "Longhorn PVC backup" and "persistent volume restore" end up as nearby points, even though they share zero words.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="ingestion">Ingestion<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#ingestion" class="hash-link" aria-label="Direct link to Ingestion" title="Direct link to Ingestion" translate="no">​</a></h3>
<p>When the 395 Obsidian notes were loaded into R2R, each note got chunked into segments. Each chunk went to Ollama, which ran it through nomic-embed-text and returned a 768-number vector. pgvector stored both the vector and the original text:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">pgvector row:</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  id:        uuid</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  text:      "StatefulSet gets a 10Gi Longhorn PVC..."</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  embedding: [0.023, -0.187, 0.442, ..., 0.091]  (768 floats)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  metadata:  {title: "r2r-rag-pipeline", source: "obsidian"}</span><br></div></code></pre></div></div>
<p>pgvector builds an HNSW index over these vectors so it doesn't compare against every row at query time.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="search">Search<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#search" class="hash-link" aria-label="Direct link to Search" title="Direct link to Search" translate="no">​</a></h3>
<p>When you type "how do I backup Longhorn volumes?", the hook sends your prompt to Ollama, gets back 768 numbers, and sends those to pgvector. pgvector computes cosine similarity — the angle between your prompt vector and every stored vector — and returns the closest matches. Identical direction = 1.0, orthogonal = 0.0. The threshold is 0.45; anything below gets dropped as irrelevant.</p>
<p>This is pure linear algebra. Dot products and normalization. That's why it runs in ~100ms with zero token costs.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="one-store-two-sources">One store, two sources<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#one-store-two-sources" class="hash-link" aria-label="Direct link to One store, two sources" title="Direct link to One store, two sources" translate="no">​</a></h3>
<p>Both Obsidian notes and agent memories get embedded with nomic-embed-text and stored in pgvector. A single HNSW index covers everything — a prompt about "Longhorn backup" finds relevant hits regardless of whether the knowledge came from a note you wrote or a pattern the agent learned.</p>
<table><thead><tr><th></th><th>Obsidian notes</th><th>Agent memories</th></tr></thead><tbody><tr><td>Sync method</td><td>Local cron (every 30min)</td><td>K8s CronJob (every hour)</td></tr><tr><td>Content</td><td>Curated technical knowledge</td><td>Session-derived insights</td></tr><tr><td>Chunking</td><td>R2R recursive splitter</td><td>Whole entries as documents</td></tr><tr><td>Metadata tag</td><td><code>source: obsidian</code></td><td><code>source: agent-memory</code></td></tr></tbody></table>
<p>The metadata tags let you filter by source if needed, but the default search spans both.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-database-journey">The Database Journey<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#the-database-journey" class="hash-link" aria-label="Direct link to The Database Journey" title="Direct link to The Database Journey" translate="no">​</a></h2>
<p>I started with the <a href="https://cloudnative-pg.io/" target="_blank" rel="noopener noreferrer" class="">CloudNativePG operator</a>. It's the standard for running Postgres on Kubernetes — WAL archiving, automated failover, point-in-time recovery. Production-grade.</p>
<p>It didn't work. Two problems.</p>
<p>First, the pgvector image. CNPG validates container images through a webhook, and <code>pgvector/pgvector:pg17</code> didn't match the expected image patterns. The webhook rejected the pod.</p>
<p>Second, ImageVolume extensions. CNPG has a mechanism for loading Postgres extensions via ephemeral volumes. The pgvector extension needs to be loaded as a shared library, and the ImageVolume approach hit path resolution issues on my cluster's containerd version.</p>
<p>I spent a day debugging webhook configurations and extension loading. Then I stopped and asked: what am I actually building?</p>
<p>A homelab. Single node. No HA requirement. No point-in-time recovery needed. The data is my Obsidian vault — I have the source of truth on disk. If the database dies, I re-ingest.</p>
<p>A plain StatefulSet with the <code>pgvector/pgvector:pg17</code> image works:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> apps/v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> StatefulSet</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> r2r</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">db</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">serviceName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> r2r</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">db</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">replicas</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">template</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">containers</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> postgres</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">image</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> pgvector/pgvector</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">pg17</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">env</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> PGDATA</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /var/lib/postgresql/data/pgdata</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">volumeMounts</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">mountPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /var/lib/postgresql/data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> init</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">mountPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /docker</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">entrypoint</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">initdb.d</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">volumes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> init</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">configMap</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> r2r</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">db</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">init</span><br></div></code></pre></div></div>
<p>An init ConfigMap creates the vector extension:</p>
<div class="language-sql codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-sql codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">CREATE</span><span class="token plain"> EXTENSION </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">IF</span><span class="token plain"> </span><span class="token operator">NOT</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">EXISTS</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"vector"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><br></div></code></pre></div></div>
<p>The StatefulSet gets a 10Gi Longhorn PVC, a readiness probe on <code>pg_isready</code>, and a Service. Postgres starts, loads pgvector, R2R connects.</p>
<p>Simplicity wins on a homelab. Save the operator for production.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="ingesting-the-obsidian-vault">Ingesting the Obsidian Vault<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#ingesting-the-obsidian-vault" class="hash-link" aria-label="Direct link to Ingesting the Obsidian Vault" title="Direct link to Ingesting the Obsidian Vault" translate="no">​</a></h2>
<p>R2R accepts documents through a multipart API. The ingestion script walks the vault directory and uploads each markdown file as <code>raw_text</code>. 395 notes, about three minutes.</p>
<p>Two gotchas during ingestion.</p>
<p><strong>Filenames as DocumentType.</strong> R2R parses the uploaded filename to determine document type. Obsidian's zettelkasten IDs (<code>1711476153-YXRZ.md</code>) worked fine. But filenames with special characters got parsed as unknown types. The fix: sanitize filenames before upload and always set the content type to <code>text/plain</code>.</p>
<p><strong>Document summary generation.</strong> R2R's default pipeline generates a summary for each ingested document by calling the configured LLM. For 395 documents, that meant 395 Haiku calls during ingestion. Slow, expensive, and unnecessary since I only use vector search, not summaries.</p>
<p>One line in the R2R config fixes it:</p>
<div class="language-ini codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-ini codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token section punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token section section-name selector" style="color:rgb(255, 121, 198)">ingestion</span><span class="token section punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">provider</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">"</span><span class="token value attr-value inner-value">r2r</span><span class="token value attr-value">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">skip_document_summary</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">true</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="r2r-configuration">R2R Configuration<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#r2r-configuration" class="hash-link" aria-label="Direct link to R2R Configuration" title="Direct link to R2R Configuration" translate="no">​</a></h2>
<p>R2R uses LiteLLM under the hood, so you can mix providers. Embeddings run through Ollama (free, local). Haiku is configured as the completion LLM, but the hook only calls R2R's <code>/v3/retrieval/search</code> endpoint — pure vector similarity, no LLM in the loop. Haiku would only fire if you used R2R's RAG endpoint for synthesized answers or re-enabled document summaries.</p>
<div class="language-ini codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-ini codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token section punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token section section-name selector" style="color:rgb(255, 121, 198)">completion</span><span class="token section punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">provider</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">"</span><span class="token value attr-value inner-value">litellm</span><span class="token value attr-value">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">concurrent_request_limit</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">16</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token section punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token section section-name selector" style="color:rgb(255, 121, 198)">app</span><span class="token section punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">quality_llm</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">"</span><span class="token value attr-value inner-value">anthropic/claude-3-5-haiku-latest</span><span class="token value attr-value">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">fast_llm</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">"</span><span class="token value attr-value inner-value">anthropic/claude-3-5-haiku-latest</span><span class="token value attr-value">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token section punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token section section-name selector" style="color:rgb(255, 121, 198)">embedding</span><span class="token section punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">provider</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">"</span><span class="token value attr-value inner-value">ollama</span><span class="token value attr-value">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">base_model</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">"</span><span class="token value attr-value inner-value">nomic-embed-text</span><span class="token value attr-value">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">base_dimension</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">768</span><br></div></code></pre></div></div>
<p>The R2R deployment points <code>OLLAMA_API_BASE</code> at the in-cluster Ollama service. Ollama runs on a Pop-OS desktop at <code>192.168.178.125</code>. A headless Service with manual Endpoints bridges it into the cluster:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Service</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">pc</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">annotations</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">description</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Pop-OS desktop - always on"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">clusterIP</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> None</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">11434</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">targetPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">11434</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> http</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Endpoints</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">pc</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">subsets</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">addresses</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">ip</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 192.168.178.125</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">11434</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> http</span><br></div></code></pre></div></div>
<p>Any pod in the cluster reaches Ollama at <code>ollama-pc.ai-tools.svc:11434</code>. No port-forwarding, no NodePorts.</p>
<p>One gotcha: Ollama evicts models from VRAM after five minutes idle. The embedding model kept getting cold-loaded on every RAG request after an idle gap. The fix: <code>keep_alive: -1</code> in the embed request pins the model permanently.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-rag-hook">The RAG Hook<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#the-rag-hook" class="hash-link" aria-label="Direct link to The RAG Hook" title="Direct link to The RAG Hook" translate="no">​</a></h2>
<p>The core of the system is a Python script that Claude Code runs as a <code>UserPromptSubmit</code> hook. It fires on every non-trivial prompt automatically, with an explicit <code>:rag</code> suffix for verbose output. The hook searches R2R's unified index and prints the results to stdout, which Claude Code injects as context.</p>
<p>Hook registration in <code>~/.claude/settings.json</code>:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token property">"hooks"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token property">"UserPromptSubmit"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"type"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"command"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token property">"command"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"python3 ~/.claude/scripts/__rag_context_hook.py"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<p>The script is 233 lines of stdlib Python. No dependencies beyond what ships with Python 3. Three design decisions matter.</p>
<p><strong>Automatic with escape hatches.</strong> The first version was manual-only — you had to type <code>:rag</code> to trigger a search. That meant you only got context when you remembered to ask for it, which defeats the purpose of having a knowledge store. The current version fires on every prompt longer than 20 characters that isn't trivial banter ("ok", "thanks", "ship it"). A regex filter catches these short responses and skips the search. Append <code>:norag</code> to suppress auto-search on a specific prompt. Append <code>:rag</code> for verbose output with scores and timing.</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">how do I backup longhorn volumes    → auto search, compact output</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">metallb config issue:rag            → verbose search with scores</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">just do it:norag                    → no search</span><br></div></code></pre></div></div>
<p><strong>Single source, single request.</strong> Both Obsidian notes and agent memories live in the same pgvector index. One HTTP call to R2R's <code>/v3/retrieval/search</code> endpoint covers everything. No thread pools, no parallel coordination, no partial failure handling. The search takes ~90ms.</p>
<div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">payload </span><span class="token operator">=</span><span class="token plain"> json</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">dumps</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token string" style="color:rgb(255, 121, 198)">"query"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> query</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token string" style="color:rgb(255, 121, 198)">"search_settings"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token string" style="color:rgb(255, 121, 198)">"limit"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> limit</span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">encode</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">req </span><span class="token operator">=</span><span class="token plain"> urllib</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">request</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">Request</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    R2R_URL</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> data</span><span class="token operator">=</span><span class="token plain">payload</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    headers</span><span class="token operator">=</span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token string" style="color:rgb(255, 121, 198)">"Content-Type"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"application/json"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">with</span><span class="token plain"> urllib</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">request</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">urlopen</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token plain">req</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> timeout</span><span class="token operator">=</span><span class="token plain">timeout</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> context</span><span class="token operator">=</span><span class="token plain">_ssl_ctx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">as</span><span class="token plain"> resp</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    body </span><span class="token operator">=</span><span class="token plain"> resp</span><span class="token punctuation" style="color:rgb(248, 248, 242)">.</span><span class="token plain">read</span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><br></div></code></pre></div></div>
<p><strong>Tuned relevance threshold.</strong> The score threshold sits at 0.45 for both auto and manual modes — high enough to filter noise, low enough to catch useful tangential hits. Auto mode returns 2 results with a 5-second timeout. Manual mode returns 4 results with a 12-second timeout and retries.</p>
<p>The hook prints results in a format Claude Code injects as a <code>system-reminder</code>:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">RAG context (Obsidian vault):</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  [kubernetes-networking] (score: 0.782)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    Service mesh configuration requires...</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">RAG context (agent memory):</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  [kubernetes, networking, debugging]</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    When troubleshooting DNS in pods, check...</span><br></div></code></pre></div></div>
<p>The agent sees this alongside the prompt. If a note title looks relevant, it reads the full note via the Obsidian MCP server, follows wikilinks, cross-references. The hook provides the signal; the agent decides how deep to go.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="results">Results<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#results" class="hash-link" aria-label="Direct link to Results" title="Direct link to Results" translate="no">​</a></h2>
<p>The hook adds about 90ms to each prompt. Imperceptible — the agent's thinking time dwarfs it.</p>
<table><thead><tr><th>Metric</th><th>Value</th></tr></thead><tbody><tr><td>R2R search latency</td><td>~90ms</td></tr><tr><td>Total hook latency</td><td>~90ms</td></tr><tr><td>Obsidian notes indexed</td><td>395</td></tr><tr><td>Agent memories searchable</td><td>~2,800</td></tr><tr><td>Combined documents in pgvector</td><td>~3,200</td></tr></tbody></table>
<p>The original architecture searched R2R and agent-memory in parallel — two stores, two HTTP calls, a ThreadPoolExecutor to coordinate them. Agent-memory went through the MCP JSON-RPC layer, adding ~1.7s of overhead. Bypassing MCP and querying Redis FT.SEARCH directly helped, but maintaining two search backends meant two failure modes, two timeout configs, and two relevance thresholds to tune.</p>
<p>The current architecture is simpler. Both data sources sync into R2R on a schedule. One search call covers everything. The hook went from a parallel coordinator to a single HTTP request.</p>
<p>The value shows up in unexpected moments. Ask about a Kubernetes pattern and the hook surfaces an Obsidian note you wrote six months ago. Start debugging a tmux issue and it finds a memory from a previous session where you solved something similar. The agent doesn't just answer from its training data — it answers from your accumulated knowledge.</p>
<p>The entire search pipeline is open source and runs locally. Ollama generates embeddings with nomic-embed-text. pgvector stores and searches vectors. The hook is 233 lines of stdlib Python. Zero API calls, zero tokens consumed, zero billing in the retrieval path. The only cloud dependency is Claude itself interpreting the results.</p>
<p>The two sources complement each other even though they share an index. Obsidian holds curated, structured notes — architecture decisions, tool configurations, blog drafts. Agent-memory holds organic, session-derived insights — "this user prefers bun over npm", "the homelab uses Longhorn for storage", "tmux layouts need xdotool without --sync flags." Together they give the agent both your deliberate knowledge and your implicit patterns.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="links">Links<a href="https://cloudrumble.net/blog/2026/02/24/rag-homelab-kubernetes#links" class="hash-link" aria-label="Direct link to Links" title="Direct link to Links" translate="no">​</a></h2>
<ul>
<li class=""><a href="https://r2r-docs.sciphi.ai/" target="_blank" rel="noopener noreferrer" class="">R2R</a> -- RAG framework by SciPhi</li>
<li class=""><a href="https://github.com/pgvector/pgvector" target="_blank" rel="noopener noreferrer" class="">pgvector</a> -- vector similarity search for Postgres</li>
<li class=""><a href="https://github.com/redis/agent-memory-server" target="_blank" rel="noopener noreferrer" class="">Redis Agent Memory Server</a> -- MCP-native memory service</li>
<li class=""><a href="https://ollama.com/" target="_blank" rel="noopener noreferrer" class="">Ollama</a> -- local LLM inference</li>
<li class=""><a href="https://docs.anthropic.com/en/docs/claude-code/hooks" target="_blank" rel="noopener noreferrer" class="">Claude Code hooks</a> -- pre/post tool execution hooks</li>
<li class=""><a href="https://github.com/Piotr1215/homelab" target="_blank" rel="noopener noreferrer" class="">Homelab repo</a> -- full working manifests in <code>gitops/apps/r2r/</code></li>
</ul>]]></content:encoded>
            <category>homelab</category>
            <category>kubernetes</category>
            <category>ai</category>
            <category>rag</category>
            <category>r2r</category>
            <category>ollama</category>
            <category>mcp</category>
            <category>gitops</category>
        </item>
        <item>
            <title><![CDATA[Your Platform Already Has AI Users]]></title>
            <link>https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering</link>
            <guid>https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering</guid>
            <pubDate>Mon, 23 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[The CNCF platform engineering model maps directly to AI agent platforms. Same dimensions, different bottlenecks.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Your Platform Already Has AI Users" src="https://cloudrumble.net/assets/images/01-platform-two-consumers-77260891fef292cd74a0256076849f87.png" width="2883" height="522" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>Platform engineering matured around one thesis: reduce cognitive load for developers. The <a href="https://tag-app-delivery.cncf.io/whitepapers/platforms/" target="_blank" rel="noopener noreferrer" class="">CNCF Platforms White Paper</a> codified the pattern. Internal developer portals, golden paths, self-service infrastructure — all designed so human teams ship faster without drowning in complexity.</p>
<p>AI agents now consume the same infrastructure. They clone repos, call CI/CD APIs, create pull requests, query issue trackers. But they don't read your Confluence wiki or file support tickets. They parse tool schemas and call structured APIs.</p>
<p>The bottlenecks shift. Humans hit cognitive overload: too many tools, tribal knowledge, context switching. Agents hit context window limits: too many tokens, irrelevant information, unstructured access. Same problem class, different constraint.</p>
<p>The CNCF platform engineering model transfers directly. Here's the mapping, dimension by dimension.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="two-consumers-one-platform">Two Consumers, One Platform<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#two-consumers-one-platform" class="hash-link" aria-label="Direct link to Two Consumers, One Platform" title="Direct link to Two Consumers, One Platform" translate="no">​</a></h2>
<p>The CNCF Platforms White Paper defines platform engineering across dimensions like self-service, golden paths, documentation, and guardrails. Each dimension has a direct analog for AI agents.</p>
<table><thead><tr><th>Dimension</th><th>Human Teams</th><th>AI Agents</th></tr></thead><tbody><tr><td><strong>Self-service goal</strong></td><td>Reduce cognitive load, eliminate tickets</td><td>Reduce context window waste, eliminate ambiguity</td></tr><tr><td><strong>Interface</strong></td><td>Portal, CLI, UI, docs</td><td>MCP tools, APIs, structured schemas, tool descriptions</td></tr><tr><td><strong>Golden paths</strong></td><td>Opinionated templates, scaffolding, starter kits</td><td>Skills, agent prompts, workflow definitions, pre-built tool chains</td></tr><tr><td><strong>Discovery</strong></td><td>Service catalog, search, docs site</td><td>Tool registries, ToolSearch, capability advertisement</td></tr><tr><td><strong>Documentation</strong></td><td>How-tos, runbooks, READMEs</td><td>Structured context (CLAUDE.md), tool schemas, few-shot examples in descriptions</td></tr><tr><td><strong>Cognitive load</strong></td><td>Too many choices, context switching, tribal knowledge</td><td>Context window limits, token budgets, irrelevant context noise</td></tr><tr><td><strong>Guardrails</strong></td><td>RBAC, policies, compliance gates</td><td>Sandboxing, permission boundaries, tool allowlists, destructive action blocks</td></tr><tr><td><strong>Toil</strong></td><td>Manual deploys, ticket queues, config drift</td><td>Re-discovering context, re-reading files, redundant searches, hallucinated paths</td></tr><tr><td><strong>Onboarding</strong></td><td>Orientation docs, buddy system, ramp-up period</td><td>System prompts, CLAUDE.md, agent norms, skill loading</td></tr><tr><td><strong>Collaboration</strong></td><td>Slack, PRs, pair programming</td><td>Agent channels, MCP messaging, shared memory stores, handoff protocols</td></tr><tr><td><strong>Scaling</strong></td><td>Hire more people, cross-train</td><td>Spawn more agents, share skills, parallelize</td></tr><tr><td><strong>Failure mode</strong></td><td>Burnout, knowledge silos, bus factor</td><td>Context overflow, stale memory, tool misuse, cascading bad decisions</td></tr><tr><td><strong>Cost model</strong></td><td>Salaries, time, opportunity cost</td><td>Tokens, API calls, compute time, context window budget</td></tr></tbody></table>
<p>The mapping isn't forced. These dimensions emerged because platform engineering solves a universal problem: making infrastructure accessible to its consumers. The consumer type changes the interface, not the architecture.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="where-it-gets-concrete">Where It Gets Concrete<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#where-it-gets-concrete" class="hash-link" aria-label="Direct link to Where It Gets Concrete" title="Direct link to Where It Gets Concrete" translate="no">​</a></h2>
<p>Three dimensions show the mapping most clearly.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="self-service-from-portals-to-tool-registries">Self-service: from portals to tool registries<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#self-service-from-portals-to-tool-registries" class="hash-link" aria-label="Direct link to Self-service: from portals to tool registries" title="Direct link to Self-service: from portals to tool registries" translate="no">​</a></h3>
<p>For humans, self-service means a portal where you click "Create Kubernetes Cluster" and get one in minutes. No tickets, no waiting.</p>
<p>For agents, self-service means discoverable tools with structured schemas. An agent calls <code>ToolSearch("kubernetes cluster")</code> and gets back a <code>create_cluster</code> function with typed parameters. No parsing documentation, no guessing at CLI flags.</p>
<p>The same backend serves both. The portal and the tool schema are two interfaces to the same provisioning API.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="golden-paths-from-templates-to-skills">Golden paths: from templates to skills<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#golden-paths-from-templates-to-skills" class="hash-link" aria-label="Direct link to Golden paths: from templates to skills" title="Direct link to Golden paths: from templates to skills" translate="no">​</a></h3>
<p>Human golden paths are opinionated templates. <code>create-react-app</code> scaffolds a project. A Backstage template wires up CI/CD, monitoring, and deployment in one click.</p>
<p>Agent golden paths are skills — packaged workflows with clear inputs and outputs. A <code>deploy-service</code> skill encapsulates the same decisions the template made: which registry, which pipeline, which environment. The agent composes skills instead of following a wizard.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="documentation-from-readmes-to-structured-context">Documentation: from READMEs to structured context<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#documentation-from-readmes-to-structured-context" class="hash-link" aria-label="Direct link to Documentation: from READMEs to structured context" title="Direct link to Documentation: from READMEs to structured context" translate="no">​</a></h3>
<p>Humans read READMEs, runbooks, and how-to guides. The documentation is narrative, written for comprehension.</p>
<p>Agents consume structured context: <code>CLAUDE.md</code> files with project conventions, tool schemas with parameter descriptions, few-shot examples embedded in tool descriptions. Narrative documentation wastes context window. Structured context is information-dense.</p>
<p>A platform that serves both invests in both formats — or better, generates one from the other.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="three-dimensions-the-cncf-model-missed">Three Dimensions the CNCF Model Missed<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#three-dimensions-the-cncf-model-missed" class="hash-link" aria-label="Direct link to Three Dimensions the CNCF Model Missed" title="Direct link to Three Dimensions the CNCF Model Missed" translate="no">​</a></h2>
<p>The original model doesn't cover three concerns that matter only (or primarily) for AI agents.</p>
<p><strong>Context management.</strong> Humans manage context through experience. An SRE who's been on-call for a year knows which alerts matter. That context is implicit and essentially free.</p>
<p>Agents have explicit context budgets. Every file read, every search result, every system prompt consumes tokens from a finite window. A platform at the "Provisional" level dumps entire files into the prompt. At "Optimizing," agents request exactly what they need and the platform delivers it pre-filtered.</p>
<p>Context management is the single highest-leverage investment for an AI agent platform. Bad context means wasted tokens, slower responses, and worse decisions.</p>
<p><strong>Memory.</strong> Humans accumulate knowledge over time. Institutional memory lives in people's heads, in Slack history, in wikis.</p>
<p>Agents start fresh every session unless the platform provides memory infrastructure. At the "Provisional" level, there's no persistence — every session rediscovers the same project structure. At "Operational," sessions get annotated and handed off manually. At "Optimizing," agents extract insights automatically and share them across a federated knowledge store.</p>
<p><strong>Authority.</strong> Human trust is earned through track record, code review, and organizational culture. A senior engineer merges without approval. A junior gets two reviewers.</p>
<p>Agent authority requires explicit boundaries. Permission systems define which tools an agent can call, which resources it can modify, which actions require human approval. At maturity, these boundaries become dynamic — an agent with a strong track record gets expanded permissions automatically.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-combined-maturity-model">The Combined Maturity Model<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#the-combined-maturity-model" class="hash-link" aria-label="Direct link to The Combined Maturity Model" title="Direct link to The Combined Maturity Model" translate="no">​</a></h2>
<p>The <a href="https://tag-app-delivery.cncf.io/whitepapers/platform-eng-maturity-model/" target="_blank" rel="noopener noreferrer" class="">CNCF Platform Engineering Maturity Model</a> defines four levels: Provisional, Operational, Scalable, and Optimizing. Each level applies to both human and AI platform consumers. The table below shows the human level (top row) and AI agent equivalent (bottom row) for each dimension.</p>
<table><thead><tr><th>Dimension</th><th></th><th>Provisional</th><th>Operational</th><th>Scalable</th><th>Optimizing</th></tr></thead><tbody><tr><td><strong>Investment</strong></td><td>Human</td><td>Voluntary, temporary</td><td>Dedicated team</td><td>Platform as product</td><td>Enabled ecosystem</td></tr><tr><td></td><td>AI</td><td>Ad-hoc API keys, manual setup</td><td>Dedicated agent infra, budgeted tokens</td><td>Agent platform as product, ROI per task</td><td>Self-provisioning agent ecosystem</td></tr><tr><td><strong>Adoption</strong></td><td>Human</td><td>Erratic</td><td>Extrinsic push</td><td>Intrinsic pull</td><td>Participatory</td></tr><tr><td></td><td>AI</td><td>Hardcoded tool lists</td><td>Tool registries, skill loading</td><td>Self-discovery, capability advertisement</td><td>Agents contribute tools back</td></tr><tr><td><strong>Interfaces</strong></td><td>Human</td><td>Custom processes</td><td>Standard tooling</td><td>Self-service</td><td>Integrated services</td></tr><tr><td></td><td>AI</td><td>Raw CLI, unstructured prompts</td><td>MCP tools, structured schemas</td><td>Self-service composition, skill chaining</td><td>Multi-agent orchestration</td></tr><tr><td><strong>Operations</strong></td><td>Human</td><td>By request</td><td>Centrally tracked</td><td>Centrally enabled</td><td>Managed services</td></tr><tr><td></td><td>AI</td><td>One-off scripts</td><td>Centrally managed skills</td><td>Automated curation, health checks</td><td>Agents maintain own platform</td></tr><tr><td><strong>Measurement</strong></td><td>Human</td><td>Ad hoc</td><td>Consistent collection</td><td>Insights</td><td>Quantitative and qualitative</td></tr><tr><td></td><td>AI</td><td>Manual log review</td><td>Success/failure tracking</td><td>Automated pattern detection</td><td>Agents optimize agents</td></tr><tr><td><strong>Context</strong></td><td>AI</td><td>Entire files in prompt</td><td>Curated system prompts</td><td>Dynamic context injection</td><td>Agents request what they need</td></tr><tr><td><strong>Memory</strong></td><td>AI</td><td>No persistence</td><td>Session annotations</td><td>Structured long-term memory</td><td>Automatic extraction, federated knowledge</td></tr><tr><td><strong>Authority</strong></td><td>AI</td><td>No boundaries</td><td>Static allowlists</td><td>Delegated authority with escalation</td><td>Dynamic trust based on track record</td></tr></tbody></table>
<p>The key insight: most organizations are at different levels for human and AI consumers. A platform might be "Scalable" for developers — self-service portal, product mindset, dedicated team — but "Provisional" for agents — ad-hoc API keys, unstructured prompts, no memory.</p>
<p>Knowing where you stand on both axes tells you where to invest.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-platform-teams-should-do">What Platform Teams Should Do<a href="https://cloudrumble.net/blog/2026/02/23/ai-agent-platform-engineering#what-platform-teams-should-do" class="hash-link" aria-label="Direct link to What Platform Teams Should Do" title="Direct link to What Platform Teams Should Do" translate="no">​</a></h2>
<p><strong>Audit your AI agent maturity.</strong> Walk through each dimension. Where are you Provisional? Most teams discover they have no structured context strategy and no memory infrastructure.</p>
<p><strong>Invest in structured interfaces first.</strong> MCP tool schemas, typed APIs, and discoverable registries are the highest-ROI investment. They make your existing platform accessible to agents without rebuilding anything.</p>
<p><strong>Treat context as a budget.</strong> Every token an agent spends reading irrelevant information is waste. Create <code>CLAUDE.md</code> files for your repositories. Write tool descriptions that include parameters and examples. Trim your system prompts.</p>
<p><strong>Build memory infrastructure.</strong> Agents that start fresh every session repeat the same discovery work. Even simple persistence — session notes, project context files — eliminates massive redundancy.</p>
<p><strong>Don't build a separate AI platform.</strong> The same APIs, the same CI/CD, the same infrastructure serves both audiences. What changes is the interface layer. Add tool schemas alongside your portal. Add structured context alongside your documentation.</p>
<p>The CNCF got the model right. The platform serves its consumers. Now it has two kinds.</p>]]></content:encoded>
            <category>platform-engineering</category>
            <category>ai-agents</category>
            <category>kubernetes</category>
            <category>CNCF</category>
            <category>MCP</category>
        </item>
        <item>
            <title><![CDATA[Give Your AI Agents a Brain That Survives a Reboot]]></title>
            <link>https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab</link>
            <guid>https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab</guid>
            <pubDate>Sun, 22 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Redis Agent Memory Server gives AI agents persistent memory backed by semantic search. Here's how to run it on a homelab Kubernetes cluster with Ollama for zero-cost local inference.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Agent Memory Architecture" src="https://cloudrumble.net/assets/images/agent-memory-architecture-1b63250244ca49b2a1a496f75e25db1c.png" width="3772" height="1652" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>AI agents learn things about you as you work. Your coding style, your infrastructure quirks, which tools you prefer, how you name things. That context accumulates across dozens of sessions. But it evaporates when the session ends or when you switch tools. Use Claude Code in the terminal, Cursor in the IDE, and a web-based MCP client on your phone. Three tools, three isolated memory silos. You can share static knowledge with files. But the context that accumulates from your interactions has nowhere to go.</p>
<p>What if the memory layer was separate from the tools entirely? <a href="https://github.com/redis/agent-memory-server" target="_blank" rel="noopener noreferrer" class="">Redis Agent Memory Server</a> does exactly that. It's an open-source memory service that speaks <a href="https://modelcontextprotocol.io/" target="_blank" rel="noopener noreferrer" class="">MCP</a> over HTTP. CLI tools (Claude Code, Codex, Gemini CLI), IDE tools (Cursor, Windsurf, Copilot), and any web-based MCP client all connect to the same store. Because the server runs over HTTP, you can expose it beyond the homelab with Cloudflare Tunnels or similar, so tools outside your network connect too. The memory lives on your infrastructure, not theirs.</p>
<p>The server provides two tiers: working memory (session-scoped context that auto-promotes to long-term) and long-term memory (persistent, semantically searchable). It exposes both a REST API and an MCP interface.</p>
<p>I deployed it on my homelab Kubernetes cluster. Four pods, one PVC, zero API costs. Here's how.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="architecture">Architecture<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#architecture" class="hash-link" aria-label="Direct link to Architecture" title="Direct link to Architecture" translate="no">​</a></h2>
<p>Four components, each a separate Kubernetes deployment. Here's what happens under the hood.</p>
<p><strong>Storing.</strong> When you tell it to remember something, it converts your text into a list of numbers (an embedding). Redis stores those numbers alongside the raw text. The memory is searchable immediately.</p>
<p><strong>Retrieving.</strong> When a tool queries memory, your query becomes numbers too. Redis finds stored memories with the closest numbers, by meaning, not by keyword. An AI tool asking "what do I know about deployment patterns?" finds a memory you stored as "we always use Recreate strategy for PVC-backed workloads" even though the words don't overlap. Unlike wikis or Obsidian vaults where you organize content yourself and search by keyword, here you store unstructured text and the system handles the rest.</p>
<p><strong>Enriching.</strong> In the background, a worker asks a small local LLM "what topics are in this text?" and tags each memory with structured metadata. Combined with topic and entity tags, you get precise recall without writing structured queries. Think of it as auto-filing.</p>
<!-- -->
<table><thead><tr><th>Component</th><th>Image</th><th>Purpose</th></tr></thead><tbody><tr><td>Redis Stack</td><td><code>redis/redis-stack-server:7.4.0-v8</code></td><td>Vector store + pub/sub + persistence</td></tr><tr><td>API Server</td><td><code>piotrzan/agent-memory-server:0.13.2-custom-v5</code></td><td>REST API on port 8000</td></tr><tr><td>MCP Server</td><td>Same custom image</td><td>MCP interface on port 9000</td></tr><tr><td>Task Worker</td><td>Same custom image</td><td>Async processing (embeddings, NER, topic extraction)</td></tr></tbody></table>
<p>The worker handles the async enrichment. Here's the full lifecycle:</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="memory-lifecycle">Memory Lifecycle<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#memory-lifecycle" class="hash-link" aria-label="Direct link to Memory Lifecycle" title="Direct link to Memory Lifecycle" translate="no">​</a></h3>
<p>Storing a memory happens in two phases:</p>
<!-- -->
<p>Phase 1 is synchronous. nomic-embed-text converts your text into a 768-dimension vector. Redis stores both the vector and the raw text immediately, so you can search for it right away.</p>
<p>Phase 2 runs in the background. The worker pulls async tasks from Redis (using <a href="https://github.com/chrisguidry/docket" target="_blank" rel="noopener noreferrer" class="">docket</a>), sends text to qwen2.5:7b for topic extraction and NER, and writes structured metadata back. This makes future searches more precise; you can filter by topic or entity, not just vector similarity.</p>
<p>I started with llama3.2:3b for generation. It works for simple tasks, but the memory compaction worker merges duplicate memories by asking the LLM to produce clean combined text. llama3.2:3b would output meta-commentary instead: "As a memory merging assistant, I will now merge..." rather than the actual merged content. qwen2.5:7b follows structured output instructions reliably. For tasks where the model must produce clean text without editorializing, instruction adherence matters more than model size.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-not-just-use-openai-backed-memory">Why Not Just Use OpenAI-backed Memory?<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#why-not-just-use-openai-backed-memory" class="hash-link" aria-label="Direct link to Why Not Just Use OpenAI-backed Memory?" title="Direct link to Why Not Just Use OpenAI-backed Memory?" translate="no">​</a></h3>
<p>Most AI memory solutions (<a href="https://mem0.ai/" target="_blank" rel="noopener noreferrer" class="">Mem0</a>, <a href="https://www.getzep.com/" target="_blank" rel="noopener noreferrer" class="">Zep</a>) require OpenAI or another cloud LLM for embeddings and extraction. Every memory stored costs API tokens. Every semantic search costs more tokens.</p>
<p>Redis Agent Memory Server supports <a href="https://docs.litellm.ai/" target="_blank" rel="noopener noreferrer" class="">LiteLLM</a>, which means it works with 100+ providers. Including Ollama. Running locally. For free.</p>
<div class="info-card-grid" style="grid-template-columns:repeat(2, 1fr)"><div class="info-card"><div class="info-card-header">Embeddings</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Cloud<!-- -->:</strong> <span>OpenAI ada-002 ($0.10/1M tokens)</span></div><div><strong class="text-gray-700 dark:text-gray-400">Homelab<!-- -->:</strong> <span>Ollama nomic-embed-text (free)</span></div></div></div><div class="info-card"><div class="info-card-header">Generation</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Cloud<!-- -->:</strong> <span>GPT-4 for extraction ($30/1M tokens)</span></div><div><strong class="text-gray-700 dark:text-gray-400">Homelab<!-- -->:</strong> <span>Ollama qwen2.5:7b (free)</span></div></div></div><div class="info-card"><div class="info-card-header">Vector Store</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Cloud<!-- -->:</strong> <span>Pinecone/Weaviate (managed)</span></div><div><strong class="text-gray-700 dark:text-gray-400">Homelab<!-- -->:</strong> <span>Redis Stack RediSearch (self-hosted)</span></div></div></div><div class="info-card"><div class="info-card-header">Data Location</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Cloud<!-- -->:</strong> <span>Third-party servers</span></div><div><strong class="text-gray-700 dark:text-gray-400">Homelab<!-- -->:</strong> <span>Your cluster, your PVC</span></div></div></div></div>
<p>With Ollama on a spare Mac and Redis on Kubernetes, the entire memory pipeline runs locally. Memories never leave the network.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="deploying-to-kubernetes">Deploying to Kubernetes<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#deploying-to-kubernetes" class="hash-link" aria-label="Direct link to Deploying to Kubernetes" title="Direct link to Deploying to Kubernetes" translate="no">​</a></h2>
<p>Everything below is the actual deployment. If you just wanted the concept, you can stop here. If you want to run this on your own cluster, keep going.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="prerequisites">Prerequisites<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#prerequisites" class="hash-link" aria-label="Direct link to Prerequisites" title="Direct link to Prerequisites" translate="no">​</a></h3>
<ul>
<li class=""><strong>A Kubernetes cluster.</strong> Any distro works: k3s on a single node, kubeadm, Talos, managed. If you don't have one yet, <a href="https://k3s.io/" target="_blank" rel="noopener noreferrer" class="">k3s</a> gets you there in one command</li>
<li class="">A machine running <a href="https://ollama.com/" target="_blank" rel="noopener noreferrer" class="">Ollama</a> with <code>nomic-embed-text</code> and <code>qwen2.5:7b</code> pulled. Can be the same node, a spare laptop, a Mac. Needs ~6GB RAM for both models</li>
<li class="">~2.3GB cluster RAM at pod limits for the 4 deployments (actual usage is lower)</li>
<li class="">A storage class that supports PVCs (Longhorn, local-path, OpenEBS, anything)</li>
<li class="">Optional: ArgoCD for GitOps sync, or just <code>kubectl apply</code></li>
</ul>
<p>Everything lives in the <code>ai-tools</code> namespace. ArgoCD syncs from Git.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="redis-stack">Redis Stack<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#redis-stack" class="hash-link" aria-label="Direct link to Redis Stack" title="Direct link to Redis Stack" translate="no">​</a></h3>
<p>Redis is doing triple duty here: vector index (RediSearch for semantic search), task queue (docket polls it for async worker jobs), and persistent store (AOF + PVC for the actual memories). One pod instead of running Postgres + Pinecone + RabbitMQ separately. Same ops patterns as any other stateful workload: PVC, AOF persistence, health checks. Redis Stack bundles RediSearch (vector similarity) and RedisJSON. The <code>appendonly</code> flag enables AOF persistence, so data survives pod restarts. <code>allkeys-lru</code> eviction keeps memory bounded at 512MB. Oldest entries get evicted when full.</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> apps/v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Deployment</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">redis</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">replicas</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">strategy</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">type</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Recreate  </span><span class="token comment" style="color:rgb(98, 114, 164)"># avoid two pods fighting over PVC</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">selector</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">matchLabels</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">app.kubernetes.io/name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">redis</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">template</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">labels</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">app.kubernetes.io/name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">redis</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">app.kubernetes.io/component</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> redis</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">containers</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> redis</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">image</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> redis/redis</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">stack</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">server</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">7.4.0</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">v8</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">env</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> REDIS_ARGS</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"--appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">containerPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">6379</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> redis</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">volumeMounts</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">mountPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">resources</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">limits</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">cpu</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 500m</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 768Mi</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">requests</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">cpu</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 100m</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 256Mi</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">livenessProbe</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">exec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">command</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">"redis-cli"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"ping"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">initialDelaySeconds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">15</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">periodSeconds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">30</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">readinessProbe</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">exec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">command</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">"redis-cli"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"ping"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">initialDelaySeconds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">5</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">periodSeconds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">10</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">volumes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">persistentVolumeClaim</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">claimName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">redis</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> PersistentVolumeClaim</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">redis</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">accessModes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> ReadWriteOnce</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">storageClassName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> longhorn</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">resources</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">requests</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">storage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 2Gi</span><br></div></code></pre></div></div>
<p><code>Recreate</code> strategy is important because two Redis instances can't share the same PVC.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-application-pods">The Application Pods<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#the-application-pods" class="hash-link" aria-label="Direct link to The Application Pods" title="Direct link to The Application Pods" translate="no">​</a></h3>
<p>All three application components share environment variables. The key ones:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">env</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> REDIS_URL</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> redis</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">//agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">redis.ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools.svc</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token number">6379</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> LONG_TERM_MEMORY</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"true"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ENABLE_TOPIC_EXTRACTION</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"true"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ENABLE_NER</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"true"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> GENERATION_MODEL</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama/qwen2.5</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">7b     </span><span class="token comment" style="color:rgb(98, 114, 164)"># used for memory compaction/merging</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> FAST_MODEL</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama/qwen2.5</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">7b     </span><span class="token comment" style="color:rgb(98, 114, 164)"># topic extraction, query optimization</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> SLOW_MODEL</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama/qwen2.5</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">7b     </span><span class="token comment" style="color:rgb(98, 114, 164)"># complex reasoning tasks</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> EMBEDDING_MODEL</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama/nomic</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">embed</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">text</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> OLLAMA_API_BASE</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> http</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">//ollama.ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools.svc</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token number">11434</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># point at your Ollama service</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> REDISVL_VECTOR_DIMENSIONS</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"768"</span><span class="token plain">                  </span><span class="token comment" style="color:rgb(98, 114, 164)"># nomic-embed-text output size</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> DISABLE_AUTH</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">value</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"true"</span><span class="token plain">                 </span><span class="token comment" style="color:rgb(98, 114, 164)"># homelab, internal network</span><br></div></code></pre></div></div>
<p>Each component gets a different command:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># API server (default entrypoint)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># No command override needed -- runs uvicorn on port 8000</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># MCP server</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">command</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">"agent-memory"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"mcp"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"--mode"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"streamable-http"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Task worker</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">command</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">"agent-memory"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"task-worker"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><br></div></code></pre></div></div>
<p>The API server handles REST requests. The MCP server speaks Model Context Protocol over streamable-http. The worker runs docket-based async tasks.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="exposing-ollama-to-the-cluster">Exposing Ollama to the Cluster<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#exposing-ollama-to-the-cluster" class="hash-link" aria-label="Direct link to Exposing Ollama to the Cluster" title="Direct link to Exposing Ollama to the Cluster" translate="no">​</a></h3>
<p>Ollama can run on any machine on your network: the cluster node itself, a spare laptop, a desktop. If it runs outside the cluster, you need a headless Service with manual Endpoints pointing at whatever IP runs Ollama:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Service</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">clusterIP</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> None</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">11434</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">targetPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">11434</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> http</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">---</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Endpoints</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ollama</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">subsets</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">addresses</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">ip</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> &lt;OLLAMA_HOST_IP</span><span class="token punctuation" style="color:rgb(248, 248, 242)">&gt;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">11434</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> http</span><br></div></code></pre></div></div>
<p>Now any pod in the cluster can reach Ollama at <code>ollama.ai-tools.svc:11434</code>. If Ollama runs on a cluster node, you can skip the Endpoints and use a regular Service or just point <code>OLLAMA_API_BASE</code> at the node IP directly.</p>
<div class="theme-admonition theme-admonition-info admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>My setup</div><div class="admonitionContent_BuS1"><p>In my homelab, Ollama runs on a Mac on the local network. The Service is named <code>ollama-mac</code> with an <code>availability: "ephemeral"</code> annotation as documentation. When the Mac sleeps, the worker's Ollama calls fail and tasks retry when it wakes up.</p></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="adding-streamable-http-support">Adding Streamable HTTP Support<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#adding-streamable-http-support" class="hash-link" aria-label="Direct link to Adding Streamable HTTP Support" title="Direct link to Adding Streamable HTTP Support" translate="no">​</a></h2>
<p>Upstream agent-memory-server supports <code>stdio</code> and <code>sse</code> transport modes for MCP. Neither works well for a Kubernetes deployment where Claude Code connects over HTTP.</p>
<p><code>stdio</code> requires a local process. <code>sse</code> uses server-sent events but doesn't support the streamable-http transport that Claude Code's HTTP MCP client expects.</p>
<p>A small patch fixes this. Three changes:</p>
<ol>
<li class="">Add <code>streamable-http</code> as a valid <code>--mode</code> choice in the CLI</li>
<li class="">Set <code>stateless_http=True</code> so Claude Code subagents (which don't complete the MCP initialization handshake) still work</li>
<li class="">Return <code>Response()</code> instead of <code>None</code> to prevent a TypeError when SSE clients disconnect</li>
</ol>
<div class="language-diff codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-diff codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain"># cli.py - add streamable-http mode</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">-    type=click.Choice(["stdio", "sse"]),</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+    type=click.Choice(["stdio", "sse", "streamable-http"]),</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># cli.py - handle the new mode</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+        elif mode == "streamable-http":</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+            await mcp_app.run_streamable_http_async()</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># mcp.py - stateless mode for subagents</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+        kwargs.setdefault("stateless_http", True)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># mcp.py - fix SSE disconnect crash</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">+            return Response()</span><br></div></code></pre></div></div>
<p>The build script clones upstream, applies the patch, and builds:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> clone </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--depth</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"> https://github.com/redis/agent-memory-server.git </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$BUILD_DIR</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">cd</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$BUILD_DIR</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">git</span><span class="token plain"> apply mcp-patches.patch</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"> build </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f</span><span class="token plain"> Dockerfile.patched </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--target</span><span class="token plain"> standard </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-t</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$IMAGE</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">.</span><br></div></code></pre></div></div>
<p>The resulting image (<code>piotrzan/agent-memory-server:0.13.2-custom-v5</code>) is used by all three application pods. v5 also fixes a hardcoded <code>gpt-4o-mini</code> model reference in the memory compaction function that ignored the <code>GENERATION_MODEL</code> setting. I've submitted a PR upstream to add streamable-http support natively, but until that lands you'll need a custom image.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="connecting-mcp-clients">Connecting MCP Clients<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#connecting-mcp-clients" class="hash-link" aria-label="Direct link to Connecting MCP Clients" title="Direct link to Connecting MCP Clients" translate="no">​</a></h2>
<p>The MCP server pod exposes port 9000. How you make it reachable depends on your setup: a NodePort, an Ingress, Gateway API, a LoadBalancer, or even <code>kubectl port-forward</code> for testing. The only requirement is that your MCP client can reach the <code>/mcp</code> endpoint over HTTP.</p>
<p>Any MCP client that supports HTTP transport can connect. The configuration is the same pattern across tools:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token property">"mcpServers"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token property">"agent-memory"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token property">"type"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"http"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token property">"url"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"http://&lt;your-mcp-host&gt;/mcp"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<p>Replace <code>&lt;your-mcp-host&gt;</code> with whatever hostname or IP reaches your MCP service. That's it. Any MCP-capable tool (Claude Code, Cursor, Windsurf, Codex) now has persistent memory across all sessions on any machine that can reach the endpoint.</p>
<div class="theme-admonition theme-admonition-info admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>My setup</div><div class="admonitionContent_BuS1"><p>I expose the MCP server through Envoy Gateway with an HTTPRoute:</p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> gateway.networking.k8s.io/v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> HTTPRoute</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">parentRefs</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> homelab</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">gateway</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> envoy</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">gateway</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">system</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">sectionName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> http</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">hostnames</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"agent-memory.homelab.local"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">rules</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">backendRefs</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> agent</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">mcp</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ai</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">tools</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">9000</span><br></div></code></pre></div></div><p>Gateway API requires a <code>ReferenceGrant</code> in the target namespace when an HTTPRoute references a backend Service in a different namespace. Without it, the route silently fails.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-you-get">What You Get<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#what-you-get" class="hash-link" aria-label="Direct link to What You Get" title="Direct link to What You Get" translate="no">​</a></h3>
<p>Once connected, any MCP client gains these tools:</p>
<ul>
<li class=""><code>create_long_term_memories</code> -- store facts, preferences, patterns</li>
<li class=""><code>search_long_term_memory</code> -- semantic search across all stored memories</li>
<li class=""><code>set_working_memory</code> -- session-scoped context that auto-promotes to long-term</li>
<li class=""><code>get_working_memory</code> -- recall current session state</li>
<li class=""><code>memory_prompt</code> -- get a context-enriched prompt with relevant memories injected</li>
</ul>
<p>Say "remember that I always use bun instead of npm" and it persists. Next session, on a different machine, in a different tool, the memory is there. The semantic search means it finds relevant memories even with different wording.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-this-matters">Why This Matters<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#why-this-matters" class="hash-link" aria-label="Direct link to Why This Matters" title="Direct link to Why This Matters" translate="no">​</a></h2>
<p>This setup solves a real problem: AI tools are stateless by default. Every session is a blank slate. Memory servers fix that, but most require cloud APIs that cost money and store your data on their infrastructure.</p>
<p>Think about what AI memories contain: details about your codebase, your infrastructure topology, your workflow habits, your credentials naming patterns. With cloud memory services, that data lives in someone else's database, governed by their retention policies. With this setup, the canonical store is yours. Redis on your PVC, embeddings computed by Ollama on your hardware, search indexes you control. When an MCP client retrieves a memory and sends it to Claude or Codex for inference, that's your choice for that interaction. The difference is who holds the source of truth. You decide what gets stored, what gets shared, and what gets deleted.</p>
<p>Running agent-memory-server on Kubernetes with Ollama gives you:</p>
<ul>
<li class="">You own the data -- memories live in your database, governed by your retention policies</li>
<li class="">Zero inference costs -- Ollama on a spare Mac handles all embeddings and generation</li>
<li class="">Kubernetes ops tooling -- health checks, rolling updates, PVC persistence, ArgoCD GitOps</li>
<li class="">Multi-machine memory -- any device pointing at the MCP endpoint shares the same memory store</li>
</ul>
<p>The stack is ~2.3GB RAM at limits (Redis 768Mi + three app pods at 512Mi each). Actual usage sits well below that; requests total ~640Mi (Redis 256Mi + 3x128Mi).</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="links">Links<a href="https://cloudrumble.net/blog/2026/02/22/agent-memory-server-homelab#links" class="hash-link" aria-label="Direct link to Links" title="Direct link to Links" translate="no">​</a></h2>
<ul>
<li class=""><a href="https://github.com/redis/agent-memory-server" target="_blank" rel="noopener noreferrer" class="">Redis Agent Memory Server</a> -- upstream project</li>
<li class=""><a href="https://modelcontextprotocol.io/" target="_blank" rel="noopener noreferrer" class="">Model Context Protocol</a> -- the MCP specification</li>
<li class=""><a href="https://ollama.com/" target="_blank" rel="noopener noreferrer" class="">Ollama</a> -- local LLM inference</li>
<li class=""><a href="https://redis.io/docs/latest/develop/interact/search-and-query/" target="_blank" rel="noopener noreferrer" class="">RediSearch</a> -- vector similarity search in Redis</li>
<li class=""><a href="https://github.com/Piotr1215/homelab" target="_blank" rel="noopener noreferrer" class="">Homelab repo</a> -- full working manifests in <code>gitops/apps/agent-memory-server/</code></li>
</ul>]]></content:encoded>
            <category>homelab</category>
            <category>kubernetes</category>
            <category>ai</category>
            <category>mcp</category>
            <category>redis</category>
            <category>ollama</category>
            <category>gitops</category>
        </item>
        <item>
            <title><![CDATA[What If Your Docker Was Also Your Kubernetes?]]></title>
            <link>https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes</link>
            <guid>https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes</guid>
            <pubDate>Sun, 01 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[vind runs Kubernetes in Docker containers sharing the host daemon. Images work immediately, LoadBalancers get real IPs.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="vind" src="https://cloudrumble.net/assets/images/vind-hero-18ff5e43ac85328614d71ff804e66e2f.png" width="1792" height="1024" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>Local Kubernetes development has rough edges. kind and minikube make cluster creation trivial, but common workflows need extra setup.</p>
<p>Exposing a LoadBalancer service means configuring MetalLB or tunneling through ngrok. Testing a new image means running <code>kind load docker-image</code> every iteration.</p>
<p>vind encapsulates these workflows. Kubernetes nodes run as Docker containers sharing the host daemon, so images pull straight from the local cache. A built-in LoadBalancer controller assigns real IPs without additional configuration.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="vind">vind<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#vind" class="hash-link" aria-label="Direct link to vind" title="Direct link to vind" translate="no">​</a></h2>
<p><a href="https://github.com/loft-sh/vind" target="_blank" rel="noopener noreferrer" class="">vind</a> (vCluster in Docker) runs the Kubernetes control plane and simulated nodes as Docker containers. They share your host's Docker daemon. Currently experimental but functional.</p>
<p><strong>Prerequisites:</strong></p>
<ul>
<li class="">Docker with containerd image store enabled (see below)</li>
<li class="">vCluster CLI v0.31.0+ (<a href="https://www.vcluster.com/docs/vcluster/deploy/basics" target="_blank" rel="noopener noreferrer" class="">install guide</a>)</li>
<li class="">Linux: bridge kernel modules loaded</li>
</ul>
<p><strong>Docker setup</strong> (required for registry proxy):</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Enable containerd image store</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'{"features":{"containerd-snapshotter":true}}'</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">sudo</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">tee</span><span class="token plain"> /etc/docker/daemon.json</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">sudo</span><span class="token plain"> systemctl restart </span><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Verify</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"> info </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">grep</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"driver-type"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Should show: driver-type: io.containerd.snapshotter.v1</span><br></div></code></pre></div></div>
<p><strong>Linux kernel modules</strong> (if node join fails):</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">sudo</span><span class="token plain"> modprobe bridge br_netfilter</span><br></div></code></pre></div></div>
<p><strong>vind workflow:</strong></p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># vcluster.yaml - need at least one node for pods to schedule</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">experimental</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">docker</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">nodes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"worker-1"</span><br></div></code></pre></div></div>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># 1. Set Docker driver (once)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster use driver </span><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># 2. Create cluster with node config</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster create my-cluster </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--values</span><span class="token plain"> vcluster.yaml</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># 3. Deploy (images from your local Docker cache)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl apply </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f</span><span class="token plain"> deployment.yaml</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># LoadBalancer gets an IP</span><br></div></code></pre></div></div>
<p>Your local Docker images are already available. LoadBalancer services get real IPs reachable from your machine.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="vcluster-platform-free-tier">vCluster Platform Free Tier<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#vcluster-platform-free-tier" class="hash-link" aria-label="Direct link to vCluster Platform Free Tier" title="Direct link to vCluster Platform Free Tier" translate="no">​</a></h2>
<p>vind works standalone. Connecting it to <a href="https://www.vcluster.com/blog/launching-vcluster-free-get-enterprise-features-at-no-cost" target="_blank" rel="noopener noreferrer" class="">vCluster Platform's free tier</a> adds management features.</p>
<p><strong>Enterprise features now free:</strong></p>
<ul>
<li class="">Sleep mode (pause/resume clusters)</li>
<li class="">Templates and self-service</li>
<li class="">User management and RBAC</li>
<li class="">CRD sync and sync patches</li>
<li class="">Embedded etcd</li>
</ul>
<p><strong>Limits:</strong></p>
<ul>
<li class="">64 vCPU cores</li>
<li class="">32 GPUs</li>
<li class="">Unlimited users</li>
<li class="">Unlimited host clusters</li>
<li class="">Unlimited virtual clusters</li>
</ul>
<p>Covers homelabs, dev environments, CI pipelines, and conference demos.</p>
<p><img decoding="async" loading="lazy" alt="Platform dashboard showing vind cluster" src="https://cloudrumble.net/assets/images/platform-vind-dashboard-ef1cefe5f04b9755a1e076ee40e089ac.png" width="2422" height="1134" class="img_ev3q"></p>
<p><strong>Activate free tier:</strong></p>
<ol>
<li class="">Deploy vCluster Platform following the <a href="https://www.vcluster.com/docs/platform/install/quick-start-guide" target="_blank" rel="noopener noreferrer" class="">installation guide</a></li>
<li class="">Enter your email when prompted in the Platform UI</li>
<li class="">Complete activation via the email link</li>
</ol>
<p>Once connected, vind clusters appear in the Platform dashboard with options for multi-cluster management, team access sharing, and external node joining.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="registry-proxy">Registry Proxy<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#registry-proxy" class="hash-link" aria-label="Direct link to Registry Proxy" title="Direct link to Registry Proxy" translate="no">​</a></h2>
<p>The registry proxy is why vind iteration is faster than kind. Comparison:</p>
<p><strong>kind:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"> build </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-t</span><span class="token plain"> myapp:v2 </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">.</span><span class="token plain">           </span><span class="token comment" style="color:rgb(98, 114, 164)"># Build locally</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kind load docker-image myapp:v2      </span><span class="token comment" style="color:rgb(98, 114, 164)"># Copy entire image into cluster</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">set</span><span class="token plain"> image deploy/app </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">app</span><span class="token operator">=</span><span class="token plain">myapp:v2  </span><span class="token comment" style="color:rgb(98, 114, 164)"># Deploy</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Wait for image copy... then deploy</span><br></div></code></pre></div></div>
<p><strong>vind:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"> build </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-t</span><span class="token plain"> myapp:v2 </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">.</span><span class="token plain">           </span><span class="token comment" style="color:rgb(98, 114, 164)"># Build locally</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">set</span><span class="token plain"> image deploy/app </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">app</span><span class="token operator">=</span><span class="token plain">myapp:v2  </span><span class="token comment" style="color:rgb(98, 114, 164)"># Deploy immediately</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Pod starts, registry proxy serves image from local Docker</span><br></div></code></pre></div></div>
<p>The registry proxy runs inside vind and intercepts image pulls. When containerd inside the worker node requests <code>myapp:v2</code>, the proxy checks the host Docker daemon first. Local images are served directly.</p>
<p>This also works for public images. Pull <code>nginx:latest</code> once on your host, every vind cluster reuses it.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># On host</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"> pull nginx:latest</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># In vind cluster - instant, no network pull</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl run nginx </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--image</span><span class="token operator">=</span><span class="token plain">nginx:latest</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="loadbalancer-services-that-work">LoadBalancer Services That Work<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#loadbalancer-services-that-work" class="hash-link" aria-label="Direct link to LoadBalancer Services That Work" title="Direct link to LoadBalancer Services That Work" translate="no">​</a></h2>
<p>With kind, LoadBalancer services stay <code>&lt;pending&gt;</code> without additional setup. NodePort or port-forward become the standard workarounds.</p>
<p>vind includes a LoadBalancer controller that assigns real IPs:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl create deployment web </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--image</span><span class="token operator">=</span><span class="token plain">nginx</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl expose deployment web </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--port</span><span class="token operator">=</span><span class="token number">80</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--type</span><span class="token operator">=</span><span class="token plain">LoadBalancer</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl get svc web</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># NAME   TYPE           CLUSTER-IP     EXTERNAL-IP   PORT(S)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># web    LoadBalancer   10.96.45.123   172.19.0.5    80:31234/TCP</span><br></div></code></pre></div></div>
<p>That IP is routable from your host:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">curl</span><span class="token plain"> </span><span class="token number">172.19</span><span class="token plain">.0.5</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># &lt;!DOCTYPE html&gt;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># &lt;title&gt;Welcome to nginx!&lt;/title&gt;</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># ...</span><br></div></code></pre></div></div>
<p>Multiple LoadBalancer services get different IPs.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="multi-node-clusters">Multi-Node Clusters<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#multi-node-clusters" class="hash-link" aria-label="Direct link to Multi-Node Clusters" title="Direct link to Multi-Node Clusters" translate="no">​</a></h2>
<p>Test node affinity, pod anti-affinity, or DaemonSets with multiple workers:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># vcluster.yaml</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">experimental</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">docker</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">nodes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"worker-1"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"worker-2"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"worker-3"</span><br></div></code></pre></div></div>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster create multi-node </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--values</span><span class="token plain"> vcluster.yaml</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl get nodes</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># NAME       STATUS   ROLES    AGE</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># worker-1   Ready    &lt;none&gt;   30s</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># worker-2   Ready    &lt;none&gt;   30s</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># worker-3   Ready    &lt;none&gt;   30s</span><br></div></code></pre></div></div>
<p>Each node is a Docker container. Add more by adding lines to the config.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="external-nodes-via-platform">External Nodes via Platform<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#external-nodes-via-platform" class="hash-link" aria-label="Direct link to External Nodes via Platform" title="Direct link to External Nodes via Platform" translate="no">​</a></h2>
<p>With vCluster Platform Pro, you can join real machines to your vind cluster using vCluster VPN. This enables hybrid scenarios: your laptop runs the control plane, a Raspberry Pi or cloud VM joins as a worker.</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># vcluster.yaml</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">experimental</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">docker</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">nodes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> local</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">node</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">privateNodes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">vpn</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">enabled</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">true</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">nodeToNode</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">enabled</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">true</span><br></div></code></pre></div></div>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster create hybrid </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--values</span><span class="token plain"> vcluster.yaml</span><br></div></code></pre></div></div>
<p>The external machine connects through the Platform and appears as a node in <code>kubectl get nodes</code>. Test ARM workloads, edge scenarios, or distribute workloads across machines.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="vind-vs-kind">vind vs kind<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#vind-vs-kind" class="hash-link" aria-label="Direct link to vind vs kind" title="Direct link to vind vs kind" translate="no">​</a></h2>
<table><thead><tr><th>Feature</th><th>kind</th><th>vind</th></tr></thead><tbody><tr><td>LoadBalancer</td><td>Requires MetalLB setup</td><td>Built-in controller</td></tr><tr><td>Images</td><td><code>kind load</code> per change</td><td>Pull-through from Docker</td></tr><tr><td>Multi-node</td><td>Separate config</td><td>Add lines to yaml</td></tr><tr><td>Pause/resume</td><td>Delete and recreate</td><td><code>vcluster pause/resume</code></td></tr><tr><td>Management UI</td><td>CLI only</td><td>Platform (free tier)</td></tr><tr><td>External nodes</td><td>Local only</td><td>VPN join (Pro)</td></tr></tbody></table>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="choose-vind-when">Choose vind when<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#choose-vind-when" class="hash-link" aria-label="Direct link to Choose vind when" title="Direct link to Choose vind when" translate="no">​</a></h3>
<p>LoadBalancer services need real IPs without MetalLB. Image iteration is frequent (demos, rapid development). Clusters need pausing to free resources. A management UI would help.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="stick-with-kind-when">Stick with kind when<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#stick-with-kind-when" class="hash-link" aria-label="Direct link to Stick with kind when" title="Direct link to Stick with kind when" translate="no">​</a></h3>
<p>The workflow already works. CI/CD pipelines need maximum compatibility. Minimal dependencies matter more than features.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="resources">Resources<a href="https://cloudrumble.net/blog/2026/02/01/vind-local-kubernetes#resources" class="hash-link" aria-label="Direct link to Resources" title="Direct link to Resources" translate="no">​</a></h2>
<ul>
<li class=""><a href="https://www.youtube.com/watch?v=In8vzpKecLs" target="_blank" rel="noopener noreferrer" class="">vind | vCluster in Docker | Across The Tenancy Spectrum</a> - Video walkthrough</li>
<li class=""><a href="https://github.com/loft-sh/vind" target="_blank" rel="noopener noreferrer" class="">vind GitHub</a></li>
<li class=""><a href="https://www.vcluster.com/docs/vcluster/configure/vcluster-yaml/experimental/docker" target="_blank" rel="noopener noreferrer" class="">vind Documentation</a></li>
<li class=""><a href="https://www.vcluster.com/blog/launching-vcluster-free-get-enterprise-features-at-no-cost" target="_blank" rel="noopener noreferrer" class="">Launching vCluster Free</a> - Free tier announcement</li>
<li class=""><a href="https://www.vcluster.com/docs/platform/install/quick-start-guide" target="_blank" rel="noopener noreferrer" class="">Platform Installation Guide</a></li>
</ul>]]></content:encoded>
            <category>kubernetes</category>
            <category>docker</category>
            <category>vcluster</category>
            <category>vind</category>
            <category>local-development</category>
            <category>vcluster-platform</category>
        </item>
        <item>
            <title><![CDATA[Stop Holding Arrow Keys (Fuzzy Jump to Any Word on Your Command Line)]]></title>
            <link>https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation</link>
            <guid>https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation</guid>
            <pubDate>Fri, 09 Jan 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Long commands are tedious to edit. Instead of arrow keys or Ctrl+Left repeatedly, fuzzy-search any word and jump straight to it.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="zsh-jumper" src="https://cloudrumble.net/assets/images/zsh-jumper-hero-7f4eb24fc43635a1841299d4c463c1c2.png" width="1536" height="1024" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>You've typed a 10-word kubectl command. You realize the namespace is wrong. Now you're holding <code>Ctrl+Left</code> six times to get there. Or worse, reaching for the mouse.</p>
<p>Vim solved this for text editing decades ago. Why are we still navigating command lines like it's 1985?</p>
<p><a href="https://github.com/Piotr1215/zsh-jumper" target="_blank" rel="noopener noreferrer" class="">zsh-jumper</a> brings fuzzy search to command line navigation. Press a key, pick a word, cursor jumps there. Or press <code>;</code> and a letter for instant EasyMotion-style jumps.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-problem">The Problem<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#the-problem" class="hash-link" aria-label="Direct link to The Problem" title="Direct link to The Problem" translate="no">​</a></h2>
<p>Terminal commands grow long:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl get pods </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> kube-system </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--output</span><span class="token plain"> wide </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--selector</span><span class="token plain"> </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">app</span><span class="token operator">=</span><span class="token plain">nginx</span><br></div></code></pre></div></div>
<p>You need to edit <code>kube-system</code>. Options:</p>
<ol>
<li class=""><strong>Arrow keys</strong> - Hold until you get there. Slow.</li>
<li class=""><strong>Ctrl+Left/Right</strong> - Jump word by word. Better, but still multiple presses.</li>
<li class=""><strong>Home then Ctrl+Right</strong> - Start from beginning. Indirect.</li>
<li class=""><strong>Mouse</strong> - Works, but your hands leave the keyboard.</li>
</ol>
<p>None of these scale. A 15-word command means 15 potential targets.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-solution">The Solution<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#the-solution" class="hash-link" aria-label="Direct link to The Solution" title="Direct link to The Solution" translate="no">​</a></h2>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">$ kubectl get pods </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> kube-system </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--output</span><span class="token plain"> wide</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">                    ▲</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">Ctrl+X /</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">                    │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">→ </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">a</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">kubectl </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">s</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">get </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">d</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">pods </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">f</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">-n </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">g</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">kube-system </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">h</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">--output </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">j</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain">wide   ← overlay</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">┌─────────────────────────────────────┬────────────────────────────────────────┐</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│ jump</span><span class="token operator">&gt;</span><span class="token plain">                               │ kubectl controls the Kubernetes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">..</span><span class="token plain">.     │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│ ^S:wrap </span><span class="token operator">|</span><span class="token plain"> ^E:var </span><span class="token operator">|</span><span class="token plain"> ^R:replace </span><span class="token operator">|</span><span class="token plain"> ^M:m│                                        │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│─────────────────────────────────────│                                        │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│</span><span class="token operator">&gt;</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain">: kubectl                         │ Basic Commands </span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token plain">Beginner</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain">:             │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│  </span><span class="token number">2</span><span class="token plain">: get                             │   create    Create a resource          │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│  </span><span class="token number">3</span><span class="token plain">: pods                            │   expose    Expose a resource          │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│  </span><span class="token number">4</span><span class="token plain">: </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain">                              │   run       Run a particular image     │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│  </span><span class="token number">5</span><span class="token plain">: kube-system                     │   </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">set</span><span class="token plain">       Set specific features      │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│  </span><span class="token number">6</span><span class="token plain">: </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--output</span><span class="token plain">                        │                                        │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">│  </span><span class="token number">7</span><span class="token plain">: wide                            │ Basic Commands </span><span class="token punctuation" style="color:rgb(248, 248, 242)">(</span><span class="token plain">Intermediate</span><span class="token punctuation" style="color:rgb(248, 248, 242)">)</span><span class="token plain">:         │</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">└─────────────────────────────────────┴────────────────────────────────────────┘</span><br></div></code></pre></div></div>
<p>The overlay shows letter hints (<code>[a]kubectl [s]get [d]pods</code>) for instant jump. The picker has numbered items for fuzzy search, with <code>--help</code> preview on the right.</p>
<p>Type <code>kube</code>, hit enter. Cursor lands at <code>kube-system</code>. Edit, continue.</p>
<p>Or press <code>;</code> then <code>g</code> to jump directly to <code>kube-system</code>. No fuzzy searching needed.</p>
<p>The mental model matches how you think: "I want to change the namespace" not "I need to move left 6 words."</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="installation">Installation<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#installation" class="hash-link" aria-label="Direct link to Installation" title="Direct link to Installation" translate="no">​</a></h2>
<p>Requires fzf (or sk, peco, percol). Most of you have fzf already.</p>
<div class="language-zsh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-zsh codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain"># zinit</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">zinit light Piotr1215/zsh-jumper</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># antigen</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">antigen bundle Piotr1215/zsh-jumper</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># oh-my-zsh</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">git clone https://github.com/Piotr1215/zsh-jumper \</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-jumper</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># then add zsh-jumper to plugins in .zshrc</span><br></div></code></pre></div></div>
<p>Default binding: <code>Ctrl+X /</code></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="fzf-actions">FZF Actions<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#fzf-actions" class="hash-link" aria-label="Direct link to FZF Actions" title="Direct link to FZF Actions" translate="no">​</a></h2>
<p>Beyond jumping, the picker offers token manipulation:</p>
<table><thead><tr><th>Key</th><th>Action</th></tr></thead><tbody><tr><td><code>Enter</code></td><td>Jump to selected token</td></tr><tr><td><code>Ctrl+S</code></td><td>Wrap token in <code>"..."</code>, <code>'...'</code>, <code>$(...)</code>, etc.</td></tr><tr><td><code>Ctrl+E</code></td><td>Extract token to <code>UPPERCASE</code> variable</td></tr><tr><td><code>Ctrl+R</code></td><td>Replace token (delete and position cursor)</td></tr><tr><td><code>Ctrl+M</code></td><td>Move/swap token with another position</td></tr><tr><td><code>;</code></td><td>Enter instant mode (then press a-z to jump)</td></tr></tbody></table>
<p><strong>Variable extraction</strong> converts <code>my-gpu</code> to:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">MY_GPU</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">"my-gpu"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl run </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">test</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--image</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$MY_GPU</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><br></div></code></pre></div></div>
<p><strong>Instant mode</strong>: Press <code>;</code> then a hint letter to jump directly. The overlay on your command line shows the mapping.</p>
<p><strong>Replace mode</strong> is particularly useful: it deletes the token and leaves cursor in place, so you get full zsh tab completion for the replacement text.</p>
<p>For complex multiline editing, <code>Ctrl+X Ctrl+E</code> (edit in <code>$EDITOR</code>) still shines. zsh-jumper is for quick navigation and token manipulation.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="preview-panel">Preview Panel<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#preview-panel" class="hash-link" aria-label="Direct link to Preview Panel" title="Direct link to Preview Panel" translate="no">​</a></h2>
<p>The right panel shows contextual help:</p>
<ul>
<li class=""><strong>Commands</strong>: <code>--help</code> output (with bat highlighting), fallback to <code>tldr</code>, then <code>man</code></li>
<li class=""><strong>Files</strong>: Content preview via <code>bat</code> (or <code>head</code>)</li>
<li class=""><strong>Directories</strong>: <code>ls -la</code> listing</li>
</ul>
<p>This makes the picker double as a quick reference. Forgot what flags kubectl accepts? Just invoke the picker.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-word-numbering">Why Word Numbering?<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#why-word-numbering" class="hash-link" aria-label="Direct link to Why Word Numbering?" title="Direct link to Why Word Numbering?" translate="no">​</a></h2>
<p>The picker shows numbered words:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">1: kubectl</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">2: get</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">3: -n</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">4: --user</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">5: admin</span><br></div></code></pre></div></div>
<p>This prevents ambiguity. If you search for <code>-u</code>, you want <code>-n</code> at position 3, not a substring match inside <code>--user</code>. Numbers ensure exact cursor placement.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="configuration">Configuration<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#configuration" class="hash-link" aria-label="Direct link to Configuration" title="Direct link to Configuration" translate="no">​</a></h2>
<p>All options via zstyle, set before loading the plugin:</p>
<div class="language-zsh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-zsh codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain"># Force specific picker</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">zstyle ':zsh-jumper:' picker fzf</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># Custom picker options</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">zstyle ':zsh-jumper:' picker-opts '--height=50% --reverse --border'</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># Where cursor lands: start (default), middle, end</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">zstyle ':zsh-jumper:' cursor end</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"># Custom keybinding</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">zstyle ':zsh-jumper:' binding '^J'</span><br></div></code></pre></div></div>
<p>For tmux users: the plugin auto-detects tmux and uses <code>fzf-tmux</code> for a floating popup instead of inline fzf.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="vi-mode">Vi Mode<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#vi-mode" class="hash-link" aria-label="Direct link to Vi Mode" title="Direct link to Vi Mode" translate="no">​</a></h2>
<p>If you use vi mode in zsh, bind to both insert and command modes:</p>
<div class="language-zsh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-zsh codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">zstyle ':zsh-jumper:' disable-bindings yes</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">bindkey -M viins '^X/' zsh-jumper-widget</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">bindkey -M vicmd '^X/' zsh-jumper-widget</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="workflow-tips">Workflow Tips<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#workflow-tips" class="hash-link" aria-label="Direct link to Workflow Tips" title="Direct link to Workflow Tips" translate="no">​</a></h2>
<p>The built-in actions handle most edits directly:</p>
<ul>
<li class=""><strong>Wrong value?</strong> <code>Ctrl+R</code> to replace with full tab completion</li>
<li class=""><strong>Need quotes?</strong> <code>Ctrl+S</code> to wrap in <code>"..."</code>, <code>'...'</code>, or <code>$(...)</code></li>
<li class=""><strong>Reuse a value?</strong> <code>Ctrl+E</code> to extract to a variable</li>
<li class=""><strong>Wrong order?</strong> <code>Ctrl+M</code> to swap positions</li>
</ul>
<p>For anything else, jump to the word then use standard zsh:</p>
<ul>
<li class=""><code>Alt+D</code> - Delete word forward</li>
<li class=""><code>Ctrl+W</code> - Delete word backward</li>
<li class=""><code>Ctrl+K</code> - Kill to end of line</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="multiline-commands">Multiline Commands<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#multiline-commands" class="hash-link" aria-label="Direct link to Multiline Commands" title="Direct link to Multiline Commands" translate="no">​</a></h2>
<p>Works with backslash continuations:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">docker</span><span class="token plain"> run </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-d</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--name</span><span class="token plain"> my-container </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--network</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">host</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    nginx:latest</span><br></div></code></pre></div></div>
<p>Line continuation characters are filtered out. You see only actual command tokens in the picker.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="extensibility">Extensibility<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#extensibility" class="hash-link" aria-label="Direct link to Extensibility" title="Direct link to Extensibility" translate="no">​</a></h2>
<p>For power users, custom actions and previewers via TOML config:</p>
<div class="language-zsh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-zsh codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">zstyle ':zsh-jumper:' config ~/.config/zsh-jumper/config.toml</span><br></div></code></pre></div></div>
<div class="language-toml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-toml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token table class-name">actions</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">binding</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'ctrl-u'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">description</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'uppercase'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">script</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'~/.config/zsh-jumper/scripts/uppercase.sh'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token table class-name">previewers</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">pattern</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'^https?://'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">description</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'URL preview'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">script</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'~/.config/zsh-jumper/scripts/url-preview.sh'</span><br></div></code></pre></div></div>
<p>Run <code>zsh-jumper-list</code> to see all registered actions and previewers.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="performance">Performance<a href="https://cloudrumble.net/blog/2026/01/09/zsh-jumper-fuzzy-line-navigation#performance" class="hash-link" aria-label="Direct link to Performance" title="Direct link to Performance" translate="no">​</a></h2>
<p>CI measures and enforces thresholds on every commit:</p>
<table><thead><tr><th>Metric</th><th>What it measures</th><th>Threshold</th></tr></thead><tbody><tr><td><strong>Load</strong></td><td>Time to source the plugin</td><td>&lt; 200ms</td></tr><tr><td><strong>Parse</strong></td><td>Tokenize a 10-word command 100×</td><td>&lt; 150ms</td></tr><tr><td><strong>Leak</strong></td><td>Memory delta after 10 load/unload cycles</td><td>&lt; 400KB</td></tr></tbody></table>
<p>Live badges in the <a href="https://github.com/Piotr1215/zsh-jumper" target="_blank" rel="noopener noreferrer" class="">README</a> show actual values from the latest CI run. The plugin loads in under 1ms and cleans up properly on unload.</p>
<hr>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://github.com/Piotr1215/zsh-jumper" target="_blank" rel="noopener noreferrer" class="">zsh-jumper on GitHub</a></li>
<li class=""><a href="https://github.com/junegunn/fzf" target="_blank" rel="noopener noreferrer" class="">fzf</a> - Required fuzzy finder</li>
</ul>]]></content:encoded>
            <category>zsh</category>
            <category>terminal</category>
            <category>fzf</category>
            <category>productivity</category>
            <category>cli</category>
        </item>
        <item>
            <title><![CDATA[10 Neovim Features You're Probably Installing Plugins For]]></title>
            <link>https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features</link>
            <guid>https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features</guid>
            <pubDate>Sun, 04 Jan 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Multi-cursor editing, shell integration, incremental search preview - these are built into Neovim. No plugins required.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Neovim Built-in Features" src="https://cloudrumble.net/assets/images/neovim-features-hero-c5a29975639fdb2e01bd2e15caa5985d.png" width="1280" height="720" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>You install a plugin for multi-cursor editing. Another for shell integration. A third for incremental search preview. Your plugin count grows, startup time increases, and you debug compatibility issues between packages.</p>
<p>Most of these features exist in vanilla Neovim. Have existed since Vim 7. Here are 10 built-in features that replace common plugins.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="1-shell-filter--and-">1. Shell Filter: <code>!</code> and <code>!!</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#1-shell-filter--and-" class="hash-link" aria-label="Direct link to 1-shell-filter--and-" title="Direct link to 1-shell-filter--and-" translate="no">​</a></h2>
<p>Pipe any text through external commands. Every Unix tool becomes a text processor.</p>
<table><thead><tr><th>Command</th><th>Effect</th></tr></thead><tbody><tr><td><code>:.!date</code></td><td>Replace current line with date output</td></tr><tr><td><code>!ip sort</code></td><td>Sort current paragraph</td></tr><tr><td><code>!ap jq .</code></td><td>Format JSON in paragraph</td></tr><tr><td><code>:%!column -t</code></td><td>Align entire file into columns</td></tr></tbody></table>
<p>The motion after <code>!</code> defines the range. <code>ip</code> is "inner paragraph", <code>ap</code> is "around paragraph", <code>%</code> is whole file.</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Sort lines 10-20</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:10,20!sort</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Reverse selection (visual mode, then !)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:'&lt;,'&gt;!tac</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Format current function as JSON</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">!i{jq .</span><br></div></code></pre></div></div>
<p>This is the Unix philosophy applied to editing. <code>sort</code>, <code>uniq</code>, <code>jq</code>, <code>column</code>, <code>sed</code> - all available without plugins.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="2-visual-block-increment-g-ctrl-a">2. Visual Block Increment: <code>g Ctrl-a</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#2-visual-block-increment-g-ctrl-a" class="hash-link" aria-label="Direct link to 2-visual-block-increment-g-ctrl-a" title="Direct link to 2-visual-block-increment-g-ctrl-a" translate="no">​</a></h2>
<p>Select a column of numbers, press <code>g Ctrl-a</code>. They become a sequence.</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">item 0          item 1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">item 0    →     item 2</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">item 0          item 3</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">item 0          item 4</span><br></div></code></pre></div></div>
<p>Standard <code>Ctrl-a</code> increments by the same amount. <code>g Ctrl-a</code> creates a sequence where each line increases by one more than the previous.</p>
<p>Works for generating IDs, numbered lists, array indices. No macro needed.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="3-global-command-gpatterncmd">3. Global Command: <code>:g/pattern/cmd</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#3-global-command-gpatterncmd" class="hash-link" aria-label="Direct link to 3-global-command-gpatterncmd" title="Direct link to 3-global-command-gpatterncmd" translate="no">​</a></h2>
<p>Run any Ex command on every line matching a pattern.</p>
<table><thead><tr><th>Command</th><th>Effect</th></tr></thead><tbody><tr><td><code>:g/TODO/d</code></td><td>Delete all lines containing TODO</td></tr><tr><td><code>:g/^$/d</code></td><td>Delete all empty lines</td></tr><tr><td><code>:g/error/t$</code></td><td>Copy lines with "error" to end of file</td></tr><tr><td><code>:g/func/norm A;</code></td><td>Append semicolon to lines containing "func"</td></tr></tbody></table>
<p>The inverse is <code>:v/pattern/cmd</code> - runs on lines NOT matching the pattern.</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Delete all comments</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:g/^#/d</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Move all imports to top</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:g/^import/m0</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Number all TODO lines</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:let i=1 | g/TODO/s/TODO/\=i.'. TODO'/ | let i+=1</span><br></div></code></pre></div></div>
<p>This is bulk editing without regex gymnastics in the replacement string.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="4-command-line-registers-ctrl-r">4. Command-line Registers: <code>Ctrl-r</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#4-command-line-registers-ctrl-r" class="hash-link" aria-label="Direct link to 4-command-line-registers-ctrl-r" title="Direct link to 4-command-line-registers-ctrl-r" translate="no">​</a></h2>
<p>In <code>:</code> or <code>/</code> prompts, <code>Ctrl-r</code> inserts register contents. Stop typing long paths and patterns manually.</p>
<table><thead><tr><th>Shortcut</th><th>Inserts</th></tr></thead><tbody><tr><td><code>Ctrl-r Ctrl-w</code></td><td>Word under cursor</td></tr><tr><td><code>Ctrl-r "</code></td><td>Last yanked text</td></tr><tr><td><code>Ctrl-r /</code></td><td>Last search pattern</td></tr><tr><td><code>Ctrl-r =</code></td><td>Expression result</td></tr></tbody></table>
<p>Practical example: cursor on <code>myFunction</code>, want to search for it:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">/Ctrl-r Ctrl-w&lt;Enter&gt;</span><br></div></code></pre></div></div>
<p>Inserts <code>myFunction</code> into the search prompt. Works in substitute commands too:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:%s/Ctrl-r Ctrl-w/newName/g</span><br></div></code></pre></div></div>
<p>The <code>Ctrl-r =</code> variant evaluates expressions:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">:echo Ctrl-r =system('date')&lt;Enter&gt;</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="5-normal-on-selection-norm">5. Normal on Selection: <code>:'&lt;,'&gt;norm</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#5-normal-on-selection-norm" class="hash-link" aria-label="Direct link to 5-normal-on-selection-norm" title="Direct link to 5-normal-on-selection-norm" translate="no">​</a></h2>
<p>Run normal mode commands on every selected line. This is multi-cursor without plugins.</p>
<p>Select lines visually, then:</p>
<table><thead><tr><th>Command</th><th>Effect</th></tr></thead><tbody><tr><td><code>:'&lt;,'&gt;norm A,</code></td><td>Append comma to each line</td></tr><tr><td><code>:'&lt;,'&gt;norm I# </code></td><td>Prepend "# " to each line (comment)</td></tr><tr><td><code>:'&lt;,'&gt;norm @q</code></td><td>Run macro q on each line</td></tr><tr><td><code>:'&lt;,'&gt;norm f=lD</code></td><td>Delete everything after = on each line</td></tr></tbody></table>
<p>The <code>norm</code> command executes keystrokes as if typed in normal mode. Combined with a range, it applies to multiple lines.</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Convert list to array elements</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Before:      After:</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" apple        "apple",</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" banana  →    "banana",</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" cherry       "cherry",</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:'&lt;,'&gt;norm I"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:'&lt;,'&gt;norm A",</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="6-the-g-commands">6. The <code>g</code> Commands<a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#6-the-g-commands" class="hash-link" aria-label="Direct link to 6-the-g-commands" title="Direct link to 6-the-g-commands" translate="no">​</a></h2>
<p>Navigation jumps you probably don't use:</p>
<table><thead><tr><th>Command</th><th>Effect</th></tr></thead><tbody><tr><td><code>gi</code></td><td>Go to last insert position AND enter insert mode</td></tr><tr><td><code>g;</code></td><td>Jump to previous change location</td></tr><tr><td><code>g,</code></td><td>Jump to next change location</td></tr><tr><td><code>gv</code></td><td>Reselect last visual selection</td></tr></tbody></table>
<p><code>gi</code> is the one I use most. Edit something, scroll away to reference code, <code>gi</code> puts you back exactly where you were typing.</p>
<p><code>g;</code> and <code>g,</code> navigate the change list - every position where you modified text. Different from jump list (<code>Ctrl-o</code>/<code>Ctrl-i</code>) which tracks navigation.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="7-auto-marks">7. Auto-Marks<a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#7-auto-marks" class="hash-link" aria-label="Direct link to 7. Auto-Marks" title="Direct link to 7. Auto-Marks" translate="no">​</a></h2>
<p>Vim sets marks automatically. You don't need to remember to set them.</p>
<table><thead><tr><th>Mark</th><th>Position</th></tr></thead><tbody><tr><td><code>``</code></td><td>Previous cursor position (toggle back)</td></tr><tr><td><code>`.</code></td><td>Last change</td></tr><tr><td><code>`"</code></td><td>Position when file was last closed</td></tr><tr><td><code>`[</code> / <code>`]</code></td><td>Start/end of last yank or change</td></tr></tbody></table>
<p>The backtick goes to exact position. Apostrophe goes to line start.</p>
<p><code> </code> <code>(double backtick) is the most useful - it toggles between current position and previous. Edit something, jump to a definition, ```</code> ``` returns you instantly.</p>
<p><code>`[</code> and <code>`]</code> mark the boundaries of your last operation. Useful for reselecting: <code>gv</code> reselects visual, but <code>`[v`]</code> selects the range you just yanked or changed.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="8-command-history-window-q">8. Command History Window: <code>q:</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#8-command-history-window-q" class="hash-link" aria-label="Direct link to 8-command-history-window-q" title="Direct link to 8-command-history-window-q" translate="no">​</a></h2>
<p>Press <code>q:</code> and your command history opens in a buffer. Full editing. Search with <code>/</code>. Modify any line. Press Enter to execute.</p>
<table><thead><tr><th>Shortcut</th><th>Opens</th></tr></thead><tbody><tr><td><code>q:</code></td><td>Command history</td></tr><tr><td><code>q/</code></td><td>Search history</td></tr><tr><td><code>Ctrl-f</code></td><td>Switch from cmdline to history window</td></tr></tbody></table>
<p>The third one is key. Start typing a complex command, realize you want to edit it properly, hit <code>Ctrl-f</code>. The command line becomes a buffer.</p>
<p>Compose multi-part commands, edit previous attempts, combine parts from different history entries. Then Enter executes the current line.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="9-live-substitution-preview-inccommand">9. Live Substitution Preview: <code>inccommand</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#9-live-substitution-preview-inccommand" class="hash-link" aria-label="Direct link to 9-live-substitution-preview-inccommand" title="Direct link to 9-live-substitution-preview-inccommand" translate="no">​</a></h2>
<p>See substitution results before executing. Add to your config:</p>
<div class="language-lua codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-lua codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">vim.opt.inccommand = "split"</span><br></div></code></pre></div></div>
<p>Now when you type <code>:%s/old/new/</code>, matches highlight in real-time and a preview window shows what will change.</p>
<p><code>split</code> shows preview in a split window. <code>nosplit</code> highlights inline only.</p>
<p>This catches regex mistakes before they happen. See exactly what <code>:s/foo\(bar\)/\1/</code> will do before pressing Enter.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="10-copymove-lines-t-and-m">10. Copy/Move Lines: <code>:t</code> and <code>:m</code><a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#10-copymove-lines-t-and-m" class="hash-link" aria-label="Direct link to 10-copymove-lines-t-and-m" title="Direct link to 10-copymove-lines-t-and-m" translate="no">​</a></h2>
<p>Duplicate or relocate lines without touching registers. Your yank stays intact.</p>
<table><thead><tr><th>Command</th><th>Effect</th></tr></thead><tbody><tr><td><code>:t.</code></td><td>Duplicate current line below</td></tr><tr><td><code>:t0</code></td><td>Copy current line to top of file</td></tr><tr><td><code>:t$</code></td><td>Copy current line to end of file</td></tr><tr><td><code>:m+2</code></td><td>Move current line 2 lines down</td></tr><tr><td><code>:'&lt;,'&gt;t.</code></td><td>Duplicate selection below cursor</td></tr></tbody></table>
<p><code>:t</code> is copy (think "transfer"), <code>:m</code> is move. Both take a destination line number.</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Copy line 5 to after line 10</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:5t10</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Move lines 1-3 to end of file</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:1,3m$</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">" Duplicate current line 5 times</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:t.|t.|t.|t.|t.</span><br></div></code></pre></div></div>
<p>No register pollution. <code>p</code> still pastes what you yanked earlier.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="bonus-mark-based-ranges">Bonus: Mark-Based Ranges<a href="https://cloudrumble.net/blog/2026/01/04/neovim-builtin-features#bonus-mark-based-ranges" class="hash-link" aria-label="Direct link to Bonus: Mark-Based Ranges" title="Direct link to Bonus: Mark-Based Ranges" translate="no">​</a></h2>
<p>Set marks at function boundaries, substitute only within:</p>
<div class="language-vim codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-vim codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">ma          " mark start with 'a'</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">... navigate to end ...</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">mb          " mark end with 'b'</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">:'a,'b s/old/new/g</span><br></div></code></pre></div></div>
<p>Scoped refactoring without selecting anything. The substitution only affects lines between marks a and b.</p>
<hr>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://neovim.io/doc/user/" target="_blank" rel="noopener noreferrer" class="">Neovim documentation</a></li>
<li class=""><a href="https://youtu.be/7D1k1l-Q8rA" target="_blank" rel="noopener noreferrer" class="">Video covering these features</a></li>
<li class=""><a href="https://github.com/Piotr1215/dotfiles" target="_blank" rel="noopener noreferrer" class="">My dotfiles</a></li>
</ul>]]></content:encoded>
            <category>neovim</category>
            <category>vim</category>
            <category>productivity</category>
            <category>terminal</category>
            <category>editor</category>
        </item>
        <item>
            <title><![CDATA[Your Shortcuts YAML is Always Outdated (Parse Config Files Instead)]]></title>
            <link>https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system</link>
            <guid>https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system</guid>
            <pubDate>Tue, 30 Dec 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Static shortcuts files go stale within days. Parse your actual config files dynamically with confhelp and use tealdeer for everything else.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Shortcuts Help" src="https://cloudrumble.net/assets/images/shortcuts-hero-6ccf67c124acc7d50df527a4c9c11156.jpg" width="4928" height="3264" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>You add a new tmux binding. A week later you're hunting through <code>.tmux.conf</code> because you can't remember what you mapped to <code>prefix + g</code>. The shortcuts.yaml you maintain? Three months out of date.</p>
<p>The problem isn't discipline. It's architecture. Any system requiring manual sync between source of truth (config files) and documentation (shortcuts file) will drift.</p>
<p>Parse your config files directly. For workflows that don't map to a single keybinding, use tealdeer custom pages. One popup, two modes, zero maintenance.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-architecture">The Architecture<a href="https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system#the-architecture" class="hash-link" aria-label="Direct link to The Architecture" title="Direct link to The Architecture" translate="no">​</a></h2>
<p>Two types of "help" information exist:</p>
<p><strong>Config-derived</strong> - patterns living in actual config files:</p>
<ul>
<li class="">tmux bindings in <code>.tmux.conf</code></li>
<li class="">zsh bindkeys in <code>.zshrc</code></li>
<li class="">aliases in <code>.zsh_aliases</code></li>
<li class="">abbreviations in <code>.zsh_abbreviations</code></li>
</ul>
<p><strong>Workflow-derived</strong> - multi-step processes and reference material:</p>
<ul>
<li class="">"How do I copy in tmux?" (5 steps, not one keybinding)</li>
<li class="">"What's the taskwarrior syntax?" (cheatsheet)</li>
</ul>
<p>For config-derived, parse the files. For workflow-derived, use tealdeer custom pages.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="confhelp">confhelp<a href="https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system#confhelp" class="hash-link" aria-label="Direct link to confhelp" title="Direct link to confhelp" translate="no">​</a></h2>
<p>I built <a href="https://github.com/Piotr1215/confhelp" target="_blank" rel="noopener noreferrer" class="">confhelp</a> to solve this. Define regex patterns in TOML, point at your config files:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">pip </span><span class="token function" style="color:rgb(80, 250, 123)">install</span><span class="token plain"> confhelp</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">confhelp </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--init</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># creates ~/.config/confhelp/config.toml</span><br></div></code></pre></div></div>
<div class="language-toml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-toml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># ~/.config/confhelp/config.toml</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token table class-name">tmux</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">paths</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">".tmux.conf"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">match_line</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"^bind"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">regex</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'bind(?:-key)?\s+(?:-n\s+)?(\S+)(.*)'</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">key_group</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">desc_group</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token number">2</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">type</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"tmux"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">truncate</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token number">100</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token table class-name">alias</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">paths</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">".zsh_aliases"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">".zsh_claude"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">regex</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"alias\\s+(?:-[gs]\\s+)?([^=]+)=(.*)"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">key_group</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">desc_group</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token number">2</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">type</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"alias"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">strip_quotes</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token boolean">true</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token table class-name">abbrev</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">paths</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">".zsh_abbreviations"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">mode</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"abbrev_block"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">type</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"abbrev"</span><br></div></code></pre></div></div>
<p>Run it:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">confhelp </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token plain"> ~/dotfiles            </span><span class="token comment" style="color:rgb(98, 114, 164)"># list all entries</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">confhelp </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token plain"> ~/dotfiles </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--select</span><span class="token plain">   </span><span class="token comment" style="color:rgb(98, 114, 164)"># fzf selection, outputs file:line</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">confhelp </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token plain"> ~/dotfiles </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--edit</span><span class="token plain">     </span><span class="token comment" style="color:rgb(98, 114, 164)"># fzf selection, opens $EDITOR at line</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">confhelp </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token plain"> ~/dotfiles </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--conflicts</span><span class="token plain"> </span><span class="token comment" style="color:rgb(98, 114, 164)"># find keys bound multiple times</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">confhelp </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token plain"> ~/dotfiles </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--check</span><span class="token plain">    </span><span class="token comment" style="color:rgb(98, 114, 164)"># find patterns your regex missed</span><br></div></code></pre></div></div>
<p>Output is pipe-delimited: <code>[type]|key|description|file:line</code></p>
<p>Each entry includes the exact file and line number. The <code>--edit</code> flag gives you jump-to-definition out of the box.</p>
<p>Set <code>base_dirs</code> in your config.toml and you can just run <code>confhelp</code> without the <code>-b</code> flag.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="fzf-integration">fzf Integration<a href="https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system#fzf-integration" class="hash-link" aria-label="Direct link to fzf Integration" title="Direct link to fzf Integration" translate="no">​</a></h2>
<p>For advanced workflows (like combining with tealdeer), a wrapper script spawns a centered popup with mode switching:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">selection</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">confhelp </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-b</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable string variable" style="color:rgb(189, 147, 249);font-style:italic">$DOTFILES</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">|</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable function" style="color:rgb(80, 250, 123);font-style:italic">column</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-t</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> -s</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">'|'</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">|</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> fzf </span><span class="token variable punctuation" style="color:rgb(248, 248, 242);font-style:italic">\</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">    </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--header</span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">=</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">'Enter=jump | Ctrl+G=tealdeer'</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable punctuation" style="color:rgb(248, 248, 242);font-style:italic">\</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">    </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--bind</span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">=</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">'ctrl-g:become(echo SWITCH_TLDR)'</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable punctuation" style="color:rgb(248, 248, 242);font-style:italic">\</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">    </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--height</span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">=</span><span class="token variable number" style="color:rgb(189, 147, 249);font-style:italic">100</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">% </span><span class="token variable punctuation" style="color:rgb(248, 248, 242);font-style:italic">\</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">    </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--layout</span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">reverse</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">if</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$selection</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">then</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">file_line</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable builtin class-name" style="color:rgb(189, 147, 249);font-style:italic">echo</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable string variable" style="color:rgb(189, 147, 249);font-style:italic">$selection</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">|</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable function" style="color:rgb(80, 250, 123);font-style:italic">awk</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">'{print $NF}'</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">file</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable builtin class-name" style="color:rgb(189, 147, 249);font-style:italic">echo</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable string variable" style="color:rgb(189, 147, 249);font-style:italic">$file_line</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">|</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable function" style="color:rgb(80, 250, 123);font-style:italic">cut</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> -d: </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f1</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">line</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable builtin class-name" style="color:rgb(189, 147, 249);font-style:italic">echo</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable string variable" style="color:rgb(189, 147, 249);font-style:italic">$file_line</span><span class="token variable string" style="color:rgb(255, 121, 198);font-style:italic">"</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">|</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable function" style="color:rgb(80, 250, 123);font-style:italic">cut</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> -d: </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f2</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    nvim </span><span class="token string" style="color:rgb(255, 121, 198)">"+</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$line</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">${DOTFILES}</span><span class="token string" style="color:rgb(255, 121, 198)">/</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">${file}</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">fi</span><br></div></code></pre></div></div>
<p>The <code>become()</code> action replaces fzf with a new command without closing the terminal. Critical for smooth mode switching between bindings and tealdeer.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="tealdeer-custom-pages">Tealdeer Custom Pages<a href="https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system#tealdeer-custom-pages" class="hash-link" aria-label="Direct link to Tealdeer Custom Pages" title="Direct link to Tealdeer Custom Pages" translate="no">​</a></h2>
<p>Tealdeer reads custom pages from a configured directory:</p>
<div class="language-toml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-toml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># ~/.config/tealdeer/config.toml</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token table class-name">directories</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key property">custom_pages_dir</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"/home/decoder/.local/share/tealdeer/pages"</span><br></div></code></pre></div></div>
<p>Custom pages need <code>.page.md</code> extension:</p>
<div class="language-markdown codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-markdown codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token title important punctuation" style="color:rgb(248, 248, 242)">#</span><span class="token title important"> tmux-copy-mode</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token blockquote punctuation" style="color:rgb(248, 248, 242)">&gt;</span><span class="token plain"> Tmux copy mode with vi keybindings</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Enter copy mode:</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token code-snippet code keyword" style="color:rgb(189, 147, 249);font-style:italic">`prefix + [`</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Start selection:</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token code-snippet code keyword" style="color:rgb(189, 147, 249);font-style:italic">`v`</span><span class="token plain"> or </span><span class="token code-snippet code keyword" style="color:rgb(189, 147, 249);font-style:italic">`V`</span><span class="token plain"> for line</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token list punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> Copy selection:</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token code-snippet code keyword" style="color:rgb(189, 147, 249);font-style:italic">`y`</span><br></div></code></pre></div></div>
<p>Ctrl+G in the bindings popup switches to tealdeer browser. Custom pages appear with <code>[custom]</code> marker.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="result">Result<a href="https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system#result" class="hash-link" aria-label="Direct link to Result" title="Direct link to Result" translate="no">​</a></h2>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Aspect</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Before</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">After</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Source of truth</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">shortcuts.yaml (manual)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Config files (parsed)</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Maintenance</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Constant drift</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Zero</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Jump to definition</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Search manually</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Enter → nvim at line</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Workflow docs</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Scattered notes</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">tealdeer pages</td></tr></tbody></table></div>
<p>Add a binding to <code>.tmux.conf</code>, it appears in the popup immediately. No yaml to update.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="gotchas">Gotchas<a href="https://cloudrumble.net/blog/2025/12/30/dynamic-shortcuts-help-system#gotchas" class="hash-link" aria-label="Direct link to Gotchas" title="Direct link to Gotchas" translate="no">​</a></h2>
<ol>
<li class="">
<p><strong>Tealdeer file extension</strong> - Custom pages must end in <code>.page.md</code>, not <code>.md</code>.</p>
</li>
<li class="">
<p><strong>fzf become() vs execute()</strong> - <code>execute()</code> runs a command and returns to fzf. <code>become()</code> replaces fzf entirely. For mode switching, you need <code>become()</code>.</p>
</li>
<li class="">
<p><strong>Column alignment</strong> - The parser outputs pipe-separated values. <code>column -t -s'|'</code> aligns them.</p>
</li>
</ol>
<hr>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://pypi.org/project/confhelp/" target="_blank" rel="noopener noreferrer" class="">confhelp on PyPI</a></li>
<li class=""><a href="https://github.com/Piotr1215/confhelp" target="_blank" rel="noopener noreferrer" class="">confhelp on GitHub</a></li>
<li class=""><a href="https://github.com/Piotr1215/confhelp/blob/main/examples/alacritty-popup.sh" target="_blank" rel="noopener noreferrer" class="">Example wrapper script</a></li>
<li class=""><a href="https://dbrgn.github.io/tealdeer/" target="_blank" rel="noopener noreferrer" class="">tealdeer docs</a></li>
<li class="">Inspired by <a href="https://github.com/sarthakbhatkar1/Extracto" target="_blank" rel="noopener noreferrer" class="">Extracto</a></li>
</ul>]]></content:encoded>
            <category>dotfiles</category>
            <category>terminal</category>
            <category>fzf</category>
            <category>tealdeer</category>
            <category>productivity</category>
            <category>python</category>
        </item>
        <item>
            <title><![CDATA[Your Kubernetes Cluster is Unbalanced (And the Scheduler Won't Fix It)]]></title>
            <link>https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing</link>
            <guid>https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing</guid>
            <pubDate>Mon, 29 Dec 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[The Kubernetes scheduler places pods once and never looks back. Descheduler fixes the imbalance by evicting pods from overutilized nodes.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Descheduler" src="https://cloudrumble.net/assets/images/descheduler-hero-bad49ccdd834f462599523ee82ed907b.jpg" width="4747" height="3165" class="img_ev3q"></p>
<p><em>Photo by <a href="https://unsplash.com/@plhnk" target="_blank" rel="noopener noreferrer" class="">Paul Hanaoka</a> on <a href="https://unsplash.com/photos/a-long-hallway-with-glass-doors-leading-to-another-room-s0XabTAKvak" target="_blank" rel="noopener noreferrer" class="">Unsplash</a></em></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>The Kubernetes scheduler is lazy. It places pods when they're created, picks the best node at that moment, and never thinks about it again. Weeks later, one node is at 75% memory while another sits at 40%. The scheduler doesn't care - its job was done the moment the pod started.</p>
<p><a href="https://github.com/kubernetes-sigs/descheduler" target="_blank" rel="noopener noreferrer" class="">Descheduler</a> fixes this. It runs every few minutes, finds imbalanced nodes, and evicts pods so the scheduler gets another chance to place them better. Set it up once, cluster self-balances automatically.</p>
<p>Here's how to configure it for a homelab. Takes about 20 minutes to get right.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-this-matters">Why This Matters<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#why-this-matters" class="hash-link" aria-label="Direct link to Why This Matters" title="Direct link to Why This Matters" translate="no">​</a></h2>
<p>Kubernetes scheduling is a point-in-time decision. When a pod is created, the scheduler picks the best available node based on current conditions. But clusters are dynamic - nodes get added, pods come and go, resource requests change with updates.</p>
<p>After a few weeks, you end up with hot nodes and cold nodes. Here's what my homelab looked like:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">NAME           CPU(cores)   MEMORY%</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kube-worker1   438m         75%       &lt;-- carrying the load</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kube-worker4   266m         41%       &lt;-- sitting idle</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kube-worker6   171m         42%       &lt;-- sitting idle</span><br></div></code></pre></div></div>
<p>Worker1 was handling most of the work while worker4 and worker6 did nothing.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="requests-vs-actual-usage">Requests vs Actual Usage<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#requests-vs-actual-usage" class="hash-link" aria-label="Direct link to Requests vs Actual Usage" title="Direct link to Requests vs Actual Usage" translate="no">​</a></h2>
<p>Before configuring descheduler, you need to understand what it actually measures. This is where most people get it wrong.</p>
<p><strong>Descheduler uses REQUESTED resources, not actual usage.</strong></p>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Metric</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Command</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Descheduler Uses?</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Actual CPU/Memory</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">kubectl top nodes</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">No</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Requested CPU/Memory</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">kubectl describe node</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Yes</td></tr></tbody></table></div>
<p>A node might show 5% actual CPU usage but 70% requested. From a scheduling perspective, that node is "full" - the scheduler reserved that capacity even if the pods aren't using it.</p>
<p>Check what descheduler sees:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl describe </span><span class="token function" style="color:rgb(80, 250, 123)">node</span><span class="token plain"> kube-worker1 </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">grep</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-A5</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Allocated resources"</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">Allocated resources:</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  Resource           Requests         Limits</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  --------           --------         ------</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  cpu                2368m (69%)      5490m (161%)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  memory             4769334Ki (65%)  9343689984 (126%)</span><br></div></code></pre></div></div>
<p>Those percentages (69% CPU, 65% memory) are what descheduler uses. Not <code>kubectl top nodes</code>.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="install-descheduler">Install Descheduler<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#install-descheduler" class="hash-link" aria-label="Direct link to Install Descheduler" title="Direct link to Install Descheduler" translate="no">​</a></h2>
<p>Descheduler runs as a CronJob. The Helm chart is the easiest way:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># values.yaml</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> CronJob</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">schedule</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"*/5 * * * *"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">deschedulerPolicy</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">profiles</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> default</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">pluginConfig</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> DefaultEvictor</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">args</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">ignorePvcPods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">true</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">evictLocalStoragePods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">false</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> LowNodeUtilization</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">args</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">thresholds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">cpu</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">55</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">30</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">pods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">30</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">targetThresholds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">cpu</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">70</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">70</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">              </span><span class="token key atrule">pods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">50</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">plugins</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">balance</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">enabled</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> LowNodeUtilization</span><br></div></code></pre></div></div>
<p>Deploy:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">helm </span><span class="token function" style="color:rgb(80, 250, 123)">install</span><span class="token plain"> descheduler descheduler </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--repo</span><span class="token plain"> https://kubernetes-sigs.github.io/descheduler/ </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--namespace</span><span class="token plain"> descheduler </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  --create-namespace </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f</span><span class="token plain"> values.yaml</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="understanding-thresholds">Understanding Thresholds<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#understanding-thresholds" class="hash-link" aria-label="Direct link to Understanding Thresholds" title="Direct link to Understanding Thresholds" translate="no">​</a></h2>
<p>This is where I wasted an hour. LowNodeUtilization has two threshold sets that work differently:</p>
<p><strong><code>thresholds</code></strong> - defines UNDERUTILIZED nodes</p>
<ul>
<li class="">A node is underutilized when ALL metrics are BELOW these values</li>
<li class="">These nodes receive evicted pods</li>
</ul>
<p><strong><code>targetThresholds</code></strong> - defines OVERUTILIZED nodes</p>
<ul>
<li class="">A node is overutilized when ANY metric is ABOVE these values</li>
<li class="">Pods get evicted FROM these nodes</li>
</ul>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">                    thresholds        targetThresholds</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">                         |                   |</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  UNDERUTILIZED         |    BALANCED       |    OVERUTILIZED</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  (receives pods)       |                   |    (evicts pods)</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  &lt;---------------------|-------------------|--------------------&gt;</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">         0%            55%                 70%               100%</span><br></div></code></pre></div></div>
<p>Descheduler evicts pods from overutilized nodes. The scheduler then places them on underutilized nodes.</p>
<p><strong>Critical</strong>: If no nodes qualify as underutilized, descheduler does nothing. If no nodes qualify as overutilized, descheduler does nothing. Both conditions must be true.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="tuning-for-your-cluster">Tuning for Your Cluster<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#tuning-for-your-cluster" class="hash-link" aria-label="Direct link to Tuning for Your Cluster" title="Direct link to Tuning for Your Cluster" translate="no">​</a></h2>
<p>The default thresholds (cpu: 20, memory: 20) assume your nodes have low resource requests. Most real clusters have higher utilization - mine certainly did.</p>
<p>Check your actual request percentages first:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">for</span><span class="token plain"> </span><span class="token for-or-select variable" style="color:rgb(189, 147, 249);font-style:italic">node</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">in</span><span class="token plain"> </span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">kubectl get nodes </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-o</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> name </span><span class="token variable operator" style="color:rgb(189, 147, 249);font-style:italic">|</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable function" style="color:rgb(80, 250, 123);font-style:italic">cut</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> -d/ </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-f2</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">do</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"=== </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$node</span><span class="token string" style="color:rgb(255, 121, 198)"> ==="</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  kubectl describe </span><span class="token function" style="color:rgb(80, 250, 123)">node</span><span class="token plain"> </span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$node</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">grep</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-A3</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Allocated resources"</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">grep</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-E</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"cpu|memory"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">done</span><br></div></code></pre></div></div>
<p>Then set thresholds based on what you see:</p>
<ul>
<li class="">If your coldest node is at 45% CPU requests, set <code>thresholds.cpu: 55</code> (above it)</li>
<li class="">If your hottest node is at 75% memory requests, set <code>targetThresholds.memory: 70</code> (below it)</li>
</ul>
<p>I started with the defaults and descheduler did nothing. My coldest node had 45% CPU requests - above the 20% threshold. No node qualified as "underutilized" so there was nowhere to put evicted pods.</p>
<p>After checking my actual cluster state:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">thresholds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">cpu</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">55</span><span class="token plain">      </span><span class="token comment" style="color:rgb(98, 114, 164)"># nodes below 55% CPU are underutilized</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">30</span><span class="token plain">   </span><span class="token comment" style="color:rgb(98, 114, 164)"># nodes below 30% memory are underutilized</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">pods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">30</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">targetThresholds</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">cpu</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">70</span><span class="token plain">      </span><span class="token comment" style="color:rgb(98, 114, 164)"># nodes above 70% CPU are overutilized</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">memory</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">70</span><span class="token plain">   </span><span class="token comment" style="color:rgb(98, 114, 164)"># nodes above 70% memory are overutilized</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">pods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">50</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="protecting-pvc-pods">Protecting PVC Pods<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#protecting-pvc-pods" class="hash-link" aria-label="Direct link to Protecting PVC Pods" title="Direct link to Protecting PVC Pods" translate="no">​</a></h2>
<p>Not all pods should be evicted. This is important:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> DefaultEvictor</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">args</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">ignorePvcPods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">true</span><span class="token plain">           </span><span class="token comment" style="color:rgb(98, 114, 164)"># Don't evict pods with PVCs</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">evictLocalStoragePods</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">false</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># Don't evict pods with emptyDir</span><br></div></code></pre></div></div>
<p>Why protect PVC pods? Longhorn and similar storage use ReadWriteOnce volumes. Evicting a pod means:</p>
<ol>
<li class="">Old pod terminates</li>
<li class="">Volume detaches from old node</li>
<li class="">New pod schedules on different node</li>
<li class="">Volume attaches to new node</li>
<li class="">Pod starts</li>
</ol>
<p>If step 2 doesn't complete before step 4, you get Multi-Attach errors. The new pod hangs waiting for the volume while the old node still has it attached.</p>
<p>I had <code>ignorePvcPods: false</code> initially. Got several Multi-Attach errors before I figured this out.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="verify-its-working">Verify It's Working<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#verify-its-working" class="hash-link" aria-label="Direct link to Verify It's Working" title="Direct link to Verify It's Working" translate="no">​</a></h2>
<p>After deploying, watch for LowNodeUtilization events:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl get events </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-A</span><span class="token plain"> </span><span class="token operator">|</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">grep</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-i</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"LowNodeUtilization"</span><br></div></code></pre></div></div>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">prometheus   Normal  LowNodeUtilization  pod/kube-state-metrics-7c8b8bf58c-88qqq</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  pod eviction from kube-worker1 node by sigs.k8s.io/descheduler</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vpa          Normal  LowNodeUtilization  pod/vpa-updater-f59cccc88-fp2t6</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  pod eviction from kube-worker1 node by sigs.k8s.io/descheduler</span><br></div></code></pre></div></div>
<p>Check node balance:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token function" style="color:rgb(80, 250, 123)">top</span><span class="token plain"> nodes</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="results">Results<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#results" class="hash-link" aria-label="Direct link to Results" title="Direct link to Results" translate="no">​</a></h2>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Node</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Before</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">After</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">worker1 (hot)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">75% / 77%</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">69% / 65%</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">worker4 (cold)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">50% / 25%</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">50% / 25%</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">worker5</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">45% / 30%</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">48% / 35%</td></tr></tbody></table></div>
<p>Worker1's request percentage dropped from 75% to 65%. The cluster is balanced now, and descheduler runs every 5 minutes to keep it that way.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="gotchas">Gotchas<a href="https://cloudrumble.net/blog/2025/12/29/kubernetes-descheduler-automatic-rebalancing#gotchas" class="hash-link" aria-label="Direct link to Gotchas" title="Direct link to Gotchas" translate="no">​</a></h2>
<ol>
<li class="">
<p><strong>Thresholds are percentages of REQUESTS</strong> - Don't use <code>kubectl top nodes</code> to set thresholds. Use <code>kubectl describe node</code> to see request percentages.</p>
</li>
<li class="">
<p><strong>ALL metrics must be below thresholds for underutilized</strong> - If you set cpu: 20 but your coldest node has 45% CPU requests, no node qualifies as underutilized. Descheduler does nothing.</p>
</li>
<li class="">
<p><strong>The comparison is greater-than, not greater-than-or-equal</strong> - A node at exactly 70% CPU with <code>targetThresholds.cpu: 70</code> is NOT overutilized. 70 is not greater than 70.</p>
</li>
<li class="">
<p><strong>Jobs get auto-deleted</strong> - CronJob default history limits are low. If debugging, set <code>successfulJobsHistoryLimit: 3</code> to keep completed jobs around for log inspection.</p>
</li>
<li class="">
<p><strong>DaemonSet pods can't be evicted</strong> - Don't count them when calculating node utilization. A node with 8 DaemonSet pods still has room for workloads.</p>
</li>
</ol>
<hr>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://github.com/kubernetes-sigs/descheduler" target="_blank" rel="noopener noreferrer" class="">Descheduler GitHub</a></li>
<li class=""><a href="https://github.com/kubernetes-sigs/descheduler#lownodeutilization" target="_blank" rel="noopener noreferrer" class="">LowNodeUtilization docs</a></li>
<li class=""><a href="https://github.com/Piotr1215/homelab/tree/main/gitops/apps/descheduler" target="_blank" rel="noopener noreferrer" class="">My homelab descheduler config</a></li>
</ul>]]></content:encoded>
            <category>kubernetes</category>
            <category>homelab</category>
            <category>descheduler</category>
            <category>resource-management</category>
            <category>scheduling</category>
        </item>
        <item>
            <title><![CDATA[MinIO is Dead. Garage S3 is Better Anyway (Homelab Migration Guide)]]></title>
            <link>https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration</link>
            <guid>https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration</guid>
            <pubDate>Mon, 22 Dec 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[MinIO CE entered maintenance mode. No more Docker images, stripped console, frozen development. Migrate to Garage S3 before it's too late.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Garage S3 Migration" src="https://cloudrumble.net/assets/images/garage-hero-100800f67e55b808101ae127f5cbe74f.jpg" width="6654" height="4436" class="img_ev3q"></p>
<p><em>Photo by <a href="https://unsplash.com/@churchoftodd" target="_blank" rel="noopener noreferrer" class="">todd kent</a> on <a href="https://unsplash.com/photos/black-metal-tool-lot-onnJOfF-okU" target="_blank" rel="noopener noreferrer" class="">Unsplash</a></em></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>MinIO Community Edition is dead. On December 3, 2025, MinIO Inc. <a href="https://github.com/minio/minio" target="_blank" rel="noopener noreferrer" class="">announced maintenance mode</a>: no new features, no PR reviews, no Docker images, no RPM/DEB packages. Critical security fixes only "on a case-by-case basis."</p>
<p>This didn't come out of nowhere. Back in May 2025, they gutted the console - the GUI that made MinIO actually usable. What's left is a glorified file browser. User management, policies, replication config? Moved to the paid AIStor product. The whole thing is open source cosplay now - the repo exists, but it's just a funnel to their commercial offering.</p>
<p>The <a href="https://www.reddit.com/r/selfhosted/comments/1pd97nq/minio_is_in_maintenance_mode_and_is_no_longer/" target="_blank" rel="noopener noreferrer" class="">r/selfhosted</a> and <a href="https://news.ycombinator.com/item?id=46136023" target="_blank" rel="noopener noreferrer" class="">Hacker News</a> threads are worth reading. Thousands of Helm charts and CI/CD pipelines depending on <code>minio/minio</code> images are now broken. Bitnami stopped their MinIO builds too.</p>
<p>Time to migrate. Honestly? For a homelab, Garage is the better choice anyway. 50MB footprint vs 500MB+. Written in Rust. Built-in static web hosting. Actively maintained. MinIO's collapse just forced me to make the switch I should have made earlier.</p>
<p>Here's how to set up Garage on Kubernetes. Takes about 15 minutes.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-garage">Why Garage?<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#why-garage" class="hash-link" aria-label="Direct link to Why Garage?" title="Direct link to Why Garage?" translate="no">​</a></h2>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Feature</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">MinIO</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Garage</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Memory Usage</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">500MB+</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">~50MB</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Binary Size</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">~100MB</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">~20MB</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Language</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Go</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Rust</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Web Console</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Built-in</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Separate (optional)</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Static Web Hosting</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Limited</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Built-in</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Multi-node</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Complex</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Simple layout system</td></tr></tbody></table></div>
<p>Garage supports multi-node clusters with built-in replication. For a single-node setup where your storage layer (like Longhorn) already handles redundancy, single-node Garage works perfectly.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="deploy-garage">Deploy Garage<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#deploy-garage" class="hash-link" aria-label="Direct link to Deploy Garage" title="Direct link to Deploy Garage" translate="no">​</a></h2>
<p>This section covers a basic Kubernetes deployment. You can adapt it to your setup - Docker, bare metal, whatever. The <a href="https://garagehq.deuxfleurs.fr/documentation/quick-start/" target="_blank" rel="noopener noreferrer" class="">official docs</a> cover other deployment methods.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="create-namespace-and-secrets">Create Namespace and Secrets<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#create-namespace-and-secrets" class="hash-link" aria-label="Direct link to Create Namespace and Secrets" title="Direct link to Create Namespace and Secrets" translate="no">​</a></h3>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl create namespace garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Generate secrets</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">RPC_SECRET</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">openssl rand </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-hex</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable number" style="color:rgb(189, 147, 249);font-style:italic">32</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">ADMIN_TOKEN</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$(</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">openssl rand </span><span class="token variable parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-hex</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic"> </span><span class="token variable number" style="color:rgb(189, 147, 249);font-style:italic">32</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Store them (save these somewhere safe!)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"RPC Secret: </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$RPC_SECRET</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Admin Token: </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$ADMIN_TOKEN</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl create secret generic garage-secrets </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  --from-literal</span><span class="token operator">=</span><span class="token plain">rpc-secret</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$RPC_SECRET</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  --from-literal</span><span class="token operator">=</span><span class="token plain">admin-token</span><span class="token operator">=</span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$ADMIN_TOKEN</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="configmap">ConfigMap<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#configmap" class="hash-link" aria-label="Direct link to ConfigMap" title="Direct link to ConfigMap" translate="no">​</a></h3>
<p>Garage uses a TOML config file. Create a ConfigMap:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ConfigMap</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">config</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">data</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">garage.toml</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">|</span><span class="token scalar string" style="color:rgb(255, 121, 198)"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token scalar string" style="color:rgb(255, 121, 198)">    metadata_dir = "/data/meta"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token scalar string" style="color:rgb(255, 121, 198)">    data_dir = "/data/blocks"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token scalar string" style="color:rgb(255, 121, 198)">    db_engine = "lmdb"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token scalar string" style="color:rgb(255, 121, 198)">    replication_factor = 1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    rpc_bind_addr = "</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">3901"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    rpc_public_addr = "garage.garage.svc.cluster.local</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">3901"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    rpc_secret_file = "/secrets/rpc_secret"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">s3_api</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    s3_region = "garage"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    api_bind_addr = "</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">3900"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">s3_web</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    bind_addr = "</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">3902"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain">admin</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    api_bind_addr = "</span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">3903"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    admin_token_file = "/secrets/admin_token"</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="secret-file-permissions">Secret File Permissions<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#secret-file-permissions" class="hash-link" aria-label="Direct link to Secret File Permissions" title="Direct link to Secret File Permissions" translate="no">​</a></h3>
<p>Garage reads secrets from files, not environment variables. When Kubernetes mounts a Secret as a volume, the files default to mode 0644 (world-readable). Garage refuses to start with world-readable secret files - it's a security check built into the binary.</p>
<p>The fix is <code>defaultMode: 0600</code> on the volume mount:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">volumes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">secret</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">secretName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">defaultMode</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">0600</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">items</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">key</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> rpc</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secret</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">path</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> rpc_secret</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">key</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> admin</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">token</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">path</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> admin_token</span><br></div></code></pre></div></div>
<p>Skip this and Garage exits with "secret file has insecure permissions".</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="deployment">Deployment<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#deployment" class="hash-link" aria-label="Direct link to Deployment" title="Direct link to Deployment" translate="no">​</a></h3>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> apps/v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Deployment</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">replicas</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">strategy</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">type</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Recreate  </span><span class="token comment" style="color:rgb(98, 114, 164)"># Important for RWO PVCs</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">selector</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">matchLabels</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">app</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">template</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">labels</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">app</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">containers</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">image</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> dxflrs/garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain">v2.1.0</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">containerPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3900</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># S3 API</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">containerPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3901</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># RPC</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">containerPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3902</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># Web</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">containerPort</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3903</span><span class="token plain">  </span><span class="token comment" style="color:rgb(98, 114, 164)"># Admin</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">volumeMounts</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">mountPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> config</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">mountPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /etc/garage.toml</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">subPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage.toml</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">mountPath</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> /secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">readOnly</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token boolean important">true</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">volumes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">persistentVolumeClaim</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">claimName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> config</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">configMap</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">config</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">        </span><span class="token key atrule">secret</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">secretName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">defaultMode</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">0600</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token key atrule">items</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">key</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> rpc</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secret</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">path</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> rpc_secret</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">          </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">key</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> admin</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">token</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">            </span><span class="token key atrule">path</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> admin_token</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="service">Service<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#service" class="hash-link" aria-label="Direct link to Service" title="Direct link to Service" translate="no">​</a></h3>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> Service</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">selector</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">app</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">ports</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> s3</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3900</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> web</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3902</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> admin</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3903</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="pvc">PVC<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#pvc" class="hash-link" aria-label="Direct link to PVC" title="Direct link to PVC" translate="no">​</a></h3>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> PersistentVolumeClaim</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">data</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">accessModes</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> ReadWriteOnce</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">resources</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">requests</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">storage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 50Gi</span><br></div></code></pre></div></div>
<p>Apply everything, wait for the pod to start.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="initialize-garage">Initialize Garage<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#initialize-garage" class="hash-link" aria-label="Direct link to Initialize Garage" title="Direct link to Initialize Garage" translate="no">​</a></h2>
<p>Garage needs a "layout" before it accepts data. This tells it how much storage to use and which zone the node belongs to.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Get the node ID</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exec</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage deploy/garage -- /garage status</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># You'll see something like:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># ==== HEALTHY NODES ====</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># ID                Hostname  Address         Tags  Zone  Capacity</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># 563e...          garage    10.42.0.1:3901              NO ROLE</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Assign storage (use your node ID)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exec</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage deploy/garage -- </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  /garage layout assign </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-z</span><span class="token plain"> dc1 </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-c</span><span class="token plain"> 50GB 563e</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Apply the layout</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exec</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage deploy/garage -- </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  /garage layout apply </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--version</span><span class="token plain"> </span><span class="token number">1</span><br></div></code></pre></div></div>
<p>Now create an access key:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exec</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage deploy/garage -- </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  /garage key create garage-admin</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Output:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Key name: garage-admin</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Key ID: GK0ff60c017ac3f70efb9772f4</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Secret key: 598d28be9a91fc0b0e854454419f091cd6a704b2c121e8a99eab8f9e964e1bf0</span><br></div></code></pre></div></div>
<p>Save these. You'll need them for any S3 client.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="test-it">Test It<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#test-it" class="hash-link" aria-label="Direct link to Test It" title="Direct link to Test It" translate="no">​</a></h2>
<p>Create a bucket and upload something:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exec</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage deploy/garage -- </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  /garage bucket create test-bucket</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">kubectl </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exec</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-n</span><span class="token plain"> garage deploy/garage -- </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  /garage bucket allow </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--read</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--write</span><span class="token plain"> test-bucket </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--key</span><span class="token plain"> garage-admin</span><br></div></code></pre></div></div>
<p>From outside the cluster, use AWS CLI:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">aws configure </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--profile</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Access Key: GK0ff60c017ac3f70efb9772f4</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Secret Key: (your secret)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Region: garage</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Output format: json</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">aws </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--profile</span><span class="token plain"> garage --endpoint-url http://garage.garage.svc:3900 </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  s3 </span><span class="token function" style="color:rgb(80, 250, 123)">ls</span><br></div></code></pre></div></div>
<p>That's it. You have a working S3-compatible storage system.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="my-homelab-integration">My Homelab Integration<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#my-homelab-integration" class="hash-link" aria-label="Direct link to My Homelab Integration" title="Direct link to My Homelab Integration" translate="no">​</a></h2>
<p>The above is all you need for basic Garage. The rest of this post covers how I integrated it into my specific homelab setup: GitOps secrets management, ingress routing, automation, and document sync.</p>
<p>My homelab runs on a 7-node Kubernetes cluster (1 control plane, 6 workers) across 3 Proxmox hosts. Storage is Longhorn, ingress is Envoy Gateway, everything deploys via ArgoCD from a <a href="https://github.com/Piotr1215/homelab" target="_blank" rel="noopener noreferrer" class="">GitOps repo</a>.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="secrets-with-external-secrets-operator">Secrets with External Secrets Operator<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#secrets-with-external-secrets-operator" class="hash-link" aria-label="Direct link to Secrets with External Secrets Operator" title="Direct link to Secrets with External Secrets Operator" translate="no">​</a></h3>
<p>The basic setup above uses <code>kubectl create secret</code>. That works, but for GitOps you need secrets in your repo - and committing plaintext secrets is a security risk.</p>
<p>I use External Secrets Operator (ESO) with Bitwarden Secrets Manager:</p>
<ol>
<li class="">Generate secrets locally with <code>openssl rand -hex 32</code></li>
<li class="">Store them in Bitwarden Secrets Manager (gives you a UUID)</li>
<li class="">Create an ExternalSecret that references the UUID</li>
<li class="">ESO syncs the secret from Bitwarden into Kubernetes</li>
</ol>
<p>The ExternalSecret references UUIDs, not values - safe to commit:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> external</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secrets.io/v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ExternalSecret</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">refreshInterval</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 1h</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">secretStoreRef</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> bitwarden</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secretsmanager</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> ClusterSecretStore</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">target</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secrets</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">data</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">secretKey</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> rpc</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">secret</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">remoteRef</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">key</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 7b5d53a8</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxxxxxxxxxx</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">secretKey</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> admin</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">token</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">remoteRef</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">key</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> 8c6e64b9</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxx</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">xxxxxxxxxxxx</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="httproutes-with-envoy-gateway">HTTPRoutes with Envoy Gateway<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#httproutes-with-envoy-gateway" class="hash-link" aria-label="Direct link to HTTPRoutes with Envoy Gateway" title="Direct link to HTTPRoutes with Envoy Gateway" translate="no">​</a></h3>
<p>Instead of NodePort or LoadBalancer, I use Envoy Gateway with HTTPRoutes. For simple services, my <a href="https://github.com/Piotr1215/httproute-controller" target="_blank" rel="noopener noreferrer" class="">httproute-controller</a> generates HTTPRoutes from Service annotations automatically. Here's the Garage config:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token key atrule">apiVersion</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> gateway.networking.k8s.io/v1</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">kind</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> HTTPRoute</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">metadata</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">s3</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> envoy</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">gateway</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">system</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key atrule">spec</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">parentRefs</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> homelab</span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain">gateway</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token key atrule">sectionName</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> https</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">hostnames</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"s3.garage.homelab.local"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"*.s3.garage.homelab.local"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token key atrule">rules</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">backendRefs</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">-</span><span class="token plain"> </span><span class="token key atrule">name</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">namespace</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> garage</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token key atrule">port</span><span class="token punctuation" style="color:rgb(248, 248, 242)">:</span><span class="token plain"> </span><span class="token number">3900</span><br></div></code></pre></div></div>
<p>The wildcard <code>*.s3.garage.homelab.local</code> enables virtual-hosted bucket access (<code>mybucket.s3.garage.homelab.local</code>).</p>
<p>For cross-namespace routing, you need a ReferenceGrant in the garage namespace allowing the HTTPRoute to reference the Service.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="webui">WebUI<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#webui" class="hash-link" aria-label="Direct link to WebUI" title="Direct link to WebUI" translate="no">​</a></h3>
<p>Garage has no built-in UI. <a href="https://github.com/khairul169/garage-webui" target="_blank" rel="noopener noreferrer" class="">garage-webui</a> fills that gap - runs as a sidecar, connects to Garage's admin API on port 3903.</p>
<p>See my <a href="https://github.com/Piotr1215/homelab/blob/main/gitops/apps/garage/garage.yaml" target="_blank" rel="noopener noreferrer" class="">deployment manifest</a> for the full setup with WebUI.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="justfile-recipes">Justfile Recipes<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#justfile-recipes" class="hash-link" aria-label="Direct link to Justfile Recipes" title="Direct link to Justfile Recipes" translate="no">​</a></h3>
<p>I use a <a href="https://github.com/Piotr1215/homelab/blob/main/justfile" target="_blank" rel="noopener noreferrer" class="">justfile</a> for cluster operations. Two recipes for Garage:</p>
<ul>
<li class=""><code>garage-bucket</code> - creates buckets with read/write permissions</li>
<li class=""><code>garage-upload</code> - uploads files/folders, extracts credentials from Garage automatically</li>
</ul>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="rclone-bisync">rclone Bisync<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#rclone-bisync" class="hash-link" aria-label="Direct link to rclone Bisync" title="Direct link to rclone Bisync" translate="no">​</a></h3>
<p>For syncing local folders to Garage, I use rclone with bisync. My <code>~/.config/rclone/rclone.conf</code>:</p>
<div class="language-ini codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-ini codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token section punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token section section-name selector" style="color:rgb(255, 121, 198)">garage</span><span class="token section punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">type</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">s3</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">provider</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">Other</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">access_key_id</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">GK0ff60c017ac3f70efb9772f4</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">secret_access_key</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">(your secret)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">endpoint</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">https://s3.garage.homelab.local</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">region</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">garage</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token key attr-name" style="color:rgb(241, 250, 140)">no_check_bucket</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">=</span><span class="token plain"> </span><span class="token value attr-value">true</span><br></div></code></pre></div></div>
<p>Two gotchas:</p>
<ul>
<li class=""><strong><code>region = garage</code></strong> is required. Without it, rclone defaults to <code>us-east-1</code> and Garage rejects with "AuthorizationHeaderMalformed"</li>
<li class=""><strong>Self-signed certs</strong> need <code>--no-check-certificate</code> on every command</li>
</ul>
<p>I run bisync daily via cron with local folder as source of truth.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="static-web-hosting">Static Web Hosting<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#static-web-hosting" class="hash-link" aria-label="Direct link to Static Web Hosting" title="Direct link to Static Web Hosting" translate="no">​</a></h3>
<p>Garage has built-in static web hosting. Enable it per bucket in the WebUI (or via CLI), access at <code>https://&lt;bucket&gt;.web.garage.homelab.local</code>. No nginx, no separate web server.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="gotchas">Gotchas<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#gotchas" class="hash-link" aria-label="Direct link to Gotchas" title="Direct link to Gotchas" translate="no">​</a></h2>
<ol>
<li class="">
<p><strong>Layout must be applied</strong> - Garage won't accept data until you assign capacity and apply the layout. The pod starts fine, but S3 operations fail.</p>
</li>
<li class="">
<p><strong>PVC access mode</strong> - Use <code>ReadWriteOnce</code> with <code>Recreate</code> strategy. Rolling updates hang if the old pod holds the PVC.</p>
</li>
<li class="">
<p><strong>WebUI needs Garage v2</strong> - The webui uses v2 admin API. Don't use Garage v1.x.</p>
</li>
<li class="">
<p><strong>HTTPRoute namespace</strong> - If using Gateway API, routes in <code>default</code> namespace won't match ReferenceGrants for your gateway namespace.</p>
</li>
</ol>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="results">Results<a href="https://cloudrumble.net/blog/2025/12/22/minio-to-garage-migration#results" class="hash-link" aria-label="Direct link to Results" title="Direct link to Results" translate="no">​</a></h2>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Item</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Before</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">After</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">RAM Usage</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">~500MB</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">~50MB</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Pods</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">2 (MinIO + console)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">2 (Garage + WebUI)</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Static hosting</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">nginx sidecar</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Built-in</td></tr></tbody></table></div>
<p>450MB less RAM. Built-in static web hosting.</p>
<hr>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://garagehq.deuxfleurs.fr/" target="_blank" rel="noopener noreferrer" class="">Garage Documentation</a></li>
<li class=""><a href="https://github.com/khairul169/garage-webui" target="_blank" rel="noopener noreferrer" class="">garage-webui</a></li>
<li class=""><a href="https://github.com/Piotr1215/homelab" target="_blank" rel="noopener noreferrer" class="">My homelab repo</a>
<ul>
<li class=""><a href="https://github.com/Piotr1215/homelab/blob/main/gitops/apps/garage/garage.yaml" target="_blank" rel="noopener noreferrer" class="">Garage deployment</a></li>
<li class=""><a href="https://github.com/Piotr1215/homelab/tree/main/gitops/apps/envoy-gateway-resources" target="_blank" rel="noopener noreferrer" class="">HTTPRoutes</a></li>
</ul>
</li>
<li class=""><a href="https://rclone.org/s3/" target="_blank" rel="noopener noreferrer" class="">rclone S3 docs</a></li>
</ul>]]></content:encoded>
            <category>homelab</category>
            <category>kubernetes</category>
            <category>s3</category>
            <category>storage</category>
            <category>garage</category>
            <category>minio</category>
            <category>gitops</category>
        </item>
        <item>
            <title><![CDATA[Mozilla Wants AI in Your Browser? Move to LibreWolf Instead]]></title>
            <link>https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration</link>
            <guid>https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration</guid>
            <pubDate>Wed, 17 Dec 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Quick Firefox to LibreWolf migration guide for Linux]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LibreWolf Migration" src="https://cloudrumble.net/assets/images/librewolf-hero-a9d4bd465f1f84ec5bda74094c003215.png" width="400" height="400" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p>Mozilla just <a href="https://blog.mozilla.org/en/mozilla/leadership/mozillas-next-chapter-anthony-enzor-demeo-new-ceo/" target="_blank" rel="noopener noreferrer" class="">named a new CEO</a>. The headline promise? Firefox will "evolve into a modern AI browser." I read that and immediately started looking for alternatives.</p>
<p>This is a quick migration guide, not comprehensive documentation. Check <a href="https://librewolf.net/docs/faq/" target="_blank" rel="noopener noreferrer" class="">LibreWolf's official docs</a> for your specific system.</p>
<p>I was worried about breaking things—my setup has shell aliases for profile switching, wrapper scripts, keyboard shortcuts that launch Firefox, and window management automation. Everything migrated in about 30 minutes. If it worked for me, it'll work for you.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-leave-firefox">Why Leave Firefox?<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#why-leave-firefox" class="hash-link" aria-label="Direct link to Why Leave Firefox?" title="Direct link to Why Leave Firefox?" translate="no">​</a></h2>
<p>Mozilla's December 2025 announcement outlined three priorities:</p>
<ol>
<li class="">AI must be "clear and understandable"</li>
<li class="">Revenue diversification beyond search</li>
<li class="">Firefox growing into "a broader ecosystem"</li>
</ol>
<p>None of these say "leave users alone."</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-alternatives">The Alternatives<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#the-alternatives" class="hash-link" aria-label="Direct link to The Alternatives" title="Direct link to The Alternatives" translate="no">​</a></h2>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Browser</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Engine</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Key Features</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">LibreWolf</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Gecko (Firefox fork)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Zero telemetry, uBlock Origin pre-installed, hardened defaults</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Mullvad Browser</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Gecko (Tor fork)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Best anti-fingerprinting, designed for VPN use</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Ungoogled Chromium</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Chromium</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Pure Chromium with all Google code removed, truly FOSS</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Zen Browser</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Gecko (Firefox fork)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Privacy-focused, vertical tabs, minimal UI</td></tr></tbody></table></div>
<p><strong>My pick: <a href="https://librewolf.net/" target="_blank" rel="noopener noreferrer" class="">LibreWolf</a>.</strong> It's Firefox without Mozilla's telemetry. Same Gecko engine, same extensions, same workflow. uBlock Origin comes pre-installed. Updates track Firefox releases within days (currently at Firefox 146). Firefox Sync is disabled by default but you can enable it.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="installation">Installation<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#installation" class="hash-link" aria-label="Direct link to Installation" title="Direct link to Installation" translate="no">​</a></h2>
<p>Multiple options. This guide uses Flatpak:</p>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Method</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Install Command</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Notes</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Flatpak</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">flatpak install flathub io.gitlab.librewolf-community</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Sandboxed, auto-updates, profiles in ~/.var/app/...</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Native (Debian/Ubuntu)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">sudo apt install extrepo &amp;&amp; sudo extrepo enable librewolf &amp;&amp; sudo apt install librewolf</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Faster startup, profiles in ~/.librewolf/</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Native (Arch)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">yay -S librewolf</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">AUR package, native performance</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">AppImage</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Download from librewolf.net</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Portable, no install needed</td></tr></tbody></table></div>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">flatpak </span><span class="token function" style="color:rgb(80, 250, 123)">install</span><span class="token plain"> flathub io.gitlab.librewolf-community</span><br></div></code></pre></div></div>
<p>I used Flatpak because it's available on Pop!_OS. Trade-off: slower startup, profiles live in <code>~/.var/app/io.gitlab.librewolf-community/.librewolf/</code>.</p>
<p>For webcam access (video calls), grant device permissions:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">flatpak override </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--user</span><span class="token plain"> io.gitlab.librewolf-community </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--device</span><span class="token operator">=</span><span class="token plain">all</span><br></div></code></pre></div></div>
<p>If you choose native install, adjust paths from <code>~/.var/app/io.gitlab.librewolf-community/.librewolf/</code> to <code>~/.librewolf/</code>, and binary from <code>flatpak run io.gitlab.librewolf-community</code> to <code>librewolf</code>.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="migrating-data">Migrating Data<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#migrating-data" class="hash-link" aria-label="Direct link to Migrating Data" title="Direct link to Migrating Data" translate="no">​</a></h2>
<p>LibreWolf can import everything from Firefox in one step:</p>
<p>Settings → General → Import Browser Data → <strong>Import Data</strong></p>
<p>This imports bookmarks, passwords, history, and autofill data.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="fix-broken-sites">Fix Broken Sites<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#fix-broken-sites" class="hash-link" aria-label="Direct link to Fix Broken Sites" title="Direct link to Fix Broken Sites" translate="no">​</a></h2>
<p>LibreWolf's strict tracking protection can break some sites. Enable this:</p>
<p>Settings → Privacy &amp; Security → Enhanced Tracking Protection → <strong>Fix major site issues (recommended)</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="keep-logins-persistent">Keep Logins Persistent<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#keep-logins-persistent" class="hash-link" aria-label="Direct link to Keep Logins Persistent" title="Direct link to Keep Logins Persistent" translate="no">​</a></h2>
<p>By default, LibreWolf deletes cookies when closed—you'll have to re-login everywhere. Either disable it or add exceptions for sites you use:</p>
<p>Settings → Privacy &amp; Security → <strong>Delete cookies and site data when LibreWolf is closed</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="setting-up-profiles">Setting Up Profiles<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#setting-up-profiles" class="hash-link" aria-label="Direct link to Setting Up Profiles" title="Direct link to Setting Up Profiles" translate="no">​</a></h2>
<p>LibreWolf supports Firefox-style profiles:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Open profile manager</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">flatpak run io.gitlab.librewolf-community </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-P</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Or launch specific profile</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">flatpak run io.gitlab.librewolf-community </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-P</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Work"</span><br></div></code></pre></div></div>
<p>If you use multiple Firefox profiles, create matching ones in LibreWolf's profile manager, then copy the data:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Copy bookmarks and passwords (adjust profile names)</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">cp</span><span class="token plain"> ~/.mozilla/firefox/PROFILE_NAME/places.sqlite </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">   ~/.var/app/io.gitlab.librewolf-community/.librewolf/PROFILE_NAME/</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">cp</span><span class="token plain"> ~/.mozilla/firefox/PROFILE_NAME/logins.json </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">   ~/.var/app/io.gitlab.librewolf-community/.librewolf/PROFILE_NAME/</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">cp</span><span class="token plain"> ~/.mozilla/firefox/PROFILE_NAME/key4.db </span><span class="token punctuation" style="color:rgb(248, 248, 242)">\</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">   ~/.var/app/io.gitlab.librewolf-community/.librewolf/PROFILE_NAME/</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="extensions">Extensions<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#extensions" class="hash-link" aria-label="Direct link to Extensions" title="Direct link to Extensions" translate="no">​</a></h2>
<p>Same Firefox Add-ons store. uBlock Origin comes pre-installed.</p>
<p>Extension settings don't transfer automatically, but most extensions support exporting settings to JSON. Vimium-C, uBlock Origin, and others have Settings → Export/Import. Quick way to move your keybindings and configurations.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="updating-dotfiles">Updating Dotfiles<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#updating-dotfiles" class="hash-link" aria-label="Direct link to Updating Dotfiles" title="Direct link to Updating Dotfiles" translate="no">​</a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="shell-aliases">Shell Aliases<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#shell-aliases" class="hash-link" aria-label="Direct link to Shell Aliases" title="Direct link to Shell Aliases" translate="no">​</a></h3>
<p>Update any aliases that reference <code>firefox</code>:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token builtin class-name" style="color:rgb(189, 147, 249)">alias</span><span class="token plain"> </span><span class="token assign-left variable" style="color:rgb(189, 147, 249);font-style:italic">firefox</span><span class="token operator">=</span><span class="token string" style="color:rgb(255, 121, 198)">'flatpak run io.gitlab.librewolf-community'</span><br></div></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="system-wide-wrapper">System-Wide Wrapper<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#system-wide-wrapper" class="hash-link" aria-label="Direct link to System-Wide Wrapper" title="Direct link to System-Wide Wrapper" translate="no">​</a></h3>
<p>Aliases don't work in scripts or desktop files. Create a wrapper so all <code>firefox</code> calls use LibreWolf:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">sudo</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">tee</span><span class="token plain"> /usr/local/bin/firefox </span><span class="token operator">&lt;&lt;</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">'EOF'</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">#!/bin/bash</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">exec flatpak run io.gitlab.librewolf-community "$@"</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token string" style="color:rgb(255, 121, 198)">EOF</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">sudo</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">chmod</span><span class="token plain"> +x /usr/local/bin/firefox</span><br></div></code></pre></div></div>
<p>This is the key trick—no changes needed to existing scripts. Everything that calls <code>firefox</code> just works.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="default-browser">Default Browser<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#default-browser" class="hash-link" aria-label="Direct link to Default Browser" title="Direct link to Default Browser" translate="no">​</a></h3>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">xdg-settings </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">set</span><span class="token plain"> default-web-browser io.gitlab.librewolf-community.desktop</span><br></div></code></pre></div></div>
<p>Verify:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token plain">xdg-settings get default-web-browser</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># io.gitlab.librewolf-community.desktop</span><br></div></code></pre></div></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="what-changes">What Changes<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#what-changes" class="hash-link" aria-label="Direct link to What Changes" title="Direct link to What Changes" translate="no">​</a></h2>
<table><thead><tr><th>Item</th><th>Firefox</th><th>LibreWolf (Flatpak)</th></tr></thead><tbody><tr><td>Binary</td><td><code>firefox</code></td><td><code>flatpak run io.gitlab.librewolf-community</code></td></tr><tr><td>Profile path</td><td><code>~/.mozilla/firefox/</code></td><td><code>~/.var/app/io.gitlab.librewolf-community/.librewolf/</code></td></tr><tr><td>Telemetry</td><td>On by default</td><td>Disabled, can't enable</td></tr><tr><td>Firefox Sync</td><td>Enabled</td><td>Disabled by default (can enable)</td></tr><tr><td>uBlock Origin</td><td>Manual install</td><td>Pre-installed</td></tr></tbody></table>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-result">The Result<a href="https://cloudrumble.net/blog/2025/12/17/firefox-to-librewolf-migration#the-result" class="hash-link" aria-label="Direct link to The Result" title="Direct link to The Result" translate="no">​</a></h2>
<p>Everything works. Firefox stays installed as backup for now.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token function" style="color:rgb(80, 250, 123)">sudo</span><span class="token plain"> </span><span class="token function" style="color:rgb(80, 250, 123)">apt</span><span class="token plain"> remove firefox</span><br></div></code></pre></div></div>]]></content:encoded>
            <category>linux</category>
            <category>privacy</category>
            <category>firefox</category>
            <category>librewolf</category>
            <category>browser</category>
            <category>dotfiles</category>
            <category>flatpak</category>
        </item>
        <item>
            <title><![CDATA[From Physical Servers to vCluster: Understanding Kubernetes Multi-Tenancy]]></title>
            <link>https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder</link>
            <guid>https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder</guid>
            <pubDate>Thu, 23 Oct 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Learn why vCluster exists by understanding the evolution from physical servers through VMs, containers, and Kubernetes. A first-principles explanation of Kubernetes multi-tenancy.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="The computing abstraction ladder showing progression from physical hardware to virtual Kubernetes clusters" src="https://cloudrumble.net/assets/images/computing-abstraction-hero-fc55fbc7740d38717cc2626d149481f5.png" width="1920" height="1080" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
article mark {
  background-color: rgba(255, 102, 0, 0.2);
  color: #000;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
  article mark {
    background-color: rgba(255, 102, 0, 0.3);
    color: #fff;
  }
}
.tldr-box {
  background: rgba(255, 102, 0, 0.08);
  border-left: 4px solid #FF6600;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}
.tldr-box strong {
  color: #FF6600;
}
</style>
<div class="tldr-box"><p><strong>TL;DR:</strong> This blog explains the evolution of computing abstractions from physical servers to virtual Kubernetes clusters.</p><p>Each layer solved a real problem while creating new challenges: physical computers led to VMs (stranded resources), VMs to containers (OS overhead), containers to Kubernetes (orchestration complexity), and Kubernetes to virtual clusters (multi-tenancy isolation).</p><p>vCluster enables teams to run fully functional virtual Kubernetes clusters inside existing infrastructure—providing control plane isolation that namespaces cannot match.</p></div>
<p><strong>Last week I returned from <a href="https://community.cncf.io/events/details/cncf-kcd-uk-presents-kubernetes-community-days-uk-edinburgh-2025/" target="_blank" rel="noopener noreferrer" class="">KCD UK</a> where I led a workshop introducing people to vCluster</strong> (<a href="https://killercoda.com/decoder/course/vcluster/vcluster_introduction" target="_blank" rel="noopener noreferrer" class="">try it yourself here</a>). At the workshop and at our booth, we fielded dozens of questions from people with wildly different backgrounds.</p>
<p>Some attendees had deep Kubernetes expertise but had never heard of virtual clusters. Others worked with containers daily and were exploring the orchestration layer. People came from different knowledge bases and experience levels.</p>
<blockquote>
<p><strong>The most common question? "What is vCluster, and why would I need it?"</strong></p>
</blockquote>
<p>The short answer: vCluster is an open-source solution that enables teams to run virtual Kubernetes clusters inside existing infrastructure. These virtual clusters are Certified Kubernetes Distributions that provide strong workload isolation while running as nested environments on top of another Kubernetes cluster.</p>
<p>But to understand <em>why</em> that matters—and whether you need it—you need to see how we got here.</p>
<p><strong>By understanding this evolution, you'll see why virtual Kubernetes clusters solve real multi-tenancy problems that traditional approaches can't.</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-computing-revolution">The Computing Revolution<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#the-computing-revolution" class="hash-link" aria-label="Direct link to The Computing Revolution" title="Direct link to The Computing Revolution" translate="no">​</a></h2>
<p>In the beginning, we had computers. The <a href="https://en.wikipedia.org/wiki/ENIAC" target="_blank" rel="noopener noreferrer" class="">ENIAC</a> filled entire rooms in 1945. The <a href="https://en.wikipedia.org/wiki/Apple_II" target="_blank" rel="noopener noreferrer" class="">Apple II</a> in 1977 and <a href="https://en.wikipedia.org/wiki/IBM_Personal_Computer" target="_blank" rel="noopener noreferrer" class="">IBM PC</a> in 1981 brought computation to offices and homes. You write code, it runs on that hardware. Simple.</p>
<p><img decoding="async" loading="lazy" alt="What It Is" src="https://cloudrumble.net/assets/images/01-what-it-is-15faa9909c98e3614267a6b5968f7390.png" width="1836" height="1656" class="img_ev3q"></p>
<p>This worked pretty well until you needed to deploy fleets of them. Then the problems became obvious:</p>
<p><strong>The Problems:</strong></p>
<ul>
<li class=""><strong>Single point of failure:</strong> If the machine fails, your computation stops. No redundancy. No failover. Just downtime.</li>
<li class=""><strong>Slow scaling:</strong> Buying another physical machine means racking it, cabling it, installing the OS, and configuring it. Weeks of lead time for capacity you might only need during peak hours.</li>
<li class=""><strong>Resource waste:</strong> Expensive, inflexible hardware sitting idle.</li>
</ul>
<mark>Something had to change.</mark>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="better-together-distributed-computing">Better Together: Distributed Computing<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#better-together-distributed-computing" class="hash-link" aria-label="Direct link to Better Together: Distributed Computing" title="Direct link to Better Together: Distributed Computing" translate="no">​</a></h2>
<p>The obvious first step was networking. <a href="https://en.wikipedia.org/wiki/ARPANET" target="_blank" rel="noopener noreferrer" class="">ARPANET</a> connected four university computers in 1969. The <a href="https://en.wikipedia.org/wiki/Client%E2%80%93server_model" target="_blank" rel="noopener noreferrer" class="">client-server model</a> emerged in the 1980s. By the 1990s, <a href="https://en.wikipedia.org/wiki/Beowulf_cluster" target="_blank" rel="noopener noreferrer" class="">Beowulf clusters</a> let researchers build supercomputers from commodity hardware.</p>
<p>Now you could distribute work. One machine runs your database. Another runs your web server. A third handles batch processing. If one fails, the others keep running. You have redundancy and you can scale by adding more machines.</p>
<p><img decoding="async" loading="lazy" alt="What It Is" src="https://cloudrumble.net/assets/images/02-what-it-is-387500fd4261acee52f870d23c9ce0cf.png" width="3136" height="1716" class="img_ev3q"></p>
<p>This was better. But it created new problems:</p>
<p><strong>The Problems:</strong></p>
<ul>
<li class=""><strong>Stranded resources:</strong> Your database server runs at 80% CPU while your web server idles at 15%. You can't dynamically shift capacity between machines.</li>
<li class=""><strong>Operational complexity:</strong> Tracking which workload runs where, handling networking and security manually, constantly racking hardware and swapping failed drives.</li>
<li class=""><strong>Cost inefficiency:</strong> Wasting money on idle hardware that can't be repurposed without physically moving cables and reinstalling operating systems.</li>
</ul>
<mark>We needed a way to share physical hardware between workloads.</mark>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="virtual-machines-let-us-share-physical-hardware">Virtual Machines Let Us Share Physical Hardware<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#virtual-machines-let-us-share-physical-hardware" class="hash-link" aria-label="Direct link to Virtual Machines Let Us Share Physical Hardware" title="Direct link to Virtual Machines Let Us Share Physical Hardware" translate="no">​</a></h2>
<p>Then someone had a brilliant idea: what if we could run multiple "virtual" computers on one physical machine?</p>
<p><a href="https://en.wikipedia.org/wiki/VMware" target="_blank" rel="noopener noreferrer" class="">VMware</a> brought this to x86 in 1998. <a href="https://en.wikipedia.org/wiki/Xen" target="_blank" rel="noopener noreferrer" class="">Xen</a> followed in 2003. <a href="https://en.wikipedia.org/wiki/Kernel-based_Virtual_Machine" target="_blank" rel="noopener noreferrer" class="">KVM</a> merged into Linux in 2007. A hypervisor sits between hardware and operating systems, creating virtual machines that behave like physical hardware.</p>
<p>This was significantly better:</p>
<p><strong>The Benefits:</strong></p>
<ul>
<li class=""><strong>Efficient resource sharing:</strong> Run multiple VMs on one physical server. Put that 80% CPU database and 15% CPU web server on the same host.</li>
<li class=""><strong>Dynamic provisioning:</strong> Create VM templates, spin them up and down based on demand, migrate between hosts without downtime.</li>
<li class=""><strong>Dramatic improvement:</strong> Resource utilization improved, provisioning went from weeks to minutes.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="What It Is" src="https://cloudrumble.net/assets/images/03-what-it-is-5d4686ab69a9e4d60a570cd1c3608f1b.png" width="3136" height="1556" class="img_ev3q"></p>
<p><strong>But then we realized VMs were bloated and heavyweight.</strong></p>
<p><strong>The Problems:</strong></p>
<ul>
<li class=""><strong>Massive overhead:</strong> Each VM runs its own kernel, system libraries, daemons, and network stack—gigabytes of redundant code.</li>
<li class=""><strong>Slow operations:</strong> Booting takes minutes. Downloading and distributing VM images is slow. Migration means moving entire OS images.</li>
<li class=""><strong>Management burden:</strong> Every VM needs patching, monitoring, and management.</li>
</ul>
<mark>You traded hardware sprawl for VM sprawl. We needed something lighter.</mark>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="virtual-machines-can-be-too-slow">Virtual Machines Can Be Too Slow<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#virtual-machines-can-be-too-slow" class="hash-link" aria-label="Direct link to Virtual Machines Can Be Too Slow" title="Direct link to Virtual Machines Can Be Too Slow" translate="no">​</a></h2>
<p>Then someone smart figured out that you could build an abstraction that looks like a regular OS from the perspective of the software running inside, but when that software makes a system call, it goes to the host machine instead.</p>
<p><a href="https://en.wikipedia.org/wiki/LXC" target="_blank" rel="noopener noreferrer" class="">LXC</a> (Linux Containers) emerged in 2008 using <a href="https://en.wikipedia.org/wiki/Linux_namespaces" target="_blank" rel="noopener noreferrer" class="">Linux namespaces and cgroups</a>. But <a href="https://en.wikipedia.org/wiki/Docker_(software)" target="_blank" rel="noopener noreferrer" class="">Docker</a> in 2013 made containers actually usable for everyone.</p>
<p>The key insight: all that extra OS overhead gets shared. A container image packages your application and its dependencies—nothing more. No full OS. No kernel. Just your code and the libraries it needs.</p>
<p><img decoding="async" loading="lazy" alt="What It Is" src="https://cloudrumble.net/assets/images/04-what-it-is-8a55f9ef35c032333ee435a17b467d5b.png" width="3136" height="1420" class="img_ev3q"></p>
<p><strong>The Benefits:</strong></p>
<ul>
<li class=""><strong>Lightning fast:</strong> Containers start in milliseconds instead of minutes.</li>
<li class=""><strong>Resource efficient:</strong> Megabytes instead of gigabytes.</li>
<li class=""><strong>High density:</strong> Run hundreds of containers on a single host.</li>
<li class=""><strong>Developer productivity:</strong> Replicate production environments locally, deploy hundreds of times per day.</li>
</ul>
<mark>This was a massive improvement.</mark>
<mark>How do you orchestrate hundreds of containers across dozens of machines?</mark>
<p>Docker became very popular and soon people started building all sorts of different containers. A typical deployed system has at least three components: the application, a database, and maybe a proxy like nginx or a cache like redis.</p>
<p>These components need to work together:</p>
<ul>
<li class="">Database comes online first</li>
<li class="">Then redis, then the app, then the proxy</li>
<li class="">Each needs to check the health of the previous one</li>
<li class="">Your app can't start until the database is ready</li>
<li class="">The proxy can't route traffic until the app is healthy</li>
</ul>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="containers-rarely-work-alone">Containers Rarely Work Alone<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#containers-rarely-work-alone" class="hash-link" aria-label="Direct link to Containers Rarely Work Alone" title="Direct link to Containers Rarely Work Alone" translate="no">​</a></h3>
<p>You need to <strong>orchestrate</strong> your containers. <a href="https://docs.docker.com/compose/" target="_blank" rel="noopener noreferrer" class="">Docker Compose</a> did this simply for a single host.</p>
<p><strong>But what about across dozens or hundreds of hosts?</strong></p>
<ul>
<li class="">Which host runs which container?</li>
<li class="">How do containers find each other across machines?</li>
<li class="">What happens when a host fails?</li>
<li class="">How do you route traffic?</li>
<li class="">How do you handle dynamic autoscaling based on load?</li>
<li class="">How do you distribute containers across hosts for redundancy?</li>
<li class="">How do you handle rolling updates without downtime?</li>
</ul>
<mark>Running containers at scale without proper orchestration is operationally infeasible.</mark>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="containers-at-scale-need-orchestration">Containers at Scale Need Orchestration<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#containers-at-scale-need-orchestration" class="hash-link" aria-label="Direct link to Containers at Scale Need Orchestration" title="Direct link to Containers at Scale Need Orchestration" translate="no">​</a></h2>
<p>Google had been running <a href="https://en.wikipedia.org/wiki/Borg_(cluster_manager)" target="_blank" rel="noopener noreferrer" class="">Borg</a> internally since 2003, managing billions of containers. They knew the answers. In 2014 they open-sourced <a href="https://en.wikipedia.org/wiki/Kubernetes" target="_blank" rel="noopener noreferrer" class="">Kubernetes</a> and brought that experience to everyone.</p>
<p>The key insight: doing this <strong>declaratively</strong> is very powerful because it's both standardized and reproducible. You don't say "start this container on node-7." You say "I want 3 replicas of this app, each needs 512MB memory" and Kubernetes figures out where to run them.</p>
<p><img decoding="async" loading="lazy" alt="What It Is" src="https://cloudrumble.net/assets/images/05-what-it-is-d43559a47decc6374cdc150c63e575a6.png" width="3136" height="1260" class="img_ev3q"></p>
<p>Kubernetes treats a cluster of machines as a single compute resource. Scheduling, service discovery, load balancing, self-healing, autoscaling—it handles all of it. The control plane continuously converges reality toward your declared desired state.</p>
<p>This let us build entire compute platforms around this concept. Deploying stuff is really complicated—tons of little knobs and dials needing to be turned and tweaked. In the old days everyone had bespoke frameworks and it was super inefficient.</p>
<p>If we capture those abstractions in a standardized API and make it flexible enough to satisfy lots of use cases, one engineer can work on and scale up many different deployments. The system itself can self-heal if there's a problem.</p>
<mark>This is the major reason people want to use Kubernetes. Multi-tenancy.</mark>
<p><img decoding="async" loading="lazy" alt="Multi-Tenancy Challenges" src="https://cloudrumble.net/assets/images/07-multi-tenancy-challenges-46a5dfff40a6062b11d3c99c2c8e46ab.png" width="3136" height="1716" class="img_ev3q"></p>
<p>Platform teams need to serve many internal customers—Team A, Team B, Team C, maybe dozens of teams. You want to give them self-service Kubernetes access. But Kubernetes namespaces aren't strong enough for true isolation.</p>
<p><strong>Consider what actually happens in production:</strong></p>
<p><strong>The Problems:</strong></p>
<ul>
<li class="">
<p><strong>CRD conflicts:</strong> Team A deploys a service mesh with cluster-wide CRDs. Team B already has a different version of those CRDs. The conflict causes Team B's applications to fail during deployment. No way to isolate cluster-scoped resources.</p>
</li>
<li class="">
<p><strong>Version lock-in:</strong> You need to upgrade to Kubernetes 1.30 for a security patch. Team C has a critical application that breaks on 1.30. You can't upgrade safely, but you can't stay on a vulnerable version either.</p>
</li>
<li class="">
<p><strong>Scheduler conflicts:</strong> Team D wants a custom scheduler for GPU workloads. Team E needs the default scheduler. There's only one scheduler per cluster.</p>
</li>
<li class="">
<p><strong>Blast radius:</strong> A platform team member accidentally installs a broken admission webhook. It impacts every namespace in the cluster. All deployments across all teams start failing. Debugging requires coordinating across 15 teams.</p>
</li>
</ul>
<p><strong>The financial impact is significant:</strong></p>
<p>According to a <a href="https://www.the20.com/blog/the-cost-of-it-downtime/" target="_blank" rel="noopener noreferrer" class="">2024 ITIC study</a>, <mark>98% of organizations report that a single hour of downtime costs over $100,000</mark>, with the average reaching <a href="https://gatling.io/blog/the-cost-of-downtime" target="_blank" rel="noopener noreferrer" class="">$9,000 per minute</a> across industries. When a shared control plane issue affects multiple teams simultaneously, these costs multiply rapidly.</p>
<p>Kubernetes namespaces provide resource isolation, but they don't provide control plane isolation. Teams share the same API server, scheduler, controllers, and admission webhooks. This creates operational constraints that don't scale.</p>
<p>The alternative? Spin up separate clusters per team. But now you're managing dozens of physical clusters—each with its own control plane, nodes, and operational overhead. Expensive and operationally complex.</p>
<p>Platform teams needed better isolation without multiplying management overhead.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="virtual-clusters-lightweight-kubernetes-clusters">Virtual Clusters: Lightweight Kubernetes Clusters<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#virtual-clusters-lightweight-kubernetes-clusters" class="hash-link" aria-label="Direct link to Virtual Clusters: Lightweight Kubernetes Clusters" title="Direct link to Virtual Clusters: Lightweight Kubernetes Clusters" translate="no">​</a></h2>
<p>This is where we circle back to the beginning. Remember how VMs solved the problem of stranded resources on physical hardware? The same insight applies here.</p>
<p><a href="https://www.vcluster.com/" target="_blank" rel="noopener noreferrer" class="">vCluster</a> runs Kubernetes control plane components (API server, controller manager, and optionally a scheduler) inside a single pod on a host cluster. A syncer component bridges the virtual and host clusters, translating resources between them. The virtual cluster stores its state in SQLite or etcd, completely isolated from the host.</p>
<p>From the tenant's perspective, they have a full Kubernetes cluster:</p>
<p><strong>How It Solves The Problems:</strong></p>
<ul>
<li class="">
<p><strong>Independent upgrades:</strong> Each team controls their Kubernetes version. Team A tests 1.30 while Team B stays on 1.28. No coordination required.</p>
</li>
<li class="">
<p><strong>Flexible service sharing:</strong> Teams choose what to share:</p>
<ul>
<li class=""><strong>Fully shared:</strong> Use the host cluster's ingress controller and cert-manager</li>
<li class=""><strong>Partially shared:</strong> Share some services, run others independently within the vCluster</li>
<li class=""><strong>Fully isolated:</strong> Run all services independently within the vCluster</li>
</ul>
</li>
<li class="">
<p><strong>Flexible compute sharing:</strong> Teams choose how to share infrastructure:</p>
<ul>
<li class=""><strong>Shared nodes:</strong> Multiple vClusters share the same host cluster nodes for cost efficiency</li>
<li class=""><strong>Private nodes:</strong> Teams can join dedicated nodes directly to their vCluster for workloads requiring complete isolation (GPU training, compliance requirements)</li>
<li class=""><strong>Hybrid:</strong> Mix shared and private nodes based on workload needs</li>
</ul>
</li>
<li class="">
<p><strong>True control plane isolation:</strong> Each vCluster has its own API server, scheduler, and controllers. A broken admission webhook in vCluster A doesn't affect vCluster B.</p>
</li>
</ul>
<p><img decoding="async" loading="lazy" alt="What It Is" src="https://cloudrumble.net/assets/images/06-what-it-is-1ccdf015cfc6836d4ab6ac7544bd1576.png" width="3136" height="972" class="img_ev3q"></p>
<p>The cost efficiency is dramatic. You run dozens of vClusters on a single host cluster, sharing node capacity efficiently. One platform engineer can serve hundreds of teams without managing hundreds of physical clusters.</p>
<p><strong>Recent developments have expanded the flexibility:</strong></p>
<ul>
<li class=""><strong><a href="https://www.vcluster.com/blog/vnode-kubernetes-node-isolation-multi-tenancy" target="_blank" rel="noopener noreferrer" class="">Private Nodes</a></strong> (v0.27) let teams join dedicated nodes directly to their vCluster for workloads requiring complete isolation—like GPU training jobs or compliance-sensitive applications.</li>
<li class=""><strong><a href="https://www.vcluster.com/blog/introducing-vcluster-auto-nodes-karpenter-based-dynamic-autoscaling-anywhere" target="_blank" rel="noopener noreferrer" class="">Auto Nodes</a></strong> (v0.28) bring Karpenter-based elastic scaling to any infrastructure, giving teams dynamic compute without manual node management.</li>
<li class=""><strong><a href="https://www.vcluster.com/blog/vcluster-standalone-multi-tenancy-kubernetes" target="_blank" rel="noopener noreferrer" class="">vCluster Standalone</a></strong> (v0.29) removes the dependency on a host cluster entirely, allowing installation directly on bare metal or VMs.</li>
</ul>
<p><mark>You can tailor isolation to your needs:</mark> shared nodes for cost efficiency, private nodes for GPU workloads or security requirements, or standalone for complete infrastructure control.</p>
<p>Each abstraction solved a real problem. Each created a new one.</p>
<p>vClusters solve multi-tenancy but add another abstraction layer. Debugging requires understanding both vCluster and host cluster layers. Networking configuration becomes more complex. Permissions need careful mapping between vCluster and host resources.</p>
<p><strong>But the trade-off is favorable</strong> if you need multi-tenant Kubernetes at scale. The cost savings and operational simplification outweigh the added complexity.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-pattern">The Pattern<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#the-pattern" class="hash-link" aria-label="Direct link to The Pattern" title="Direct link to The Pattern" translate="no">​</a></h2>
<p><strong>You see the progression:</strong></p>
<ul>
<li class=""><strong>Physical computers → VMs</strong> (resources were stranded)</li>
<li class=""><strong>VMs → Containers</strong> (OS overhead was too heavy)</li>
<li class=""><strong>Containers → Kubernetes</strong> (orchestration was chaos)</li>
<li class=""><strong>Kubernetes → vClusters</strong> (multi-tenancy was broken)</li>
</ul>
<mark>Each abstraction solved a real problem. Each created a new one. This is how abstraction works.</mark>
<p>You trade one kind of complexity for another. You move problems up the stack. Physical constraints become logical constraints. Hardware limitations become software limitations.</p>
<p>The question is never "should we abstract?" The question is "what complexity are we willing to trade?"</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="try-it-yourself">Try It Yourself<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#try-it-yourself" class="hash-link" aria-label="Direct link to Try It Yourself" title="Direct link to Try It Yourself" translate="no">​</a></h2>
<p>If you want hands-on experience with vClusters, try the <a href="https://killercoda.com/decoder/course/vcluster/vcluster_introduction" target="_blank" rel="noopener noreferrer" class="">Killercoda interactive tutorial</a> I used at the workshop. You'll see exactly how vClusters provide isolation, how they integrate with host clusters, and what the operational model looks like.</p>
<p>Understanding the history and first principles makes the technology click. You'll see vClusters not as "yet another tool" but as the logical next step in a progression that started with physical computers six decades ago.</p>
<hr>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="resources">Resources<a href="https://cloudrumble.net/blog/2025/10/23/computing-abstraction-ladder#resources" class="hash-link" aria-label="Direct link to Resources" title="Direct link to Resources" translate="no">​</a></h2>
<p><strong>Learn More:</strong></p>
<ul>
<li class=""><a href="https://www.vcluster.com/docs" target="_blank" rel="noopener noreferrer" class="">vCluster Documentation</a></li>
<li class=""><a href="https://killercoda.com/decoder/course/vcluster/vcluster_introduction" target="_blank" rel="noopener noreferrer" class="">Killercoda Interactive Tutorial</a> - The hands-on workshop from KCD UK</li>
<li class=""><a href="https://github.com/kubernetes-sigs/multi-tenancy" target="_blank" rel="noopener noreferrer" class="">Kubernetes Multi-Tenancy Working Group</a></li>
</ul>
<p><strong><a href="https://cloudrumble.net/talks" target="_blank" rel="noopener noreferrer" class="">Watch My Talks</a>:</strong></p>
<ul>
<li class=""><a href="https://www.youtube.com/watch?v=sfGyBZmNxqk" target="_blank" rel="noopener noreferrer" class="">Flexible Multi-Tenancy with vCluster</a> - SREDay London 2025 (<a href="https://sreday.com/2025-london-q3/" target="_blank" rel="noopener noreferrer" class="">event page</a>)</li>
<li class=""><a href="https://www.youtube.com/watch?v=88Yeik-SagQ" target="_blank" rel="noopener noreferrer" class="">The Future of Kubernetes Tenancy</a> - Webinar with vCluster CEO</li>
</ul>
<p><strong>Events:</strong></p>
<ul>
<li class=""><a href="https://community.cncf.io/events/details/cncf-kcd-uk-presents-kubernetes-community-days-uk-edinburgh-2025/" target="_blank" rel="noopener noreferrer" class="">KCD UK Edinburgh 2025</a> - Where this blog idea was born</li>
</ul>
<hr>
<p>Every abstraction in computing history emerged to solve a real problem. Virtual clusters are no different. If you're running multi-tenant Kubernetes at scale, dealing with version conflicts, or managing dozens of teams with different requirements, <mark>vClusters offer the control plane isolation that namespaces can't provide</mark>.</p>
<p>Start with the <a href="https://killercoda.com/decoder/course/vcluster/vcluster_introduction" target="_blank" rel="noopener noreferrer" class="">interactive tutorial</a>, explore the <a href="https://www.vcluster.com/docs" target="_blank" rel="noopener noreferrer" class="">documentation</a>, and see how virtual clusters can transform your Kubernetes multi-tenancy strategy.</p>]]></content:encoded>
            <category>kubernetes</category>
            <category>virtualization</category>
            <category>containers</category>
            <category>infrastructure</category>
            <category>vcluster</category>
            <category>multi-tenancy</category>
        </item>
        <item>
            <title><![CDATA[Stop AI from Hallucinating Your Kubernetes YAML]]></title>
            <link>https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation</link>
            <guid>https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation</guid>
            <pubDate>Sat, 18 Oct 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Building a Deterministic vCluster Validation MCP Server to Ground AI in Real Schemas]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="AI and Kubernetes Configuration" src="https://cloudrumble.net/assets/images/vcluster-hero-39b29fd90220ff8046d13fec7dc8b0c7.png" width="1536" height="1024" class="img_ev3q"></p>
<style>
article img:not(:first-of-type) {
  max-width: 700px;
  height: auto;
}
</style>
<p><strong>Building a Deterministic vCluster Validation MCP Server to Ground AI in Real Schemas</strong></p>
<p>You ask an AI to generate a Kubernetes manifest, Helm chart values, or Ansible playbook. It responds instantly with clean, well-formatted YAML. You apply it. Nothing works.</p>
<p>This isn't a bug—it's <strong><a href="https://en.wikipedia.org/wiki/Hallucination_(artificial_intelligence)" target="_blank" rel="noopener noreferrer" class="">AI hallucination</a></strong>. The AI knows YAML syntax but hallucinates config options that don't exist, mixes incompatible versions, or confidently suggests deprecated fields. It generates what looks right based on patterns, not what <strong>is</strong> right according to actual schemas.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-cost-of-hallucinated-configs">The Cost of Hallucinated Configs<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#the-cost-of-hallucinated-configs" class="hash-link" aria-label="Direct link to The Cost of Hallucinated Configs" title="Direct link to The Cost of Hallucinated Configs" translate="no">​</a></h2>
<p>AI hallucinations aren't just inconvenient—they're expensive. From <a href="https://www.businessinsider.com/increasing-ai-hallucinations-fake-citations-court-records-data-2025-5" target="_blank" rel="noopener noreferrer" class="">legal briefs with fake citations</a> to financial analyses based on invented metrics, hallucinated AI content causes real damage.</p>
<p>For infrastructure teams, the pattern is consistent: generate config, apply it, watch it fail, spend 30-60 minutes debugging what the AI made up.</p>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Impact</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Cost</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Legal AI hallucination rate (top models)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-100">6.4%</span></td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Platform engineer time debugging AI configs</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-100">20-30%</span></td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Companies using generative AI</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-100">71%</span></td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Google Bard hallucination incident (single day)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-100">$100B market cap loss</span></td></tr></tbody></table></div>
<p><strong>The result?</strong> Teams stop trusting AI for infrastructure work. Productivity gains vanish. You're back to grep-ing through values.yaml files manually.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="making-ai-reliable-for-vcluster-configs">Making AI Reliable for vCluster Configs<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#making-ai-reliable-for-vcluster-configs" class="hash-link" aria-label="Direct link to Making AI Reliable for vCluster Configs" title="Direct link to Making AI Reliable for vCluster Configs" translate="no">​</a></h2>
<p><a href="https://www.vcluster.com/docs/vcluster/" target="_blank" rel="noopener noreferrer" class="">vCluster</a> is an open-source solution that enables teams to run virtual Kubernetes clusters inside existing infrastructure. These virtual clusters are Certified Kubernetes Distributions that provide strong workload isolation while running as nested environments on top of another Kubernetes cluster.</p>
<p><strong>Why vCluster configs are hard for AI:</strong></p>
<ul>
<li class="">Multiple major versions with different schemas (v0.19.0 vs v0.24.0)</li>
<li class="">Complex nested YAML structure (Helm chart values)</li>
<li class="">Validation rules hidden in comments, not schemas</li>
<li class="">Frequent deprecations and field migrations</li>
<li class="">Version-specific enum values</li>
</ul>
<p><strong>What AI hallucinates:</strong></p>
<ul>
<li class="">Config options that don't exist in your version</li>
<li class="">Deprecated fields that were renamed</li>
<li class="">Invalid enum values</li>
<li class="">Incompatible option combinations</li>
</ul>
<p>Example: <code>controlPlane.backingStore.etcd.deploy</code> moved to <code>controlPlane.backingStore.etcd.embedded</code> in v0.20.0. AI trained on mixed docs will confidently suggest the wrong path for your version.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="the-solution-deterministic-validation">The Solution: Deterministic Validation<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#the-solution-deterministic-validation" class="hash-link" aria-label="Direct link to The Solution: Deterministic Validation" title="Direct link to The Solution: Deterministic Validation" translate="no">​</a></h2>
<p>Stop hallucinations by <strong>grounding AI in actual schemas with deterministic validation</strong>.</p>
<p>I built an <a href="https://github.com/Piotr1215/vcluster-yaml-mcp" target="_blank" rel="noopener noreferrer" class="">MCP server</a> that connects any AI assistant—Claude, ChatGPT, or any MCP-compatible tool—directly to vCluster's GitHub repository. Every query, every validation, every config generation is grounded in the real Helm values for the exact version you specify. The pattern applies to any complex infrastructure configuration—vCluster is just the implementation.</p>
<p><img decoding="async" loading="lazy" alt="The Solution: Deterministic Validation" src="https://cloudrumble.net/assets/images/01-the-solution-deterministic-validation-72d67e2b1be7fa01f62552f159842942.png" width="1824" height="1816" class="img_ev3q"></p>
<p><strong>How it works:</strong></p>
<ol>
<li class="">Fetches configs directly from <code>github.com/loft-sh/vcluster</code> (source of truth)</li>
<li class="">Every tool accepts explicit version params (<code>v0.24.0</code>, <code>main</code>, etc.)</li>
<li class="">Validates against actual schemas—no pattern matching</li>
<li class="">15-minute smart cache (respects GitHub API limits)</li>
<li class="">Dual interface: MCP (for AI) + CLI (for humans)</li>
</ol>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="why-model-context-protocol">Why Model Context Protocol?<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#why-model-context-protocol" class="hash-link" aria-label="Direct link to Why Model Context Protocol?" title="Direct link to Why Model Context Protocol?" translate="no">​</a></h2>
<p><a href="https://modelcontextprotocol.io/" target="_blank" rel="noopener noreferrer" class="">Model Context Protocol (MCP)</a> is an open standard created by Anthropic for connecting AI assistants to external data sources and tools. Instead of building custom integrations for each AI, MCP provides a universal interface.</p>
<p><strong>What makes MCP powerful:</strong></p>
<p>The <a href="https://modelcontextprotocol.io/specification/2025-03-26" target="_blank" rel="noopener noreferrer" class="">MCP specification</a> defines a client-server architecture where:</p>
<ul>
<li class=""><strong>MCP Clients</strong> (AI applications) can connect to any MCP server</li>
<li class=""><strong>MCP Servers</strong> expose tools, resources, and prompts to AI assistants</li>
<li class=""><strong>Transport layer</strong> supports stdio, HTTP, and Server-Sent Events (SSE)</li>
</ul>
<p>This means one MCP server works everywhere:</p>
<div class="info-card-grid" style="grid-template-columns:repeat(2, 1fr)"><div class="info-card"><div class="info-card-header">Claude Desktop</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Status<!-- -->:</strong> <span>Native Support</span></div></div></div><div class="info-card"><div class="info-card-header">Claude Web/Code</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Status<!-- -->:</strong> <span>Native Support</span></div></div></div><div class="info-card"><div class="info-card-header">ChatGPT Desktop</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Status<!-- -->:</strong> <span>Officially Adopted (March 2025)</span></div></div></div><div class="info-card"><div class="info-card-header">Any MCP-Compatible AI</div><div class="info-card-content"><div><strong class="text-gray-700 dark:text-gray-400">Status<!-- -->:</strong> <span>Open Standard</span></div></div></div></div>
<p><strong>Build once, use everywhere.</strong> No custom integrations. No vendor lock-in.</p>
<p>The vCluster YAML server is both an MCP server (for AI) and a standalone CLI tool (for humans and automation). Full architecture details in the <a href="https://github.com/Piotr1215/vcluster-yaml-mcp" target="_blank" rel="noopener noreferrer" class="">GitHub repo</a>.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="three-features-that-matter">Three Features That Matter<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#three-features-that-matter" class="hash-link" aria-label="Direct link to Three Features That Matter" title="Direct link to Three Features That Matter" translate="no">​</a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="no-more-version-drift">No More Version Drift<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#no-more-version-drift" class="hash-link" aria-label="Direct link to No More Version Drift" title="Direct link to No More Version Drift" translate="no">​</a></h3>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Query specific versions</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster-yaml query </span><span class="token string" style="color:rgb(255, 121, 198)">"sync.fromHost"</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--version</span><span class="token plain"> v0.19.0</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster-yaml query </span><span class="token string" style="color:rgb(255, 121, 198)">"sync.fromHost"</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--version</span><span class="token plain"> v0.24.0</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># AI can query multiple versions in parallel</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># No state conflicts, no version switching</span><br></div></code></pre></div></div>
<p>Your AI assistant now knows <strong>exactly</strong> which options exist in which version. No more mixing v0.19 examples with v0.24 configs.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="no-more-silent-failures">No More Silent Failures<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#no-more-silent-failures" class="hash-link" aria-label="Direct link to No More Silent Failures" title="Direct link to No More Silent Failures" translate="no">​</a></h3>
<p>When your AI generates a config, it <strong>validates before showing you</strong>:</p>
<p><strong>You ask:</strong></p>
<blockquote>
<p>"Create a vCluster config with HA etcd and node sync for v0.24"</p>
</blockquote>
<p><strong>Claude does:</strong></p>
<ol>
<li class="">Queries v0.24 schema</li>
<li class="">Generates YAML</li>
<li class=""><strong>Validates it automatically</strong></li>
<li class="">Shows you only validated output</li>
</ol>
<p><strong>What it looks like in practice:</strong></p>
<p>First, Claude catches the error:</p>
<p><img decoding="async" loading="lazy" alt="Claude catches validation error" src="https://cloudrumble.net/assets/images/claude-error-f940cd13b0635edfc69581a4e4186c5d.webp" width="1391" height="1233" class="img_ev3q"></p>
<p>Then provides the corrected, validated config:</p>
<p><img decoding="async" loading="lazy" alt="Claude provides validated fix" src="https://cloudrumble.net/assets/images/claude-fix-5c1dfbadab9d13284be5f6fa5709068f.webp" width="1341" height="1365" class="img_ev3q"></p>
<p>No copy-paste-debug loop. Every config works on first apply.</p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="no-more-context-switching">No More Context Switching<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#no-more-context-switching" class="hash-link" aria-label="Direct link to No More Context Switching" title="Direct link to No More Context Switching" translate="no">​</a></h3>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># storage: Valid options: "ephemeral", "persistent"</span><br></div></code></pre></div></div>
<p>The server extracts rules like enums, dependencies, and defaults—knowledge AI wouldn't have from schema alone.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="try-it-now-2-minutes">Try It Now (2 Minutes)<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#try-it-now-2-minutes" class="hash-link" aria-label="Direct link to Try It Now (2 Minutes)" title="Direct link to Try It Now (2 Minutes)" translate="no">​</a></h2>
<p>Works with Claude Desktop, Claude Web/Code, ChatGPT Desktop, or any MCP-compatible AI.</p>
<p><strong>Option 1: Local MCP</strong></p>
<p>Add to your AI's MCP configuration (example for Claude Desktop at <code>~/Library/Application Support/Claude/claude_desktop_config.json</code>):</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token property">"mcpServers"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token property">"vcluster-yaml"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token property">"command"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"npx"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token property">"args"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token string" style="color:rgb(255, 121, 198)">"-y"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"vcluster-yaml-mcp-server"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<p><strong>Option 2: Remote (No Install)</strong></p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token property">"mcpServers"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token property">"vcluster-yaml"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">{</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token property">"type"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"http"</span><span class="token punctuation" style="color:rgb(248, 248, 242)">,</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">      </span><span class="token property">"url"</span><span class="token operator">:</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"https://vcluster-yaml.cloudrumble.net/mcp"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">    </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  </span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">}</span><br></div></code></pre></div></div>
<p>Restart your AI client.</p>
<p><strong>Try these prompts:</strong></p>
<p><strong>1. Generate Validated Config</strong></p>
<blockquote>
<p>"Create a vCluster v0.24 config with HA etcd, ingress, and node sync"</p>
</blockquote>
<p><strong>2. Version Comparison</strong></p>
<blockquote>
<p>"Compare sync.fromHost between v0.19.0 and v0.24.0"</p>
</blockquote>
<p><strong>3. Fix Existing Config</strong></p>
<blockquote>
<p>"Validate this config against v0.24: [paste your YAML]"</p>
</blockquote>
<p>Watch your AI assistant query schemas, validate in real-time, and give you production-ready configs.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="dual-interface-ai--cli">Dual Interface: AI + CLI<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#dual-interface-ai--cli" class="hash-link" aria-label="Direct link to Dual Interface: AI + CLI" title="Direct link to Dual Interface: AI + CLI" translate="no">​</a></h2>
<p>The server provides two ways to access the same validation engine:</p>
<p><strong>1. MCP Protocol</strong> (for AI assistants)
Connect any MCP-compatible AI to query schemas and validate configs interactively.</p>
<p><strong>2. Standalone CLI</strong> (for humans and automation)
Direct command-line access. No AI needed. Perfect for CI/CD pipelines and quick validations:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># Quick validation</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster-yaml validate my-config.yaml </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--version</span><span class="token plain"> v0.24.0</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Pipe from stdin</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token function" style="color:rgb(80, 250, 123)">cat</span><span class="token plain"> config.yaml </span><span class="token operator">|</span><span class="token plain"> vcluster-yaml validate -</span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># CI/CD integration</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">vcluster-yaml validate vcluster.yaml </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--version</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">${VCLUSTER_VERSION}</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">--quiet</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token punctuation" style="color:rgb(248, 248, 242)">[</span><span class="token plain"> </span><span class="token variable" style="color:rgb(189, 147, 249);font-style:italic">$?</span><span class="token plain"> </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-eq</span><span class="token plain"> </span><span class="token number">0</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(248, 248, 242)">]</span><span class="token plain"> </span><span class="token operator">||</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">exit</span><span class="token plain"> </span><span class="token number">1</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Batch validation</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">for</span><span class="token plain"> </span><span class="token for-or-select variable" style="color:rgb(189, 147, 249);font-style:italic">f</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">in</span><span class="token plain"> configs/*.yaml</span><span class="token punctuation" style="color:rgb(248, 248, 242)">;</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">do</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">  vcluster-yaml validate </span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$f</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"> </span><span class="token operator">||</span><span class="token plain"> </span><span class="token builtin class-name" style="color:rgb(189, 147, 249)">echo</span><span class="token plain"> </span><span class="token string" style="color:rgb(255, 121, 198)">"Failed: </span><span class="token string variable" style="color:rgb(189, 147, 249);font-style:italic">$f</span><span class="token string" style="color:rgb(255, 121, 198)">"</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token keyword" style="color:rgb(189, 147, 249);font-style:italic">done</span><br></div></code></pre></div></div>
<p>Shell completion, JSON/table output, and designed for automation.</p>
<p>Full CLI docs: <a href="https://github.com/Piotr1215/vcluster-yaml-mcp/blob/main/docs/CLI.md" target="_blank" rel="noopener noreferrer" class="">github.com/Piotr1215/vcluster-yaml-mcp</a></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="available-mcp-tools">Available MCP Tools<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#available-mcp-tools" class="hash-link" aria-label="Direct link to Available MCP Tools" title="Direct link to Available MCP Tools" translate="no">​</a></h2>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Tool</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Purpose</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Version Aware</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">list-versions</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Get all available vCluster versions (tags/branches)</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100">N/A</span></td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">smart-query</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Query config options by dot notation or natural language</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100">Yes</span></td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">create-vcluster-config</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Generate and validate configs in one step</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100">Yes</span></td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">validate-config</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Validate existing YAML against specific version</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100">Yes</span></td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">extract-validation-rules</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Extract enums, constraints from YAML comments</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap"><span class="px-3 py-1 text-xs font-semibold rounded-full inline-block whitespace-nowrap bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100">Yes</span></td></tr></tbody></table></div>
<p><strong>All tools accept explicit <code>--version</code> parameter. Query multiple versions in parallel without state conflicts.</strong></p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="architecture">Architecture<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#architecture" class="hash-link" aria-label="Direct link to Architecture" title="Direct link to Architecture" translate="no">​</a></h2>
<p>The server is built on four principles that make it reliable for production use:</p>
<div class="my-6 overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm"><table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"><thead class="bg-gray-100 dark:bg-gray-800 border-b-2 border-gray-300 dark:border-gray-600"><tr><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Principle</th><th class="px-6 py-4 text-left text-xs font-bold text-gray-800 dark:text-gray-200 uppercase tracking-wider whitespace-nowrap">Description</th></tr></thead><tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700"><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Stateless</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Every query takes explicit version params. Query v0.19 and v0.24 in parallel—no conflicts, no state drift.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Source-of-Truth</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Fetches directly from loft-sh/vcluster GitHub. No manual updates. Always reflects actual source.</td></tr><tr class="bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Token-Optimized</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">kubectl-style output, not JSON dumps. 800-1500 tokens vs 2K+.</td></tr><tr class="hover:bg-gray-100 dark:hover:bg-gray-700/50 transition-colors"><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">Production-Ready</td><td class="px-6 py-4 text-sm text-gray-900 dark:text-gray-100 whitespace-nowrap">15-min smart cache, HTTP/SSE transport, comprehensive tests, Docker container available.</td></tr></tbody></table></div>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="beyond-vcluster">Beyond vCluster<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#beyond-vcluster" class="hash-link" aria-label="Direct link to Beyond vCluster" title="Direct link to Beyond vCluster" translate="no">​</a></h2>
<p>This pattern works for any config-heavy infra tool:</p>
<ul>
<li class="">Terraform modules</li>
<li class="">Kubernetes operators</li>
<li class="">Helm charts</li>
<li class="">Cloud provider configs</li>
</ul>
<p>The question isn't whether AI will help manage infrastructure. It's <strong>how we build the grounding layer that makes it reliable</strong>.</p>
<p>This is that layer for vCluster. What could it be for your tools?</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="get-started">Get Started<a href="https://cloudrumble.net/blog/2025/10/18/ai-grounded-vcluster-yaml-validation#get-started" class="hash-link" aria-label="Direct link to Get Started" title="Direct link to Get Started" translate="no">​</a></h2>
<p><strong>Resources:</strong></p>
<ul>
<li class=""><a href="https://github.com/Piotr1215/vcluster-yaml-mcp" target="_blank" rel="noopener noreferrer" class="">GitHub repo</a></li>
<li class=""><a href="https://www.npmjs.com/package/vcluster-yaml-mcp-server" target="_blank" rel="noopener noreferrer" class="">npm package</a></li>
<li class=""><a href="https://github.com/Piotr1215/vcluster-yaml-mcp/blob/main/docs/CLI.md" target="_blank" rel="noopener noreferrer" class="">CLI docs</a></li>
<li class="">Public instance: <code>vcluster-yaml.cloudrumble.net/mcp</code></li>
</ul>
<p><strong>Try it:</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#F8F8F2;--prism-background-color:#282A36"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#F8F8F2;background-color:#282A36"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#F8F8F2"><span class="token comment" style="color:rgb(98, 114, 164)"># CLI only</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain">npx </span><span class="token parameter variable" style="color:rgb(189, 147, 249);font-style:italic">-p</span><span class="token plain"> vcluster-yaml-mcp-server vcluster-yaml query </span><span class="token function" style="color:rgb(80, 250, 123)">sync</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># With AI</span><span class="token plain"></span><br></div><div class="token-line" style="color:#F8F8F2"><span class="token plain"></span><span class="token comment" style="color:rgb(98, 114, 164)"># Add MCP config above, restart your AI client (Claude, ChatGPT, etc.)</span><br></div></code></pre></div></div>
<p><strong>Contribute:</strong></p>
<ul>
<li class=""><a href="https://github.com/Piotr1215/vcluster-yaml-mcp/issues" target="_blank" rel="noopener noreferrer" class="">Issues</a></li>
<li class=""><a href="https://github.com/Piotr1215/vcluster-yaml-mcp/discussions" target="_blank" rel="noopener noreferrer" class="">Discussions</a></li>
<li class="">PRs welcome</li>
</ul>
<hr>
<p>Try it. Let me know what breaks. Star it if it saves you an hour of debugging.</p>]]></content:encoded>
            <category>kubernetes</category>
            <category>vcluster</category>
            <category>ai</category>
            <category>mcp</category>
            <category>claude</category>
            <category>yaml</category>
            <category>devops</category>
            <category>hallucination</category>
        </item>
    </channel>
</rss>