<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Terminal | Bas Nijholt</title><link>https://www.nijho.lt/tag/terminal/</link><atom:link href="https://www.nijho.lt/tag/terminal/index.xml" rel="self" type="application/rss+xml"/><description>Terminal</description><generator>Hugo</generator><language>en-us</language><copyright>© 2026</copyright><lastBuildDate>Mon, 23 Nov 2026 00:00:00 +0000</lastBuildDate><image><url>https://www.nijho.lt/media/icon_hu_408a8f6cef43e327.png</url><title>Terminal</title><link>https://www.nijho.lt/tag/terminal/</link></image><item><title>I used to orchestrate agents. Now I orchestrate orchestrators. 🧵</title><link>https://www.nijho.lt/post/orchestrating-orchestrators/</link><pubDate>Mon, 23 Nov 2026 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/orchestrating-orchestrators/</guid><description>&lt;p&gt;I&amp;rsquo;m a huge terminal nerd.&#10;I maintain at least twenty different &lt;span class="hover-tip" data-tooltip="Command-line interface: a program you run by typing a command in a terminal." tabindex="0"&gt;CLI&lt;/span&gt; tools, and I use many of them every day.&#10;For a long time, all my coding with AI happened &lt;a href="https://www.nijho.lt/post/terminal-ninja/"&gt;strictly in the terminal&lt;/a&gt;.&#10;At peak I had probably thirty terminal windows and panes open at once.&lt;/p&gt;&#10;&lt;p&gt;So it was hard for me to accept that my next step was a desktop app.&#10;The step after that was a chat room.&lt;/p&gt;&#10;&lt;p&gt;I still use my &lt;span class="hover-tip" data-tooltip="Yes, I know it&amp;#39;s old and not trendy. I&amp;#39;ve tried the newer ones (Ghostty, WezTerm, Kitty, Alacritty), and I just care more about iTerm2&amp;#39;s features than the speed they promise." tabindex="0"&gt;beloved&lt;/span&gt; &lt;a href="https://www.nijho.lt/post/dotfiles/"&gt;iTerm2&lt;/a&gt;.&#10;I used to orchestrate agents in terminal windows.&#10;Now I orchestrate orchestrators.&#10;My coding agents live in &lt;a href="https://www.nijho.lt/post/mindroom/"&gt;MindRoom&lt;/a&gt; (&lt;a href="https://github.com/mindroom-ai/mindroom" target="_blank" rel="noopener"&gt;GitHub &lt;i class="fab fa-github"&gt;&lt;/i&gt;&lt;/a&gt;), in a room where every task is a thread, and that room shows me which thread needs me.&#10;This post walks through how I got there: the tools I used, why each one stopped working for me, and how the room in MindRoom changed along the way.&lt;/p&gt;&#10;&lt;details class="toc" open&gt;&lt;summary&gt;Table of contents&lt;/summary&gt;&lt;nav id="TableOfContents"&gt;&#10; &lt;ul&gt;&#10; &lt;li&gt;&lt;a href="#thirty-terminal-windows"&gt;Thirty terminal windows&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#the-apps-in-between"&gt;The apps in between&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#why-i-stayed-with-the-native-harnesses"&gt;Why I stayed with the native harnesses&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#tasks-that-run-for-a-day"&gt;Tasks that run for a day&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#orchestrating-orchestrators"&gt;Orchestrating orchestrators&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#about-those-lines-of-code"&gt;About those lines of code&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#a-thread-is-the-agents-context-window"&gt;A thread is the agent&amp;rsquo;s context window&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#from-first-messages-to-four-sections"&gt;From first messages to four sections&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#hiding-what-you-dont-need-to-see"&gt;Hiding what you don&amp;rsquo;t need to see&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#what-i-took-from-t3-code"&gt;What I took from T3 Code&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#interactive-canvases"&gt;Interactive canvases&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#a-software-factory-without-the-rigid-harness"&gt;A software factory without the rigid harness&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#what-the-numbers-do-and-dont-show"&gt;What the numbers do and don&amp;rsquo;t show&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#conclusion"&gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#10; &lt;/ul&gt;&#10;&lt;/nav&gt;&lt;/details&gt;&#10;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; A task I hand to an agent now runs from an hour to more than a day on its own.&#10;So I run many parallel sessions at once: fifteen comfortably, and up to forty on a good day (each with multiple sub-agents of its own).&#10;Knowing which session needs me is just a prerequisite.&#10;The real hard part is context management in my own head, remembering what every thread is doing so I can switch cleanly.&#10;MindRoom Chat shows every thread as a card under Needs you, Working, Later or Done, which takes status tracking off my plate so I can keep up.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;figure id="figure-my-mindroom-dev-room-in-the-compact-view-rebuilt-as-a-demo-the-client-is-the-real-mindroom-chat-and-the-threads-are-real-threads-from-my-room-replayed-with-their-own-titles-and-text-four-sit-under-needs-you-and-six-under-working-and-the-bar-at-the-bottom-counts-the-background-jobs-and-sub-agents-each-card-shows-an-ai-generated-title-what-the-agent-last-did-its-git-worktree-or-pull-request-and-when-it-last-replied-the-tool-counts-the-background-jobs-and-the-section-each-thread-sits-in-are-staged"&gt;&lt;img src="https://www.nijho.lt/post/orchestrating-orchestrators/room-sections_hu_9f92f6aa54f07968.webp" srcset="https://www.nijho.lt/post/orchestrating-orchestrators/room-sections_hu_40b4cefc87696231.webp 400w, https://www.nijho.lt/post/orchestrating-orchestrators/room-sections_hu_9f92f6aa54f07968.webp 760w, https://www.nijho.lt/post/orchestrating-orchestrators/room-sections_hu_eed26e971afc3f50.webp 1200w" sizes="auto, (max-width: 760px) 100vw, 720px" width="760" height="739" alt="MindRoom Chat in the Compact view with a Needs you section of four thread cards, a Working section of six and the start of a Later section. Each card has a title, a line about the agent&amp;#39;s last action, a worktree or pull request badge and tags." loading="lazy" data-zoomable&gt;&lt;figcaption&gt;My MindRoom-Dev room in the Compact view, rebuilt as a demo. The client is the real MindRoom Chat, and the threads are real threads from my room, replayed with their own titles and text. Four sit under Needs you and six under Working, and the bar at the bottom counts the background jobs and sub-agents. Each card shows an AI-generated title, what the agent last did, its git worktree or pull request, and when it last replied. The tool counts, the background jobs and the section each thread sits in are staged.&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;h2 id="thirty-terminal-windows"&gt;Thirty terminal windows &lt;a class="anchor" href="#thirty-terminal-windows" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;In August 2025 I described &lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;working on 6 features at once&lt;/a&gt;: one terminal tab per feature, and a round through all of them every 10 to 15 minutes.&#10;In January I made that setup one command with &lt;a href="https://www.nijho.lt/post/parallel-agentic-coding/"&gt;&lt;code&gt;agent-cli dev&lt;/code&gt;&lt;/a&gt;, which creates a &lt;a href="https://www.nijho.lt/post/git-worktree/"&gt;git worktree&lt;/a&gt; and opens a new tab with an agent already working in it.&lt;/p&gt;&#10;&lt;p&gt;That worked because a task took minutes.&#10;I&amp;rsquo;d start one, move to the next tab, and by the time I came back around there was something to review.&lt;/p&gt;&#10;&lt;p&gt;Then the models got better and I handed over more scope per task.&#10;The more I hand off, the longer an agent takes to finish.&#10;So I started doing more things in parallel.&#10;Thirty terminal windows was the ridiculous max, when I worked on five to eight things at once and each one had a couple of sub-panes, one with Codex and one with Claude Code.&#10;I was the orchestrator myself, jumping between panes to keep every agent moving.&#10;Keeping track of what&amp;rsquo;s running and what&amp;rsquo;s done becomes exceedingly hard in the terminal.&#10;Thirty panes all look the same, and the only way to find out what one of them is doing is to open it and read.&lt;/p&gt;&#10;&lt;p&gt;In June 2026 I experimented with &lt;a href="https://cmux.com" target="_blank" rel="noopener"&gt;cmux&lt;/a&gt; for a couple of months to improve oversight and clarity.&#10;It&amp;rsquo;s a terminal built for this, with vertical tabs and notifications for coding agents.&lt;/p&gt;&#10;&lt;h2 id="the-apps-in-between"&gt;The apps in between &lt;a class="anchor" href="#the-apps-in-between" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;My next step was the &lt;span class="hover-tip" data-tooltip="OpenAI&amp;#39;s desktop app for Codex, its coding agent. It shows several agent sessions next to each other in one window." tabindex="0"&gt;Codex desktop app&lt;/span&gt;, now rebranded as the ChatGPT app.&#10;I started using it around GPT-5.2, when the OpenAI models were, at least in my opinion, undoubtedly better.&#10;I absolutely loved it.&#10;It was a massive bump in my productivity, because it gave a much clearer view of what was running and what was done.&lt;/p&gt;&#10;&lt;p&gt;Then &lt;span class="hover-tip" data-tooltip="Claude Fable 5, a model from Anthropic." tabindex="0"&gt;Fable 5&lt;/span&gt; came out in June, and it felt better than the OpenAI models, so I went back to the &lt;span class="hover-tip" data-tooltip="Anthropic&amp;#39;s coding agent, which runs in a terminal." tabindex="0"&gt;Claude Code&lt;/span&gt; CLI.&#10;Switching back and forth between the Codex desktop app and the Claude CLI wasn&amp;rsquo;t optimal, so I looked for something that unified the two.&#10;That same month I found &lt;a href="https://github.com/pingdotgg/t3code" target="_blank" rel="noopener"&gt;T3 Code&lt;/a&gt;, which I really adored as well.&#10;It calls itself &amp;ldquo;the open-source control plane for coding agents&amp;rdquo;.&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&#10;I think of it as a &lt;span class="hover-tip" data-tooltip="The program around a model that turns it into an agent. It sends the prompts, gives the model tools such as a shell and a file editor, and runs what the model asks for." tabindex="0"&gt;harness&lt;/span&gt; for harnesses: it wraps Claude Code, Codex and OpenCode, and shows them in one web interface.&lt;/p&gt;&#10;&lt;p&gt;T3 Code wasn&amp;rsquo;t perfect for massively parallel work either.&#10;With more than twenty concurrent sessions, my relatively beefy AI machine started to struggle.&#10;The machine wasn&amp;rsquo;t overloaded.&#10;As far as I could tell, too many database writes went through a single thread.&#10;Opening a long thread took several seconds.&#10;And threads with background tasks still running showed up as idle, as if they needed me, which added to the confusion.&#10;Another thing I didn&amp;rsquo;t like was that T3 Code&amp;rsquo;s iOS app and web app were separate apps with different interfaces.&#10;In MindRoom Chat I fixed that for myself too: the web app and the iOS app are built from the same codebase, so they work the same way.&lt;/p&gt;&#10;&lt;p&gt;The awesome bit is that T3 Code is completely open source.&#10;So I ported my favorite functionality and its best ideas to MindRoom, and fixed the things that annoyed me.&lt;/p&gt;&#10;&lt;h2 id="why-i-stayed-with-the-native-harnesses"&gt;Why I stayed with the native harnesses &lt;a class="anchor" href="#why-i-stayed-with-the-native-harnesses" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;All of these tools have one thing in common: they run the coding harness of the company that made the model.&#10;The Codex app runs Codex, Claude Code is Anthropic&amp;rsquo;s own, and T3 Code drives both.&lt;/p&gt;&#10;&lt;p&gt;I stayed with them because I felt a model must just work better in its native harness, since that&amp;rsquo;s what it was trained with.&#10;It&amp;rsquo;s why I wrote seven weeks ago that &lt;a href="https://www.nijho.lt/post/mindroom-at-ionq/"&gt;&amp;ldquo;for writing code, dedicated tools like Claude Code and Codex are better&amp;rdquo;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Then I &lt;a href="https://www.nijho.lt/post/native-harness-tools/"&gt;tested that belief&lt;/a&gt;.&#10;Over &lt;span class="hover-tip" data-tooltip="12 short terminal tasks, such as writing a report from a CSV file or fixing failing tests, each run many times per model and per set of tools." tabindex="0"&gt;more than 4,000 runs&lt;/span&gt; of short terminal tasks, giving a model the tools of its own harness made only one model clearly more efficient.&lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt;&#10;What did matter was how much the agent sends with every request: a minimal agent with one shell tool and a 12-line prompt used 58 to 76% fewer &lt;span class="hover-tip" data-tooltip="The pieces of text a model reads and writes, each about three quarters of a word. Providers bill per token." tabindex="0"&gt;tokens&lt;/span&gt; than MindRoom&amp;rsquo;s standard agent.&lt;/p&gt;&#10;&lt;p&gt;That got me over the mental block.&#10;If the native harness doesn&amp;rsquo;t buy much, my agents can just as well work in the place where I already keep everything else.&#10;Even better, leaving the native harnesses makes it easy to support every model in the same room.&#10;Claude Code is Anthropic only, the Codex app is OpenAI only, and T3 Code wraps separate harnesses like Claude Code, Codex and OpenCode.&#10;In MindRoom I can mix models from Anthropic, OpenAI and Google inside one thread.&#10;Each &lt;span class="hover-tip" data-tooltip="A second agent that the main agent starts for one part of the task. It works in its own context and reports back." tabindex="0"&gt;sub-agent&lt;/span&gt; runs in that same minimal mode, which keeps the token count down.&#10;Most of my coding now happens in MindRoom threads.&lt;/p&gt;&#10;&lt;h2 id="tasks-that-run-for-a-day"&gt;Tasks that run for a day &lt;a class="anchor" href="#tasks-that-run-for-a-day" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Two things changed how long an agent can work without me.&lt;/p&gt;&#10;&lt;p&gt;The first is the models.&#10;With Claude Opus 5.5 and Claude Fable 5.2 I had another massive boost in productivity, simply because they can handle such an insanely large scope right now.&lt;/p&gt;&#10;&lt;p&gt;The second is my skills, which are public as &lt;a href="https://github.com/basnijholt/baspowers" target="_blank" rel="noopener"&gt;baspowers&lt;/a&gt;.&#10;They dictate a workflow where the agent follows established good engineering practices: it writes a spec and a plan, and it works &lt;span class="hover-tip" data-tooltip="Test-driven development: first write a test that fails because of the bug or the missing feature, then write the code that makes it pass." tabindex="0"&gt;test-first&lt;/span&gt;.&#10;But instead of involving me whenever something is ambiguous, it cross-checks with another &lt;span class="hover-tip" data-tooltip="One of the most capable models available at that moment." tabindex="0"&gt;frontier model&lt;/span&gt;, like &lt;span class="hover-tip" data-tooltip="A frontier model from OpenAI." tabindex="0"&gt;GPT-6.2 Astra&lt;/span&gt;.&#10;Only if that doesn&amp;rsquo;t resolve it does it involve me.&lt;sup id="fnref:3"&gt;&lt;a href="#fn:3" class="footnote-ref" role="doc-noteref"&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#10;&lt;p&gt;This is what reaches me, replayed from a real thread.&#10;Fable and Astra disagreed about a design choice, so the agent stopped and asked me.&#10;It lists both options and says which one it recommends.&#10;I answer with one click, and the agent goes on.&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop poster="/post/orchestrating-orchestrators/agent-question.jpg" preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/orchestrating-orchestrators/agent-question.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;p&gt;I wrote last month that &lt;a href="https://www.nijho.lt/post/how-to-start-with-ai/"&gt;you don&amp;rsquo;t need skills to start with AI&lt;/a&gt;, and I still think so.&#10;In one test, agents wrote a failing test before fixing a bug in 0 of 32 runs without my test-driven development skill, and in 32 of 32 runs with it.&#10;As I wrote there: &amp;ldquo;That matters when agents run on their own for hours.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;The result is that any task I start might run from just an hour to more than a day autonomously.&#10;That means I can run fifteen parallel sessions extremely comfortably.&#10;After a good night&amp;rsquo;s sleep, with a lot of focus, I&amp;rsquo;m able to orchestrate up to forty.&#10;Knowing which session needs me is just the baseline requirement.&#10;The real hard part is context management in my own head, remembering what every thread is doing.&#10;When I&amp;rsquo;m tired, I can&amp;rsquo;t hold that many in my head at once.&#10;When I&amp;rsquo;m rested and focused, I can still context switch between them almost instantly, as long as the room makes it clear what&amp;rsquo;s going on.&lt;/p&gt;&#10;&lt;h2 id="orchestrating-orchestrators"&gt;Orchestrating orchestrators &lt;a class="anchor" href="#orchestrating-orchestrators" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;One session is rarely just one agent, so forty sessions can easily mean a hundred agents in flight.&#10;In every thread I only talk to one parent agent, my development agent running on Opus 5.5.&#10;That parent agent carries my skills, my memories, and how I like to work.&#10;It knows my review standards, my git workflow, and when to cross-check a design decision instead of interrupting me.&lt;/p&gt;&#10;&lt;p&gt;Instead of doing every edit and review itself, that parent delegates the heavy lifting to minimal sub-agents.&#10;Each sub-agent starts with a much shorter system prompt in minimal mode, which keeps token overhead low and keeps it focused on one bounded job.&#10;In principle a sub-agent can look up how the parent agent works, though it rarely needs to because the parent already holds the context, memories, and workflow rules.&lt;/p&gt;&#10;&lt;p&gt;The parent picks the model per job using rules in its system prompt.&#10;By default it writes code with &lt;span class="hover-tip" data-tooltip="A coding model from Google." tabindex="0"&gt;Gemini 4 Neon&lt;/span&gt;, which only came out a couple of days ago.&#10;It&amp;rsquo;s still pretty expensive, and in the few days I&amp;rsquo;ve used it, the performance has been incredible, especially on UI work.&#10;Then &lt;span class="hover-tip" data-tooltip="A coding model from OpenAI." tabindex="0"&gt;GPT-6.2 Sol&lt;/span&gt;, GPT-6.2 Astra and Opus 5.5 review the full diff in parallel, and no model reviews its own code.&#10;After a fix round, a fresh reviewer checks the full diff so it doesn&amp;rsquo;t fixate on earlier findings.&#10;Fable 5.2 only writes code when a task is very complicated, or when two review rounds still find major issues.&#10;Simple lookups go to Claude Haiku 5.5.&lt;/p&gt;&#10;&lt;p&gt;That split is why the jump from thirty terminal panes to forty sessions works.&#10;I&amp;rsquo;m no longer shuttling prompts and review comments between Codex and Claude Code tabs by hand.&#10;Each thread is its own orchestrator, and everything in the rest of this post is the interface I built to orchestrate those orchestrators.&lt;/p&gt;&#10;&lt;p&gt;In this clip, Fable wrote the fix on a harder task while two other models review it in the background.&#10;The bar under the thread lists every running sub-agent with its task, model and run time.&#10;A click on a run opens what that sub-agent is doing.&#10;The thread is a real one, and the two runs and their numbers are made up for the demo.&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop poster="/post/orchestrating-orchestrators/sub-agents.jpg" preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/orchestrating-orchestrators/sub-agents.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;h2 id="about-those-lines-of-code"&gt;About those lines of code &lt;a class="anchor" href="#about-those-lines-of-code" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Programming is my biggest passion.&#10;Before AI coding got really good, I looked at every line of my code, and every comma mattered to me.&#10;I&amp;rsquo;d often lie in bed scrolling through my own code in the GitHub app, trying to find a place where I could make it a little cleaner, more &lt;span class="hover-tip" data-tooltip="Don&amp;#39;t repeat yourself: every piece of logic lives in one place." tabindex="0"&gt;DRY&lt;/span&gt; or more elegant.&lt;/p&gt;&#10;&lt;p&gt;In January I gave a presentation to a group of people who weren&amp;rsquo;t very AI native.&#10;I told them that I had written about a million lines of code in the last year, and I felt slightly embarrassed to say that.&#10;In the first twenty days of this month, the count is &lt;span class="hover-tip" data-tooltip="3,966,635 lines added plus deleted from November 1 through November 20, 2026." tabindex="0"&gt;almost four million&lt;/span&gt;.&lt;/p&gt;&#10;&lt;figure class="plot-figure"&gt;&#10; &lt;div class="plot-container" role="img" aria-label="Lines added and deleted per month in my merged pull requests and direct commits, counted by trueloc on November 20, 2026. November 2026 covers only the first twenty days of the month, less than three weeks." data-plot-module="/post/orchestrating-orchestrators/plots.js" data-plot-name="linesPerMonth"&gt;&lt;/div&gt;&#10; &lt;figcaption&gt;Lines added and deleted per month in my merged pull requests and direct commits, counted by trueloc on November 20, 2026. November 2026 covers only the first twenty days of the month, less than three weeks.&lt;/figcaption&gt;&#10; &lt;noscript&gt;This chart needs JavaScript.&lt;/noscript&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/plot.7cb86dc2e3ef25b56bc93730b2620745a7f02b5715de87f94e61908f60e51690.js" integrity="sha256-fLhtwuPvJbVryTcwsmIHRafwK1cV3of5TmGQj2DlFpA=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&#10;&#10;&lt;p&gt;I strongly feel that lines of code is not a measure of quality at all.&#10;It&amp;rsquo;s like measuring how good you are at building airplanes by how much weight you added to them.&lt;sup id="fnref:4"&gt;&lt;a href="#fn:4" class="footnote-ref" role="doc-noteref"&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#10;&lt;p&gt;The numbers come from &lt;a href="https://github.com/basnijholt/trueloc" target="_blank" rel="noopener"&gt;trueloc&lt;/a&gt;, a tool of mine that counts every line added and deleted in every commit of my merged &lt;span class="hover-tip" data-tooltip="A proposed change to a repository on GitHub. It gets reviewed and tested, and merging it puts the change into the main code." tabindex="0"&gt;pull requests&lt;/span&gt;, plus my direct commits.&lt;sup id="fnref:5"&gt;&lt;a href="#fn:5" class="footnote-ref" role="doc-noteref"&gt;5&lt;/a&gt;&lt;/sup&gt;&#10;Even when a pull request is squash-merged into one commit on &lt;code&gt;main&lt;/code&gt;, trueloc still counts the separate commits that went into it.&#10;That includes churn, generated files, and code that an agent wrote and then rewrote.&#10;From November 2024 through October 2025 that was &lt;span class="hover-tip" data-tooltip="1,380,174 lines added plus deleted." tabindex="0"&gt;about 1.4 million lines&lt;/span&gt; in 848 merged pull requests.&#10;In the twelve months after that it was &lt;span class="hover-tip" data-tooltip="9,957,695 lines added plus deleted." tabindex="0"&gt;about 10 million lines&lt;/span&gt; in 5,148 pull requests, and &lt;span class="hover-tip" data-tooltip="6,707,616 of 9,957,695 lines, which is 67%." tabindex="0"&gt;about two thirds&lt;/span&gt; of those lines are in code files.&lt;sup id="fnref:6"&gt;&lt;a href="#fn:6" class="footnote-ref" role="doc-noteref"&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#10;&lt;p&gt;So read the chart as the amount of work in flight, because that&amp;rsquo;s what I had to keep track of.&lt;/p&gt;&#10;&lt;h2 id="a-thread-is-the-agents-context-window"&gt;A thread is the agent&amp;rsquo;s context window &lt;a class="anchor" href="#a-thread-is-the-agents-context-window" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;MindRoom started out as just a basic chat interface.&#10;My idea was that every conversation in a room happens in a thread, and the thread is the &lt;span class="hover-tip" data-tooltip="The amount of text a model can take in at once. Everything the agent knows about the task has to fit in it." tabindex="0"&gt;context window&lt;/span&gt; that the agent sees.&#10;The agent has tools to look into other threads if it wants to.&#10;But its context is just that one thread, which is &lt;span class="hover-tip" data-tooltip="The older part of the conversation is replaced by a summary, so the rest fits again." tabindex="0"&gt;compacted&lt;/span&gt; once the context window fills up.&lt;/p&gt;&#10;&lt;p&gt;So one task is one thread, and a room is a list of tasks.&#10;For coding, each thread also gets its own &lt;span class="hover-tip" data-tooltip="A second working copy of the same repository, on its own branch and in its own folder, so several agents can change code without touching each other&amp;#39;s files." tabindex="0"&gt;git worktree&lt;/span&gt;, and the pull requests the agent opens are linked to the thread.&lt;/p&gt;&#10;&lt;p&gt;I don&amp;rsquo;t even have to start a session by picking a repository in a UI.&#10;I keep one meta-repo checkout holding all my repositories, and the agent already knows that folder.&#10;When I describe an issue, it figures out which repo I mean from context alone, and I only name the project when it&amp;rsquo;s brand new or genuinely ambiguous.&#10;Lately I also record short screen recordings on my phone, attach one to a thread, and dictate the rest by voice.&#10;Sometimes I land an entire large pull request without typing a single word.&#10;We even have an Apple Watch app now for orchestration in a pinch: one big record button starts a new task from my wrist, and I can read the replies there too.&lt;/p&gt;&#10;&lt;h2 id="from-first-messages-to-four-sections"&gt;From first messages to four sections &lt;a class="anchor" href="#from-first-messages-to-four-sections" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The room view went through six versions.&#10;You can click through the steps and try the filter, sort, group and section buttons below in a small mock-up of the same room.&lt;/p&gt;&#10;&lt;div class="mr-room-evolution"&gt;&lt;/div&gt;&#10;&lt;p&gt;&lt;strong&gt;First messages.&lt;/strong&gt;&#10;In a typical chat room, like Slack, you see the first message of a thread and then you click into it.&#10;Maybe you see a couple of avatars of who&amp;rsquo;s active in the thread.&#10;But that first message isn&amp;rsquo;t always indicative of what the thread is about.&#10;&amp;ldquo;Ok next thing, see what we discussed&amp;rdquo; tells me nothing an hour later.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Titles.&lt;/strong&gt;&#10;So I added AI-generated titles to every thread and showed those in the room.&#10;A title is a few words that say what the thread is actually about.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Resolve.&lt;/strong&gt;&#10;Then I realized it was hard to scroll through a room and know which thread is active, which one is done, and which one I was completely done with.&#10;So I added a sense of status.&#10;I can resolve a thread, which means I&amp;rsquo;m completely done with it, and it turns green.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Sort and filter.&lt;/strong&gt;&#10;I added filters, so I could hide the resolved threads, and filter on streaming or not, on scheduled or not, and more.&#10;Now I could sort on latest message, filter out the resolved threads, and know from the room which ones I had to address.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Cards.&lt;/strong&gt;&#10;That view still had a lot of cruft that obscured what&amp;rsquo;s important.&#10;I&amp;rsquo;d much rather see the AI-generated title, who&amp;rsquo;s currently working, and when the last reply was.&#10;So I came up with the Compact view, where every thread is one card.&#10;A card has three lines: the title and the time of the last reply, then what the agent is doing right now or the start of its last answer, and then who&amp;rsquo;s in the thread, its git worktree or pull request, its tags, and the number of replies.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Sections.&lt;/strong&gt;&#10;Then, inspired by the sections in T3 Code, I added that type of grouping too.&lt;sup id="fnref:7"&gt;&lt;a href="#fn:7" class="footnote-ref" role="doc-noteref"&gt;7&lt;/a&gt;&lt;/sup&gt;&#10;The cards now sit under four headers:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Needs you:&lt;/strong&gt; the agent finished or asked me something, and nothing is running in the thread.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Working:&lt;/strong&gt; the agent is replying, or a sub-agent or background job in the thread is still running.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Later:&lt;/strong&gt; the thread is snoozed or has something scheduled, so it comes back on its own.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Done:&lt;/strong&gt; I resolved it.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;A thread with a background job counts as Working.&#10;That&amp;rsquo;s the fix for the thing that confused me in T3 Code: a thread that is still working in the background no longer shows up as needing me.&lt;/p&gt;&#10;&lt;p&gt;The mock-up uses demo data.&#10;The clips below are the real MindRoom Chat, in a demo copy of my room that replays real threads of mine.&#10;The text in those threads is real.&#10;The tool calls, the background jobs and the numbers next to them are made up.&lt;/p&gt;&#10;&lt;p&gt;Here I fold and open the sections, show only the unresolved threads, and turn the grouping off and on.&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop poster="/post/orchestrating-orchestrators/room-sections.jpg" preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/orchestrating-orchestrators/room-sections.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;p&gt;And this is one request from start to finish.&#10;I type it in the room, and its card sits under Working while the agent replies.&#10;Once the agent is done, the card moves to Needs you.&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop poster="/post/orchestrating-orchestrators/request-to-needs-you.jpg" preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/orchestrating-orchestrators/request-to-needs-you.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;figure id="figure-later-holds-the-threads-that-come-back-on-their-own-one-with-a-task-scheduled-in-24-minutes-and-two-that-are-snoozed-until-the-next-morning-done-holds-the-threads-i-resolved"&gt;&lt;img src="https://www.nijho.lt/post/orchestrating-orchestrators/room-later-done_hu_b2c7f3b60272e23e.webp" srcset="https://www.nijho.lt/post/orchestrating-orchestrators/room-later-done_hu_bf5e8e2551826e2.webp 400w, https://www.nijho.lt/post/orchestrating-orchestrators/room-later-done_hu_b2c7f3b60272e23e.webp 760w, https://www.nijho.lt/post/orchestrating-orchestrators/room-later-done_hu_94f55d3063667606.webp 1200w" sizes="auto, (max-width: 760px) 100vw, 720px" width="760" height="475" alt="The Later section with three thread cards, one with a scheduled time and two marked as snoozed until November 21, above a Done section with green resolved cards." loading="lazy" data-zoomable&gt;&lt;figcaption&gt;Later holds the threads that come back on their own: one with a task scheduled in 24 minutes, and two that are snoozed until the next morning. Done holds the threads I resolved.&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;This small change in organization also resulted in a massive productivity boost, and it&amp;rsquo;s the interface I&amp;rsquo;m using right now.&lt;/p&gt;&#10;&lt;p&gt;The older view is still there.&#10;These two screenshots show the same demo copy of my room in both modes: the Threads view with each thread&amp;rsquo;s first message, AI title and reply count, and the Compact view with sections.&lt;/p&gt;&#10;&lt;figure id="figure-the-threads-view-of-the-demo-room-in-mindroom-chat-every-thread-shows-its-first-message-with-the-ai-generated-title-and-the-number-of-replies-under-it"&gt;&lt;img src="https://www.nijho.lt/post/orchestrating-orchestrators/threads-view_hu_51f2007f2ef542ee.webp" srcset="https://www.nijho.lt/post/orchestrating-orchestrators/threads-view_hu_7e7190f40ba2bd2f.webp 400w, https://www.nijho.lt/post/orchestrating-orchestrators/threads-view_hu_51f2007f2ef542ee.webp 760w, https://www.nijho.lt/post/orchestrating-orchestrators/threads-view_hu_e77ef69194a9a111.webp 1200w" sizes="auto, (max-width: 760px) 100vw, 720px" width="760" height="475" alt="MindRoom Chat showing the MindRoom-Dev room timeline with first messages, each followed by an AI-generated thread title and a replies badge." loading="lazy" data-zoomable&gt;&lt;figcaption&gt;The Threads view of the demo room in MindRoom Chat: every thread shows its first message, with the AI-generated title and the number of replies under it.&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;figure id="figure-the-same-room-in-the-compact-view-with-sections-four-threads-under-needs-you-and-six-under-working"&gt;&lt;img src="https://www.nijho.lt/post/orchestrating-orchestrators/compact-sections_hu_c3dc0ae1de16d133.webp" srcset="https://www.nijho.lt/post/orchestrating-orchestrators/compact-sections_hu_80fb8ef833a37c4b.webp 400w, https://www.nijho.lt/post/orchestrating-orchestrators/compact-sections_hu_c3dc0ae1de16d133.webp 760w, https://www.nijho.lt/post/orchestrating-orchestrators/compact-sections_hu_1e646f892156136a.webp 1200w" sizes="auto, (max-width: 760px) 100vw, 720px" width="760" height="475" alt="MindRoom Chat showing the same MindRoom-Dev room as cards grouped under Needs you with four cards and Working with six cards." loading="lazy" data-zoomable&gt;&lt;figcaption&gt;The same room in the Compact view with sections: four threads under Needs you and six under Working.&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;h2 id="hiding-what-you-dont-need-to-see"&gt;Hiding what you don&amp;rsquo;t need to see &lt;a class="anchor" href="#hiding-what-you-dont-need-to-see" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;I believe that to be productive with AI, you should be exposed to its raw power.&#10;It should be possible to see the agent&amp;rsquo;s reasoning, to see every tool call it makes, and to read the actual output of the model.&lt;/p&gt;&#10;&lt;p&gt;But nobody should be overwhelmed by it.&#10;In many cases you don&amp;rsquo;t care how the agent got there, and some people will never care.&lt;/p&gt;&#10;&lt;p&gt;So while an agent works, MindRoom Chat shows its reasoning and its tool calls as they happen.&#10;When it&amp;rsquo;s fully done, all of that folds away behind one row, and what stays is its conclusion.&#10;One click opens it again.&lt;/p&gt;&#10;&lt;p&gt;Here it is in the real client, with a question I really asked and the agent&amp;rsquo;s real answer.&#10;The answer streams in while the agent works, and its work folds behind one row when it&amp;rsquo;s done.&#10;One click opens that row again.&#10;The tool calls behind the row are made up for the demo.&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop poster="/post/orchestrating-orchestrators/reply-streams-and-folds.jpg" preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/orchestrating-orchestrators/reply-streams-and-folds.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;p&gt;What you read is still the direct output of the model.&#10;The conclusion isn&amp;rsquo;t a summary written by a different model, and the folded work is still there when you want it.&#10;The folding is another idea I took from T3 Code, where a finished turn collapses into a &amp;ldquo;Worked for&amp;rdquo; row.&lt;sup id="fnref:8"&gt;&lt;a href="#fn:8" class="footnote-ref" role="doc-noteref"&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&#10;&lt;h2 id="what-i-took-from-t3-code"&gt;What I took from T3 Code &lt;a class="anchor" href="#what-i-took-from-t3-code" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The sections and the folded replies aren&amp;rsquo;t the only things I ported.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The model picker has an Effort column for the &lt;span class="hover-tip" data-tooltip="How much a model thinks before it answers. Higher levels are slower and cost more, and they help on hard problems." tabindex="0"&gt;reasoning level&lt;/span&gt;.&lt;sup id="fnref:9"&gt;&lt;a href="#fn:9" class="footnote-ref" role="doc-noteref"&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;&#10;&lt;li&gt;Pull requests show up as cards, with a side panel that has the changed files and their diffs.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Here it is on a merged pull request of MindRoom Chat.&#10;The badge on a card has a hover card, and a click opens the panel next to the thread.&#10;The panel has the summary, the file tree and the diffs.&#10;What it shows is what GitHub returned for the real pull request.&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop poster="/post/orchestrating-orchestrators/pull-request-panel.jpg" preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/orchestrating-orchestrators/pull-request-panel.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;p&gt;I ported the code directly from T3 Code, with its MIT license linked in the repositories.&#10;Because I control the full source, I tailored the app to how I actually work.&#10;For example, the pull request viewer hides test files by default because I no longer read them, whereas T3 Code still showed all of them.&#10;I also made the whole interface keyboard-first, so I can navigate rooms, threads and actions without ever touching the mouse.&#10;Neither the pull request panel nor the git worktree support is built into MindRoom Chat itself.&#10;Both live in plugins, such as the &lt;a href="https://github.com/mindroom-ai/pull-request-client-plugin" target="_blank" rel="noopener"&gt;pull request plugin&lt;/a&gt;, because the chat app only knows about rooms, threads and agents.&#10;Not every one of these features strictly has to be a plugin.&#10;I&amp;rsquo;ve been pushing hard on MindRoom&amp;rsquo;s plugin ecosystem to keep it extensible, and building real features as plugins is how I know the plugin interface is strong enough.&lt;/p&gt;&#10;&lt;p&gt;I could change the room view this often because &lt;a href="https://www.nijho.lt/post/roll-your-own-fork-the-rest/"&gt;I own the client&lt;/a&gt;.&#10;&lt;a href="https://github.com/mindroom-ai/mindroom-chat" target="_blank" rel="noopener"&gt;MindRoom Chat&lt;/a&gt; is open source as well, under &lt;span class="hover-tip" data-tooltip="A permissive open-source license: you can use, change and redistribute the code, also commercially." tabindex="0"&gt;Apache-2.0&lt;/span&gt;.&#10;If my four sections don&amp;rsquo;t fit how you work, you can change them, the same way I took what I liked from T3 Code.&lt;/p&gt;&#10;&lt;h2 id="interactive-canvases"&gt;Interactive canvases &lt;a class="anchor" href="#interactive-canvases" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Not every decision fits a text reply or three buttons.&#10;When an agent proposes a UI change, it can send an interactive HTML canvas right inside the thread.&#10;I can click through the variants, toggle states and send my choice back to the agent directly from the page.&lt;/p&gt;&#10;&lt;p&gt;These are three real canvases my development agent built for me, embedded live below.&#10;Click through them to try the tabs, toggles and controls yourself, especially the Account Hold Menu where the press-and-hold and swipe gestures actually work.&lt;/p&gt;&#10;&lt;div class="mr-canvas-carousel"&gt;&lt;/div&gt;&#10;&lt;h2 id="a-software-factory-without-the-rigid-harness"&gt;A software factory without the rigid harness &lt;a class="anchor" href="#a-software-factory-without-the-rigid-harness" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A lot of people are talking about building heavily structured &amp;ldquo;software factories&amp;rdquo; with strict agent harnesses.&#10;That feels very anti-&lt;span class="hover-tip" data-tooltip="Rich Sutton&amp;#39;s 2019 essay arguing that general methods that scale with compute beat hand-crafted structure in the long run." tabindex="0"&gt;Bitter Lesson&lt;/span&gt; to me.&#10;The models already orchestrate work well enough on their own that you don&amp;rsquo;t need rigid pipeline structure around them.&lt;/p&gt;&#10;&lt;p&gt;Even without a strict harness, I end up with the software factory people want anyway.&#10;A &lt;a href="https://github.com/mindroom-ai/error-notifier-plugin" target="_blank" rel="noopener"&gt;plugin&lt;/a&gt; reports errors automatically into a room.&#10;An agent triages the error on its own and starts working on a fix.&#10;By the time I check in, there&amp;rsquo;s a pull request waiting for me with an agent I can question directly about the trade-offs, or even jump on a voice call with.&lt;/p&gt;&#10;&lt;h2 id="what-the-numbers-do-and-dont-show"&gt;What the numbers do and don&amp;rsquo;t show &lt;a class="anchor" href="#what-the-numbers-do-and-dont-show" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The chart is not a measure of good code, as I said above.&#10;It can&amp;rsquo;t credit MindRoom either.&#10;The big jump is in September 2026, which is when &lt;a href="https://www.nijho.lt/post/self-hosting-ai-is-not-cheaper/"&gt;GPT-6 Astra and Claude Opus 5.5 came out&lt;/a&gt;.&#10;The sections landed on November 17, a few days before I wrote this.&#10;So the chart shows the problem I had, which is far more work in flight than I could follow in terminal tabs.&lt;/p&gt;&#10;&lt;p&gt;Forty sessions is a peak, and fifteen is a normal day.&#10;And I built the tool I&amp;rsquo;m praising, so of course it fits me.&#10;Before MindRoom, I loved the Codex app and then T3 Code.&#10;I also wrote last month that &lt;a href="https://www.nijho.lt/post/roll-your-own-fork-the-rest/"&gt;&amp;ldquo;most new AI tooling is not very good, and MindRoom may well be included&amp;rdquo;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Before I merge a pull request, I no longer read the code line by line.&#10;In the pull request viewer I built, hovering over the diff size opens a breakdown of source code, documentation and tests.&#10;Nowadays I mostly ignore the test size and use the source code diff to judge whether the complexity is worth it.&#10;Before a pull request even reaches me, three other models have already reviewed it, always at least two models different from the one that wrote the code.&#10;The exact mix changes almost by the day, currently from Sol, Astra, Neon, Opus and sometimes Fable.&#10;My own review is mostly asking the agent targeted questions about how it solved something, what the trade-offs were, and why it did it that way.&#10;Then I either press merge myself in the sidebar, or I tell the agent to do it.&lt;/p&gt;&#10;&lt;p&gt;Fifteen parallel sessions can cost a lot.&#10;I&amp;rsquo;ve been spending anywhere from $50,000 to $100,000 a month in model usage, though luckily I don&amp;rsquo;t pay the bill.&lt;/p&gt;&#10;&lt;p&gt;I couldn&amp;rsquo;t think of a recent run that went badly wrong.&#10;The models have gotten so much better that the &lt;a href="https://www.nijho.lt/post/removing-guardrails/"&gt;hooks I wrote about two months ago&lt;/a&gt; feel like they barely matter any more.&#10;When I tell an agent not to merge a pull request, it just doesn&amp;rsquo;t, and it waits until I ask.&lt;/p&gt;&#10;&lt;h2 id="conclusion"&gt;Conclusion &lt;a class="anchor" href="#conclusion" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;I still have iTerm2 open all day.&#10;A year ago I cycled through five or six tabs every 10 to 15 minutes to see which agent was done.&#10;Now I open one room and look at Needs you.&lt;/p&gt;&#10;&lt;p&gt;Going all in on MindRoom also kick-started the best productivity optimization loop I&amp;rsquo;ve ever had.&#10;Before this, building my own development environment felt impractical, because I would have had to force myself to work inside an inferior tool (I hadn&amp;rsquo;t optimized MindRoom for coding yet), feel slow, and fall back to other apps.&#10;Now it&amp;rsquo;s genuinely the best place I can imagine developing in, so everything I find wrong with it, I fix right from inside it.&lt;/p&gt;&#10;&lt;p&gt;You can try the same view on &lt;a href="https://mindroom.chat" target="_blank" rel="noopener"&gt;mindroom.chat&lt;/a&gt;, and the &lt;a href="https://docs.mindroom.chat/showcase/" target="_blank" rel="noopener"&gt;showcase&lt;/a&gt; has recordings of what else it does.&lt;/p&gt;&#10;&lt;p&gt;I also wrote that &lt;a href="https://www.nijho.lt/post/how-to-start-with-ai/"&gt;with every new model, my workflow changes&lt;/a&gt;.&#10;So this is how I develop right now, and I expect it to look different in a few months.&lt;/p&gt;&#10;&lt;script src="mindroom-mock.js" defer&gt;&lt;/script&gt;&#10;&lt;div class="footnotes" role="doc-endnotes"&gt;&#10;&lt;hr&gt;&#10;&lt;ol&gt;&#10;&lt;li id="fn:1"&gt;&#10;&lt;p&gt;From the README of &lt;a href="https://github.com/pingdotgg/t3code" target="_blank" rel="noopener"&gt;pingdotgg/t3code&lt;/a&gt;, read on November 20, 2026. T3 Code is MIT licensed.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:2"&gt;&#10;&lt;p&gt;That model was Claude Opus 4.8, which did 17% less work and used 19% fewer tokens with Claude Code&amp;rsquo;s tools. GPT-6 Astra and Sol used 43 to 59% more tokens with the tools of their own harness.&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:3"&gt;&#10;&lt;p&gt;The skill is &lt;a href="https://github.com/basnijholt/baspowers/tree/main/skills/consulting-cross-model" target="_blank" rel="noopener"&gt;&lt;code&gt;consulting-cross-model&lt;/code&gt;&lt;/a&gt;. Claude asks GPT-6 Astra, and Codex asks Claude Opus 5.5.&amp;#160;&lt;a href="#fnref:3" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:4"&gt;&#10;&lt;p&gt;The line that&amp;rsquo;s usually quoted is &amp;ldquo;Measuring programming progress by lines of code is like measuring aircraft building progress by weight&amp;rdquo;, usually attributed to Bill Gates, though I couldn&amp;rsquo;t find a primary source for it.&amp;#160;&lt;a href="#fnref:4" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:5"&gt;&#10;&lt;p&gt;Counted on November 20, 2026 with &lt;code&gt;uvx trueloc count basnijholt --since 2024-11-01 --until 2026-11-20 --json&lt;/code&gt;, run with my own GitHub login, so it covers every repository that account can see. Over the whole window that&amp;rsquo;s 7,630 merged pull requests and 12,233 direct commits with 15,304,504 lines: 10,886,530 added and 4,417,974 deleted. September 2026 has 2,459,033 lines, October has 2,829,709, and November up to the 20th has 3,966,635.&amp;#160;&lt;a href="#fnref:5" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:6"&gt;&#10;&lt;p&gt;Code files are the ones with one of 26 source extensions, such as &lt;code&gt;.py&lt;/code&gt;, &lt;code&gt;.ts&lt;/code&gt;, &lt;code&gt;.tsx&lt;/code&gt;, &lt;code&gt;.rs&lt;/code&gt;, &lt;code&gt;.nix&lt;/code&gt;, &lt;code&gt;.sh&lt;/code&gt; and &lt;code&gt;.css&lt;/code&gt;. In the last twelve months that&amp;rsquo;s 6,707,616 of 9,957,695 lines (67%), and the rest is mostly JSON (11.7%), Markdown (9.2%) and SVG (4.4%). In the twelve months before, it was 832,382 of 1,380,174 lines (60%).&amp;#160;&lt;a href="#fnref:6" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:7"&gt;&#10;&lt;p&gt;The counted Needs you, Working, Later and Done filters are &lt;a href="https://github.com/mindroom-ai/mindroom-chat/pull/436" target="_blank" rel="noopener"&gt;mindroom-chat #436&lt;/a&gt;, and the sections in the Compact view are &lt;a href="https://github.com/mindroom-ai/mindroom-chat/pull/448" target="_blank" rel="noopener"&gt;#448&lt;/a&gt;. Both merged on November 17, 2026 (UTC).&amp;#160;&lt;a href="#fnref:7" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:8"&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/mindroom-ai/mindroom-chat/pull/419" target="_blank" rel="noopener"&gt;mindroom-chat #419&lt;/a&gt; folds a finished reply behind the &amp;ldquo;Worked for&amp;rdquo; row, and &lt;a href="https://github.com/mindroom-ai/mindroom-chat/pull/670" target="_blank" rel="noopener"&gt;#670&lt;/a&gt; does that for every finished reply with a tool call.&amp;#160;&lt;a href="#fnref:8" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li id="fn:9"&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/mindroom-ai/mindroom-chat/pull/562" target="_blank" rel="noopener"&gt;mindroom-chat #562&lt;/a&gt;.&amp;#160;&lt;a href="#fnref:9" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/div&gt;&#10;</description></item><item><title>Parallel agentic coding made trivial with `agent-cli dev`</title><link>https://www.nijho.lt/post/parallel-agentic-coding/</link><pubDate>Tue, 13 Jan 2026 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/parallel-agentic-coding/</guid><description>&lt;details class="toc" open&gt;&lt;summary&gt;Table of contents&lt;/summary&gt;&lt;nav id="TableOfContents"&gt;&#10; &lt;ul&gt;&#10; &lt;li&gt;&lt;a href="#1-the-just-use-worktrees-problem"&gt;1. The &amp;ldquo;just use worktrees&amp;rdquo; problem&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#2-why-parallel-development-matters-for-agentic-coding"&gt;2. Why parallel development matters for agentic coding&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#3-one-command-to-rule-them-all"&gt;3. One command to rule them all&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#4-it-knows-your-stack"&gt;4. It knows your stack&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#5-terminal-magic"&gt;5. Terminal magic&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#6-spawning-agents-with-prompts"&gt;6. Spawning agents with prompts&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#7-teaching-claude-to-spawn-agents"&gt;7. Teaching Claude to spawn agents&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#8-my-actual-workflow"&gt;8. My actual workflow&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#9-managing-environments"&gt;9. Managing environments&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#10-getting-started"&gt;10. Getting started&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#conclusion"&gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#links"&gt;Links&lt;/a&gt;&lt;/li&gt;&#10; &lt;/ul&gt;&#10;&lt;/nav&gt;&lt;/details&gt;&#10;&#10;&lt;h2 id="1-the-just-use-worktrees-problem"&gt;1. The &amp;ldquo;just use worktrees&amp;rdquo; problem &lt;a class="anchor" href="#1-the-just-use-worktrees-problem" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Last week, I was chatting with a friend about my &lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;agentic coding workflow&lt;/a&gt;.&#10;I was sharing some of my best practices, and when the topic of parallel development came up, I said:&lt;/p&gt;&#10;&lt;p&gt;&amp;ldquo;Just use git worktrees with quickly installable environments.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;He stared at me blankly.&lt;/p&gt;&#10;&lt;p&gt;And then it hit me: for most developers who just &lt;code&gt;git add&lt;/code&gt;, &lt;code&gt;git commit&lt;/code&gt;, &lt;code&gt;git push&lt;/code&gt; and don&amp;rsquo;t touch their environment setup once it works, this is &lt;em&gt;not&lt;/em&gt; trivial.&#10;What seems obvious to me involves:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Understanding what git worktrees even are&lt;/li&gt;&#10;&lt;li&gt;Knowing the &lt;code&gt;git worktree add&lt;/code&gt; command and its flags&lt;/li&gt;&#10;&lt;li&gt;Remembering to fetch before creating&lt;/li&gt;&#10;&lt;li&gt;Creating a sibling directory structure&lt;/li&gt;&#10;&lt;li&gt;Running your package manager&amp;rsquo;s install command&lt;/li&gt;&#10;&lt;li&gt;Copying over &lt;code&gt;.env&lt;/code&gt; files&lt;/li&gt;&#10;&lt;li&gt;Setting up direnv or manually activating your virtual environment&lt;/li&gt;&#10;&lt;li&gt;Opening a new terminal tab&lt;/li&gt;&#10;&lt;li&gt;Navigating to the worktree&lt;/li&gt;&#10;&lt;li&gt;Finally launching your coding agent&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;That&amp;rsquo;s a lot of friction for something you want to do &lt;em&gt;frequently&lt;/em&gt; when using agentic tools.&lt;/p&gt;&#10;&lt;p&gt;So I built &lt;code&gt;agent-cli dev&lt;/code&gt;.&lt;/p&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;code&gt;agent-cli dev new --agent --prompt &amp;quot;Fix the login bug&amp;quot;&lt;/code&gt; creates a complete, isolated development environment in one command.&#10;It creates a git worktree, installs dependencies, copies env files, sets up direnv, and opens your AI coding agent in a new terminal tab with your prompt already loaded—all automatically.&#10;No more manual setup, no more excuses to not work in parallel.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;h2 id="2-why-parallel-development-matters-for-agentic-coding"&gt;2. Why parallel development matters for agentic coding &lt;a class="anchor" href="#2-why-parallel-development-matters-for-agentic-coding" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;In my &lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;previous post on agentic coding&lt;/a&gt;, I described my workflow of running 5-6 Claude Code sessions simultaneously, each working on a different feature.&#10;This is how I can easily work on multiple features in parallel while waiting for an agent to process and generate code.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;The usual way:&lt;/strong&gt;&#10;Start feature A → wait for Claude to finish → review → move to feature B → repeat.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;The better way:&lt;/strong&gt;&#10;Start feature A in tab 1 → switch to tab 2, start feature B while A is working → switch to tab 3, start feature C → circle back to tab 1, review what Claude did → give feedback, move to next tab → repeat every 10-15 minutes.&lt;/p&gt;&#10;&lt;p&gt;This parallel approach allows me to go much faster.&#10;But it only works if each tab has its own &lt;strong&gt;completely isolated and working environment&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;That&amp;rsquo;s where &lt;a href="https://www.nijho.lt/post/git-worktree/"&gt;git worktrees&lt;/a&gt; come in.&#10;A worktree gives you a separate working directory for a branch, sharing the same git history but with independent file states.&lt;/p&gt;&#10;&lt;p&gt;The problem is the &lt;em&gt;setup&lt;/em&gt;.&#10;Every time you want to start a new feature:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# The manual way (don&amp;#39;t do this)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git fetch origin&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git worktree add ../my-project-worktrees/cool-feature -b cool-feature origin/main&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ../my-project-worktrees/cool-feature&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uv sync --all-extras &lt;span class="c1"&gt;# or npm install, or poetry install, or...&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cp ../.env .env&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Now open a new terminal tab...&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Navigate there...&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Finally start claude&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After the 100th(?) time doing this manually, I knew I needed to automate it.&lt;/p&gt;&#10;&lt;h2 id="3-one-command-to-rule-them-all"&gt;3. One command to rule them all &lt;a class="anchor" href="#3-one-command-to-rule-them-all" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s what I built:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new --agent&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That&amp;rsquo;s it.&#10;One command.&#10;Here&amp;rsquo;s what it looks like:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Generated branch name: cool-crane&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Creating worktree &lt;span class="k"&gt;for&lt;/span&gt; branch &lt;span class="s1"&gt;&amp;#39;cool-crane&amp;#39;&lt;/span&gt;...&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Running: git fetch origin&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Running: git worktree add -b cool-crane ~/Work/project-worktrees/cool-crane origin/main&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;✓ Created worktree at ~/Work/project-worktrees/cool-crane&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;✓ Copied env file&lt;span class="o"&gt;(&lt;/span&gt;s&lt;span class="o"&gt;)&lt;/span&gt;: .env.example, .envrc&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Detected Python project with uv&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Running: uv sync --all-extras&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;→ Running: direnv allow&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;✓ direnv: allowed existing .envrc&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;✓ Started claude in new iterm2 tab&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;╭─────────────────────────────────────────────── Success ───────────────────────────────────────────────╮&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;│ Dev environment created: ~/Work/project-worktrees/cool-crane │&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;│ Branch: cool-crane │&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;4 seconds later, I have a new terminal tab with Claude Code already running in a fresh, isolated environment.&#10;Ready to work on my next feature.&lt;/p&gt;&#10;&lt;p&gt;What happens under the hood:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Generates a random branch name&lt;/strong&gt; like &lt;code&gt;clever-fox&lt;/code&gt; (you can just set the name yourself of course)&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Creates the git worktree&lt;/strong&gt; in a sibling directory&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Detects the project type&lt;/strong&gt; and runs the appropriate setup (&lt;code&gt;uv sync&lt;/code&gt;, &lt;code&gt;npm install&lt;/code&gt;, etc.)&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Copies &lt;code&gt;.env&lt;/code&gt; files&lt;/strong&gt; from the main repo&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Sets up direnv&lt;/strong&gt; so the environment activates automatically&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Opens a new terminal tab&lt;/strong&gt; (works with tmux, zellij, iTerm2, and more)&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Launches your coding agent&lt;/strong&gt; in that tab&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The Docker-style random names (&lt;code&gt;clever-fox&lt;/code&gt;, &lt;code&gt;happy-bear&lt;/code&gt;, &lt;code&gt;swift-owl&lt;/code&gt;) there just for those too lazy to pick a name.&#10;Just &lt;code&gt;agent-cli dev new --agent&lt;/code&gt; and start coding.&lt;/p&gt;&#10;&lt;h2 id="4-it-knows-your-stack"&gt;4. It knows your stack &lt;a class="anchor" href="#4-it-knows-your-stack" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The command auto-detects your project type:&lt;/p&gt;&#10;&lt;div class="table-wrap"&gt;&#10;&lt;table&gt;&#10;&lt;thead&gt;&#10;&lt;tr&gt;&#10;&lt;th&gt;If it sees&amp;hellip;&lt;/th&gt;&#10;&lt;th&gt;It runs&amp;hellip;&lt;/th&gt;&#10;&lt;/tr&gt;&#10;&lt;/thead&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;uv.lock&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;uv sync --all-extras&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;pixi.lock&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;pixi install&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;poetry.lock&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;poetry install&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;requirements.yaml&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;unidep install -e .&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;package-lock.json&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;npm install&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;Cargo.toml&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;cargo build&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;go.mod&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;code&gt;go mod download&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;For my projects using &lt;a href="https://github.com/basnijholt/unidep" target="_blank" rel="noopener"&gt;unidep&lt;/a&gt;, it even detects monorepos and adjusts the command accordingly.&lt;/p&gt;&#10;&lt;p&gt;It also generates the right &lt;code&gt;.envrc&lt;/code&gt; for &lt;a href="https://direnv.net/" target="_blank" rel="noopener"&gt;direnv&lt;/a&gt;.&#10;For a Python project with uv, that&amp;rsquo;s &lt;code&gt;source .venv/bin/activate&lt;/code&gt;.&#10;For a conda/unidep project, it&amp;rsquo;s the full micromamba activation.&#10;For Nix projects, it&amp;rsquo;s &lt;code&gt;use flake&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;This means when you &lt;code&gt;cd&lt;/code&gt; into the worktree later, your environment is automatically activated.&#10;No more &lt;code&gt;source .venv/bin/activate&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2 id="5-terminal-magic"&gt;5. Terminal magic &lt;a class="anchor" href="#5-terminal-magic" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The real magic is opening a new terminal tab with the agent already running.&lt;/p&gt;&#10;&lt;p&gt;The command detects which terminal you&amp;rsquo;re in and uses the appropriate API—whether that&amp;rsquo;s iTerm2, Kitty, Warp, or GNOME Terminal.&#10;It even works with terminal multiplexers like &lt;strong&gt;tmux&lt;/strong&gt; and &lt;strong&gt;zellij&lt;/strong&gt; (my current favorite), opening a new window/tab in your existing session.&lt;/p&gt;&#10;&lt;h2 id="6-spawning-agents-with-prompts"&gt;6. Spawning agents with prompts &lt;a class="anchor" href="#6-spawning-agents-with-prompts" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;code&gt;--prompt&lt;/code&gt; option transforms how I spawn parallel agents.&#10;Instead of just opening a blank Claude session, I can give the new agent its task immediately:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new fix-auth-bug --agent --prompt &lt;span class="s2"&gt;&amp;#34;Fix the login validation bug in auth.py. The issue is that empty passwords pass validation.&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The agent opens with the prompt already loaded and starts working immediately.&#10;No copy-pasting, no context switching, no &amp;ldquo;let me explain what I need you to do.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;For longer, more detailed prompts (which you should use for complex tasks), there&amp;rsquo;s &lt;code&gt;--prompt-file&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new new-feature --agent --prompt-file .claude/spawn-prompt.md&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is particularly powerful when you&amp;rsquo;re in a Claude session and discover a feature that needs work but is unrelated to your current task.&#10;Instead of context-switching or noting it for later, you can spawn a new agent right there:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Write a detailed prompt to a file (Claude can do this)&lt;/li&gt;&#10;&lt;li&gt;Run &lt;code&gt;agent-cli dev new unrelated-feature --agent --prompt-file .claude/spawn-prompt.md&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;A new terminal tab opens with a fresh Claude session already working on the task&lt;/li&gt;&#10;&lt;li&gt;Continue with your original work&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The spawned agent works independently in its own branch while you stay focused.&lt;/p&gt;&#10;&lt;h2 id="7-teaching-claude-to-spawn-agents"&gt;7. Teaching Claude to spawn agents &lt;a class="anchor" href="#7-teaching-claude-to-spawn-agents" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s where it gets really interesting: you can teach Claude Code itself how to spawn parallel agents.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev install-skill&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This installs a &lt;a href="https://docs.anthropic.com/en/docs/claude-code/skills" target="_blank" rel="noopener"&gt;Claude Code skill&lt;/a&gt; that teaches Claude how to use &lt;code&gt;agent-cli dev&lt;/code&gt;.&#10;The skill includes detailed examples and prompt templates following Anthropic&amp;rsquo;s &lt;a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview" target="_blank" rel="noopener"&gt;prompt engineering guide&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;With the skill installed, you can say things like:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&amp;ldquo;Work on auth, payments, and notifications in parallel&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;&amp;ldquo;This feature is unrelated to what we&amp;rsquo;re doing—spawn a new agent for it&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;&amp;ldquo;Split this refactoring by module and work on them simultaneously&amp;rdquo;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Claude will write well-structured prompts (using proper XML tags, clear context, explicit requirements) and spawn the agents for you.&#10;Each spawned agent writes a report to &lt;code&gt;.claude/REPORT.md&lt;/code&gt; when done, so you can easily review what happened.&lt;/p&gt;&#10;&lt;p&gt;One of my favorite patterns: I ask Claude to look at the latest 10 open GitHub issues and spawn an agent for each one.&#10;Ten independent parallel environments, set up in seconds, each working on a different issue.&#10;That&amp;rsquo;s the kind of leverage this enables.&lt;/p&gt;&#10;&lt;h2 id="8-my-actual-workflow"&gt;8. My actual workflow &lt;a class="anchor" href="#8-my-actual-workflow" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s how I use this in practice.&#10;I&amp;rsquo;m working on &lt;a href="https://github.com/basnijholt/agent-cli" target="_blank" rel="noopener"&gt;agent-cli&lt;/a&gt; itself, and I want to add three features:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Tab 1: New RAG feature&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new rag-improvements --agent --prompt &lt;span class="s2"&gt;&amp;#34;Improve RAG chunking strategy for better retrieval accuracy&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Tab 2: Fix a bug in the transcribe command&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new fix-transcribe-vad --agent --prompt &lt;span class="s2"&gt;&amp;#34;Fix VAD detection cutting off words at sentence boundaries&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Tab 3: Refactor the config system&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new config-refactor --agent --prompt &lt;span class="s2"&gt;&amp;#34;Refactor config.py to use a single Config class with lazy loading&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Three commands, three isolated environments, three Claude Code sessions already working on their tasks.&lt;/p&gt;&#10;&lt;p&gt;I cycle through the tabs every 10-15 minutes:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Review what Claude did&lt;/li&gt;&#10;&lt;li&gt;Give voice feedback using my &lt;a href="https://www.nijho.lt/post/local-ai-journey/"&gt;transcription workflow&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Move to the next tab&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;When a feature is done, I have Claude open a PR from that branch.&#10;When the PR is merged:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev clean --merged&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This uses the GitHub CLI to check which branches have merged PRs, then removes those worktrees and deletes the branches.&#10;No more zombie worktrees cluttering my disk.&lt;/p&gt;&#10;&lt;h2 id="9-managing-environments"&gt;9. Managing environments &lt;a class="anchor" href="#9-managing-environments" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A few other commands I use regularly:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# List all worktrees&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev list&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Navigate to a worktree&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;agent-cli dev path clever-fox&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Remove a worktree&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev rm clever-fox&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Force removal + delete branch&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev rm clever-fox --force --delete-branch&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Check what&amp;#39;s available on your system&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev doctor&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;doctor&lt;/code&gt; command is handy for seeing which terminals, editors, and coding agents are installed and detected.&lt;/p&gt;&#10;&lt;h2 id="10-getting-started"&gt;10. Getting started &lt;a class="anchor" href="#10-getting-started" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;agent-cli dev&lt;/code&gt; is part of the &lt;a href="https://github.com/basnijholt/agent-cli" target="_blank" rel="noopener"&gt;agent-cli&lt;/a&gt; package:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# With uv (recommended)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uv tool install agent-cli&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then in any git repository:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Check what&amp;#39;s available&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev doctor&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Create your first parallel environment with a task&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev new my-feature --agent --prompt &lt;span class="s2"&gt;&amp;#34;Add user profile page with avatar upload&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Or install the skill so Claude can spawn agents for you&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;agent-cli dev install-skill&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Supported coding agents:&lt;/strong&gt; Claude Code, Codex, Gemini, Aider, GitHub Copilot, Continue, OpenCode, and Cursor Agent.&#10;Use &lt;code&gt;--with-agent gemini&lt;/code&gt; to pick a specific one, or set a default in your config.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Supported terminals:&lt;/strong&gt; tmux, zellij, iTerm2, Terminal.app, Kitty, Warp, and GNOME Terminal.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Supported editors:&lt;/strong&gt; Cursor, VS Code, Zed, PyCharm (and other JetBrains IDEs), Neovim, Vim, Emacs, Sublime Text, and nano.&lt;/p&gt;&#10;&lt;h2 id="conclusion"&gt;Conclusion &lt;a class="anchor" href="#conclusion" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The barrier between &amp;ldquo;I want to work on this feature&amp;rdquo; and &amp;ldquo;I&amp;rsquo;m actually working on it in an isolated environment&amp;rdquo; should be zero.&lt;/p&gt;&#10;&lt;p&gt;Before:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;2-5 minutes of manual setup per feature&lt;/li&gt;&#10;&lt;li&gt;Often skipped because &amp;ldquo;it&amp;rsquo;s not worth it for a small change&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;Mental overhead remembering all the steps&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;After:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;One command, few seconds&lt;/li&gt;&#10;&lt;li&gt;No excuse not to work in isolation&lt;/li&gt;&#10;&lt;li&gt;More parallel features, faster iteration&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;If you&amp;rsquo;re using agentic coding tools and not yet working in parallel, you&amp;rsquo;re leaving productivity on the table.&#10;And if the setup friction was stopping you—well, now it&amp;rsquo;s gone.&lt;/p&gt;&#10;&lt;p&gt;Try it out and let me know what you think!&#10;The code is open-source at &lt;a href="https://github.com/basnijholt/agent-cli" target="_blank" rel="noopener"&gt;github.com/basnijholt/agent-cli&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="links"&gt;Links &lt;a class="anchor" href="#links" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/basnijholt/agent-cli" target="_blank" rel="noopener"&gt;agent-cli on GitHub&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://agent-cli.nijho.lt/commands/dev/" target="_blank" rel="noopener"&gt;&lt;code&gt;agent-cli dev&lt;/code&gt; documentation&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://docs.anthropic.com/en/docs/claude-code/skills" target="_blank" rel="noopener"&gt;Claude Code skills&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview" target="_blank" rel="noopener"&gt;Anthropic prompt engineering guide&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/git-worktree/"&gt;My post on git worktrees&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;My post on agentic coding&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://zellij.dev/" target="_blank" rel="noopener"&gt;Zellij&lt;/a&gt; / &lt;a href="https://github.com/tmux/tmux" target="_blank" rel="noopener"&gt;tmux&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://direnv.net/" target="_blank" rel="noopener"&gt;direnv&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>Coding from my phone 📱</title><link>https://www.nijho.lt/post/agentic-mobile-workflow/</link><pubDate>Mon, 20 Oct 2025 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/agentic-mobile-workflow/</guid><description>&lt;p&gt;I am dictating this post at ten kilometers altitude on a flight home from Mexico, Blink Shell open on my iPhone, while an agentic assistant on my &lt;a href="https://nixos.org/" target="_blank" rel="noopener"&gt;NixOS&lt;/a&gt; machine writes an initial draft for this post.&#10;Admittedly, I’m a little addicted to agentic coding: when an idea pops up, I want to jump on it right away—even if that means doing it from a cramped seat in the sky.&#10;This is the workflow I’ve arrived at after trying many alternatives, it extends &lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;my agentic coding write-up&lt;/a&gt; and the self-hosted AI obsession in &lt;a href="https://www.nijho.lt/post/local-ai-journey/"&gt;my local AI journey&lt;/a&gt;.&#10;It&amp;rsquo;s my backup plan for those moments when a computer simply isn&amp;rsquo;t nearby—the rest of the time I&amp;rsquo;m still at a keyboard like any other developer.&#10;This is in no way a replacement for a proper computer/laptop workflow but gets the job done when needed.&#10;It&amp;rsquo;s a personal, mostly open-source stack built around &lt;a href="https://github.com/basnijholt/agent-cli" target="_blank" rel="noopener"&gt;&lt;code&gt;agent-cli&lt;/code&gt;&lt;/a&gt;—my local-first voice layer.&#10;Here&amp;rsquo;s how it works: I speak into my phone, the audio goes to &lt;a href="https://github.com/SYSTRAN/faster-whisper-server" target="_blank" rel="noopener"&gt;FasterWhisper&lt;/a&gt; for transcription, &lt;a href="https://ollama.com/" target="_blank" rel="noopener"&gt;Ollama&lt;/a&gt; cleans up the text, and it lands on my clipboard ready to paste.&#10;My iOS Shortcut handles this through a small HTTP interface that agent-cli exposes.&#10;The coding agent itself still uses the best proprietary model I can access.&lt;/p&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;Meta: I&amp;rsquo;m writing about agentic coding on mobile from my actual phone.&#10;It&amp;rsquo;s not the most efficient way to write, but it gets the job done — during a 6.5‑hour flight I dictated and iterated this entire post.&#10;Each iteration was a commit: dictate changes, review the diff, refine, commit, repeat.&#10;See all &lt;a href="https://github.com/basnijholt/nijho.lt/pull/40" target="_blank" rel="noopener"&gt;50+ commits in PR #40&lt;/a&gt; for the full iteration trail.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; iPhone → WireGuard → Blink+Mosh → Zellij.&#10;I dictate via a Shortcut → FasterWhisper (transcribe) → Ollama (polish) → clipboard, then paste into Codex CLI using OpenAI’s &lt;code&gt;gpt-5-codex-high&lt;/code&gt;.&#10;Everything is local except the model.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;details class="toc" open&gt;&lt;summary&gt;Table of contents&lt;/summary&gt;&lt;nav id="TableOfContents"&gt;&#10; &lt;ul&gt;&#10; &lt;li&gt;&lt;a href="#1-why-phone-coding-works-now"&gt;1. Why Phone Coding Works Now&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#2-constraints-and-trade-offs"&gt;2. Constraints and Trade-offs&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#3-layer-1-wireguard-from-the-router"&gt;3. Layer 1: WireGuard From the Router&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#4-layer-2-blink-shell--mosh-for-durable-sessions"&gt;4. Layer 2: Blink Shell + Mosh for Durable Sessions&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#5-layer-3-zellij-layouts"&gt;5. Layer 3: Zellij Layouts&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#6-layer-4-agent-cli-server"&gt;6. Layer 4: &lt;code&gt;agent-cli&lt;/code&gt; Server&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#7-layer-5-the-ios-shortcut-pipeline"&gt;7. Layer 5: The iOS Shortcut Pipeline&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#8-workflow-in-practice"&gt;8. Workflow in Practice&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#9-conclusion-and-further-reading"&gt;9. Conclusion and Further Reading&lt;/a&gt;&lt;/li&gt;&#10; &lt;/ul&gt;&#10;&lt;/nav&gt;&lt;/details&gt;&#10;&#10;&lt;h2 id="1-why-phone-coding-works-now"&gt;1. Why Phone Coding Works Now &lt;a class="anchor" href="#1-why-phone-coding-works-now" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;For years I used &lt;a href="https://ish.app/" target="_blank" rel="noopener"&gt;&lt;strong&gt;iSH&lt;/strong&gt;&lt;/a&gt; (a full Alpine Linux emulator) with SSH to hop into servers from my phone, but dropped connections were a constant frustration (Mosh fixes this, more on that later).&#10;Because coding on a phone keyboard is terrible, I kept it to tiny configuration tweaks or one-off fixes of a few characters.&#10;Agentic tools changed that: with a CLI coding agent, I don’t need to type the code—I describe the change, review the patch, and run it.&#10;That made meaningful work on the phone possible for the first time, for those moments when a computer isn’t around.&lt;/p&gt;&#10;&lt;p&gt;I tried &lt;strong&gt;VS Code in the browser&lt;/strong&gt;, bounced between &lt;strong&gt;iSH&lt;/strong&gt; and &lt;strong&gt;Terminus&lt;/strong&gt; for SSH, and even lived inside a handful of in-browser terminal clients.&#10;I also spent time with mobile companions like &lt;a href="https://happy.engineering/" target="_blank" rel="noopener"&gt;&lt;strong&gt;Happy&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://www.ycombinator.com/companies/omnara" target="_blank" rel="noopener"&gt;&lt;strong&gt;Omnara&lt;/strong&gt;&lt;/a&gt;, both designed to mirror Claude Code sessions on the phone, but they still felt like extra steps between me and my actual terminal.&#10;That friction pushed me toward a phone‑ready, self‑hosted workflow that still gives me raw SSH access to my own machine when the computer is out of reach.&lt;/p&gt;&#10;&lt;p&gt;This post is based on the way I develop software today.&#10;Your mileage may vary, but if you also care about privacy, open tooling, and reproducible environments, I think there are useful pieces here.&lt;/p&gt;&#10;&lt;h2 id="2-constraints-and-trade-offs"&gt;2. Constraints and Trade-offs &lt;a class="anchor" href="#2-constraints-and-trade-offs" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This setup grew organically over time. What emerged are less strict requirements and more happy accidents that turned into core benefits:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Single trust boundary:&lt;/strong&gt; Only the model provider (OpenAI) sees code context; audio and automation stay local, and I avoid any additional third‑party relays.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Resilient sessions:&lt;/strong&gt; Connections should survive sleep and spotty networks.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Voice-friendly:&lt;/strong&gt; Dictation should be accurate enough that I can trust it.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Reproducible config:&lt;/strong&gt; The entire stack must live in my &lt;a href="https://www.nijho.lt/post/dotfiles/"&gt;dotfiles&lt;/a&gt; and &lt;a href="https://github.com/basnijholt/dotfiles/tree/8f6bf0b7219195a46a3e010d3538e1e449634db7/configs/nixos" target="_blank" rel="noopener"&gt;NixOS configuration&lt;/a&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;To give you a sense of what I tried, here is the short comparison that convinced me to roll my own:&lt;/p&gt;&#10;&lt;div class="table-wrap"&gt;&#10;&lt;table&gt;&#10;&lt;thead&gt;&#10;&lt;tr&gt;&#10;&lt;th&gt;Approach&lt;/th&gt;&#10;&lt;th&gt;Pros&lt;/th&gt;&#10;&lt;th&gt;Why I moved on&lt;/th&gt;&#10;&lt;/tr&gt;&#10;&lt;/thead&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;VS Code in the browser&lt;/td&gt;&#10;&lt;td&gt;Familiar editor UI&lt;/td&gt;&#10;&lt;td&gt;Needs a steady connection and still lives outside my dotfiles comfort zone&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;iSH / Terminus SSH&lt;/td&gt;&#10;&lt;td&gt;Works without extra infrastructure&lt;/td&gt;&#10;&lt;td&gt;Laggy, no Mosh, and awkward keybindings&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;In-browser terminals&lt;/td&gt;&#10;&lt;td&gt;Instant access from anywhere&lt;/td&gt;&#10;&lt;td&gt;Poor copy/paste ergonomics and flaky mobile keyboards&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;a href="https://apps.apple.com/us/app/happy-codex-claude-code-app/id6748571505" target="_blank" rel="noopener"&gt;Happy&lt;/a&gt; (Claude Code companion)&lt;/td&gt;&#10;&lt;td&gt;Push notifications, encrypted mobile UI for Claude Code&lt;/td&gt;&#10;&lt;td&gt;Requires wrapping every session with a separate CLI and still abstracts away my shell, and was quite buggy for me&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;a href="https://omnara.com" target="_blank" rel="noopener"&gt;Omnara&lt;/a&gt; (agent command center)&lt;/td&gt;&#10;&lt;td&gt;Centralizes Claude Code/Codex sessions with terminal replay&lt;/td&gt;&#10;&lt;td&gt;Proxies via their servers; I already trust OpenAI for the model and don&amp;rsquo;t want another third‑party handling my code&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The stack below gives me the resilience of Mosh, the ergonomics of Zellij, and full control over the AI layer.&lt;/p&gt;&#10;&lt;h2 id="3-layer-1-wireguard-from-the-router"&gt;3. Layer 1: WireGuard From the Router &lt;a class="anchor" href="#3-layer-1-wireguard-from-the-router" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://www.wireguard.com/" target="_blank" rel="noopener"&gt;WireGuard&lt;/a&gt; is a modern VPN that lets me securely access my home network from anywhere.&#10;I terminate WireGuard on my router so every device in the house (and on the road) can dial home with the same config.&#10;(If you want something easier to set up without opening ports, &lt;a href="https://tailscale.com/" target="_blank" rel="noopener"&gt;Tailscale&lt;/a&gt; is a more user-friendly option.)&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Server:&lt;/strong&gt; ASUS XT8 router with WireGuard enabled via the router UI.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Client:&lt;/strong&gt; The WireGuard iOS app with &lt;code&gt;On-Demand&lt;/code&gt; rules so the tunnel flips on whenever I am off trusted Wi-Fi.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;DNS:&lt;/strong&gt; All mobile sessions resolve through my home DNS, so &lt;code&gt;git.nijho.lt&lt;/code&gt; and internal services resolve instantly.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;This gives Blink a local-LAN address for my desktop &lt;code&gt;nixos&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2 id="4-layer-2-blink-shell--mosh-for-durable-sessions"&gt;4. Layer 2: Blink Shell + Mosh for Durable Sessions &lt;a class="anchor" href="#4-layer-2-blink-shell--mosh-for-durable-sessions" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;What is &lt;a href="https://mosh.org/" target="_blank" rel="noopener"&gt;Mosh&lt;/a&gt;?&#10;It&amp;rsquo;s like SSH, but it stays connected when the network changes or the phone sleeps, and it feels faster on bad connections.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://blink.sh/" target="_blank" rel="noopener"&gt;Blink Shell&lt;/a&gt; is my daily driver on iOS because it pairs beautifully with Mosh and has great keyboard ergonomics.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;I launch sessions using &lt;code&gt;mosh bas@nixos -- zellij attach --create phone&lt;/code&gt; (&lt;a href="https://zellij.dev/" target="_blank" rel="noopener"&gt;Zellij&lt;/a&gt; is my terminal multiplexer—more on that in the next section).&lt;/li&gt;&#10;&lt;li&gt;Mosh smooths over spotty LTE and keeps my session alive when the phone sleeps.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Mosh keeps the session responsive across flaky networks and sleep.&lt;/p&gt;&#10;&lt;h2 id="5-layer-3-zellij-layouts"&gt;5. Layer 3: Zellij Layouts &lt;a class="anchor" href="#5-layer-3-zellij-layouts" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;I use &lt;strong&gt;Zellij&lt;/strong&gt; as my terminal multiplexer for mobile work.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;I stick to the defaults and use a couple of predefined layouts (e.g., a &amp;ldquo;phone&amp;rdquo; layout with editor + shell panes).&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Ergonomics matter even more on a glass keyboard, so I lean on a few shell helpers:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;&lt;a href="https://github.com/ajeetdsouza/zoxide" target="_blank" rel="noopener"&gt;&lt;code&gt;zoxide&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt; means I can jump between repos with &lt;code&gt;z foo&lt;/code&gt; instead of pecking long paths.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Single-character aliases&lt;/strong&gt; like &lt;code&gt;p&lt;/code&gt; for &lt;code&gt;pytest&lt;/code&gt; and &lt;code&gt;gs&lt;/code&gt; for &lt;code&gt;git status&lt;/code&gt; live in &lt;a href="https://github.com/basnijholt/dotfiles/blob/8f6bf0b7219195a46a3e010d3538e1e449634db7/configs/shell/10_aliases.sh" target="_blank" rel="noopener"&gt;&lt;code&gt;configs/shell/10_aliases.sh&lt;/code&gt;&lt;/a&gt;, keeping command entry to a minimum.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Autocompletion plugins&lt;/strong&gt;—&lt;a href="https://github.com/zsh-users/zsh-autosuggestions" target="_blank" rel="noopener"&gt;&lt;code&gt;zsh-autosuggestions&lt;/code&gt;&lt;/a&gt; and &lt;code&gt;zsh-syntax-highlighting&lt;/code&gt;—are wired up in &lt;a href="https://github.com/basnijholt/dotfiles/blob/8f6bf0b7219195a46a3e010d3538e1e449634db7/configs/shell/70_zsh_plugins.sh" target="_blank" rel="noopener"&gt;&lt;code&gt;configs/shell/70_zsh_plugins.sh&lt;/code&gt;&lt;/a&gt;, so I get inline hints and colour cues while typing.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I break these tricks down in more depth in &lt;a href="https://www.nijho.lt/post/terminal-ninja/"&gt;Terminal Ninja&lt;/a&gt;, explain how I sync them with my &lt;a href="https://www.nijho.lt/post/dotfiles/"&gt;Dotfiles&lt;/a&gt;, and even package binaries like &lt;code&gt;zoxide&lt;/code&gt; with &lt;a href="https://www.nijho.lt/post/dotbins/"&gt;Dotbins&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="6-layer-4-agent-cli-server"&gt;6. Layer 4: &lt;code&gt;agent-cli&lt;/code&gt; Server &lt;a class="anchor" href="#6-layer-4-agent-cli-server" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/basnijholt/agent-cli" target="_blank" rel="noopener"&gt;&lt;code&gt;agent-cli&lt;/code&gt;&lt;/a&gt; runs as a small server on my NixOS machine.&#10;In this workflow I only use &lt;code&gt;transcribe&lt;/code&gt; from iOS Shortcuts: the phone records audio, the server transcribes and cleans it up, and I paste the text.&#10;(Agent-CLI has other features like &lt;code&gt;autocorrect&lt;/code&gt; and &lt;code&gt;chat&lt;/code&gt;, but I don&amp;rsquo;t use them for this workflow.)&#10;On this machine I run a long‑lived &lt;code&gt;agent-cli&lt;/code&gt; user service (systemd) so Shortcuts can POST audio to it and get cleaned text back—ready to paste into Codex CLI.&#10;The service is defined in my dotfiles—see: &lt;a href="https://github.com/basnijholt/dotfiles/blob/8f6bf0b7219195a46a3e010d3538e1e449634db7/configs/nixos/modules/user.nix#L29-L40" target="_blank" rel="noopener"&gt;&lt;code&gt;configs/nixos/modules/user.nix&lt;/code&gt; (agent-cli service)&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;For more background on why I built it and how I use it in practice, see &lt;a href="https://www.nijho.lt/post/local-ai-journey/"&gt;Local AI Journey&lt;/a&gt; (§3) and &lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;Agentic Coding&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The models and services run on the same box:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;FasterWhisper&lt;/strong&gt; via &lt;a href="https://github.com/SYSTRAN/faster-whisper" target="_blank" rel="noopener"&gt;&lt;code&gt;faster-whisper-server&lt;/code&gt;&lt;/a&gt; for high‑accuracy streaming transcription.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Ollama&lt;/strong&gt; for on‑device rewrite/cleanup before sending prompts to the coding agent.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;My iOS Shortcut dictation workflow is slower than Apple&amp;rsquo;s built-in dictation, but the accuracy is much better—and that matters more.&lt;/p&gt;&#10;&lt;p&gt;For the actual coding agent, I use a &lt;a href="https://github.com/just-every/code" target="_blank" rel="noopener"&gt;fork&lt;/a&gt; of Codex CLI with OpenAI’s &lt;code&gt;gpt-5-codex-high&lt;/code&gt; model (here no open-source solution matches the frontier).&lt;/p&gt;&#10;&lt;h2 id="7-layer-5-the-ios-shortcut-pipeline"&gt;7. Layer 5: The iOS Shortcut Pipeline &lt;a class="anchor" href="#7-layer-5-the-ios-shortcut-pipeline" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;My iPhone&amp;rsquo;s Action Button runs a Shortcut that records audio and sends my voice to agent-cli on my NixOS machine for transcription and cleanup.&lt;/p&gt;&#10;&lt;p&gt;For the full recipe, see the iOS Shortcut Guide: &lt;a href="https://github.com/basnijholt/agent-cli/blob/main/iOS_Shortcut_Guide.md" target="_blank" rel="noopener"&gt;agent-cli/iOS_Shortcut_Guide.md&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;In short: I press the Action Button, the Shortcut records a snippet, sends it to &lt;code&gt;agent-cli&lt;/code&gt;, and copies the cleaned text to my clipboard so I can paste it into Codex CLI.&lt;/p&gt;&#10;&lt;p&gt;The whole loop finishes fast enough that I can capture intent by voice and paste it into Codex CLI without typing.&lt;/p&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;&lt;strong&gt;Dictation quality:&lt;/strong&gt; In my experience, the built‑in iOS dictation is absolute garbage compared to Whisper/FasterWhisper.&#10;Accuracy and punctuation are much better with the FasterWhisper server running at home; it’s a bit slower, but that trade‑off is worth it for clean, usable text.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;h2 id="8-workflow-in-practice"&gt;8. Workflow in Practice &lt;a class="anchor" href="#8-workflow-in-practice" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s the typical flow:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;WireGuard auto-connects when I&amp;rsquo;m off home WiFi&lt;/li&gt;&#10;&lt;li&gt;Open Blink—my Mosh session is still alive from last time, Zellij panes intact&lt;/li&gt;&#10;&lt;li&gt;Dictate the change, paste into Codex CLI, review the agent&amp;rsquo;s response&lt;/li&gt;&#10;&lt;li&gt;Check diffs in an adjacent Zellij pane or different Blink tab with separate Mosh session&lt;/li&gt;&#10;&lt;li&gt;The agent commits and pushes to a branch, then opens a PR via &lt;code&gt;gh&lt;/code&gt; for me to review and merge&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;On the phone, I aim for the smallest practical edits and initial implementations.&#10;Even on personal repos, I still open a PR—sometimes prompting alone gets me to a merge‑ready result.&#10;For open‑source with real users, I finish on the computer with a careful review and any final edits.&lt;/p&gt;&#10;&lt;h2 id="9-conclusion-and-further-reading"&gt;9. Conclusion and Further Reading &lt;a class="anchor" href="#9-conclusion-and-further-reading" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This phone setup extends my &lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;Agentic Coding&lt;/a&gt; workflow to mobile.&#10;I connect to the same Zellij session on &lt;code&gt;nixos&lt;/code&gt;, so when an idea hits, I pick up exactly where I left off—same environment, same context, no setup.&#10;Everything runs on my hardware (voice processing and automation) except the coding model itself.&#10;It’s the most effective mobile workflow I’ve had so far.&#10;It’s mostly open‑source not out of dogma, but because those tools are the best options for my needs.&#10;The one exception is the coding model: there’s no true open equivalent right now, and it makes no sense to buy 20× H100s just to self‑host a frontier model even if such a high quality model would be available open-source.&lt;/p&gt;&#10;&lt;p&gt;If you&amp;rsquo;re curious to dive deeper, here are a few related posts:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/agentic-coding/"&gt;Agentic Coding&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/dotfiles/"&gt;Dotfiles: A Practical, Cross-Platform Terminal Setup&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/local-ai-journey/"&gt;Local AI Journey: RTX 3090 Edition&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/terminal-ninja/"&gt;Terminal Ninja&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.nijho.lt/post/using-llms/"&gt;Using LLMs Effectively&lt;/a&gt; (already outdated at this point!)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I&amp;rsquo;d love to hear what self-hosted tricks you&amp;rsquo;re using for mobile development—reach out if you adapt this stack or build something wild on top of it.&lt;/p&gt;&#10;</description></item><item><title>Open-sourcing my dotfiles: a practical, cross-platform terminal setup 🏠</title><link>https://www.nijho.lt/post/dotfiles/</link><pubDate>Sat, 05 Apr 2025 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/dotfiles/</guid><description>&lt;h2 id="introduction"&gt;Introduction &lt;a class="anchor" href="#introduction" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Many of us spend a significant amount of time in the terminal.&#10;Over the years, I&amp;rsquo;ve found that investing in a well-organized and consistent command-line environment pays dividends in productivity and, frankly, makes the daily grind more enjoyable.&#10;After refining my personal setup across more than 10 different machines – ranging from my primary MacBooks to Linux servers (x86/ARM), Raspberry Pis in my &lt;a href="https://www.nijho.lt/post/homelab/"&gt;homelab&lt;/a&gt;, cloud VMs, and even my iPhone via iSH – I&amp;rsquo;ve decided it&amp;rsquo;s time to share it publicly.&#10;The need for a consistent experience across such diverse hardware and operating systems was a major driving force behind this setup&amp;rsquo;s evolution.&lt;/p&gt;&#10;&lt;p&gt;Today, I&amp;rsquo;m open sourcing my complete &lt;a href="https://github.com/basnijholt/dotfiles" target="_blank" rel="noopener"&gt;dotfiles repository&lt;/a&gt; 🎉.&#10;This isn&amp;rsquo;t about presenting a &amp;ldquo;perfect&amp;rdquo; solution, but rather sharing a practical system that has evolved to handle real-world needs like cross-platform consistency, easy setup on new machines, and integrating modern CLI tools effectively.&#10;If you&amp;rsquo;re looking for ideas to streamline your own terminal workflow, I hope you find something useful here.&lt;/p&gt;&#10;&lt;details class="toc" open&gt;&lt;summary&gt;Table of contents&lt;/summary&gt;&lt;nav id="TableOfContents"&gt;&#10; &lt;ul&gt;&#10; &lt;li&gt;&lt;a href="#introduction"&gt;Introduction&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#why-open-source-now"&gt;Why Open Source Now?&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#core-ideas--highlights"&gt;Core Ideas &amp;amp; Highlights&lt;/a&gt;&#10; &lt;ul&gt;&#10; &lt;li&gt;&lt;a href="#1-cross-platform--shell-agnostic"&gt;1. Cross-Platform &amp;amp; Shell Agnostic&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#2-modularity-for-sanity"&gt;2. Modularity for Sanity&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#3-automation-via-dotbot"&gt;3. Automation via Dotbot&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#4-hassle-free-cli-tools-with-dotbins"&gt;4. Hassle-Free CLI Tools with &lt;code&gt;dotbins&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#5-sensible-ssh-key-management"&gt;5. Sensible SSH Key Management&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#6-macos-declarative-setup-with-nix-darwin"&gt;6. (macOS) Declarative Setup with Nix-Darwin&lt;/a&gt;&lt;/li&gt;&#10; &lt;/ul&gt;&#10; &lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#a-note-on-alternatives--design-choices"&gt;A Note on Alternatives &amp;amp; Design Choices&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#a-look-inside-structure"&gt;A Look Inside: Structure&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#getting-started"&gt;Getting Started&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#a-note-on-secrets"&gt;A Note on Secrets&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#conclusion"&gt;Conclusion&lt;/a&gt;&lt;/li&gt;&#10; &lt;/ul&gt;&#10;&lt;/nav&gt;&lt;/details&gt;&#10;&#10;&lt;h2 id="why-open-source-now"&gt;Why Open Source Now? &lt;a class="anchor" href="#why-open-source-now" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;I have maintained my dotfiles for many years in a private repository.&#10;Sharing this setup feels like a natural step for a few reasons:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Sharing Solutions:&lt;/strong&gt; This setup incorporates solutions to problems I&amp;rsquo;ve wrestled with, like managing binaries without &lt;code&gt;sudo&lt;/code&gt; (leading to my &lt;a href="https://github.com/basnijholt/dotbins" target="_blank" rel="noopener"&gt;&lt;code&gt;dotbins&lt;/code&gt;&lt;/a&gt; tool), achieving &lt;a href="https://www.nijho.lt/post/ssh-1password-funtoo-keychain/"&gt;consistent SSH agent behavior&lt;/a&gt;, or getting Python environments to activate seamlessly with &lt;a href="https://direnv.net/" target="_blank" rel="noopener"&gt;direnv&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Giving Back:&lt;/strong&gt; I&amp;rsquo;ve learned a lot from countless other dotfiles repos and articles shared by the community. It feels right to contribute my own approach.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Transparency &amp;amp; Learning:&lt;/strong&gt; Open sourcing allows others to see how different pieces fit together and perhaps adapt ideas for their own configurations.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;However, the driving force was the recent creation of my &lt;a href="https://www.nijho.lt/post/dotbins/"&gt;&lt;code&gt;dotbins&lt;/code&gt; tool&lt;/a&gt; and honestly, I just want to share &amp;ldquo;my way&amp;rdquo; of doing things.&lt;/p&gt;&#10;&lt;h2 id="core-ideas--highlights"&gt;Core Ideas &amp;amp; Highlights &lt;a class="anchor" href="#core-ideas--highlights" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;My setup is built around a few key principles aimed at practicality and efficiency:&lt;/p&gt;&#10;&lt;h3 id="1-cross-platform--shell-agnostic"&gt;1. Cross-Platform &amp;amp; Shell Agnostic &lt;a class="anchor" href="#1-cross-platform--shell-agnostic" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;It&amp;rsquo;s designed to work reliably on macOS (&lt;code&gt;aarch64&lt;/code&gt;) and various Linux distros (&lt;code&gt;x86_64&lt;/code&gt;, &lt;code&gt;aarch64&lt;/code&gt;).&#10;While Zsh is my preference (leveraging &lt;a href="https://ohmyz.sh/" target="_blank" rel="noopener"&gt;Oh-My-Zsh&lt;/a&gt;), the core configurations in &lt;code&gt;configs/shell/&lt;/code&gt; are sourced by both &lt;code&gt;.zshrc&lt;/code&gt; and &lt;code&gt;.bash_profile&lt;/code&gt;, ensuring basic compatibility.&lt;/p&gt;&#10;&lt;h3 id="2-modularity-for-sanity"&gt;2. Modularity for Sanity &lt;a class="anchor" href="#2-modularity-for-sanity" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;Instead of one giant config file, the shell setup is broken down logically:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;configs/shell/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── 00_prefer_zsh.sh &lt;span class="c1"&gt;# Switches Bash users to Zsh if available&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── 10_aliases.sh &lt;span class="c1"&gt;# Common aliases&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── 20_exports.sh &lt;span class="c1"&gt;# Environment variables&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── 30_misc.sh &lt;span class="c1"&gt;# Dotbins init, secrets sourcing&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── 40_keychain.sh &lt;span class="c1"&gt;# SSH agent setup (Keychain/1Password)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── 50_python.sh &lt;span class="c1"&gt;# Python env helpers (conda, uv, direnv)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# ... and others for Zsh specifics, SLURM, etc.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;└── main.sh &lt;span class="c1"&gt;# Sources the relevant files above&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This makes it much easier to understand, maintain, and debug specific parts of the configuration. My actual &lt;code&gt;.zshrc&lt;/code&gt; and &lt;code&gt;.bash_profile&lt;/code&gt; just source &lt;code&gt;main.sh&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h3 id="3-automation-via-dotbot"&gt;3. Automation via Dotbot &lt;a class="anchor" href="#3-automation-via-dotbot" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;The setup does not require &lt;code&gt;sudo&lt;/code&gt; access, and the installation process is entirely in the user&amp;rsquo;s home directory!&lt;/div&gt;&lt;/aside&gt;&#10;&lt;p&gt;A core goal here is a true &lt;a href="https://github.com/basnijholt/dotfiles/blob/main/install" target="_blank" rel="noopener"&gt;&lt;code&gt;./install&lt;/code&gt;&lt;/a&gt; and done setup.&#10;&lt;a href="https://github.com/anishathalye/dotbot" target="_blank" rel="noopener"&gt;Dotbot&lt;/a&gt; is key to this automation.&#10;Setting up a new machine or syncing changes is streamlined using this tool.&#10;The &lt;a href="https://github.com/basnijholt/dotfiles/blob/main/install.conf.yaml" target="_blank" rel="noopener"&gt;&lt;code&gt;install.conf.yaml&lt;/code&gt;&lt;/a&gt; file defines which config files get symlinked where, &lt;em&gt;and&lt;/em&gt; runs initial setup commands.&#10;This includes updating submodules and, importantly, using &lt;code&gt;uv tool install&lt;/code&gt; to install a curated list of essential Python CLI tools (&lt;code&gt;ruff&lt;/code&gt;, &lt;code&gt;pre-commit&lt;/code&gt;, &lt;code&gt;dotbins&lt;/code&gt; itself, etc.) globally, ensuring they&amp;rsquo;re immediately available after installation.&#10;For remote machines, &lt;a href="https://github.com/basnijholt/dotfiles/blob/main/scripts/sync-dotfiles.sh" target="_blank" rel="noopener"&gt;&lt;code&gt;scripts/sync-dotfiles.sh&lt;/code&gt;&lt;/a&gt; handles pulling updates and optionally re-running the install.&lt;/p&gt;&#10;&lt;h3 id="4-hassle-free-cli-tools-with-dotbins"&gt;4. Hassle-Free CLI Tools with &lt;code&gt;dotbins&lt;/code&gt; &lt;a class="anchor" href="#4-hassle-free-cli-tools-with-dotbins" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;Modern CLI tools are fantastic, but installing them everywhere, especially without &lt;code&gt;sudo&lt;/code&gt;, can be a pain.&#10;I built &lt;a href="https://github.com/basnijholt/dotbins" target="_blank" rel="noopener"&gt;&lt;code&gt;dotbins&lt;/code&gt;&lt;/a&gt; to solve this.&#10;It downloads pre-compiled binaries for specified tools directly from GitHub releases, organizing them by platform/architecture.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c"&gt;# Snippet from ~/.dotbins/dotbins.yaml&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;delta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;dandavison/delta&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Git diff tool&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;eza&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;eza-community/eza&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Modern &amp;#39;ls&amp;#39;&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;zoxide&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ajeetdsouza/zoxide&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Smarter &amp;#39;cd&amp;#39;&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;starship&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;starship/starship&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Shell prompt&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;atuin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;atuinsh/atuin&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Shell history sync&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# ... plus tools with shell integration code&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The shell setup automatically adds the correct binary path and runs any needed initialization.&#10;More details in my &lt;a href="https://www.nijho.lt/post/dotbins/"&gt;&lt;code&gt;dotbins&lt;/code&gt; post&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h3 id="5-sensible-ssh-key-management"&gt;5. Sensible SSH Key Management &lt;a class="anchor" href="#5-sensible-ssh-key-management" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;Using &lt;a href="https://www.funtoo.org/Funtoo:Keychain" target="_blank" rel="noopener"&gt;Funtoo Keychain&lt;/a&gt;, often integrated with the 1Password CLI for passphrase retrieval, means I typically only deal with my SSH key passphrase once per login session.&#10;This setup is detailed &lt;a href="https://www.nijho.lt/post/ssh-1password-funtoo-keychain/"&gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h3 id="6-macos-declarative-setup-with-nix-darwin"&gt;6. (macOS) Declarative Setup with Nix-Darwin &lt;a class="anchor" href="#6-macos-declarative-setup-with-nix-darwin" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;On my Macs, I use &lt;a href="https://github.com/LnL7/nix-darwin" target="_blank" rel="noopener"&gt;Nix-Darwin&lt;/a&gt; to manage system settings and even Homebrew packages declaratively (&lt;code&gt;configs/nix-darwin/&lt;/code&gt;).&#10;Running &lt;code&gt;nixswitch&lt;/code&gt; applies the entire configuration, making macOS setups highly reproducible.&lt;/p&gt;&#10;&lt;h2 id="a-note-on-alternatives--design-choices"&gt;A Note on Alternatives &amp;amp; Design Choices &lt;a class="anchor" href="#a-note-on-alternatives--design-choices" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;You might wonder why I haven&amp;rsquo;t adopted certain popular tools or approaches. Here&amp;rsquo;s some rationale behind the choices made in this setup:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Why not &lt;code&gt;fish&lt;/code&gt; shell?&lt;/strong&gt; While &lt;code&gt;fish&lt;/code&gt; offers many appealing modern features (and &lt;a href="https://fishshell.com/blog/rustport/" target="_blank" rel="noopener"&gt;its Rust rewrite is intriguing&lt;/a&gt;!), a core requirement for my setup is broad compatibility. I need my core shell environment to function reliably even on minimal Linux systems (servers, containers, HPC nodes) where &lt;code&gt;bash&lt;/code&gt; is often the only guarantee. For this reason, I use &lt;code&gt;zsh&lt;/code&gt; as a powerful, yet largely POSIX-compatible, middle ground that works well across my diverse environments without requiring a non-standard shell installation everywhere.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Why iTerm2 on macOS?&lt;/strong&gt; I&amp;rsquo;ve experimented with newer terminals like WezTerm, Ghostty, Kitty, and Alacritty. Many offer benefits like impressive speed and GPU rendering. However, I consistently return to &lt;a href="https://iterm2.com/" target="_blank" rel="noopener"&gt;iTerm2&lt;/a&gt;.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Criticisms &amp;amp; Rebuttals:&lt;/strong&gt; iTerm2 is often criticized for being &amp;ldquo;bloated&amp;rdquo; or &amp;ldquo;slow,&amp;rdquo; and historically, its settings weren&amp;rsquo;t easily version controllable. Frankly, on modern hardware, any perceived slowness is negligible for my use cases. More importantly, iTerm2 &lt;em&gt;does&lt;/em&gt; allow its profiles to be saved as JSON (see &lt;a href="https://github.com/basnijholt/dotfiles/blob/main/configs/iterm/Profiles.json" target="_blank" rel="noopener"&gt;my &lt;code&gt;Profiles.json&lt;/code&gt;&lt;/a&gt; in this repo), making the configuration easily version controlled via dotfiles.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;The Killer Feature:&lt;/strong&gt; The primary reason I stick with iTerm2 is its robust &lt;strong&gt;Semantic History&lt;/strong&gt; feature. The ability to Cmd-Click URLs/filenames in terminal output – even complex ones with line numbers like &lt;code&gt;src/my_module/file.py:123&lt;/code&gt; – and have them open directly in VS Code at the correct line is indispensable for my debugging and development workflow. I haven&amp;rsquo;t found this replicated with the same reliability and ease of configuration elsewhere.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Other Features:&lt;/strong&gt; I also like simple features selecting text and (without &lt;code&gt;⌘+C&lt;/code&gt;!) pasting it right back into the terminal, and the window and tab management features.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Ghostty Example:&lt;/strong&gt; I recently tried Ghostty and liked many aspects, but quickly ran into limitations that highlighted my reliance on iTerm2 features, such as the lack of built-in text search, scrollbars, and crucially, the clickable file paths with line numbers (&lt;a href="https://bsky.app/profile/basnijholt.bsky.social/post/3lehtwv2pxc2j" target="_blank" rel="noopener"&gt;as discussed here&lt;/a&gt;).&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Why Dotbot/Git over &lt;code&gt;chezmoi&lt;/code&gt;?&lt;/strong&gt; &lt;a href="https://www.chezmoi.io/" target="_blank" rel="noopener"&gt;Chezmoi&lt;/a&gt; is a very popular and powerful dotfiles manager, often praised for its templating and management features. However, I prefer the directness of using &lt;code&gt;git&lt;/code&gt; for version control and Dotbot for simple symlinking. My setup &lt;em&gt;is&lt;/em&gt; the Git repository, which feels intuitive. Crucially, I rely heavily on &lt;strong&gt;Git submodules&lt;/strong&gt; (perhaps Git&amp;rsquo;s least loved feature 🤔) to manage external tools and plugins directly within my dotfiles repo. This submodule-centric approach integrates seamlessly with a standard Git workflow, which made Dotbot a more natural fit for me than chezmoi&amp;rsquo;s model.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;No &lt;code&gt;sudo&lt;/code&gt; Required:&lt;/strong&gt; A key design principle is that the installation process via &lt;code&gt;./install&lt;/code&gt; (Dotbot symlinking, &lt;code&gt;uv tool install&lt;/code&gt;, &lt;code&gt;dotbins&lt;/code&gt; fetching binaries) operates &lt;em&gt;entirely within the user&amp;rsquo;s home directory&lt;/em&gt;. No &lt;code&gt;sudo&lt;/code&gt; access is needed to get the core environment up and running. This makes the setup viable in restricted environments like HPC clusters, shared servers, or locked-down corporate machines where admin rights aren&amp;rsquo;t available.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="a-look-inside-structure"&gt;A Look Inside: Structure &lt;a class="anchor" href="#a-look-inside-structure" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The repository is organized to keep things separated logically:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;.&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── configs/ &lt;span class="c1"&gt;# Configs (atuin, bash, git, nix, shell, zsh...)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── install &lt;span class="c1"&gt;# Main installation script (runs dotbot)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── install.conf.yaml &lt;span class="c1"&gt;# Dotbot: Links configs, runs setup commands&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── scripts/ &lt;span class="c1"&gt;# Utility scripts (syncing, backups, helpers)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;├── submodules/ &lt;span class="c1"&gt;# External tools managed as submodules (dotbot, dotbins, plugins...)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;└── README.md &lt;span class="c1"&gt;# Detailed overview&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="getting-started"&gt;Getting Started &lt;a class="anchor" href="#getting-started" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;If you want to try this setup or adapt parts of it:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; &lt;code&gt;git&lt;/code&gt; is essential. SSH access to GitHub is needed if you fork and want to manage the private &lt;code&gt;secrets&lt;/code&gt; submodule or other private submodules.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Clone:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Clone recursively to get submodules&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone --recurse-submodules -j8 git@github.com:basnijholt/dotfiles.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; dotfiles&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Install:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;./install&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This single command runs Dotbot, which handles creating configuration symlinks, updating Git submodules, &lt;em&gt;and&lt;/em&gt; installing numerous Python tools via &lt;code&gt;uv&lt;/code&gt; (as defined in &lt;code&gt;install.conf.yaml&lt;/code&gt;).&#10;Combined with &lt;code&gt;dotbins&lt;/code&gt; automatically fetching other pre-compiled binaries, your environment should be remarkably complete after this step.&#10;Restart your shell after it finishes.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;⚠️ Important: Customize!&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Fork the repository first!&lt;/strong&gt; Don&amp;rsquo;t use my configuration directly, especially &lt;code&gt;configs/git/gitconfig&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;Update &lt;code&gt;configs/git/gitconfig&lt;/code&gt; with &lt;em&gt;your&lt;/em&gt; name and email.&lt;/li&gt;&#10;&lt;li&gt;Review &lt;code&gt;install.conf.yaml&lt;/code&gt; – remove links or shell commands you don&amp;rsquo;t need. You can see the full list of Python tools installed via &lt;code&gt;uv&lt;/code&gt; &lt;a href="https://github.com/basnijholt/dotfiles/blob/main/install.conf.yaml" target="_blank" rel="noopener"&gt;here&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Modify &lt;code&gt;configs/shell/&lt;/code&gt; files to suit your workflow.&lt;/li&gt;&#10;&lt;li&gt;Adjust the &lt;code&gt;dotbins&lt;/code&gt; configuration (&lt;code&gt;submodules/dotbins/dotbins.yaml&lt;/code&gt;) to include &lt;em&gt;your&lt;/em&gt; favorite tools.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="a-note-on-secrets"&gt;A Note on Secrets &lt;a class="anchor" href="#a-note-on-secrets" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Sensitive information (API keys, etc.) is &lt;em&gt;not&lt;/em&gt; stored directly in the public repository.&#10;I use a private Git repository included as a submodule (&lt;code&gt;secrets/&lt;/code&gt;).&#10;This requires SSH authentication.&#10;Within that private repo, I use &lt;code&gt;gpg&lt;/code&gt; and &lt;a href="https://github.com/sobolevn/git-secret" target="_blank" rel="noopener"&gt;git-secret&lt;/a&gt; to encrypt sensitive files, adding another layer of security.&#10;You&amp;rsquo;ll need your own strategy for managing secrets, whether it&amp;rsquo;s a similar private repo, environment variables, or a dedicated secrets manager.&lt;/p&gt;&#10;&lt;h2 id="conclusion"&gt;Conclusion &lt;a class="anchor" href="#conclusion" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This dotfiles setup represents my ongoing effort to build a productive, consistent, and enjoyable terminal environment across a diverse range of machines – from personal laptops to &lt;a href="https://www.nijho.lt/post/homelab/"&gt;homelab servers&lt;/a&gt; and cloud instances.&#10;It solves real problems I&amp;rsquo;ve encountered in maintaining that consistency.&#10;By sharing it, I hope to offer some practical ideas and perhaps save others some time in crafting their own ideal setup.&lt;/p&gt;&#10;&lt;p&gt;Feel free to explore the &lt;a href="https://github.com/basnijholt/dotfiles" target="_blank" rel="noopener"&gt;repository&lt;/a&gt;, borrow what you find useful, and adapt it to your needs.&#10;If you find it helpful, consider giving it a star!&#10;If you have suggestions or find issues, contributions are welcome!&lt;/p&gt;&#10;&lt;p&gt;Happy terminal tinkering!&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;&lt;strong&gt;Further Reading &amp;amp; Links:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/basnijholt/dotfiles" target="_blank" rel="noopener"&gt;My Dotfiles Repository on GitHub&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Blog Post: &lt;a href="https://www.nijho.lt/post/homelab/"&gt;My Homelab Setup&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Blog Post: &lt;a href="https://www.nijho.lt/post/terminal-ninja/"&gt;Be a Ninja in the Terminal 🥷&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Blog Post: &lt;a href="https://www.nijho.lt/post/dotbins/"&gt;dotbins: Managing Binary Tools in Your Dotfiles 🧰&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Blog Post: &lt;a href="https://www.nijho.lt/post/ssh-1password-funtoo-keychain/"&gt;Combining Keychain and 1Password CLI for SSH Agent Management&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/anishathalye/dotbot" target="_blank" rel="noopener"&gt;Dotbot&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/basnijholt/dotbins" target="_blank" rel="noopener"&gt;Dotbins&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/sobolevn/git-secret" target="_blank" rel="noopener"&gt;Git Secret&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://iterm2.com/" target="_blank" rel="noopener"&gt;iTerm2&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;</description></item><item><title>Combining Keychain and 1Password CLI for ssh-agent management</title><link>https://www.nijho.lt/post/ssh-1password-funtoo-keychain/</link><pubDate>Sun, 30 Mar 2025 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/ssh-1password-funtoo-keychain/</guid><description>&lt;h2 id="combining-keychain-and-1password-cli-for-ssh-agent-management"&gt;Combining Keychain and 1Password CLI for SSH Agent Management &lt;a class="anchor" href="#combining-keychain-and-1password-cli-for-ssh-agent-management" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;For about a decade, I&amp;rsquo;ve relied on two key tools in my development workflow: &lt;a href="https://www.funtoo.org/Funtoo:Keychain" target="_blank" rel="noopener"&gt;Funtoo Keychain&lt;/a&gt; for managing my &lt;code&gt;ssh-agent&lt;/code&gt; and 1Password for securely storing secrets.&#10;While I used them extensively, I never actually integrated them directly for SSH key passphrase handling.&lt;/p&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;I wrote about Keychain before in &lt;a href="../terminal-ninja/#-keychain-ssh-key-management-made-simple"&gt;this post&lt;/a&gt;.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;p&gt;Recently, with the advent of &lt;a href="https://developer.1password.com/docs/ssh/get-started/" target="_blank" rel="noopener"&gt;1Password&amp;rsquo;s built-in SSH agent&lt;/a&gt;, I gave it a try, attracted by the promise of managing keys directly within my vault.&#10;However, I quickly found myself frequently prompted for my master password or biometrics, which interrupted my flow more often than I preferred compared to Keychain&amp;rsquo;s persistence.&lt;/p&gt;&#10;&lt;p&gt;This led me back to the reliable &amp;ldquo;unlock once per session&amp;rdquo; behavior of Keychain.&#10;But the experience using the 1Password Command-Line Interface (&lt;code&gt;op&lt;/code&gt;) during that time sparked an idea: could I combine the persistence of Keychain with the secure passphrase retrieval of the &lt;code&gt;op&lt;/code&gt; CLI?&#10;The answer is yes, and this post outlines the setup that achieves that balance.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;The Goal:&lt;/strong&gt; Use 1Password as the secure vault for the SSH key passphrase but rely on &lt;code&gt;keychain&lt;/code&gt; to manage the &lt;code&gt;ssh-agent&lt;/code&gt; process and ensure the key, once unlocked, remains available for the entire login session without further prompts from 1Password.&lt;/p&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;Requires 1Password CLI (&lt;code&gt;op&lt;/code&gt;) and Funtoo Keychain installed.&#10;This post assumes you &lt;a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key" target="_blank" rel="noopener"&gt;have a working SSH key&lt;/a&gt; and a &lt;a href="https://developer.1password.com/docs/cli/get-started/" target="_blank" rel="noopener"&gt;1Password with the CLI installed and authenticated&lt;/a&gt;.&#10;Run &lt;code&gt;brew install --cask 1password-cli&lt;/code&gt; and &lt;code&gt;brew install keychain&lt;/code&gt; to install them.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;p&gt;&lt;strong&gt;Why This Approach?&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;This setup directly addresses the trade-off I encountered.&#10;Funtoo &lt;code&gt;keychain&lt;/code&gt; excels at starting &lt;code&gt;ssh-agent&lt;/code&gt; reliably on login and keeping keys available throughout a session with just one initial unlock.&#10;While the native 1Password agent is convenient for vault integration, its session management, in my experience, led to more frequent authentication prompts than desired for long-running sessions.&lt;/p&gt;&#10;&lt;p&gt;By using &lt;code&gt;keychain&lt;/code&gt; for agent management and calling the &lt;code&gt;op&lt;/code&gt; CLI via the standard &lt;code&gt;SSH_ASKPASS&lt;/code&gt; mechanism &lt;em&gt;only&lt;/em&gt; for the initial key load, we get the best of both worlds: 1Password&amp;rsquo;s secure storage for the passphrase and Keychain&amp;rsquo;s persistent agent access with minimal prompting after the first unlock.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;The Components:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Funtoo &lt;code&gt;keychain&lt;/code&gt;:&lt;/strong&gt; Manages &lt;code&gt;ssh-agent&lt;/code&gt; lifecycle and loads specified keys.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;1Password CLI (&lt;code&gt;op&lt;/code&gt;):&lt;/strong&gt; Securely retrieves secrets (the passphrase) from your 1Password vault. Requires &lt;code&gt;op&lt;/code&gt; to be installed and logged in.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;&lt;code&gt;askpass-1password.sh&lt;/code&gt;:&lt;/strong&gt; A small helper script that &lt;code&gt;ssh-add&lt;/code&gt; (via &lt;code&gt;keychain&lt;/code&gt;) calls to get the passphrase. This script invokes &lt;code&gt;op&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;&lt;code&gt;setup_ssh_agent.sh&lt;/code&gt;:&lt;/strong&gt; A script sourced by your shell startup file (&lt;code&gt;.zshrc&lt;/code&gt;, &lt;code&gt;.bashrc&lt;/code&gt;, etc.) to orchestrate the setup.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;strong&gt;Implementation:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Step 1: Create the &lt;code&gt;askpass&lt;/code&gt; Helper Script&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;This script simply calls &lt;code&gt;op read&lt;/code&gt; to fetch the passphrase using its &lt;a href="https://developer.1password.com/docs/cli/secret-reference-syntax/" target="_blank" rel="noopener"&gt;Secret Reference URI&lt;/a&gt;.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://developer.1password.com/img/cli/copy-secret-reference-dark.png" alt="Copy Secret Reference screenshot" loading="lazy" data-zoomable&gt;&lt;/figure&gt;&lt;ul&gt;&#10;&lt;li&gt;Find your SSH key item in 1Password.&lt;/li&gt;&#10;&lt;li&gt;Locate the passphrase field, click the options/arrow, and copy the &amp;ldquo;Copy Secret Reference&amp;rdquo;.&lt;/li&gt;&#10;&lt;li&gt;Create the script at &lt;code&gt;~/.ssh/askpass-1password.sh&lt;/code&gt;:&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/bin/sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# ~/.ssh/askpass-1password.sh&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Provides the SSH key passphrase from 1Password CLI via SSH_ASKPASS&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Paste your Secret Reference URI here&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;OP_SECRET_REFERENCE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;op://YourVault/YourSSHKeyItem/password&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Use &amp;#39;op read&amp;#39; to retrieve and print the passphrase to stdout&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Requires 1Password CLI (&amp;#39;op&amp;#39;) to be installed and authenticated.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;op &lt;span class="nb"&gt;read&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$OP_SECRET_REFERENCE&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;Make it executable: &lt;code&gt;chmod u+x ~/.ssh/askpass-1password.sh&lt;/code&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;strong&gt;Step 2: Create the Setup Orchestration Script&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;This script checks if &lt;code&gt;op&lt;/code&gt; is available and conditionally configures &lt;code&gt;keychain&lt;/code&gt; to use the helper script.&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;(Adjust path &lt;code&gt;~/dotfiles/scripts/setup_ssh_agent.sh&lt;/code&gt; as needed)&lt;/em&gt;&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/bin/zsh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# ~/dotfiles/scripts/setup_ssh_agent.sh - Sets up ssh-agent via keychain.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# If &amp;#39;op&amp;#39; CLI and the askpass helper script are available, uses 1Password for passphrase.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Intended to be sourced by .zshrc or similar.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;_askpass_helper&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/.ssh/askpass-1password.sh&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;_askpass_vars_set&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;false&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Check if &amp;#39;op&amp;#39; CLI is installed and the helper script is usable&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;command&lt;/span&gt; -v op &amp;gt;/dev/null 2&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; -f &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_askpass_helper&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; -x &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_askpass_helper&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# Configure environment for 1Password helper script&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;SSH_ASKPASS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_askpass_helper&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;SSH_ASKPASS_REQUIRE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;prefer&amp;#34;&lt;/span&gt; &lt;span class="c1"&gt;# Use ASKPASS even in terminals&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nv"&gt;_askpass_vars_set&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Execute keychain to start/find agent, load key, and set env vars&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# (Adjust key name &amp;#39;id_ed25519&amp;#39; as needed)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="k"&gt;$(&lt;/span&gt;keychain --eval --quiet --agents ssh --inherit any-once id_ed25519&lt;span class="k"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Clean up ASKPASS variables if they were set&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;$_askpass_vars_set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;unset&lt;/span&gt; SSH_ASKPASS&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;unset&lt;/span&gt; SSH_ASKPASS_REQUIRE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Step 3: Source the Setup Script in &lt;code&gt;.zshrc&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;Add this to your &lt;code&gt;~/.zshrc&lt;/code&gt; (or equivalent):&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-zsh" data-lang="zsh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# --- SSH Agent Configuration (via keychain &amp;amp; 1Password) ---&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Source the dedicated setup script if it exists.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;_ssh_setup_script&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/dotfiles/scripts/setup_ssh_agent.sh&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; -f &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_ssh_setup_script&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;source&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_ssh_setup_script&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# --- End SSH Agent Configuration ---&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;How It Works:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;When you start a new shell session, &lt;code&gt;.zshrc&lt;/code&gt; sources &lt;code&gt;setup_ssh_agent.sh&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;The script checks if &lt;code&gt;op&lt;/code&gt; is installed and the &lt;code&gt;askpass-1password.sh&lt;/code&gt; helper is ready.&lt;/li&gt;&#10;&lt;li&gt;If yes, it sets the &lt;code&gt;SSH_ASKPASS&lt;/code&gt; and &lt;code&gt;SSH_ASKPASS_REQUIRE&lt;/code&gt; environment variables.&lt;/li&gt;&#10;&lt;li&gt;It runs &lt;code&gt;keychain --eval id_ed25519&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;keychain&lt;/code&gt; starts or connects to &lt;code&gt;ssh-agent&lt;/code&gt; and uses &lt;code&gt;ssh-add&lt;/code&gt; to load &lt;code&gt;id_ed25519&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;ssh-add&lt;/code&gt; sees &lt;code&gt;SSH_ASKPASS&lt;/code&gt; is set and executes &lt;code&gt;askpass-1password.sh&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;The helper script runs &lt;code&gt;op read ...&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;The 1Password CLI handles authentication (prompting for your master password or using biometrics/system auth &lt;em&gt;if necessary&lt;/em&gt; based on its current session state – typically only if the &lt;code&gt;op&lt;/code&gt; session has expired).&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;op read&lt;/code&gt; outputs the passphrase.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;ssh-add&lt;/code&gt; receives the passphrase and unlocks the key, adding it to the agent.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;keychain --eval&lt;/code&gt; outputs the necessary &lt;code&gt;export SSH_AUTH_SOCK=...&lt;/code&gt; commands.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;eval&lt;/code&gt; executes these commands, configuring your current shell to use the agent.&lt;/li&gt;&#10;&lt;li&gt;The &lt;code&gt;ASKPASS&lt;/code&gt; variables are unset.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;After years of using Funtoo Keychain and 1Password separately, and a brief foray into the native 1Password agent, this combined approach hits the sweet spot for me.&#10;It leverages 1Password&amp;rsquo;s secure vault for storing the SSH key passphrase but restores the &amp;ldquo;unlock once per session&amp;rdquo; convenience I appreciate from &lt;code&gt;keychain&lt;/code&gt;.&#10;It requires a single passphrase entry via 1Password when the key is first added (typically on login/boot), after which the key remains available via the standard &lt;code&gt;ssh-agent&lt;/code&gt; mechanism without further 1Password interaction for that session.&lt;/p&gt;&#10;</description></item><item><title>dotbins: managing binary tools in your dotfiles 🧰</title><link>https://www.nijho.lt/post/dotbins/</link><pubDate>Tue, 11 Mar 2025 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/dotbins/</guid><description>&lt;p&gt;In my &lt;a href="../terminal-ninja/"&gt;previous post about terminal productivity&lt;/a&gt;, I shared a setup combining tools like &lt;code&gt;zsh&lt;/code&gt;, &lt;code&gt;oh-my-zsh&lt;/code&gt;, &lt;code&gt;zsh-z&lt;/code&gt;, and various plugins to create a highly efficient command-line environment. While that setup served me well for years, I&amp;rsquo;ve recently encountered a challenge: incorporating modern, compiled CLI tools across all my environments without administrative privileges.&lt;/p&gt;&#10;&lt;p&gt;Today, I&amp;rsquo;m excited to &lt;a href="https://github.com/basnijholt/dotbins/" target="_blank" rel="noopener"&gt;introduce &lt;strong&gt;&lt;code&gt;dotbins&lt;/code&gt;&lt;/strong&gt;&lt;/a&gt; - a solution I created to solve this exact problem.&lt;/p&gt;&#10;&lt;h2 id="the-modern-cli-tools-problem"&gt;The Modern CLI Tools Problem &lt;a class="anchor" href="#the-modern-cli-tools-problem" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Over the past few years, we&amp;rsquo;ve seen an explosion of incredible, modern CLI tools written in languages like Rust and Go.&#10;Tools like:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/ajeetdsouza/zoxide" target="_blank" rel="noopener"&gt;&lt;code&gt;zoxide&lt;/code&gt;&lt;/a&gt; (a smarter, faster alternative to &lt;code&gt;zsh-z&lt;/code&gt;)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/sharkdp/bat" target="_blank" rel="noopener"&gt;&lt;code&gt;bat&lt;/code&gt;&lt;/a&gt; (a &lt;code&gt;cat&lt;/code&gt; replacement with syntax highlighting)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/eza-community/eza" target="_blank" rel="noopener"&gt;&lt;code&gt;eza&lt;/code&gt;&lt;/a&gt; (a modern &lt;code&gt;ls&lt;/code&gt; alternative)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/dandavison/delta" target="_blank" rel="noopener"&gt;&lt;code&gt;delta&lt;/code&gt;&lt;/a&gt; (a better diff viewer for Git)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/junegunn/fzf" target="_blank" rel="noopener"&gt;&lt;code&gt;fzf&lt;/code&gt;&lt;/a&gt; (a fuzzy finder for your terminal)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/BurntSushi/ripgrep" target="_blank" rel="noopener"&gt;&lt;code&gt;ripgrep&lt;/code&gt;&lt;/a&gt; (a faster, better &lt;code&gt;grep&lt;/code&gt;)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/atuinsh/atuin" target="_blank" rel="noopener"&gt;&lt;code&gt;atuin&lt;/code&gt;&lt;/a&gt; (a shell history with search and sync)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;These tools significantly enhance terminal productivity, but they come with a catch: &lt;strong&gt;they&amp;rsquo;re compiled binaries&lt;/strong&gt;, not simple scripts.&#10;While my previous setup worked well because all the tools were basic shell scripts I could include as submodules in my dotfiles repository, these modern alternatives require installation.&lt;/p&gt;&#10;&lt;p&gt;This became frustrating when working on:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Remote systems where I lacked admin/sudo permissions&lt;/li&gt;&#10;&lt;li&gt;Machines that I use only temporarily&lt;/li&gt;&#10;&lt;li&gt;Systems where I didn&amp;rsquo;t want to install package managers&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I&amp;rsquo;d spend time carefully setting up my dotfiles with all my configurations, only to find that the actual tools they relied on weren&amp;rsquo;t available.&lt;/p&gt;&#10;&lt;h2 id="enter-dotbins-"&gt;Enter &lt;code&gt;dotbins&lt;/code&gt; 🧰 &lt;a class="anchor" href="#enter-dotbins-" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/basnijholt/dotbins/" target="_blank" rel="noopener"&gt;&lt;code&gt;dotbins&lt;/code&gt;&lt;/a&gt; was born out of this frustration.&#10;It&amp;rsquo;s a utility that manages pre-compiled binaries for CLI tools across multiple platforms and architectures, right in your dotfiles repository.&lt;/p&gt;&#10;&lt;p&gt;The key insight: &lt;strong&gt;track pre-compiled binaries in a separate Git repository&lt;/strong&gt; (using Git LFS for efficiency), include this repository as a submodule in your dotfiles, and ensure all your essential tools are immediately available on any system.&lt;/p&gt;&#10;&lt;p&gt;No package manager, no sudo, no problem.&lt;/p&gt;&#10;&lt;h2 id="how-dotbins-works"&gt;How &lt;code&gt;dotbins&lt;/code&gt; Works &lt;a class="anchor" href="#how-dotbins-works" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;dotbins&lt;/code&gt; handles several critical tasks:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Downloads&lt;/strong&gt; binaries directly from GitHub releases for your selected tools&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Organizes&lt;/strong&gt; them by platform (macOS, Linux) and architecture (amd64, arm64)&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Tracks&lt;/strong&gt; installed versions and update timestamps&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Extracts&lt;/strong&gt; binaries from archives in various formats&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Integrates&lt;/strong&gt; seamlessly with your shell via a simple PATH addition&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The configuration is straightforward - a YAML file where you define which tools you want and how to get them:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;ripgrep&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;BurntSushi/ripgrep&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;extract_binary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;binary_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;rg&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;binary_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ripgrep-*/rg&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;asset_patterns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;linux&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ripgrep-{version}-{arch}-unknown-linux-musl.tar.gz&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;macos&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;ripgrep-{version}-{arch}-apple-darwin.tar.gz&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;arch_map&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;amd64&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;x86_64&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;arm64&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;aarch64&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="my-workflow-a-two-repository-approach"&gt;My Workflow: A Two-Repository Approach &lt;a class="anchor" href="#my-workflow-a-two-repository-approach" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;My approach uses two repositories:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Private dotfiles repository&lt;/strong&gt; containing all my configurations&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Public &lt;a href="https://github.com/basnijholt/mydotbins" target="_blank" rel="noopener"&gt;mydotbins repository&lt;/a&gt;&lt;/strong&gt; containing all the binaries&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;I include &lt;code&gt;mydotbins&lt;/code&gt; as a submodule in my dotfiles repository.&#10;This separation keeps large binary files out of my main dotfiles repository and allows me to share the binary collection publicly while keeping my personal configurations private.&lt;/p&gt;&#10;&lt;p&gt;When I clone my dotfiles on a new system, I get not just my configuration files, but also all the CLI tools I depend on for productivity.&lt;/p&gt;&#10;&lt;h2 id="modern-alternatives-to-my-previous-setup"&gt;Modern Alternatives to My Previous Setup &lt;a class="anchor" href="#modern-alternatives-to-my-previous-setup" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;With &lt;code&gt;dotbins&lt;/code&gt;, I&amp;rsquo;ve been able to upgrade several tools from my previous setup:&lt;/p&gt;&#10;&lt;div class="table-wrap"&gt;&#10;&lt;table&gt;&#10;&lt;thead&gt;&#10;&lt;tr&gt;&#10;&lt;th&gt;Old Tool&lt;/th&gt;&#10;&lt;th&gt;Modern Alternative&lt;/th&gt;&#10;&lt;th&gt;Advantage&lt;/th&gt;&#10;&lt;/tr&gt;&#10;&lt;/thead&gt;&#10;&lt;tbody&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/agkozak/zsh-z" target="_blank" rel="noopener"&gt;&lt;code&gt;zsh-z&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/ajeetdsouza/zoxide" target="_blank" rel="noopener"&gt;&lt;code&gt;zoxide&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Faster, smarter, works across shells&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;cat&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/sharkdp/bat" target="_blank" rel="noopener"&gt;&lt;code&gt;bat&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Syntax highlighting, Git integration&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;ls&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/eza-community/eza" target="_blank" rel="noopener"&gt;&lt;code&gt;eza&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Better formatting, Git integration&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;&lt;code&gt;grep&lt;/code&gt;&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/BurntSushi/ripgrep" target="_blank" rel="noopener"&gt;&lt;code&gt;ripgrep&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Much faster, respects &lt;code&gt;.gitignore&lt;/code&gt;&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;Control + R&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/atuinsh/atuin" target="_blank" rel="noopener"&gt;&lt;code&gt;atuin&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Shell history with search and sync&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;Default Git diff&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/dandavison/delta" target="_blank" rel="noopener"&gt;&lt;code&gt;delta&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Syntax highlighting, better visual diffs&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;N/A&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/junegunn/fzf" target="_blank" rel="noopener"&gt;&lt;code&gt;fzf&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Fuzzy finding makes everything better&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;tr&gt;&#10;&lt;td&gt;N/A&lt;/td&gt;&#10;&lt;td&gt;&lt;a href="https://github.com/atuinsh/atuin" target="_blank" rel="noopener"&gt;&lt;code&gt;atuin&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10;&lt;td&gt;Shell history with search and sync&lt;/td&gt;&#10;&lt;/tr&gt;&#10;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The best part? All of these are now automatically available on every machine where I clone my dotfiles, without any additional installation steps.&lt;/p&gt;&#10;&lt;h2 id="getting-started-with-dotbins"&gt;Getting Started with &lt;code&gt;dotbins&lt;/code&gt; &lt;a class="anchor" href="#getting-started-with-dotbins" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;If you&amp;rsquo;d like to adopt this approach, here&amp;rsquo;s how to get started:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Install &lt;code&gt;dotbins&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install dotbins&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Or better yet, use uv:&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uvx dotbins&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Create a configuration file at &lt;code&gt;~/.config/dotbins/config.yaml&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;tools_dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;~/.mydotbins/tools&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;platforms&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;linux&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="l"&gt;amd64&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="l"&gt;arm64&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;macos&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="l"&gt;arm64&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Add your favorite tools here&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;fzf&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;junegunn/fzf&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;extract_binary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;binary_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;fzf&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;binary_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;fzf&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;asset_patterns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;fzf-{version}-{platform}_{arch}.tar.gz&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;platform_map&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;macos&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;darwin&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Initialize and download your tools:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dotbins init&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dotbins update&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Add the shell integration to your &lt;code&gt;.zshrc&lt;/code&gt; or &lt;code&gt;.bashrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# dotbins - Add platform-specific binaries to PATH&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;_os&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;uname -s &lt;span class="p"&gt;|&lt;/span&gt; tr &lt;span class="s1"&gt;&amp;#39;[:upper:]&amp;#39;&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;[:lower:]&amp;#39;&lt;/span&gt;&lt;span class="k"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_os&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;darwin&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;_os&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;macos&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;_arch&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;uname -m&lt;span class="k"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_arch&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;x86_64&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;_arch&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;amd64&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_arch&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;aarch64&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$_arch&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;arm64&amp;#34;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;_arch&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;arm64&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/.mydotbins/tools/&lt;/span&gt;&lt;span class="nv"&gt;$_os&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;$_arch&lt;/span&gt;&lt;span class="s2"&gt;/bin:&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;(Optional) Track your binaries in a separate Git repository with Git LFS for efficiency&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="finding-new-tools-to-add"&gt;Finding New Tools to Add &lt;a class="anchor" href="#finding-new-tools-to-add" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Not sure which pattern to use for a new tool? The &lt;code&gt;analyze&lt;/code&gt; command is here to help:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;dotbins analyze sharkdp/bat&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will suggest a configuration for the tool based on its GitHub release assets.&lt;/p&gt;&#10;&lt;h2 id="conclusion-the-evolution-of-my-terminal-setup"&gt;Conclusion: The Evolution of My Terminal Setup &lt;a class="anchor" href="#conclusion-the-evolution-of-my-terminal-setup" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;With &lt;a href="https://github.com/basnijholt/dotbins/" target="_blank" rel="noopener"&gt;&lt;code&gt;dotbins&lt;/code&gt;&lt;/a&gt;, my terminal productivity setup has evolved beyond what I described in my &lt;a href="../terminal-ninja/"&gt;previous post&lt;/a&gt;.&#10;I can now seamlessly incorporate the best modern CLI tools without worrying about installation or administrative privileges.&lt;/p&gt;&#10;&lt;p&gt;The beauty of this approach is its portability—I get a consistent, powerful environment on any machine where I clone my dotfiles.&lt;/p&gt;&#10;&lt;p&gt;If you&amp;rsquo;re a terminal power user who works across multiple environments, give &lt;a href="https://github.com/basnijholt/dotbins" target="_blank" rel="noopener"&gt;&lt;code&gt;dotbins&lt;/code&gt;&lt;/a&gt; a try.&#10;It might just be the missing piece in your dotfiles setup!&lt;/p&gt;&#10;</description></item><item><title>dotbins</title><link>https://www.nijho.lt/project/dotbins/</link><pubDate>Sun, 09 Mar 2025 00:00:00 +0000</pubDate><guid isPermaLink="false">/project/dotbins/</guid><description/></item><item><title>tuitorial: terminal-based interactive code tutorials 📚</title><link>https://www.nijho.lt/post/tuitorial/</link><pubDate>Sat, 04 Jan 2025 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/tuitorial/</guid><description>&lt;p&gt;While trying to demonstrate my &lt;a href="https://github.com/pipefunc/pipefunc" target="_blank" rel="noopener"&gt;&lt;code&gt;pipefunc&lt;/code&gt; package&lt;/a&gt; (a tool for automating computational pipelines), I hit a common presentation problem: how do you effectively walk through code without endless repetition?&lt;/p&gt;&#10;&lt;p&gt;Traditional presentation tools like PowerPoint force you to copy-paste the same code snippets multiple times just to highlight different parts. Jupyter notebooks are great for self-paced learning but clunky for live presentations (too much text that the viewer will try to read). I needed something that would let me define code once and create multiple views highlighting different aspects.&lt;/p&gt;&#10;&lt;p&gt;So, during the holiday season, I did what any reasonable developer would do: procrastinated on my actual work and built a new tool instead!&lt;/p&gt;&#10;&lt;h2 id="what-is-tuitorial"&gt;What is tuitorial? &lt;a class="anchor" href="#what-is-tuitorial" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/basnijholt/tuitorial" target="_blank" rel="noopener"&gt;&lt;code&gt;tuitorial&lt;/code&gt;&lt;/a&gt; is a Python package that lets you create interactive, terminal-based code tutorials where you define the code ONCE, then create steps that highlight different parts based on rules (like regex patterns or line numbers). No more copy-paste presentations!&lt;/p&gt;&#10;&lt;h2 id="key-features"&gt;Key Features &lt;a class="anchor" href="#key-features" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Write code once&lt;/strong&gt;: Define your code once, then create multiple views highlighting different aspects&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Rich highlighting options&lt;/strong&gt;: From simple literal matches to complex regex patterns&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Interactive navigation&lt;/strong&gt;: Intuitive keyboard controls for stepping through tutorials&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Beautiful terminal UI&lt;/strong&gt;: Powered by Textual for a polished look&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Flexible configuration&lt;/strong&gt;: Choose between Python API or YAML format&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Development mode&lt;/strong&gt;: Live reloading for quick iterations&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="see-it-in-action"&gt;See It in Action &lt;a class="anchor" href="#see-it-in-action" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Here&amp;rsquo;s a demo of &lt;a href="https://github.com/basnijholt/tuitorial" target="_blank" rel="noopener"&gt;&lt;code&gt;tuitorial&lt;/code&gt;&lt;/a&gt; explaining &lt;a href="https://github.com/pipefunc/pipefunc" target="_blank" rel="noopener"&gt;&lt;code&gt;pipefunc&lt;/code&gt;&lt;/a&gt; - a package that lets you create computational pipelines with automatic parallelization, caching, and dependency management:&lt;/p&gt;&#10;&#10;&lt;script type="module" src="https://www.nijho.lt/js/reduced-motion.3dfea0061c17c60a9a200c61ef1e3b3e98d5bdc4eaa4e0a64b3ed2a4d13c72fd.js" integrity="sha256-Pf6gBhwXxgqaIAxh7x47PpjVvcTqpOCmSz7SpNE8cv0=" crossorigin="anonymous"&gt;&lt;/script&gt;&#10;&lt;video controls autoplay muted playsinline loop preload="metadata"&gt;&#10;&lt;source src="https://www.nijho.lt/post/tuitorial/tuitorial-0.4.0.mp4" type="video/mp4"&gt;&#10;&lt;/video&gt;&#10;&#10;&lt;h2 id="who-should-use-this"&gt;Who Should Use This? &lt;a class="anchor" href="#who-should-use-this" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;While &lt;a href="https://github.com/basnijholt/tuitorial" target="_blank" rel="noopener"&gt;&lt;code&gt;tuitorial&lt;/code&gt;&lt;/a&gt; isn&amp;rsquo;t for everyone, it&amp;rsquo;s perfect for:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Developers giving technical presentations&lt;/li&gt;&#10;&lt;li&gt;Teachers explaining code concepts&lt;/li&gt;&#10;&lt;li&gt;Teams creating interactive documentation&lt;/li&gt;&#10;&lt;li&gt;Anyone who loves terminal-based tools&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="getting-started"&gt;Getting Started &lt;a class="anchor" href="#getting-started" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;Have &lt;code&gt;uv&lt;/code&gt; installed? Run the following command to see a quick example:&#10;&lt;code&gt;uvx tuitorial https://raw.githubusercontent.com/basnijholt/tuitorial/refs/heads/main/examples/pipefunc.yaml&lt;/code&gt;&lt;/div&gt;&lt;/aside&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip install tuitorial&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Check out the &lt;a href="https://github.com/basnijholt/tuitorial" target="_blank" rel="noopener"&gt;documentation&lt;/a&gt; for examples and detailed usage instructions.&lt;/p&gt;&#10;&lt;h2 id="final-thoughts"&gt;Final Thoughts &lt;a class="anchor" href="#final-thoughts" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Building &lt;a href="https://github.com/basnijholt/tuitorial" target="_blank" rel="noopener"&gt;&lt;code&gt;tuitorial&lt;/code&gt;&lt;/a&gt; was a lot of fun!&#10;While it may not replace PowerPoint for your next business presentation, it offers a unique approach to code demonstrations that I hope others will find useful.&lt;/p&gt;&#10;&lt;p&gt;Try it out and let me know what you think!&lt;/p&gt;&#10;</description></item><item><title>tuitorial</title><link>https://www.nijho.lt/project/tuitorial/</link><pubDate>Tue, 24 Dec 2024 00:00:00 +0000</pubDate><guid isPermaLink="false">/project/tuitorial/</guid><description/></item><item><title>fileup 📤</title><link>https://www.nijho.lt/post/advent-of-open-source/19-fileup/</link><pubDate>Thu, 19 Dec 2024 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/advent-of-open-source/19-fileup/</guid><description>&lt;p&gt;(See my &lt;a href="../"&gt;intro post&lt;/a&gt;)&lt;/p&gt;&#10;&lt;p&gt;Sometimes the best tools are the ones you build for yourself and keep using for years. Today&amp;rsquo;s project is &lt;a href="https://github.com/basnijholt/fileup" target="_blank" rel="noopener"&gt;&lt;code&gt;fileup&lt;/code&gt;&lt;/a&gt;, a tiny command-line utility that&amp;rsquo;s been making my life easier for 7 years - because sharing files shouldn&amp;rsquo;t require leaving the terminal!&lt;/p&gt;&#10;&lt;h2 id="-origin-story"&gt;📖 Origin Story &lt;a class="anchor" href="#-origin-story" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Back in 2017, I found myself repeatedly going through the same tedious process: needing to share a file, opening a browser, navigating to a file sharing service, waiting for uploads, and copying URLs. As someone who lives in the terminal, this felt inefficient. I wanted something as simple as &lt;code&gt;fu filename&lt;/code&gt; that would handle everything and put the URL in my clipboard. Seven years and countless file shares later, it&amp;rsquo;s still one of my most-used tools.&lt;/p&gt;&#10;&lt;h2 id="-technical-highlights"&gt;🔧 Technical Highlights &lt;a class="anchor" href="#-technical-highlights" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Supports both FTP and SCP uploads&lt;/li&gt;&#10;&lt;li&gt;Smart URL generation:&#10;&lt;ul&gt;&#10;&lt;li&gt;Jupyter notebooks → nbviewer links&lt;/li&gt;&#10;&lt;li&gt;Images → markdown-formatted links&lt;/li&gt;&#10;&lt;li&gt;Regular files → direct URLs&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;Automatic file expiration and cleanup&lt;/li&gt;&#10;&lt;li&gt;Zero dependencies - uses only Python standard library&lt;/li&gt;&#10;&lt;li&gt;Clipboard integration (macOS)&lt;/li&gt;&#10;&lt;li&gt;Simple INI configuration&lt;/li&gt;&#10;&lt;li&gt;Works as both a standalone script or installed package&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-impact"&gt;📊 Impact &lt;a class="anchor" href="#-impact" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This is one of those tools where GitHub stars (currently 0!) don&amp;rsquo;t tell the whole story:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Used almost daily for 7 years&lt;/li&gt;&#10;&lt;li&gt;Shared thousands of files&lt;/li&gt;&#10;&lt;li&gt;Saved countless minutes of browser interactions&lt;/li&gt;&#10;&lt;li&gt;Proves that utility trumps popularity in open source&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-lessons-learned"&gt;💡 Lessons Learned &lt;a class="anchor" href="#-lessons-learned" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Longevity comes from solving a real, persistent need&lt;/li&gt;&#10;&lt;li&gt;A tool doesn&amp;rsquo;t need to be revolutionary to be useful&lt;/li&gt;&#10;&lt;li&gt;Zero dependencies mean zero maintenance headaches&lt;/li&gt;&#10;&lt;li&gt;Sometimes the impact of a tool isn&amp;rsquo;t measured in stars&lt;/li&gt;&#10;&lt;li&gt;Simple tools that remove friction are worth maintaining&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Want to share files from your terminal? Check out &lt;a href="https://github.com/basnijholt/fileup" target="_blank" rel="noopener"&gt;fileup on GitHub&lt;/a&gt;!&lt;/p&gt;&#10;&lt;p&gt;#OpenSource #Python #DevTools #CommandLine #Programming&lt;/p&gt;&#10;</description></item><item><title>clip-files 📋</title><link>https://www.nijho.lt/post/advent-of-open-source/15-clip-files/</link><pubDate>Sun, 15 Dec 2024 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/advent-of-open-source/15-clip-files/</guid><description>&lt;p&gt;(See my &lt;a href="../"&gt;intro post&lt;/a&gt;)&lt;/p&gt;&#10;&lt;p&gt;Sometimes the most useful tools are born from daily frustrations.&#10;When working with AI assistants like ChatGPT or Claude, I found myself constantly copying files to share context.&#10;After doing this manually dozens of times, I created a tool to automate it.&lt;/p&gt;&#10;&lt;h2 id="-origin-story"&gt;📖 Origin Story &lt;a class="anchor" href="#-origin-story" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;While contributing to open source, I frequently like to share entire (or large parts of) codebases with AI assistants for context or code review.&#10;Since the code is open source anyway, there&amp;rsquo;s no reason not to share the full context! But manually copying files, adding their paths for context, and ensuring I didn&amp;rsquo;t exceed token limits was tedious.&#10;Instead of continuing this manual process, I spent an evening creating &lt;a href="https://github.com/basnijholt/clip-files" target="_blank" rel="noopener"&gt;&lt;code&gt;clip-files&lt;/code&gt;&lt;/a&gt; - and have used it multiple times daily ever since.&lt;/p&gt;&#10;&lt;p&gt;In fact, I&amp;rsquo;m using it right now! The command (shown below) lets me share this entire advent calendar series with AI assistants for proofreading.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;clip-files --initial-file ai.md --files introduction.md day*.md&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="-technical-highlights"&gt;🔧 Technical Highlights &lt;a class="anchor" href="#-technical-highlights" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Uses &lt;code&gt;tiktoken&lt;/code&gt; for accurate GPT token counting&lt;/li&gt;&#10;&lt;li&gt;Supports both directory traversal and specific file selection&lt;/li&gt;&#10;&lt;li&gt;Automatically generates a file index for reference&lt;/li&gt;&#10;&lt;li&gt;Allows custom initial instructions via file&lt;/li&gt;&#10;&lt;li&gt;Preserves file paths in output for context&lt;/li&gt;&#10;&lt;li&gt;Clean, typed, and documented codebase&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-impact"&gt;📊 Impact &lt;a class="anchor" href="#-impact" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;While this tool has no GitHub stars (I haven&amp;rsquo;t promoted it), its real impact is personal - I use it multiple times daily for:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Sharing entire open source codebases with AI assistants&lt;/li&gt;&#10;&lt;li&gt;Getting comprehensive code reviews&lt;/li&gt;&#10;&lt;li&gt;Discussing bug fixes with full context&lt;/li&gt;&#10;&lt;li&gt;Documentation improvements&lt;/li&gt;&#10;&lt;li&gt;Open source contributions&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The tool&amp;rsquo;s real value isn&amp;rsquo;t in its complexity (it&amp;rsquo;s just ~250 lines of code) but in how it removes friction from open source development.&#10;When working with open code, we might as well share all the context we can - and this tool makes that effortless.&lt;/p&gt;&#10;&lt;h2 id="-challenges-and-solutions"&gt;🎯 Challenges and Solutions &lt;a class="anchor" href="#-challenges-and-solutions" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Maintaining consistent formatting across different input methods&lt;/li&gt;&#10;&lt;li&gt;Calculating accurate token counts for different components&lt;/li&gt;&#10;&lt;li&gt;Providing meaningful error messages for invalid inputs&lt;/li&gt;&#10;&lt;li&gt;Structuring output to be AI-assistant friendly&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-lessons-learned"&gt;💡 Lessons Learned &lt;a class="anchor" href="#-lessons-learned" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;When working with open source code, sharing full context is valuable&lt;/li&gt;&#10;&lt;li&gt;Simple command-line tools can significantly improve daily workflows&lt;/li&gt;&#10;&lt;li&gt;Consistent formatting matters when working with AI assistants&lt;/li&gt;&#10;&lt;li&gt;Sometimes a 250-line tool can save hours of manual work&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Want to make sharing code with AI assistants easier? Check out &lt;a href="https://github.com/basnijholt/clip-files" target="_blank" rel="noopener"&gt;clip-files on GitHub&lt;/a&gt;!&lt;/p&gt;&#10;&lt;p&gt;#OpenSource #Python #DevTools #AI #Programming&lt;/p&gt;&#10;</description></item><item><title>rsync-time-machine.py 🕒</title><link>https://www.nijho.lt/post/advent-of-open-source/03-rsync-time-machine/</link><pubDate>Tue, 03 Dec 2024 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/advent-of-open-source/03-rsync-time-machine/</guid><description>&lt;p&gt;(See my &lt;a href="../"&gt;intro post&lt;/a&gt;)&lt;/p&gt;&#10;&lt;p&gt;Sometimes the best open source projects start with &amp;ldquo;I can do better than this.&amp;rdquo; That&amp;rsquo;s exactly what happened when I looked at &lt;a href="https://github.com/laurent22/rsync-time-backup" target="_blank" rel="noopener"&gt;laurent22/rsync-time-backup&lt;/a&gt;, a popular 600-line Bash script for Time Machine-style backups. While it worked, it had known bugs and was tricky to maintain due to Bash&amp;rsquo;s limitations. It also lacked tests, type hints (bash duh&amp;hellip;), and proper error handling. So, I did what any reasonable developer would do: rewrote it in Python: &lt;a href="https://github.com/basnijholt/rsync-time-machine.py" target="_blank" rel="noopener"&gt;&lt;code&gt;rsync-time-machine.py&lt;/code&gt;&lt;/a&gt;! 🐍&lt;/p&gt;&#10;&lt;h2 id="-origin-story"&gt;📖 Origin Story &lt;a class="anchor" href="#-origin-story" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;I needed reliable backups that worked across platforms and filesystems, unlike Apple&amp;rsquo;s Time Machine.&#10;While many excellent backup tools exist, I was drawn to the simplicity of this approach: it just creates folders named &lt;code&gt;YYYY-MM-DD-HH-MM-SS&lt;/code&gt; containing your files.&#10;No special tools needed for restoring or browsing - just your regular file explorer!&#10;I created a fully tested, typed, and documented Python port that maintains compatibility with the original while adding modern development practices.&lt;/p&gt;&#10;&lt;h2 id="-technical-highlights"&gt;🔧 Technical Highlights &lt;a class="anchor" href="#-technical-highlights" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Creates incremental backups using hard links (saving space while keeping full snapshots)&lt;/li&gt;&#10;&lt;li&gt;Works on Linux, macOS, and Windows (via WSL or Cygwin)&lt;/li&gt;&#10;&lt;li&gt;Supports local and remote (SSH) backups&lt;/li&gt;&#10;&lt;li&gt;Smart backup expiration strategy&lt;/li&gt;&#10;&lt;li&gt;Built-in safety checks and locking mechanism&lt;/li&gt;&#10;&lt;li&gt;Pretty terminal output&lt;/li&gt;&#10;&lt;li&gt;Absolutely zero dependencies beyond Python itself - it just works!&lt;/li&gt;&#10;&lt;li&gt;Usable as a standalone &lt;code&gt;.py&lt;/code&gt; script or pip installable package&lt;/li&gt;&#10;&lt;li&gt;100% test coverage&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-impact"&gt;📊 Impact &lt;a class="anchor" href="#-impact" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The project reached the front page of &lt;a href="https://news.ycombinator.com/item?id=35933238" target="_blank" rel="noopener"&gt;Y Combinator&amp;rsquo;s Hacker News&lt;/a&gt;, causing its popularity to explode:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;381 GitHub stars&lt;/li&gt;&#10;&lt;li&gt;16 forks&lt;/li&gt;&#10;&lt;li&gt;6 contributors&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://realpython.com/podcasts/rpp/158/#t=1588" target="_blank" rel="noopener"&gt;Featured on Real Python podcast&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;Active discussion on Reddit&amp;rsquo;s &lt;a href="https://www.reddit.com/r/commandline/comments/13gtnrp/ported_a_popular_untested_600_line_bash_script_to/" target="_blank" rel="noopener"&gt;r/commandline&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-challenges-and-solutions"&gt;🎯 Challenges and Solutions &lt;a class="anchor" href="#-challenges-and-solutions" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Maintaining compatibility with the original Bash script while improving the codebase&lt;/li&gt;&#10;&lt;li&gt;Making it work on Windows through WSL/Cygwin (surprisingly tricky!)&lt;/li&gt;&#10;&lt;li&gt;Handling various edge cases in filesystem operations&lt;/li&gt;&#10;&lt;li&gt;Implementing a robust backup expiration strategy&lt;/li&gt;&#10;&lt;li&gt;Adding comprehensive test coverage for file operations&lt;/li&gt;&#10;&lt;li&gt;Keeping the codebase dependency-free while maintaining functionality&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="-lessons-learned"&gt;💡 Lessons Learned &lt;a class="anchor" href="#-lessons-learned" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Sometimes a rewrite is worth it, especially when adding modern development practices&lt;/li&gt;&#10;&lt;li&gt;Good documentation and test coverage are crucial for backup tools&lt;/li&gt;&#10;&lt;li&gt;The Python community appreciates well-structured ports of useful tools&lt;/li&gt;&#10;&lt;li&gt;Zero dependencies means zero headaches for users&lt;/li&gt;&#10;&lt;li&gt;Cross-platform compatibility (especially Windows) requires careful consideration&lt;/li&gt;&#10;&lt;li&gt;Simple, transparent solutions (like regular folders) can be better than complex ones&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Want reliable, cross-platform Time Machine-style backups? Check out &lt;a href="https://github.com/basnijholt/rsync-time-machine.py" target="_blank" rel="noopener"&gt;the project on GitHub&lt;/a&gt;!&lt;/p&gt;&#10;&lt;p&gt;#OpenSource #Python #Backups #DevTools #Programming&lt;/p&gt;&#10;</description></item><item><title>Working faster in the terminal 🥷</title><link>https://www.nijho.lt/post/terminal-ninja/</link><pubDate>Sat, 15 Apr 2023 00:00:00 +0000</pubDate><guid isPermaLink="false">/post/terminal-ninja/</guid><description>&lt;aside class="callout callout-warning"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"/&gt;&lt;/svg&gt;&lt;div&gt;Originally written in April 2023 but slightly updated in March 2025.&#10;Since then, I have published my entire &lt;a href="https://github.com/basnijholt/dotfiles" target="_blank" rel="noopener"&gt;&lt;code&gt;dotfiles&lt;/code&gt;&lt;/a&gt; repo, see the &lt;a href="https://www.nijho.lt/post/dotfiles/" target="_blank" rel="noopener"&gt;dotfiles blog post&lt;/a&gt; for more details.&#10;Since writing this post, I switched from &lt;code&gt;z-zsh&lt;/code&gt; to &lt;a href="https://github.com/ajeetdsouza/zoxide" target="_blank" rel="noopener"&gt;&lt;code&gt;zoxide&lt;/code&gt;&lt;/a&gt;, and from &lt;code&gt;autoenv&lt;/code&gt; to &lt;a href="https://direnv.net/" target="_blank" rel="noopener"&gt;&lt;code&gt;direnv&lt;/code&gt;&lt;/a&gt;, and am using a bunch of other modern CLI tools.&lt;/div&gt;&lt;/aside&gt;&#10;&lt;p&gt;Welcome to a world of terminal productivity!&#10;When helping others with programming problems on their computer, I often find myself in their terminal, and feel like walking through sand.&#10;When I show how awesome of an experience it can be, I often find myself repeating the same suggestions over and over again.&#10;So, I decided to write this guide to help others set up their terminal in a similar fashion.&#10;Let&amp;rsquo;s explore the wonders of &lt;a href="https://www.zsh.org/" target="_blank" rel="noopener"&gt;&lt;code&gt;zsh&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://ohmyz.sh/" target="_blank" rel="noopener"&gt;&lt;code&gt;oh-my-zsh&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://wiki.gentoo.org/wiki/Keychain" target="_blank" rel="noopener"&gt;&lt;code&gt;keychain&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://starship.rs/" target="_blank" rel="noopener"&gt;&lt;code&gt;starship&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://github.com/hyperupcall/autoenv" target="_blank" rel="noopener"&gt;&lt;code&gt;autoenv&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://github.com/agkozak/zsh-z" target="_blank" rel="noopener"&gt;&lt;code&gt;z&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://github.com/zsh-users/zsh-autosuggestions" target="_blank" rel="noopener"&gt;&lt;code&gt;zsh-autosuggestions&lt;/code&gt;&lt;/a&gt;, and other useful tools!&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://camo.githubusercontent.com/18cdb04e93fe276412b588dbed23bc328614bf7a4d09ea4d8862d38f1c466c65/687474703a2f2f6d656469612e74756d626c722e636f6d2f74756d626c725f6c74757a6a766251364c31717a677078392e676966" alt="" loading="lazy" data-zoomable&gt;&lt;/figure&gt;&lt;details class="toc" open&gt;&lt;summary&gt;Table of contents&lt;/summary&gt;&lt;nav id="TableOfContents"&gt;&#10; &lt;ul&gt;&#10; &lt;li&gt;&lt;a href="#-dotfiles-version-control-your-configuration-files"&gt;💾 Dotfiles: Version Control Your Configuration Files&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-the-power-of-zsh-and-oh-my-zsh"&gt;🐚 The Power of Zsh and Oh-my-zsh&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-oh-my-zsh-z-plugin-jump-around"&gt;🚀 Oh-my-zsh Z Plugin: Jump Around!&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-oh-my-zsh-dirhistory-plugin-time-travel-through-directories"&gt;⏰ Oh-my-zsh Dirhistory Plugin: Time Travel Through Directories&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-oh-my-zsh-git-plugin-turbocharge-your-git-workflow"&gt;🔧 Oh-my-zsh Git Plugin: Turbocharge Your Git Workflow&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-keychain-ssh-key-management-made-simple"&gt;🔑 Keychain: SSH Key Management Made Simple&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-starship-a-sleek-informative-shell-prompt"&gt;🌌 Starship: A Sleek, Informative Shell Prompt&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-autoenv-smart-environment-management"&gt;🌍 Autoenv: Smart Environment Management&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-zsh-autosuggestions-command-suggestions-as-you-type"&gt;💡 Zsh-autosuggestions: Command Suggestions as You Type&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-bat-a-supercharged-cat-alternative"&gt;🦇 Bat: A Supercharged Cat Alternative&lt;/a&gt;&lt;/li&gt;&#10; &lt;li&gt;&lt;a href="#-putting-it-all-together"&gt;🧩 Putting it All Together&lt;/a&gt;&lt;/li&gt;&#10; &lt;/ul&gt;&#10;&lt;/nav&gt;&lt;/details&gt;&#10;&#10;&lt;h2 id="-dotfiles-version-control-your-configuration-files"&gt;💾 Dotfiles: Version Control Your Configuration Files &lt;a class="anchor" href="#-dotfiles-version-control-your-configuration-files" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Configuration files are the key to a personalized terminal experience.&#10;Keeping a &lt;code&gt;dotfiles&lt;/code&gt; folder where you store and version control your config files ensures they&amp;rsquo;re safe, portable, and easily shared.&lt;/p&gt;&#10;&lt;p&gt;By keeping your &lt;code&gt;.bashrc&lt;/code&gt;, &lt;code&gt;.zshrc&lt;/code&gt;, and other configuration files under version control, you can:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Track changes and easily revert to previous versions if something breaks.&lt;/li&gt;&#10;&lt;li&gt;Sync your settings across multiple machines, recreating your setup anywhere.&lt;/li&gt;&#10;&lt;li&gt;Share your configurations with others, helping them improve their own terminal experience.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;A powerful approach is to not only track your configuration files but also to include plugins and tools as git submodules in your dotfiles repository. This keeps everything organized and makes it easy to update or share your complete setup.&lt;/p&gt;&#10;&lt;p&gt;Here&amp;rsquo;s an example of submodules I track in my dotfiles repository:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;configs/zsh/oh-my-zsh&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/oh-my-zsh&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; git@github.com:robbyrussell/oh-my-zsh.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;configs/zsh/zsh-syntax-highlighting&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/zsh-syntax-highlighting&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; git@github.com:zsh-users/zsh-syntax-highlighting.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;configs/zsh/zsh-autosuggestions&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/zsh-autosuggestions&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; git@github.com:zsh-users/zsh-autosuggestions.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;submodules/keychain&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/keychain&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; git@github.com:funtoo/keychain.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;configs/zsh/k&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/k&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; git@github.com:supercrabtree/k.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;submodules/.tmux&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/tmux&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; https://github.com/gpakosz/.tmux.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;configs/zsh/autoenv&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/autoenv&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; https://github.com/hyperupcall/autoenv&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;submodules/bypass-paywalls-chrome&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/bypass-paywalls-chrome&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; git@github.com:iamadamdev/bypass-paywalls-chrome.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;submodules/dotbot&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; submodules/dotbot&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; https://github.com/anishathalye/dotbot&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;[&lt;/span&gt;submodule &lt;span class="s2"&gt;&amp;#34;dotbot&amp;#34;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#9;&lt;span class="nv"&gt;ignore&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; dirty&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# (... a couple more ...)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To start version controlling your dotfiles, create a new Git repository, add your config files and submodules, then commit and push to a remote repository for safekeeping.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/anishathalye/dotbot" target="_blank" rel="noopener"&gt;Dotbot&lt;/a&gt; is highly recommended for automating the installation of your dotfiles.&lt;/p&gt;&#10;&lt;aside class="callout callout-note"&gt;&lt;svg class="ico" viewBox="0 0 256 256" aria-hidden="true"&gt;&lt;path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/&gt;&lt;/svg&gt;&lt;div&gt;Although I keep my dotfiles in a Git repository, I have not made it public. I might do so in the future, let me know if you&amp;rsquo;re interested!&lt;/div&gt;&lt;/aside&gt;&#10;&lt;h2 id="-the-power-of-zsh-and-oh-my-zsh"&gt;🐚 The Power of Zsh and Oh-my-zsh &lt;a class="anchor" href="#-the-power-of-zsh-and-oh-my-zsh" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The first step toward terminal efficiency is choosing the right shell.&#10;Zsh is a powerful, versatile, and user-friendly shell with features that significantly improve the command line experience.&#10;Oh-my-zsh adds even more functionality as a framework for managing Zsh configurations.&#10;It brings themes, plugins, and functions that make the terminal more powerful and enjoyable to use.&lt;/p&gt;&#10;&lt;p&gt;Setting up Zsh and Oh-my-zsh is straightforward:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Install Zsh (check your system&amp;rsquo;s package manager for instructions).&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Install Oh-my-zsh by running:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sh -c &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Edit your &lt;code&gt;.zshrc&lt;/code&gt; file and add the following lines to customize your plugins and theme:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;ZSH_THEME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;robbyrussell&amp;#34;&lt;/span&gt; &lt;span class="c1"&gt;# or any other theme you like&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;git z dirhistory &lt;span class="nb"&gt;history&lt;/span&gt; sudo&lt;span class="o"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="-oh-my-zsh-z-plugin-jump-around"&gt;🚀 Oh-my-zsh Z Plugin: Jump Around! &lt;a class="anchor" href="#-oh-my-zsh-z-plugin-jump-around" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Quick navigation through the file system is essential for productivity.&#10;&lt;a href="https://github.com/agkozak/zsh-z" target="_blank" rel="noopener"&gt;Z&lt;/a&gt; is a fantastic utility that lets you jump to directories based on frequency and recency of use.&#10;With Z, you can instantly leap to any frequently-used folder without typing the full path.&lt;/p&gt;&#10;&lt;p&gt;To set up Z, add the following lines to your &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;... z ...&lt;span class="o"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; &lt;span class="nv"&gt;$ZSH&lt;/span&gt;/oh-my-zsh.sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figure&gt;&lt;img src="https://github.com/agkozak/zsh-z/raw/da8dee3ccaf882d1bf653c34850041025616ceb5/img/demo.gif" alt="" loading="lazy" data-zoomable&gt;&lt;/figure&gt;&lt;p&gt;Alternative: &lt;a href="https://github.com/ajeetdsouza/zoxide" target="_blank" rel="noopener"&gt;zoxide&lt;/a&gt;, a more modern and faster version of Z in Rust.&#10;Need to try it myself.&lt;/p&gt;&#10;&lt;h2 id="-oh-my-zsh-dirhistory-plugin-time-travel-through-directories"&gt;⏰ Oh-my-zsh Dirhistory Plugin: Time Travel Through Directories &lt;a class="anchor" href="#-oh-my-zsh-dirhistory-plugin-time-travel-through-directories" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;code&gt;dirhistory&lt;/code&gt; plugin makes navigating directories incredibly simple with keyboard shortcuts:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;ALT-LEFT&lt;/strong&gt;: Move back to previously visited directories.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;ALT-RIGHT&lt;/strong&gt;: Undo the effect of ALT-LEFT, returning to the directories you moved back from.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;ALT-UP&lt;/strong&gt;: Move up one level in the directory hierarchy (equivalent to &lt;code&gt;cd ..&lt;/code&gt;).&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;ALT-DOWN&lt;/strong&gt;: Move into the first directory found in alphabetical order within the current directory.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;To set up the Oh-my-zsh &lt;code&gt;dirhistory&lt;/code&gt; plugin, add the following lines to your &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;... dirhistory ...&lt;span class="o"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; &lt;span class="nv"&gt;$ZSH&lt;/span&gt;/oh-my-zsh.sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This plugin makes directory navigation a breeze, reducing the need for repetitive typing.&lt;/p&gt;&#10;&lt;h2 id="-oh-my-zsh-git-plugin-turbocharge-your-git-workflow"&gt;🔧 Oh-my-zsh Git Plugin: Turbocharge Your Git Workflow &lt;a class="anchor" href="#-oh-my-zsh-git-plugin-turbocharge-your-git-workflow" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;For developers who use Git frequently, typing out full commands like &lt;code&gt;git checkout&lt;/code&gt; and &lt;code&gt;git commit&lt;/code&gt; gets tedious.&#10;&lt;a href="https://github.com/ohmyzsh/ohmyzsh/tree/5d3e86e2a48adf7a308773f8f1b725d187c7c5ef/plugins/git#git-plugin" target="_blank" rel="noopener"&gt;The &lt;code&gt;git&lt;/code&gt; plugin&lt;/a&gt; in Oh-my-zsh provides useful aliases that save time and keystrokes.&#10;Here are some of the most commonly used aliases:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;gco&lt;/code&gt;: &lt;code&gt;git checkout&lt;/code&gt; - Switch branches or restore working tree files.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gd&lt;/code&gt;: &lt;code&gt;git diff&lt;/code&gt; - Show changes between the working tree and the index or a tree.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;g&lt;/code&gt;: &lt;code&gt;git&lt;/code&gt; - The git command itself.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gcb&lt;/code&gt;: &lt;code&gt;git checkout -b&lt;/code&gt; - Create a new branch and switch to it.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gc&lt;/code&gt;: &lt;code&gt;git commit --verbose&lt;/code&gt; - Create a new commit with a verbose message.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gc!&lt;/code&gt;: &lt;code&gt;git commit --verbose --amend&lt;/code&gt; - Amend the previous commit with a verbose message.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;ga&lt;/code&gt;: git add - Add file contents to the index.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gca&lt;/code&gt;: &lt;code&gt;git commit --verbose --all&lt;/code&gt; - Commit all changes with a verbose message.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gca!&lt;/code&gt;: &lt;code&gt;git commit --verbose --all --amend&lt;/code&gt; - Amend the previous commit with a verbose message.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gcp&lt;/code&gt;: &lt;code&gt;git cherry-pick&lt;/code&gt; - Apply the changes introduced by some existing commits.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gst&lt;/code&gt;: &lt;code&gt;git status&lt;/code&gt; - Show the working tree status.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gp&lt;/code&gt;: &lt;code&gt;git push&lt;/code&gt; - Update remote refs along with associated objects.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gmom&lt;/code&gt;: &lt;code&gt;git merge origin/$(git_main_branch)&lt;/code&gt; - Merge changes from the main branch.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;grbom&lt;/code&gt;: &lt;code&gt;git rebase origin/$(git_main_branch)&lt;/code&gt; - Rebase current branch onto the main branch.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;gfa&lt;/code&gt;: &lt;code&gt;git fetch --all --prune --jobs=10&lt;/code&gt; - Fetch all remote branches and remove any stale remote-tracking references, using 10 parallel jobs.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;To set up the Oh-my-zsh &lt;code&gt;git&lt;/code&gt; plugin, add the following lines to your &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;... git ...&lt;span class="o"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; &lt;span class="nv"&gt;$ZSH&lt;/span&gt;/oh-my-zsh.sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Check out the full list of &lt;a href="https://github.com/ohmyzsh/ohmyzsh/tree/5d3e86e2a48adf7a308773f8f1b725d187c7c5ef/plugins/git#git-plugin" target="_blank" rel="noopener"&gt;Git aliases&lt;/a&gt; that the Git plugin provides.&lt;/p&gt;&#10;&lt;h2 id="-keychain-ssh-key-management-made-simple"&gt;🔑 Keychain: SSH Key Management Made Simple &lt;a class="anchor" href="#-keychain-ssh-key-management-made-simple" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://wiki.gentoo.org/wiki/Keychain" target="_blank" rel="noopener"&gt;Keychain&lt;/a&gt; is a tool that manages SSH keys, making secure access to remote systems much more convenient.&#10;It&amp;rsquo;s especially useful when working with Git repositories or remote servers via SSH.&lt;/p&gt;&#10;&lt;p&gt;With Keychain, you only need to &lt;em&gt;&lt;strong&gt;enter your SSH password once&lt;/strong&gt;&lt;/em&gt; after rebooting, and it will remember it for future sessions.&lt;/p&gt;&#10;&lt;p&gt;To set up Keychain, clone it to your dotfiles directory:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone git@github.com:funtoo/keychain.git ~/dotfiles/keychain&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then add these lines to your &lt;code&gt;.bash_profile&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="sb"&gt;`&lt;/span&gt;hostname&lt;span class="sb"&gt;`&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;Linux&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;:&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;HOME&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/dotfiles/dotfiles/keychain/&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; ps -p &lt;span class="nv"&gt;$SSH_AGENT_PID&lt;/span&gt; &amp;gt; /dev/null&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;ssh-agent is already running&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;else&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="sb"&gt;`&lt;/span&gt;keychain --eval --quiet id_ed25519&lt;span class="sb"&gt;`&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="sb"&gt;`&lt;/span&gt;uname&lt;span class="sb"&gt;`&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;Darwin&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="sb"&gt;`&lt;/span&gt;keychain --eval --quiet --agents ssh --inherit any-once id_ed25519&lt;span class="sb"&gt;`&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="-starship-a-sleek-informative-shell-prompt"&gt;🌌 Starship: A Sleek, Informative Shell Prompt &lt;a class="anchor" href="#-starship-a-sleek-informative-shell-prompt" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://starship.rs/" target="_blank" rel="noopener"&gt;Starship&lt;/a&gt; is a minimal, blazing-fast, and fully customizable shell prompt that provides essential information at a glance.&#10;It shows details about your current environment, such as Git branch, Python virtual environment, and more.&lt;/p&gt;&#10;&lt;p&gt;Setting up Starship is simple:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Install it using the appropriate command for your system:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://starship.rs/install.sh &lt;span class="p"&gt;|&lt;/span&gt; bash&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Add the following line to your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;starship init zsh&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;video controls&gt;&#10; &lt;source src="https://starship.rs/demo.webm" type="video/webm"&gt;&#10; Your browser does not support the video tag.&#10;&lt;/video&gt;&#10;&lt;h2 id="-autoenv-smart-environment-management"&gt;🌍 Autoenv: Smart Environment Management &lt;a class="anchor" href="#-autoenv-smart-environment-management" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;When working with multiple projects, each often requires specific environment settings.&#10;&lt;a href="https://github.com/hyperupcall/autoenv" target="_blank" rel="noopener"&gt;Autoenv&lt;/a&gt; automates the process of activating and deactivating these settings when you enter or leave a directory.&lt;/p&gt;&#10;&lt;p&gt;For example, you can create a &lt;code&gt;.env&lt;/code&gt; file in your project directory to automatically activate a Python environment:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;conda activate myenv&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To set up Autoenv:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Clone the repository (or add it to your &lt;code&gt;dotfiles&lt;/code&gt;):&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone git://github.com/hyperupcall/autoenv.git ~/.autoenv&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Add the following line to your &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/.autoenv/activate.sh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="-zsh-autosuggestions-command-suggestions-as-you-type"&gt;💡 Zsh-autosuggestions: Command Suggestions as You Type &lt;a class="anchor" href="#-zsh-autosuggestions-command-suggestions-as-you-type" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/zsh-users/zsh-autosuggestions" target="_blank" rel="noopener"&gt;Zsh-autosuggestions&lt;/a&gt; suggests commands based on your command history as you type.&#10;This saves keystrokes and makes repetitive tasks much faster.&lt;/p&gt;&#10;&lt;p&gt;To set up Zsh-autosuggestions:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Clone the repository:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone https://github.com/zsh-users/zsh-autosuggestions.git &lt;span class="nv"&gt;$ZSH_CUSTOM&lt;/span&gt;/plugins/zsh-autosuggestions&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Add the following line to your &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; &lt;span class="nv"&gt;$ZSH_CUSTOM&lt;/span&gt;/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;figure&gt;&lt;img src="https://user-images.githubusercontent.com/6897215/233818577-189256ff-b1e2-4790-984e-6fd191df5c00.gif" alt="" loading="lazy" data-zoomable&gt;&lt;/figure&gt;&lt;p&gt;Alternative: &lt;a href="https://direnv.net/" target="_blank" rel="noopener"&gt;&lt;code&gt;direnv&lt;/code&gt;&lt;/a&gt;, very similar to &lt;code&gt;autoenv&lt;/code&gt;, but seems more widely used.&#10;Still need to try it myself.&lt;/p&gt;&#10;&lt;h2 id="-bat-a-supercharged-cat-alternative"&gt;🦇 Bat: A Supercharged Cat Alternative &lt;a class="anchor" href="#-bat-a-supercharged-cat-alternative" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/sharkdp/bat" target="_blank" rel="noopener"&gt;Bat&lt;/a&gt; is a modern replacement for the &lt;code&gt;cat&lt;/code&gt; command with syntax highlighting, Git integration, and other enhancements that make viewing files in the terminal much more pleasant.&lt;/p&gt;&#10;&lt;p&gt;Installing Bat is straightforward with most package managers:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;brew install bat &lt;span class="c1"&gt;# macOS&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt install bat &lt;span class="c1"&gt;# Ubuntu/Debian&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To seamlessly replace &lt;code&gt;cat&lt;/code&gt; with &lt;code&gt;bat&lt;/code&gt; while maintaining the simple behavior when needed, add this to your &lt;code&gt;.zshrc&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;command&lt;/span&gt; -v bat &lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&amp;gt; /dev/null&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;alias&lt;/span&gt; &lt;span class="nv"&gt;cat&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;bat --plain --paging=never&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;fi&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This alias makes &lt;code&gt;bat&lt;/code&gt; behave like &lt;code&gt;cat&lt;/code&gt; by default (without line numbers or fancy formatting), but you can still use the &lt;code&gt;bat&lt;/code&gt; command directly when you want the enhanced features.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="https://imgur.com/rGsdnDe.png" alt="" loading="lazy" data-zoomable&gt;&lt;/figure&gt;&lt;p&gt;Bat is particularly useful when viewing code files, configuration files, or any text that benefits from syntax highlighting, making it easier to quickly understand the content at a glance.&lt;/p&gt;&#10;&lt;h2 id="-putting-it-all-together"&gt;🧩 Putting it All Together &lt;a class="anchor" href="#-putting-it-all-together" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;With these powerful tools at your disposal, you&amp;rsquo;re now equipped to make your terminal experience faster, more efficient, and more enjoyable.&#10;These tools work together to reduce repetitive typing, simplify complex workflows, and provide helpful information when you need it.&#10;Each component adds something valuable to your terminal setup, creating a seamless and productive environment.&lt;/p&gt;&#10;&lt;p&gt;Try implementing these tools one by one, and see how they transform your command-line experience.&#10;Feel free to reach out if you have questions about any of the tools mentioned.&#10;Happy terminal customizing!&lt;/p&gt;&#10;</description></item><item><title>dotfiles</title><link>https://www.nijho.lt/project/dotfiles/</link><pubDate>Fri, 19 Apr 2019 00:00:00 +0000</pubDate><guid isPermaLink="false">/project/dotfiles/</guid><description/></item><item><title>fileup</title><link>https://www.nijho.lt/project/fileup/</link><pubDate>Fri, 24 Feb 2017 00:00:00 +0000</pubDate><guid isPermaLink="false">/project/fileup/</guid><description/></item></channel></rss>