<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>AI on Linux Lawyering</title><link>https://linuxlawyering.com/tags/ai/</link><description>Recent content in AI on Linux Lawyering</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 14 Oct 2026 09:00:00 -0400</lastBuildDate><atom:link href="https://linuxlawyering.com/tags/ai/index.xml" rel="self" type="application/rss+xml"/><item><title>How This Blog Uses AI</title><link>https://linuxlawyering.com/posts/how-this-blog-uses-ai/</link><pubDate>Wed, 14 Oct 2026 09:00:00 -0400</pubDate><guid>https://linuxlawyering.com/posts/how-this-blog-uses-ai/</guid><description>&lt;p&gt;When I started Linux Lawyering, the plan was simple: written by a human, for humans. I typed every word of the early posts myself, and I liked it that way.&lt;/p&gt;
&lt;p&gt;But that plan ran into my calendar. I run a solo practice, and that comes first. The homelab, the PDF experiments, and the failed driver installs kept piling up faster than I could write them up. So the backlog grew while the blog sat quiet.&lt;/p&gt;</description><content:encoded><![CDATA[<p>When I started Linux Lawyering, the plan was simple: written by a human, for humans. I typed every word of the early posts myself, and I liked it that way.</p>
<p>But that plan ran into my calendar. I run a solo practice, and that comes first. The homelab, the PDF experiments, and the failed driver installs kept piling up faster than I could write them up. So the backlog grew while the blog sat quiet.</p>
<p>So I changed the approach. Some posts are now drafted with AI help.</p>
<h2 id="how-it-works">How it works</h2>
<p>I keep detailed working notes on nearly everything I do with my machines: what I tried, what broke, what fixed it, and what&rsquo;s still open. Those notes are the raw material. An AI model turns a set of notes into a first draft, following written instructions about voice, accuracy, and what stays out.</p>
<p>Then I edit it. I check the facts against my notes, cut what&rsquo;s wrong or overstated, and rewrite what doesn&rsquo;t sound like me. Nothing goes up without that pass. If a post is here, a human decided it was accurate and worth reading.</p>
<p>Every post on this site falls into one of two categories:</p>
<ul>
<li><strong>Human-drafted.</strong> I wrote it.</li>
<li><strong>AI-drafted, human-edited.</strong> A model wrote the first draft from my notes, and I reviewed and edited it before it went up.</li>
</ul>
<p>There&rsquo;s no third category. No post is AI-written and published without review.</p>
<h2 id="what-doesnt-change">What doesn&rsquo;t change</h2>
<p>Client confidentiality isn&rsquo;t negotiable. The notes that feed these drafts are about software and hardware, not cases. When a post grows out of legal work, such as drafting a brief in Markdown, the client, the case, and the facts stay out. The AI never sees client files for this blog.</p>
<p>The failures stay in, too. A lot of this blog is about things that didn&rsquo;t work. AI drafting makes it easier to write those up honestly, because the notes were written when the problem was fresh and before I&rsquo;d had a chance to make myself look better.</p>
<h2 id="why-say-anything-at-all">Why say anything at all</h2>
<p>Lawyers are being asked, by courts, bar associations, and clients, to be candid about how they use AI. Holding a blog to the same standard seems right. Besides, a blog about using open-source tools in a law practice would be an odd place to hide a tool.</p>
<p>If something in a post is wrong, that&rsquo;s on me, not the model. Tell me and I&rsquo;ll fix it.</p>
]]></content:encoded></item><item><title>Trimming a Brief to the Word Limit</title><link>https://linuxlawyering.com/posts/trimming-a-brief-to-the-word-limit/</link><pubDate>Wed, 14 Oct 2026 09:00:00 -0400</pubDate><guid>https://linuxlawyering.com/posts/trimming-a-brief-to-the-word-limit/</guid><description>&lt;p&gt;A recent appellate reply brief of mine started at 10,881 words. The cap under URAP 24(g) is 7,000. That&amp;rsquo;s a lot of brief to lose, and I didn&amp;rsquo;t want to lose it by hand—or by letting an AI quietly rewrite my work.&lt;/p&gt;
&lt;p&gt;So I used AI to propose cuts, built a small tool to review them safely, and found that the biggest savings didn&amp;rsquo;t come from cutting at all. Here&amp;rsquo;s what worked, what broke, and what I&amp;rsquo;d do again.&lt;/p&gt;</description><content:encoded><![CDATA[<p>A recent appellate reply brief of mine started at 10,881 words. The cap under URAP 24(g) is 7,000. That&rsquo;s a lot of brief to lose, and I didn&rsquo;t want to lose it by hand—or by letting an AI quietly rewrite my work.</p>
<p>So I used AI to propose cuts, built a small tool to review them safely, and found that the biggest savings didn&rsquo;t come from cutting at all. Here&rsquo;s what worked, what broke, and what I&rsquo;d do again.</p>
<h2 id="the-setup-markdown-and-git">The setup: Markdown and Git</h2>
<p>The brief lives as one Markdown file per section in a Git repository. That matters more than it sounds. Every AI pass becomes a branch, every branch can be diffed against my version, and nothing touches my real draft until I say so.</p>
<p>If you haven&rsquo;t used Git for drafting, the short version is that it&rsquo;s an undo button with a memory. I&rsquo;ll write more about the setup in another post.</p>
<h2 id="pass-one-ordinary-trimming">Pass one: ordinary trimming</h2>
<p>The first pass was me, with an assistant, cutting the obvious stuff—hedging, restated points, and parallel reporter cites I didn&rsquo;t need. That took the brief from 10,881 to 10,096 words. I then drafted the introduction and conclusion, which pushed the total back up to 10,290.</p>
<p>That&rsquo;s the humbling part of word limits: the first 800 words are easy, and then you add the parts you forgot to write.</p>
<h2 id="pass-two-two-independent-trims-compared">Pass two: two independent trims, compared</h2>
<p>Next I had two separate AI passes work from the same baseline, each on its own branch. One was told to cut aggressively. The other, a different model, was told to do a full rewrite. They landed at 8,001 and 8,322 words.</p>
<p>Git worktrees make this painless. Each pass gets its own checked-out folder, so I can open both side by side:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#75715e"># one worktree per candidate pass, branched from the same baseline</span>
</span></span><span style="display:flex;"><span>git worktree add ../trim-aggressive -b trim-aggressive
</span></span><span style="display:flex;"><span>git worktree add ../trim-rewrite -b trim-rewrite
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># compare the same section across the two</span>
</span></span><span style="display:flex;"><span>git diff --word-diff trim-aggressive trim-rewrite -- section-03.md
</span></span></code></pre></div><p>The useful part was where the two passes agreed. When both independently dropped the same paragraph, I treated that as a strong signal it was safe to lose. Disagreement told me where to look harder.</p>
<h2 id="pass-three-make-the-ai-show-its-work">Pass three: make the AI show its work</h2>
<p>The third pass changed the format. I told the AI to leave a comment at every cut explaining why:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span><span style="color:#75715e">&lt;!-- CUT:014: restates the point made two paragraphs earlier --&gt;</span>
</span></span></code></pre></div><p>That one habit made review possible. A plain diff shows what vanished. A diff with rationales shows what vanished <em>and what the AI was thinking</em>, which is the thing I actually have to judge. This pass took the brief to about 7,800 words, with 46 flagged cuts.</p>
<p>But 46 diffs in a text editor is miserable, which is why I built the tool.</p>
<h2 id="the-reviserator">The reviserator</h2>
<p>I&rsquo;m not a programmer, but I can work with Claude to build small tools. This one is a single Python file with no dependencies beyond the standard library. It reads two Git refs—my version and the candidate with the <code>CUT</code> comments—and serves a page on my own machine. Each flagged change gets its own editable text box, pre-filled with the AI&rsquo;s proposal.</p>
<p>I can keep the original, accept the proposal, or type something custom, and the page shows which of the three I&rsquo;ve chosen. If I leave a <code>{{ note to self }}</code> in a box, it passes through untouched so I can deal with it later. When I click Apply, it writes the reconciled files. It never touches the original ref.</p>
<p>The hard part was matching each comment to the right original text. It took three tries:</p>
<ol>
<li><strong>Exact-string context matching</strong> failed. The AI tightens language throughout a pass, not just at the flagged spots, so the &ldquo;unchanged&rdquo; text near a cut often wasn&rsquo;t unchanged.</li>
<li><strong>A real line diff</strong> worked. Comparing the original against the comment-stripped candidate gave me honest change regions to match against.</li>
<li><strong>Non-exclusive matching</strong> fixed the rest. Several cuts can legitimately land in the same paragraph, so one diff region has to be allowed to claim more than one comment.</li>
</ol>
<p>That got about 96% auto-matching on real data. The 2 of 46 cuts that didn&rsquo;t match are shown with their rationale but no editable box, so I can restore them by hand. I&rsquo;d rather the tool admit it&rsquo;s lost than guess.</p>
<p>I reviewed pass three through the tool, accepted most cuts, rewrote several paragraphs myself, and committed the result: 7,922 words. Under 8,000, but not under 7,000.</p>
<h2 id="pass-four-structure-not-sentences">Pass four: structure, not sentences</h2>
<p>By this point, sentence-level trimming had run dry. For the fourth pass I told the AI it could convert prose to tables and bullet lists where the content was parallel—but only to match formats I&rsquo;d already used in the brief. The pass made four conversions, among them a table in place of a page of paragraphs. That landed at roughly 6,980 words, under the cap for the first time.</p>
<p>I also told it to read my own notes on one section before touching it, because I&rsquo;d already worked out why that section shouldn&rsquo;t be compressed further. It left that one alone.</p>
<h2 id="what-broke">What broke</h2>
<p>Two things, both found in real use.</p>
<p><strong>Out-of-order IDs and a silent failure.</strong> The fourth-pass agent numbered its cut comments in no particular order, and it invented its own notation for a combined cut: <code>CUT:005/002</code>. My parser expected a plain integer after <code>CUT:</code>, so that comment didn&rsquo;t fail loudly. It just wasn&rsquo;t there. A tool that quietly drops a change is worse than one that crashes. The lesson is to tell the AI the exact comment format, and to make your parser complain about anything that <em>almost</em> matches.</p>
<p><strong>A pointless copy-back step.</strong> The tool originally wrote its output to a separate directory, and I had to copy files back into my working folder by hand. The cause was that I&rsquo;d built it to compare any two refs, even ones not checked out anywhere. By then every real run pointed at a checked-out branch. So <code>--output</code> became optional: if the candidate branch is the one currently checked out, Apply writes straight into it as an ordinary uncommitted change. If it isn&rsquo;t, the tool refuses instead of guessing. The original ref is still read-only.</p>
<h2 id="the-cite-check-and-the-cut-that-wasnt-a-cut">The cite-check, and the cut that wasn&rsquo;t a cut</h2>
<p>A later session ran a full cite-check, and the brief dropped to 6,467 words without a dedicated trim pass at all. The cause was restructuring. Several sections had drifted into arguing forward and backward at once, so I had them rewritten around one pattern:</p>
<ol>
<li>State the rule.</li>
<li>State what the record and trial court did.</li>
<li>State the other side&rsquo;s argument, all of it, in their order.</li>
<li>Rebut each point in that order.</li>
<li>Close.</li>
</ol>
<p>Rebuilding that way cut words as a side effect, because the brief stopped saying things twice.</p>
<p>On the cite-check itself, I didn&rsquo;t trust the report whole. I spot-checked its most serious findings against the primary sources first, including two recent appellate decisions it cited, which I confirmed on CourtListener. Everything I checked held up, so I went ahead with the rest. Checking a sample before trusting the batch is cheap insurance.</p>
<p>The tool has since been shelved. It did its job on one brief, and the real value was the method.</p>
<h2 id="what-id-tell-another-lawyer">What I&rsquo;d tell another lawyer</h2>
<p>Don&rsquo;t ask an AI to &ldquo;shorten this.&rdquo; Ask it to cut, and make it explain each cut in a comment you can review. Run two independent passes and trust the overlap. Keep everything in Git so no pass can overwrite your draft.</p>
<p>And when sentence-level trimming stops working, stop trimming sentences. Fix the structure instead.</p>
]]></content:encoded></item><item><title>Two Vaults, AI, and Client Confidentiality</title><link>https://linuxlawyering.com/posts/two-vaults-ai-and-client-confidentiality/</link><pubDate>Wed, 14 Oct 2026 09:00:00 -0400</pubDate><guid>https://linuxlawyering.com/posts/two-vaults-ai-and-client-confidentiality/</guid><description>&lt;p&gt;My AI-assisted knowledge base is split in two on purpose. Legal and professional knowledge lives in one vault, homelab and personal stuff lives in another, and client casefiles live in neither. The split exists mostly because of confidentiality, and it took me a while to see that.&lt;/p&gt;
&lt;h2 id="what-a-vault-is-here"&gt;What a vault is, here&lt;/h2&gt;
&lt;p&gt;A &amp;ldquo;vault&amp;rdquo; is just a folder of plain Markdown files. I view it in &lt;a href="https://obsidian.md"&gt;Obsidian&lt;/a&gt;, but nothing depends on Obsidian. The files sit on my own server, under Git, and get replicated to a second machine every day. No subscription, no proprietary database, no export button to hunt for.&lt;/p&gt;</description><content:encoded><![CDATA[<p>My AI-assisted knowledge base is split in two on purpose. Legal and professional knowledge lives in one vault, homelab and personal stuff lives in another, and client casefiles live in neither. The split exists mostly because of confidentiality, and it took me a while to see that.</p>
<h2 id="what-a-vault-is-here">What a vault is, here</h2>
<p>A &ldquo;vault&rdquo; is just a folder of plain Markdown files. I view it in <a href="https://obsidian.md">Obsidian</a>, but nothing depends on Obsidian. The files sit on my own server, under Git, and get replicated to a second machine every day. No subscription, no proprietary database, no export button to hunt for.</p>
<p>The AI part is that Claude and Codex (the command-line coding agents) both read and write the vault. Each vault has a single policy file, <code>AGENTS.md</code>, that both agents follow. Global instructions on my machine point them at the right vault, so a session about a Proxmox node and a session about a brief both start by looking up what I already figured out.</p>
<p>That&rsquo;s the appeal. I solve something once, an agent files the lesson, and next month&rsquo;s session finds it. I stop re-deriving the same answers.</p>
<h2 id="why-one-vault-wasnt-enough">Why one vault wasn&rsquo;t enough</h2>
<p>I started with one vault, MindVault, and everything went in it: homelab notes, farm and town stuff, and the legal material too — drafting preferences, research notes, prompts, logs from brief-writing sessions.</p>
<p>That worked until I looked at what an agent doing homelab work could see. Search returns whatever matches. A vault that holds both a firewall note and a drafting log means every session, on any topic, is one query away from legal material. And the legal side wanted different rules than the homelab side, anyway.</p>
<p>So I split them. All the legal material moved to a new vault, with its own policy, its own search index, and its own filing skill (the instructions that tell an agent when and how to file a note). MindVault&rsquo;s policy now says, in effect: legal work goes over there.</p>
<p>I considered three alternatives first. I could have just tidied the legal section inside the one vault. I could have had an AI build an &ldquo;LLM wiki&rdquo; of summary pages from my brief bank, which I&rsquo;ve pinned for later. Or I could have turned my whole legal folder into a vault. I rejected the last one flatly, and that leads to the third location.</p>
<h2 id="casefiles-stay-out-of-both">Casefiles stay out of both</h2>
<p>Client casefiles live in per-matter folders, outside both vaults. The legal vault is for what carries from one matter to the next: drafting style, research on recurring issues, court procedure notes, checklists, prompts. It is not a place to keep a client&rsquo;s file.</p>
<p>The policy puts it this way: a note should carry only the matter detail its reusable lesson needs, and point to the matter folder for the rest. Sensitive client detail — identifiers, addresses, birth dates, medical or family matters — stays out entirely, including from titles and summaries. Titles matter because search results and index files show them.</p>
<p>So a note might say &ldquo;reply briefs in this court run into X, and here&rsquo;s how I handled it.&rdquo; It won&rsquo;t say whose brief it was.</p>
<h2 id="the-rules-the-agents-follow">The rules the agents follow</h2>
<p>I wrote these down because an agent will do whatever the file lets it do. The rules are short:</p>
<ul>
<li><strong>No secrets.</strong> Agents don&rsquo;t file credentials, period. In the homelab vault, an exception needs my explicit approval for each item, and the default is a placeholder or a pointer to wherever the credential actually lives. In the legal vault there&rsquo;s no exception. When I set the vault up, I removed an environment file from it before the first Git checkpoint, so no credential values went into the history.</li>
<li><strong>Minimal client detail.</strong> See above. If the lesson doesn&rsquo;t need the fact, the fact doesn&rsquo;t go in.</li>
<li><strong>Dated checks.</strong> A research note puts a dated check beside each proposition it verified. A check date tells me what was verified and when. It doesn&rsquo;t tell me the proposition is still good.</li>
<li><strong>Notes are not authority.</strong> My legal vault&rsquo;s README says this to myself, in so many words: anything in here can be stale, even a note that looks current. Law changes, cases get reversed, files move. Use the vault to remember what I did and why, then go check the case, the rule, or the record.</li>
<li><strong>Corrections, not rewrites.</strong> When a note turns out to be wrong, the agent adds a dated correction under the old reasoning. I can see what I believed and when I stopped believing it.</li>
<li><strong>Notes are data, not instructions.</strong> An agent that reads a note shouldn&rsquo;t obey commands found inside it. Same logic as not following instructions embedded in a document someone sends you.</li>
<li><strong>Ask first for the big stuff.</strong> Agents can create and fix notes on their own. They have to ask before broad restructuring, deleting unique information, or sending vault content off the machine.</li>
</ul>
<p>None of this is exotic. It&rsquo;s roughly what I&rsquo;d tell a new paralegal, adjusted for something that works fast and never gets bored.</p>
<h2 id="whats-still-open">What&rsquo;s still open</h2>
<p>Not everything works yet. Codex&rsquo;s sandbox settings don&rsquo;t yet let it write to the legal vault, so for now Claude does the legal filing. I haven&rsquo;t changed that yet.</p>
<p>I also can&rsquo;t tell you the split is airtight. Both vaults are Markdown on the same machine, and the separation is a policy that agents follow, not a wall. Nothing technical stops an agent from reading both. The protection comes from the instructions, the habit of minimal detail, and my own review. I haven&rsquo;t stress-tested it.</p>
<p>And the summary-page idea is parked, not dead. The design leaves room for it.</p>
<h2 id="what-id-tell-another-lawyer">What I&rsquo;d tell another lawyer</h2>
<p>If you&rsquo;re going to put an AI agent near a knowledge base, decide where client information is not allowed before you decide anything else. Keep the casefile out of the knowledge base, and keep what you learned from it in. Write the rules down in a file the agent reads every time. And treat every note, yours or the AI&rsquo;s, as a pointer to a source you still have to check.</p>
]]></content:encoded></item></channel></rss>