<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dean Gronostaj on Medium]]></title>
        <description><![CDATA[Stories by Dean Gronostaj on Medium]]></description>
        <link>https://medium.com/@tobias1?source=rss-db66cfdc748b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jFwhb0WeC5S_4USoMJQAWQ.png</url>
            <title>Stories by Dean Gronostaj on Medium</title>
            <link>https://medium.com/@tobias1?source=rss-db66cfdc748b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:01:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tobias1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Had 4.7 Terabytes of Photos. Only 3% Were Actually New.]]></title>
            <link>https://medium.com/@tobias1/i-had-4-7-terabytes-of-photos-only-3-were-actually-new-3d6d47f3d380?source=rss-db66cfdc748b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d6d47f3d380</guid>
            <category><![CDATA[deduplication]]></category>
            <category><![CDATA[digital-fingerprinting]]></category>
            <category><![CDATA[photo-organizing]]></category>
            <category><![CDATA[photo-management]]></category>
            <dc:creator><![CDATA[Dean Gronostaj]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 14:52:29 GMT</pubDate>
            <atom:updated>2026-07-07T14:52:29.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xqCY0JNGRUlYOMafhrDYRA.png" /></figure><h3>How two kinds of “fingerprinting” untangled a decade of duplicated memories.</h3><p>Like a lot of people, I never really <em>organized</em> my photos — I just kept <em>copying</em> them. Every phone, every laptop, every cloud service, every NAS backup got its own copy of the same pictures. Over the years that turned into a sprawl: 4.7 terabytes and roughly 645,000 media files spread across an old network backup, two desktop drives, a photo-sharing account, and a pile of “I’ll sort this later” folders.</p><p>I already had one <em>curated</em> library that I actually tag and maintain. The question wasn’t “back everything up again” — it was: of this giant mess, what’s genuinely new that isn’t already in my curated library? Everything else is just noise I can archive and forget.</p><p>Answering that took two very different tricks. Here’s how it went.</p><h3>Step 1: Kill the exact copies (the easy 72%)</h3><p>The first pass is for files that are <em>literally identical</em> — the same photo copied into ten different backup folders.</p><p>The tool for this is a <strong>cryptographic hash</strong> (SHA-256). Think of it as a fingerprint of a file’s <em>contents</em>: feed in the exact bytes, get back a short, unique string. Two files with the same fingerprint are byte-for-byte identical, no matter what they’re named or where they live. Rename it, move it, bury it twenty folders deep — same bytes, same fingerprint.</p><p>A nice optimization: you only need to fingerprint files that share an exact byte-size. If a file’s size is unique, nothing else can possibly be its twin, so you skip it. That alone spared me from re-reading terabytes of data.</p><p>One rule I never broke: verify before you delete. After every copy I re-hashed a random sample of files and confirmed the total file-count and total byte-count matched <em>exactly</em> on both sides. Only then did anything get moved — and even then, duplicates were quarantined, never deleted.</p><p>The result of this pass was dramatic: about 72% of the collection was exact duplicates. Hundreds of thousands of files collapsed into a fraction.</p><h3>Step 2: The trap — the same photo that isn’t the same file</h3><p>Here’s where it gets interesting. I ran the deduped set against my curated library and it reported a huge number of “new” photos. Too many. Something was off.</p><p>The catch: the same photo, exported by different services, is not the same file. When you download your pictures from one cloud service versus another, each one re-compresses the image slightly differently. Same shot, same moment — but different bytes. And if the bytes differ, the fingerprint differs, and byte-hashing confidently declares it “brand new.”</p><p>So byte-hashing has a blind spot. It’s perfect for <em>identical files</em> and useless for <em>identical pictures that were saved twice.</em></p><h3>Step 3: Fingerprint what the photo looks like</h3><p>The fix is a <strong>perceptual hash</strong> (pHash). Instead of hashing the raw bytes, it hashes the <em>appearance</em>: shrink the image to a tiny thumbnail, drain the color, and capture its structural “frequency signature.” A re-compressed, resized, or re-saved copy of the same photo produces the same visual fingerprint — even though its bytes are completely different.</p><p>I fingerprinted my entire curated library (over 160,000 photos) and every remaining candidate, then matched them visually. This is what finally caught the re-encoded twins — roughly 50,000 photos that byte-hashing had waved through as “new” but were, visually, shots I already had.</p><p>Two safeguards mattered here, because perceptual matching is <em>fuzzy</em> by nature:</p><ul><li><strong>A tight threshold</strong>, so it only flags near-identical images, not merely similar ones (two different sunset photos shouldn’t get merged).</li><li><strong>Keep the best copy</strong> (highest resolution) and, again, <strong>delete nothing</strong> — every look-alike went to a review folder to eyeball later.</li></ul><p><em>(A performance note for the curious: naively fingerprinting 160,000 photos was</em> <em>going to take ~11 hours. Decoding each JPEG at low resolution — the fingerprint</em> <em>only needs a tiny thumbnail anyway — plus running it across multiple CPU cores</em> <em>cut that to under an hour.)</em></p><h3>The funnel, in numbers:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kxot4iDJmumJtosnrspb0A.png" /></figure><p><strong><em>Every single source I folded in turned out to be 90–98% redundant. My curated library was already about 97% complete. The entire multi-terabyte mess boiled down to roughly 14,000 photos that were actually missing — a tidy, reviewable set instead of an overwhelming pile.</em></strong></p><h3>The takeaways</h3><ol><li><strong>Use the right fingerprint for the right job.</strong> Cryptographic hashing finds <em>identical files</em>. Perceptual hashing finds <em>identical pictures</em>. You need both — the second one is what most people forget, and it’s where the real duplicates hide.</li><li><strong>Verify, then move; never delete blind.</strong> Re-hash samples, match the counts, and quarantine duplicates instead of erasing them. Storage is cheap; a lost photo is forever.</li><li><strong>Most of your “photo problem” is redundancy, not volume.</strong> The scary number (terabytes, hundreds of thousands of files) is almost entirely copies. The signal — the stuff that’s actually new — is usually tiny once you can <em>see</em> the duplicates clearly.</li></ol><p>I went in bracing to sort through a decade of chaos. I came out with a single clean folder of a few thousand genuinely-new pictures — and a much healthier respect for how much of “digital hoarding” is just the same memory, saved over and over again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d6d47f3d380" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Taught Claude to File My Home Depot Receipts — and It Quietly Dropped Part of Every Address]]></title>
            <link>https://medium.com/@tobias1/i-taught-claude-to-file-my-home-depot-receipts-and-it-quietly-dropped-part-of-every-address-98be6337882b?source=rss-db66cfdc748b------2</link>
            <guid isPermaLink="false">https://medium.com/p/98be6337882b</guid>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[ai-automation]]></category>
            <category><![CDATA[small-business]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[ai-powered-documentation]]></category>
            <dc:creator><![CDATA[Dean Gronostaj]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 05:11:00 GMT</pubDate>
            <atom:updated>2026-06-04T05:11:00.616Z</atom:updated>
            <content:encoded><![CDATA[<p>A small self-hosted automation that watches a folder, reads PDF receipts, and renames them for me — plus the tiny prompt bug that nearly corrupted my filing system.</p><h3>Who This Is For</h3><p>This is for contractors, small-business owners, home lab tinkerers, and anyone drowning in PDF receipts. If you’ve ever downloaded a Home Depot eReceipt named eReceipt.pdf and thought “I’ll rename that later” — and then never did — this is for you. It’s a smaller, simpler project than wiring up a full AI agent, but it solves a real, daily annoyance, and it’s the foundation for something bigger.</p><h3>The Problem: Receipts Are Useless Until You Name Them</h3><p>Every Home Depot eReceipt arrives as a PDF with a meaningless number for a filename. Multiply that by a few purchases a week across multiple job sites and you end up with a folder full of files you can’t search, can’t sort, and can’t match to a project at tax time.</p><p>What I actually want from a filename is simple:</p><ul><li><strong>When</strong> was it (year and month)?</li><li><strong>Which job</strong> was it for (I file everything by property address)?</li><li><strong>How much</strong> was it?</li></ul><p>In other words, I want every receipt to land on disk already named like this:</p><pre>2026-06 - 1234 State Street - $1.46 - Home Depot Receipt.pdf</pre><p>Sort-able by date. Searchable by address. Total right there in the name. The question was just: who’s going to do the renaming? The answer turned out to be a 130-line Python script and Claude.</p><h3>The Goal</h3><p>Build a small, always-on service that:</p><ol><li><strong>Watches an Inbox folder</strong> for new PDF receipts.</li><li><strong>Reads the text</strong> out of each PDF.</li><li><strong>Asks Claude</strong> to pull out the four things I care about: year, month, job name, and final total.</li><li><strong>Renames the file</strong> to YYYY-MM — Job Name — $Amount — Home Depot Receipt.pdf.</li><li><strong>Files it</strong> into a Completed/ folder — and anything that fails goes untouched into Errors/ so nothing is ever lost.</li></ol><p>No clicking. No manual typing. Drop a receipt in the folder, and a few seconds later it’s named and filed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xu0jgVcHsNXwNfpFPCt6Dg.png" /></figure><h3>The Setup</h3><p>The architecture is deliberately boring, because boring is reliable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*VDhejdoptFXnQlMAil8wig.png" /></figure><p>The watched folder lives on my NAS, but the service itself runs on my Ubuntu desktop and reaches the folder over a 10GbE sshfs mount. That detail caused the first surprise.</p><h3>Challenge 1: inotify Lies on Network Mounts</h3><p>The obvious way to watch a folder is inotify — the Linux kernel feature that fires an event the instant a file appears. The watchdog library uses it by default.</p><p>It does not work on an sshfs/FUSE mount. The events simply never arrive, because the kernel can’t see writes happening on the far side of a network filesystem. My first version sat there forever, watching a folder where files were appearing and never noticing a single one.</p><p>The fix is to stop waiting for the kernel to tell you and just <em>look</em>:</p><pre>from watchdog.observers.polling import PollingObserver</pre><pre>observer = PollingObserver(timeout=2.0)   # rescan every 2 seconds</pre><p>PollingObserver re-scans the directory on an interval instead of relying on kernel events. Slightly less elegant, completely reliable across network mounts. A two-second poll is imperceptible for this use case.</p><h3>Challenge 2: Don’t Read a File That’s Still Being Written</h3><p>When a PDF lands in the folder, it doesn’t appear all at once — it’s written in chunks. If the script pounces the instant the file shows up, it reads a half-written PDF and pdfplumber chokes.</p><p>So before touching anything, the script waits for the file to <em>stop growing</em>:</p><pre>def wait_until_stable(path, settle=2.0):</pre><pre>    time.sleep(settle)</pre><pre>    last = -1</pre><pre>    for _ in range(10):</pre><pre>        size = path.stat().st_size</pre><pre>        if size == last and size &gt; 0:</pre><pre>            return True          # size held steady — it&#39;s done</pre><pre>        last = size</pre><pre>        time.sleep(0.5)</pre><pre>    return path.exists() and path.stat().st_size &gt; 0</pre><p>Wait a beat, then confirm the size has held steady before proceeding. Cheap insurance against parsing garbage.</p><h3>Challenge 3: Don’t Process the Same File Twice</h3><p>Polling every two seconds means the same file can be spotted on multiple scans before the first one finishes renaming it. Without a guard, you get two threads fighting over the same receipt.</p><p>Two small defenses handle this:</p><ul><li>An <strong>in-flight set</strong> (guarded by a lock) tracks files currently being processed, so a second sighting is ignored.</li><li>A <strong>filename convention</strong>: every finished file ends in Home Depot Receipt.pdf, and the watcher skips anything that already ends that way. A processed file can sit in the folder forever and never be touched again.</li></ul><h3>The Heart of It: Asking Claude</h3><p>The whole point of using an LLM here is that receipt text is <em>messy</em>. The total might be labeled “TOTAL,” “Amount Charged,” or buried under tax lines. The date format varies. The job name might be a printed PO field or might need inferring from line items. Regex would be a nightmare; Claude handles it in one shot.</p><p>The script extracts the PDF text and sends it with a strict prompt that demands JSON back:</p><pre>PROMPT = &quot;&quot;&quot;You are parsing the text of a Home Depot eReceipt.</pre><pre>Return ONLY a JSON object with exactly these keys:</pre><pre>- &quot;year&quot;:   the 4-digit year of the purchase</pre><pre>- &quot;month&quot;:  the 2-digit zero-padded month</pre><pre>- &quot;job&quot;:    the job name (a property address)</pre><pre>- &quot;amount&quot;: the FINAL total paid, two decimals, no dollar sign</pre><pre>...&quot;&quot;&quot;</pre><p>temperature=0 keeps it deterministic, and the code is tolerant of stray markdown fences in case the model wraps its JSON. Then it validates everything — four-digit year, real month, parse-able amount — before it will rename a single file. If validation fails, the file goes to Errors/ instead of getting a garbage name.</p><p>This worked beautifully on the first try. Which is exactly why the real bug was so sneaky.</p><h3>The Bug That Almost Got Away</h3><p>I file every job by its <strong>property address</strong>. So a receipt for the State Street job should be named:</p><pre>2026-06 - 1234 State Street - $1.46 - Home Depot Receipt.pdf</pre><p>But it came out like this:</p><pre>2026-06 - State Street - $1.46 - Home Depot Receipt.pdf</pre><p>The street number — 1234 — was gone. And it wasn’t random: it happened on <em>some</em> receipts and not others, which is the worst kind of bug, because everything looks fine until you go hunting for a specific job months later and the address is wrong.</p><p>The cause was a single word in my prompt. I’d asked Claude for a <em>“short 2–5 word project name.”</em> To a language model, “1234 State Street” reads like a street number plus a name — and when you ask for a concise <em>project name</em>, the leading number looks like noise to be trimmed. Claude was being helpful. It was just helping in the wrong direction.</p><p>The fix was to tell it, explicitly, that the job name <strong>is an address</strong> and the number is part of it:</p><blockquote><em>“job”: the job name, which is a </em><strong><em>property address</em></strong><em>. Keep it complete, </em><strong><em>including any leading street number</em></strong><em> — e.g. “1234 State Street” must stay “1234 State Street”, never just “State Street”. Do NOT drop, round, or reinterpret leading numbers; they are part of the address.</em></blockquote><p>Restarted the service, dropped the affected receipts back into the Inbox, and the numbers came back.</p><h3>The Bug Hiding Behind the Bug</h3><p>Except now they came back like this:</p><pre>2026-06 - 1234 STATE STREET - $1.46 - Home Depot Receipt.pdf</pre><p>ALL CAPS. In fixing the missing number, I’d told Claude to copy the address <em>verbatim</em> — and the receipt prints it in capitals. The number was right; the casing was now inconsistent with every other file.</p><p>One more line in the prompt closed it out:</p><blockquote><em>Output it Title Cased (e.g. “1234 State Street”, not “1234 STATE STREET”).</em></blockquote><p>This is the part of LLM automation people underestimate: getting the <em>prompt</em> right is the actual engineering. The code was solid the whole time. The behavior lived in the instructions.</p><h3>Reprocessing Without Re-Inventing Anything</h3><p>I had a handful of already-filed receipts with mangled names. Rather than write a separate one-off script, I leaned on the design: the system already knows how to process anything in the Inbox that <em>doesn’t</em> already end in Home Depot Receipt.pdf.</p><p>So I renamed the bad files to plain names and dropped them back in:</p><pre>mv &quot;Completed/2026-06 - STATE STREET - $1.46 - Home Depot Receipt.pdf&quot; \</pre><pre>   &quot;Inbox/reprocess_stat.pdf&quot;</pre><p>The running service picked them up on its next poll, re-read the PDFs, and re-filed them correctly. The reprocessing path was free — it was just the normal path, used deliberately.</p><h3>Useful Commands</h3><p>Check the service is alive:</p><pre>systemctl status homedepot-receipt-renamer.service</pre><p>Restart it after editing the script or the prompt:</p><pre>sudo systemctl restart homedepot-receipt-renamer.service</pre><p>Watch it work in real time:</p><pre>journalctl -u homedepot-receipt-renamer.service -f</pre><p>Wait for the Inbox to drain after dropping files in:</p><pre>until [ -z &quot;$(ls -A Inbox/)&quot; ]; do sleep 2; done; echo &quot;done&quot;</pre><h3>What This Phase Was Worth</h3><p>On paper it’s small: a script that renames PDFs. In practice, after living with it:</p><ul><li><strong>Filing is now zero-effort.</strong> Save the eReceipt to a folder; it’s named and sorted by the time I look again.</li><li><strong>Everything is searchable.</strong> Need every receipt for one property? Search the address. Need a month’s spend? The dates sort themselves.</li><li><strong>It’s effectively free.</strong> Each receipt is a small chunk of text and one API call — a fraction of a cent. The service costs nothing while it sits idle, which is most of the time.</li><li><strong>Nothing gets lost.</strong> Anything the system can’t confidently parse goes to Errors/ untouched, so there’s always a human-reviewable pile rather than a silent failure.</li></ul><p>But the real value was as a <strong>test case</strong>. It proved the whole pattern end to end: watch a folder → extract text → ask Claude for structured data → validate → rename and file → quarantine failures. That pattern isn’t specific to Home Depot. It isn’t even specific to receipts.</p><h3>Phase 2: Everything Else in the Filing Cabinet</h3><p>Receipts were the proof of concept. The next phase is to point the same pattern at the rest of the paperwork:</p><ul><li><strong>Bank and credit-card statements</strong> → YYYY-MM — {Account} — Statement.pdf</li><li><strong>Vendor invoices</strong> → YYYY-MM-DD — {Vendor} — Invoice {#} — $Amount.pdf</li><li><strong>Utility bills, insurance documents, tax forms</strong> — each with its own naming scheme.</li></ul><p>The architecture barely changes. What changes is the <em>routing</em>: the system needs to first recognize <strong>what kind of document</strong> it’s looking at, then apply the right prompt and the right filename template for that type. One watcher, many document types, each filed by its own rules — turning a chaotic “Downloads” folder into a self-organizing filing cabinet.</p><blockquote><strong><em>A word on privacy.</em></strong><em> For sensitive documents, think carefully about what you send to any external API. In my case, these were simple retail receipts, but Phase 2 will need stronger rules around privacy, retention, and what documents are allowed to leave the local machine.</em></blockquote><p>Phase 1 proved the engine works. Phase 2 is about teaching it to read more than one kind of mail.</p><h3>Takeaways</h3><p>If you build something like this, three things will save you time:</p><ol><li><strong>Use polling, not inotify, on network mounts.</strong> The kernel can’t see writes it didn’t make.</li><li><strong>Validate before you act, and quarantine failures.</strong> A receipt with a bad parse should never get a bad name — it should get set aside.</li><li><strong>The prompt is the product.</strong> My code worked on day one. Every bug I hit lived in the instructions I gave the model: a dropped number, then a casing slip. Treat your prompt with the same care you’d give any other interface contract — because that’s exactly what it is.</li></ol><p>A folder that files itself, for a fraction of a cent a document. Phase 1: done. On to the rest of the paperwork.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98be6337882b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Turned My UGREEN NAS Into an Always-On AI Agent]]></title>
            <link>https://medium.com/@tobias1/i-turned-my-ugreen-nas-into-an-always-on-ai-agent-34cbc9c4350f?source=rss-db66cfdc748b------2</link>
            <guid isPermaLink="false">https://medium.com/p/34cbc9c4350f</guid>
            <category><![CDATA[self-hosted]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ugreen-nas]]></category>
            <category><![CDATA[hermes]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Dean Gronostaj]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 03:18:04 GMT</pubDate>
            <atom:updated>2026-06-01T03:36:06.297Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGKK5G8HIgqx2SRsG0Uf9Q.png" /></figure><h4>— Here’s What Broke First</h4><p><em>How I installed an always-on, Telegram-connected AI agent on a UGREEN NAS — outside the App Center, the hard way, with every mistake included.</em></p><h3>Who this is for</h3><p>This guide is for homelab users, NAS owners, Docker users, and people who want an AI assistant that can actually touch their files and send proactive messages. It is not for someone who only wants a polished chatbot experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*RGX4mfafLZSai6Fp_DoBOw.png" /></figure><h3>The Problem With AI Assistants</h3><p>Most AI assistants live in the cloud. You pay a subscription, you chat in a browser or an app, and when you close the tab — they’re gone. They can’t reach your files, they can’t send you proactive messages, and they certainly can’t safely reorganize a sandboxed NAS folder while you sleep.</p><p>What if your AI assistant lived <em>on your NAS</em>? Always on, touching your actual files, sending you Telegram reminders, and costing a fraction of a cent per reply?</p><p>That’s what I built — but the first few test messages cost <strong>$2.71</strong>. Here’s exactly how I did it, why that happened, how I fixed it down to <strong>$0.004 per reply</strong>, and every other mistake along the way.</p><h3>What Is Hermes Agent?</h3><p><strong>Hermes Agent</strong> is an open-source, self-hosted AI agent from Nous Research. It’s not a chatbot — it’s an <em>agent</em>: it can use tools (web search, file operations, code execution, terminal commands), maintain persistent memory across sessions, run scheduled tasks, and deliver results proactively via Telegram, Discord, Slack, and other messaging platforms.</p><p>Think of it as a personal AI assistant that lives on your hardware, uses any LLM you point it at (Claude, GPT, local models), and is available 24/7 without you having to open a laptop.</p><p>The official GitHub: <a href="https://github.com/NousResearch/hermes-agent">github.com/NousResearch/hermes-agent</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*fkqNVSXvgVxXXuqUay6ypA.png" /></figure><h3>The Hardware: UGREEN DXP4800 Pro</h3><p>The UGREEN DXP4800 Pro is a NAS (Network Attached Storage) unit running <strong>UGOS Pro</strong> — a Linux-based NAS OS built on Debian 12. It’s a capable machine:</p><ul><li><strong>CPU:</strong> Intel x86–64</li><li><strong>OS:</strong> Debian 12 (bookworm) under UGOS Pro</li><li><strong>Docker:</strong> Pre-installed with Docker Compose v2.26.1</li><li><strong>10GbE</strong> direct-link capability (this unit runs at ~360 MB/s)</li></ul><p>UGREEN has their own App Center (called OpenClaw for AI workloads), but <strong>Hermes is not in it</strong>. This guide shows you how to install it anyway, using Docker Compose via SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*6shqEUIlJEs4YCGqpLnS5Q.png" /></figure><h3>Why Not Just Use the Claude App?</h3><p>Fair question. If you already pay for a Claude Pro subscription ($20/month), why add a self-hosted agent with per-request API costs?</p><p>Here’s the honest answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*Lj71idQE1VM57-pa4QIaUg.png" /></figure><p>If you want to <em>manage your NAS files, organize photos, document workflows, and get proactive reminders</em> — a chat subscription doesn’t do that. Hermes does.</p><p>The key insight: <strong>the container costs nothing when idle.</strong> You only pay for API calls when the agent is actually working. Leave it running 24/7 for free; pay pennies when you use it.</p><h3>Prerequisites</h3><p>Before you start, you’ll need:</p><ol><li><strong>A UGREEN NAS with UGOS Pro</strong> (DXP series — tested on DXP4800 Pro)</li><li><strong>SSH access to the NAS</strong> (enabled in UGOS settings)</li><li><strong>Docker installed</strong> (comes with UGOS Pro)</li><li><strong>An OpenRouter account and API key</strong> — <a href="https://openrouter.ai/">openrouter.ai</a> (free to sign up, pay per use)</li><li><strong>A Telegram account</strong> for the messaging bot (free)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKipTb8I9C-Ynhi7wieZLQ.png" /></figure><blockquote><strong><em>Why OpenRouter instead of Anthropic directly?</em></strong><em><br> OpenRouter acts as a proxy to 200+ models — Claude, GPT, Gemini, Llama — with one API key. You can switch models without changing any config. Perfect for an always-on agent where you want a cheap default with powerful models available on demand.</em></blockquote><h3>Step 1: Prepare the NAS</h3><p>SSH into your NAS:</p><pre>ssh your-user@your-nas-ip</pre><p>Check Docker is accessible:</p><pre>docker version</pre><p>If you get permission denied, add yourself to the Docker group:</p><pre>sudo usermod -aG docker your-username</pre><pre># Then log out and back in</pre><p>Create a shared folder for Hermes in UGOS (via the web UI: File Manager → New Shared Folder → Hermes_Agent). This puts everything in one place, visible from the network, and backed up with your other shares.</p><h3>Step 2: Download the Source</h3><p>Hermes doesn’t have a pre-built image on Docker Hub (it builds from source). You don’t need git — a tarball works fine:</p><pre>cd /volume1/Hermes_Agent</pre><pre>curl -fsSL <a href="https://github.com/NousResearch/hermes-agent/archive/refs/heads/main.tar.gz">https://github.com/NousResearch/hermes-agent/archive/refs/heads/main.tar.gz</a> | tar xz</pre><pre>cd hermes-agent-main</pre><h3>Step 3: The Volume Repoint (Critical Step)</h3><p>The default docker-compose.yml stores all persistent data in ~/.hermes. I want it in the shared folder instead — so it’s visible on the network and backed up with your other data:</p><pre>sed -i &quot;s#~/.hermes:/opt/data#/volume1/Hermes_Agent/data:/opt/data#g&quot; docker-compose.yml</pre><pre>mkdir -p /volume1/Hermes_Agent/data</pre><blockquote><em>⚠️ </em><strong><em>Remember this step.</em></strong><em> Every time you update Hermes by re-downloading the tarball, this sed command must be re-run because the fresh docker-compose.yml resets to the default path.</em></blockquote><h3>Step 4: Build and Start</h3><pre>HERMES_UID=$(id -u) HERMES_GID=$(id -g) docker compose up -d --build</pre><p>The first build downloads dependencies and compiles everything — expect <strong>5–10 minutes</strong>. Grab a coffee.</p><p>Once built, check the containers:</p><pre>docker compose ps</pre><p>You should see both hermes (the gateway) and hermes-dashboard running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*cPeZ3Z6EdBh8riUEBvdbhA.png" /></figure><blockquote><strong><em>First start is slow and looks frozen.</em></strong><em> After the initial build, the first container startup does a one-time chown of the entire Python venv and node_modules to match your UID. On a NAS with a Btrfs filesystem this can take </em><strong><em>1–2 minutes</em></strong><em> and logs just say Fixing ownership of /opt/data. It is not hung — wait for it. Subsequent restarts are fast.</em></blockquote><h3>Step 5: Run the Setup Wizard</h3><pre>docker exec -it hermes hermes setup</pre><p>Walk through the wizard. Here are the key choices that matter for an economical, practical setup:</p><p><strong>Model provider:</strong> Choose <strong>OpenRouter</strong> → paste your API key.</p><p><strong>Model:</strong> I recommend anthropic/claude-sonnet-4.6 as a starting point — but read the cost section below before committing.</p><p><strong>TTS (voice):</strong> Edge TTS — it’s free, cloud-based, and needs no API key.</p><p><strong>Terminal backend:</strong> Local — it runs inside the already-sandboxed container.</p><p><strong>Web search:</strong> DuckDuckGo (ddgs) — free, no API key, works out of the box.</p><p><strong>Tools:</strong> Uncheck <strong>Mixture of Agents</strong> and <strong>Image Generation</strong> to avoid surprise costs. Keep everything else.</p><p><strong>Telegram:</strong> Enter your bot token from @BotFather. For your user ID, message @userinfobot on Telegram — it replies with your numeric ID instantly.</p><h3>Step 6: Set Up the Telegram Bot (and the Trap to Avoid)</h3><p>Create your bot via <strong>@BotFather</strong> on Telegram: /newbot → pick a name and username.</p><blockquote><em>⚠️ </em><strong><em>The look-alike bot trap — the biggest gotcha I hit.</em></strong></blockquote><blockquote><em>When I searched Telegram for my bot by display name, I found a </em>different<em> public bot with a nearly identical name. I spent an hour wondering why Hermes wasn’t responding — because I was messaging the wrong bot entirely.</em></blockquote><blockquote><strong><em>Always reach your own bot via BotFather:</em></strong><em> /mybots → tap your bot’s name → tap the @username link. That opens the genuine chat with your bot, not a search result.</em></blockquote><blockquote><em>Verify you’re talking to the right bot: it should have no bio/description until you add one, and the @username should match exactly what BotFather told you.</em></blockquote><p>After setup, restart the gateway to load the new config:</p><pre>docker exec hermes /command/s6-svc -r /run/service/gateway-default</pre><h3>The Cost Surprise (and How I Fixed It)</h3><p>My first few test messages cost <strong>$2.71</strong>. That seemed alarming for a handful of sentences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*dlMqtOA24qiLKmdPJB5FKw.png" /></figure><p>Here’s what was actually happening:</p><ol><li><strong>Hermes is an agent, not a chatbot.</strong> One message fans out into <em>many</em> LLM API calls as it uses tools and reasons step by step. I saw up to 24 API calls for a single message.</li><li><strong>Each call carries a large context.</strong> With 28 enabled tools and 85 skill definitions, each API call carried ~37,000–47,000 input tokens — even for a simple reply.</li><li><strong>Some of those calls were my fault.</strong> During debugging (wrong bot, polling conflicts), Hermes kept looping on failed Telegram sends — burning tokens for nothing. That was one-time.</li></ol><p><strong>The fix:</strong> switch to a cheaper model.</p><p>I changed the default from claude-sonnet-4.6 to <strong>openai/gpt-5-mini</strong> via OpenRouter:</p><pre>sed -i &quot;s|^  default: .*|  default: openai/gpt-5-mini|&quot; /volume1/Hermes_Agent/data/config.yaml</pre><p>Result: the same “what’s 2+2?” reply went from <strong>dollars</strong> to <strong>~$0.004</strong> (14,585 input tokens, 1 API call, latency 2.6 seconds).</p><p>I also added claude-sonnet-4.6 as a <strong>fallback</strong> (auto-kicks in if the primary rate-limits), and lowered agent.max_turns from 60 to 15 to cap runaway tool loops.</p><p><strong>The model tiers on OpenRouter (all accessible with one key):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*wJlV3ebfAOB-OANa_dMZQg.png" /></figure><blockquote><strong><em>Important:</em></strong><em> Hermes runs one default model at a time. There’s no automatic cheap-vs-hard routing. Use docker exec -it hermes hermes model to switch manually when you have a demanding task, then switch back.</em></blockquote><h3>Telling Hermes Where to Work: SOUL.md</h3><p>Hermes loads /opt/data/SOUL.md (which maps to /volume1/Hermes_Agent/data/SOUL.md on your NAS) as its system prompt — fresh on every message, no restart needed.</p><p>I mounted a sandbox folder (/volume1/Working/Hermes_Work) into the container as /opt/workspace, then added this to SOUL.md:</p><pre>## Your workspace</pre><pre>Your default working directory for all file operations is /opt/workspace.</pre><pre>When the user says &quot;create a file&quot;, &quot;save this&quot;, &quot;write a note&quot;, etc. —</pre><pre>use /opt/workspace unless told otherwise.</pre><p>Now you can just say “create a file called todo.txt” and Hermes knows where to put it — no paths required. The file appears instantly in your NAS share, visible from any machine on the network.</p><h3>What You Can Actually Do With It</h3><p>Once it’s running, here’s what becomes possible:</p><p><strong>File management:</strong> “Organize my downloads folder by file type” — it reads the folder, creates subfolders, and moves files. Works on any NAS path you’ve mounted into the container.</p><p><strong>Workflow documentation:</strong> “Document the steps I just described for setting up X” — writes a markdown file to your workspace that you can open in any editor.</p><p><strong>Reminders:</strong> “Remind me to check my OpenRouter costs tomorrow at 9am” — creates a cron job, fires a Telegram message to you at 9am. Tested and working.</p><p><strong>Photo organization:</strong> Mount your photos share, describe what you want, and Hermes can read EXIF data, use vision to understand image content, and rename/sort accordingly. (Note: vision calls cost more — batch carefully for large libraries.)</p><p><strong>Always-on availability:</strong> The whole point. Text @yourbotname from your phone at 2am asking it to rename a file on your NAS. It does it. No laptop required.</p><h3>The Update Script</h3><p>Since the NAS doesn’t have git, I wrote a simple update script at /volume1/Hermes_Agent/update-hermes.sh:</p><pre>#!/usr/bin/env bash</pre><pre>set -euo pipefail</pre><pre>ROOT=&quot;/volume1/Hermes_Agent&quot;</pre><pre>cd &quot;${ROOT}&quot;</pre><pre>curl -fsSL <a href="https://github.com/NousResearch/hermes-agent/archive/refs/heads/main.tar.gz">https://github.com/NousResearch/hermes-agent/archive/refs/heads/main.tar.gz</a> | tar xz</pre><pre>cd hermes-agent-main</pre><pre>sed -i &quot;s#~/.hermes:/opt/data#${ROOT}/data:/opt/data#g&quot; docker-compose.yml</pre><pre>HERMES_UID=&quot;$(id -u)&quot; HERMES_GID=&quot;$(id -g)&quot; docker compose up -d --build</pre><p>Run it with ssh nas &amp;&amp; /volume1/Hermes_Agent/update-hermes.sh. Your data, config, API keys, and sessions in /volume1/Hermes_Agent/data are never touched.</p><h3>The UGOS Docker App: What Shows Up</h3><p>Since Hermes is installed via CLI (not UGOS’s Docker GUI), here’s what to expect:</p><ul><li>The <strong>hermes and hermes-dashboard containers</strong> will appear in the UGOS Docker app’s Containers and Images lists. You can start/stop/view logs from the GUI.</li><li>They will <strong>not</strong> appear under the “Projects” tab, that’s reserved for stacks the GUI itself created.</li><li><strong>Don’t manage this stack from the GUI.</strong> The CLI/compose file is the source of truth. If you “Edit” or “Recreate” via the GUI, it can diverge from your compose configuration.</li></ul><h3>Key Lessons Learned</h3><ol><li><strong>Volume re-point is mandatory on every update.</strong> Re-extracting the tarball resets docker-compose.yml. Always re-run the sed command after updating.</li><li><strong>First start after a build takes 1–2 minutes.</strong> The UID remap chown on node_modules + the Python venv is slow. It looks hung. Wait for it.</li><li><strong>Don’t run getUpdates against your bot while the gateway is polling.</strong> It causes a 409 Conflict that can wedge the poller. If you ever need to probe the Telegram API manually, stop the poller first (s6-svc -d /run/service/gateway-default), do your test, then restart it.</li><li><strong>Edit config.yaml as your host user, not via docker exec.</strong> Docker exec runs as root inside the container, which changes file ownership and breaks gateway access to the config. Edit on the host: nano /volume1/Hermes_Agent/data/config.yaml.</li><li><strong>The look-alike bot is a real trap.</strong> Find your bot via BotFather, not search.</li><li><strong>Start with a sandbox workspace.</strong> Don’t give Hermes write access to your entire NAS on day one. Create a test folder, mount it, confirm it works, then expand access.</li></ol><h3>What’s Next</h3><p>This is a foundation, not a finished product. Some directions worth exploring:</p><ul><li><strong>Photo organization:</strong> Mount your photos share read-only, have Hermes catalog and suggest organization, then enable writes once you trust it.</li><li><strong>Automated backups reporting:</strong> Cron job that checks your rsync logs every morning and messages you a summary.</li><li><strong>Document intelligence:</strong> Feed it your Documents folder and ask it to find things, summarize, cross-reference.</li><li><strong>Custom skills:</strong> Hermes has a skills system — you can write scripts it learns to use.</li><li><strong>Multiple messaging platforms:</strong> Discord, Slack, and others are one hermes setup gateway command away.</li></ul><h3>The Bottom Line</h3><p>Getting Hermes running on a UGREEN NAS took a full day of trial, error, and debugging — but the result is genuinely useful. An AI agent that lives on your hardware, costs pennies per interaction, has file access to your NAS, and sends you Telegram messages is something no subscription service offers.</p><p>The UGREEN DXP4800 Pro is well-suited for this: it has enough CPU to run Docker comfortably, the 10GbE direct link makes file operations fast, and UGOS Pro’s Debian base means nothing is hidden from you at the command line.</p><p>If this guide saves you the hours I spent on the wrong Telegram bot, the polling conflicts, and the $2.71 cost surprise — it was worth writing.</p><p><em>The steps in this article are based on a real install completed in a single day. Every challenge described actually happened — hopefully this saves you the same hours of debugging.</em></p><p><strong>Tags:</strong> NAS, Self-Hosted, AI, UGREEN, Docker, Hermes, Telegram, Home Lab, Open Source, LLM</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34cbc9c4350f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Dog I Never Brought Home]]></title>
            <link>https://medium.com/@tobias1/the-dog-i-never-brought-home-fd78d5db9bb8?source=rss-db66cfdc748b------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd78d5db9bb8</guid>
            <category><![CDATA[letting-go]]></category>
            <category><![CDATA[healing]]></category>
            <category><![CDATA[personal-essay]]></category>
            <category><![CDATA[loss]]></category>
            <category><![CDATA[dogs]]></category>
            <dc:creator><![CDATA[Dean Gronostaj]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 02:31:57 GMT</pubDate>
            <atom:updated>2026-06-01T02:41:51.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>A story about three days, a quiet bond, and learning how to let go of what almost was.</h3><p>I never got to bring her home.</p><p>But for three days, she was already mine.</p><p>Her name was Satin.</p><p>She didn’t enter my life loudly. She entered it softly — through photos, updates, and then finally, through presence. She walked beside me. She rested near me. She learned my voice and my house.</p><p>She got tired after walks.<br> She sat calmly while I worked.<br> She barked for the first time and startled me awake.</p><p>And somewhere in those ordinary moments, she became my buddy.</p><p>Not a replacement for anything. Not a distraction. But a companion — in a season where I was holding a lot of responsibility and very little stillness.</p><p>One child was moving across the country to college.<br> One child was home from college, standing at the edge of adulthood.<br> My wife was working constantly, carrying her own weight and more.</p><p>And I was proud of all of it — but tired in a quiet, invisible way.</p><p>Satin was the simple thing.<br> The steady thing.<br> The presence that didn’t ask questions or need explanations.</p><p>I didn’t rush her.</p><p>I wanted her transition to be gentle. I wanted her arrival into my life to feel safe, not chaotic. I wanted her to step into a home that had space for her — emotionally, not just physically.</p><p>So I waited.</p><p>I waited for her heart test.<br> I waited for the report.<br> I waited through holidays, family travel, and obligations that come with loving people well.</p><p>I believed we were aligned. I believed time was the only thing standing between us.</p><p>And during that waiting, I carried those three days with me.</p><p>The way she followed me.<br> The way she watched.<br> The way she trusted.</p><p>Then one sentence ended the story.</p><p><em>“I’m sorry. Satin was adopted by another family.”</em></p><p>No warning.<br> No final call.<br> No moment to say, <em>“I’m coming.”</em></p><p>Just a closed door where I thought there was still a hallway.</p><p>I didn’t feel anger first.</p><p>I felt grief.</p><p>Because I wasn’t losing an idea.<br> I was losing a beginning.</p><p>I had imagined her learning my routines.<br> I had imagined her choosing her favorite spot in the house.<br> I had imagined the first night she slept peacefully, finally home.</p><p>And suddenly, all of that became something that would never exist.</p><p>I don’t blame her.</p><p>I don’t even blame the family who took her.</p><p>But I do grieve the version of my life where she stayed.</p><p>People don’t talk enough about the grief of <em>almost</em>.</p><p>Almost friendships.<br> Almost homes.<br> Almost families.</p><p>But <em>almost</em> can hurt just as much as losing something real — because the bond had already begun.</p><p>And my bond with Satin had already begun.</p><p>Wherever she is now, I hope she is safe.<br> I hope she is loved.<br> I hope her new family sees her the way I did — not as a transaction, not as a convenience, but as a soul with weight and worth.</p><p>And I hope, in whatever quiet language dogs understand, she knows that someone out there loved her — even in three short days — sincerely.</p><p>She was never just a dog to me.</p><p>She was the promise of companionship in a chapter that needed it.</p><p>She was a beginning that didn’t get to finish — but still mattered.</p><p>So this is my goodbye.</p><p>Not with bitterness.<br> Not with anger.<br> But with gratitude.</p><p>Some bonds don’t last long.</p><p>But they still leave a mark.</p><p>And Satin left one on me.</p><p>Always.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DbYfD2lbI7nuZjRqllFjIw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd78d5db9bb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>