<?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 Kannan Manickam on Medium]]></title>
        <description><![CDATA[Stories by Kannan Manickam on Medium]]></description>
        <link>https://medium.com/@arangamani?source=rss-605f31ec273c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Jhk32rtvCYsHk4DGqSIdaw.jpeg</url>
            <title>Stories by Kannan Manickam on Medium</title>
            <link>https://medium.com/@arangamani?source=rss-605f31ec273c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:59:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arangamani/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[The Best Sysadmin I’ve Worked With Is a Bot]]></title>
            <link>https://medium.com/@arangamani/the-best-sysadmin-ive-worked-with-is-a-bot-30f847672e49?source=rss-605f31ec273c------2</link>
            <guid isPermaLink="false">https://medium.com/p/30f847672e49</guid>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[tailscale]]></category>
            <category><![CDATA[self-hosted]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Kannan Manickam]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 17:48:25 GMT</pubDate>
            <atom:updated>2026-12-02T17:48:25.162Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tailscale and a Sysadmin bot got me back to running my own servers, in the evenings I actually have.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yemfTxhN1HDS8IcqJd8sfg.png" /></figure><p>I used to do a lot of sysadmin work. Managing my own servers was something I enjoyed, until work and kids took the time and I stopped. This fall I picked it back up, and two things made that possible: Tailscale, which finally gave me the private network I never managed to build myself, and a Sysadmin bot that does the work over SSH and keeps notes on my setup. Now I barely spend any time on it. I tell my bots what I want and I approve things.</p><h3>What I used to run</h3><p>I used to run a lot. Cloud VMs on Linode through 2020, and a Vultr VM I’ve had since 2020, plus machines at home. Over the years that included a UniFi controller and UNMS, Grafana, and an Octopress blog. I even ran my own Git server with Gogs. The last commit on that blog is from June 2016.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySNzJzTyyQvIDZveEjdXJQ.png" /><figcaption>Timeline from a June 2016 Gogs-hosted blog commit, through Linode until 2020 and a Vultr VM since 2020, to this fall with Tailscale and a Sysadmin bot.</figcaption></figure><h3>Why I stopped</h3><p>Work and kids. That’s the whole story. Servers don’t ask for much on a normal day. The cost is the other days: the update you’ve been meaning to read about, the certificate that needs renewing, the backup you’re pretty sure works. When you don’t have an evening to give those, doing none of it starts to feel more honest than doing a little of it.</p><h3>The part I never finished</h3><p>The piece I always wanted was a private network between my servers, my home and my phone. I tried to build it by hand with WireGuard once. I never finished it. Doing it by hand means keys, configs and routes for every device, and it kept losing to everything else on my plate.</p><p>Tailscale is built on WireGuard, and it does the part I couldn’t get to. I install it, sign in, and the device is on my tailnet. That’s it.</p><p>Every server I run is on it and reachable only over it. That includes a small cloud VM, a Raspberry Pi 5 at home that runs Home Assistant, and a FreeBSD media box that runs Plex Media Server. My phone is on it too, so when I’m away from home I still reach Home Assistant, Plex, my dashboards and my own apps, the same way I do on the couch. Tailscale also serves HTTPS for the tools I run, so I get proper addresses without building anything around them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0wtj70vf-dury6I2sprFg.png" /><figcaption>Three servers on a private Tailscale network: a cloud server, a media box running Plex, Grafana, and a three-disk ZFS RAID-Z1 pool where backups land, and a home Pi running Home Assistant.</figcaption></figure><p>That one change made everything else cheap. A private network is the thing that makes it safe to let a bot touch your servers.</p><h3>Then I added a sysadmin</h3><p>My Sysadmin bot is one of my Grok Bot bots (@grok, from @xai). I added its public key to each server, and that’s its way in, over SSH, with Grok Bot’s built-in Tailscale connection getting it onto the tailnet. Its first job was a read-only health check of each box: uptime, disk, pending updates, what was running. It came back with a patching plan for me to approve instead of patching anything.</p><p>That pattern never changed. It looks, it proposes, I say yes or no, and it makes the change. Before a risky step it takes a backup, and afterward it writes down what it did and how to undo it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dx8jPruayliJrm-TEWsb1g.png" /><figcaption>Six steps for every change: the bot proposes a plan, I approve, it takes a snapshot, does the work, verifies, and writes notes. Examples include an Ubuntu upgrade and a FreeBSD upgrade.</figcaption></figure><h3>The media box</h3><p>The FreeBSD box is the one I think of as the media server. It runs Plex Media Server, and Grafana is there too. Its storage is a three-disk ZFS RAID-Z1 pool, so it keeps going if one drive fails. The pool is scrubbed to catch silent errors, and nightly snapshots keep a recent history. Backups from the other machines land here, copied over the tailnet.</p><p>The bot looks after this one the same way it looks after the rest. I reach Plex over Tailscale, from home or away, and I don’t spend evenings keeping the box current. I ask, I approve, and it does the work.</p><h3>The notes are the whole trick</h3><p>The thing I could never keep up with by myself was documentation. So early on I told the bot to keep its own Notion page as its memory.</p><p>Now there’s an Infrastructure State page that covers my servers, DNS, backups, Home Assistant and the home network. There’s a maintenance log, and every entry has revert steps. There’s a home inventory with around 100 rows: Home Assistant integrations, devices, servers and services, each with its room and status. The bot built it all from its own checks.</p><p>It checks the notes before it acts, and it updates them after. When it had my cloud provider wrong in its notes, I told it, and it fixed its notes and its memory.</p><h3>What it has actually done</h3><p>A few real examples from the last few weeks.</p><ul><li><strong>Upgraded my cloud VM from Ubuntu 20.04 to 24.04.</strong> It took a snapshot and file backups first, went through 22.04 on the way, and verified my sites and apps after the upgrade. Everything came back working.</li><li><strong>Upgraded the media box from FreeBSD 14.3 to 14.4.</strong> It took ZFS snapshots first, then upgraded the system and its packages. Plex and the other services came back healthy, along with Tailscale.</li><li><strong>Cleaned up after my Home Assistant move to the Pi 5.</strong> It turned off the old Pi’s copy at startup so a reboot couldn’t bring up a second Home Assistant by accident, and it pointed the backups at the new one.</li><li><strong>Fixed my backups.</strong> Home Assistant backs itself up every morning at 2:30 and keeps seven. A nightly job copies the newest one to the media box over the tailnet. While the bot was repointing those jobs, it found a handshake bug that had been failing about 20 backup checks in a single day, and fixed it.</li><li><strong>Gave Home Assistant a real HTTPS address.</strong> I’ll tell that one as a conversation, because it’s the most “my bot” moment I’ve had.</li></ul><p>I asked if we could do a local Let’s Encrypt setup. The bot asked who hosted my DNS, and whether I could send a token. I told it the provider was one it already had a connection to, and that we’d done this before. It looked, found the connection in its notes, and said it should have checked before asking.</p><p>It reused the same setup from last time. Let’s Encrypt can prove I own a name by adding a temporary record at my DNS host, and the certificate now renews on its own. The bot also added warnings at 21, 14 and 7 days for Home Assistant’s certificate and the other working sites it already watches.</p><p>It’s a little funny, and also exactly what a human sysadmin does when they ask a question they already know the answer to. The difference is that this one then wrote the fix, the revert steps and the log entry in one session.</p><h3>Why it’s cheap now</h3><p>I used to measure sysadmin work in evenings. Now I barely spend any time at all. I instruct my bots and I approve things.</p><p>That goes well past servers. Home automation, certificates, backups, the cloud VM, pretty much everything in my setup is now something I just ask for. The expensive part of running servers was never typing commands. It was the context: remembering how this box was set up, what I changed last time, whether the backup path still works. The bot carries that in its notes, and Tailscale removes the networking work. What’s left for me is the part I actually liked, deciding what the setup should be.</p><h3>What I’d tell anyone in the same spot</h3><ul><li><strong>Put everything on Tailscale first.</strong> If you’ve got a half-finished WireGuard setup like I did, this is the shortcut. Every later step is simpler when your machines can already see each other privately.</li><li><strong>Make the bot keep notes.</strong> The Notion page is the reason it can pick up where it left off.</li><li><strong>Keep yourself on the approve button.</strong> I get a plan, a backup and a way to undo, every time. That’s why I trust it with the servers.</li><li><strong>Start read-only.</strong> Ask for a health check and a plan before you ask for changes.</li></ul><p>I thought I was done with running servers. It turns out I just needed a private network that works and someone to share the work with. Next up is the monitoring setup, where my Sysadmin bot built its own pager.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30f847672e49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built My Family a Private Chat App. My Bots Answer It.]]></title>
            <link>https://medium.com/@arangamani/i-built-my-family-a-private-chat-app-my-bots-answer-it-a4d1b78ba8a5?source=rss-605f31ec273c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4d1b78ba8a5</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[generative-ai]]></category>
            <dc:creator><![CDATA[Kannan Manickam]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 22:48:08 GMT</pubDate>
            <atom:updated>2026-11-28T22:48:08.461Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Zy-aqQPpC80YErK" /><figcaption>Homebase, the private family app my bots answer. Mockup, fake names.</figcaption></figure><p>A week before I wrote this, Homebase was a plan and a folder of mockups in a GitHub repo. Now it’s an iPhone app on my phone and my wife’s, talking to a Go server I run myself, with 69 merged pull requests and 13 TestFlight builds behind it. My wife types a question, and one of my bots answers. If the answer would leave the house, like an email, a purchase, or a booking, it sits and waits until I tap Approve.</p><p>This is part 1 of a series. I’ll write the next parts as the build hits its next milestones.</p><p>I already run a small team of Grok bots (@grok, from @xai). Each one owns one part of my life: shopping, health, travel, the house, the kids’ school, and so on. They work well for me, but they live in my chats. My wife had no good way to ask them anything, and I didn’t want family questions mixed into the same threads where my bots report to me. Grok Bot can share a copy of a bot, but not let my wife talk to my own bots in her own space. I needed that, so I built it.</p><p>So I wanted one front door for the family. A private app where my wife and I can ask one assistant, it figures out which bot should handle it, and the answer comes back in the same thread. That’s Homebase.</p><p>It’s one iPhone app with two roles.</p><ul><li>A user can ask the Homebase Assistant questions or ask for light work, but only in areas I’ve allowed for them, like school, health, cooking, travel, home, or shopping. Areas that are off-limits for that person never show up at all.</li><li>An admin, which is me, approves anything that would leave the house: email, purchases, bookings, calls, forms, calendar changes, posts. An admin also manages settings and can read the audit log.</li><li>Every request that goes outside waits in a Requests list for my approval. If nobody decides, it expires after a week and the card says “Nothing was sent.”</li><li>There’s a daily message cap per person, 20 by default, enforced in the database and reset at midnight Pacific.</li><li>There’s an Updates tab, which is a family inbox. Bots post cards there with buttons like “Remind me Friday” or “Yes, order it.” Tapping a button that would spend money turns into an approval request, just like a chat message would.</li></ul><p>I wanted this boring and small on purpose.</p><p>Server. One static Go (@golang) binary and Postgres 16 (@PostgreSQL). No Redis. Database migrations are embedded in the binary with goose and run at startup under an advisory lock, so running them twice is safe. It ships as a distroless @Docker image under Docker Compose, and Compose’s restart policy is the only supervisor. There’s no systemd unit. Logs are JSON on stdout, and they never contain tokens, the session key, or anyone’s email.</p><p>Real time without a message broker. Every change writes a row to an events table in the same transaction and fires a Postgres NOTIFY. One LISTEN connection per process pushes new rows out to the open streams, which are plain Server-Sent Events. A 400 ms catch-up poll covers any notification that gets dropped, and an advisory lock keeps event ids in order so the listener never skips one. When the phone reconnects, it replays from its last event id. If it fell too far behind, the server tells it to resync instead of cutting it off.</p><p>iPhone app. SwiftUI, Swift 6 (@SwiftLang), iOS 17, iPhone only. There’s a share extension, so I can share a link, a photo, or a file from any app straight into a Homebase thread. Signing out clears the keychain, every cache, and that phone’s push registration, even if the server can’t be reached.</p><p>Sign-in. Google (@googledevs), but with no Google SDK in the app. The app opens Google’s own sign-in page in ASWebAuthenticationSession using the authorization-code flow with PKCE, so the app holds no client secret. The server verifies Google’s ID token itself (signature, issuer, audience, expiry, verified email) and checks the email against an allowlist that also sets the role. Then it hands back its own 30-day session token. Only a hash of that token is stored, so a database leak gives nobody a working login. Homebase keeps no Google access token and never calls a Google API on anyone’s behalf.</p><p>Push. @Apple push notifications with three levels. Urgent arrives as Time Sensitive and can break through Focus. Normal is a regular banner. Quiet doesn’t make a sound or wake the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJyw1XmfiT10NuCLlUDuVg.png" /><figcaption>The whole setup. An iPhone app, a small Go server I run myself, and my bots behind it.</figcaption></figure><p>When someone sends a message, the server queues it and POSTs it to my Homebase Assistant routine as a webhook, signed with an HMAC. A 5xx or a timeout retries with backoff, up to 8 attempts over about 5 minutes. A 4xx doesn’t retry. If no webhook is set up, the routine can just poll for pending work.</p><p>The routine answers through a separate bot API. Each request it gets lists only the areas it’s allowed to route to for that person, so a bot can’t wander into an area that’s off-limits for them. For an area like school, the server can also wake that specialist bot’s own webhook directly and skip the extra hop through the assistant.</p><p>Bots can also post rich cards to the Updates tab: headers, tags, facts, links, images, files, and buttons. A card has a stable key, so posting again with the same key edits the card in place instead of creating a duplicate. A bot can mark an image as scannable, like a return QR code, and the app turns the screen to full brightness while it’s open so it scans at the counter.</p><p>The school lunch menu is the first card that moved off texts. Every Sunday morning it shows up in Updates with the week’s meals, the order deadline, and buttons. Tapping “Yes, order it” turns into a purchase request that waits for my approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0d2xCVY0jHQZ624-7czsHQ.png" /><figcaption>The school lunch menu, now a card in Updates instead of a text. Mockup, fake names.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L0F67YP6nb0NY3R_xT3CMQ.png" /><figcaption>What happens when someone sends a message, from the app to the right bot and back.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EUkVH6-kT4_T2PI-LYkZkg.png" /><figcaption>Anything that costs money or leaves the house waits for my tap first. Mockup, fake names.</figcaption></figure><p>The bot token and the member logins are completely separate. Neither one works on the other’s routes. On Nov 23 I added named bot senders, so my Sysadmin bot can post server alerts from the server itself with its own token. That token can only post and edit Sysadmin’s own cards. It can’t read any family conversation. Adding another bot later is one more entry in a config file, with no code change.</p><p>It started with a written plan: the screens, the API contract, and the milestones from M0 to M7. Then Cursor (@cursor_ai) built it, with Cursor cloud agents taking one milestone each and opening them as stacked pull requests on @github. My Family bot did the parts around the code. It wrote GitHub issues with acceptance criteria, tested each build on my phone, and filed what broke. My Sysadmin bot deployed to my server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmuVsgg1mwScQ9qKBYWvEw.png" /><figcaption>How it got built. Cursor agents open the PRs, CI checks them, and I deploy.</figcaption></figure><p>A few guardrails made that work.</p><ul><li>CI runs gofmt, go vet, race-enabled tests against a real Postgres 16, and a Docker build on every PR. A contract test fails if any API route is missing from the OpenAPI spec.</li><li>CI never deploys. Every deploy backs up the database and files first, and a deploy is only marked as the last good one if it comes up healthy. Rollback is one command.</li><li>The repo uses only a fictional family (Alex, Sam, Jordan, and a teacher named Ms. Patel) and placeholder secrets, because agents read it. Real names, emails, hostnames, and tokens are never committed, and CI rejects env files.</li><li>Nov 18, around noon PT. The plan, mockups, and logo candidates were merged.</li><li>Nov 18, about 4:50 PM PT. All eight milestones (M0 to M7) were merged: the server, Google sign-in, conversations, approvals and audit, live updates, the iPhone app, deploy scripts, and push support (built but switched off until I had a paid Apple developer account). By that evening, the app was running on my phone.</li><li>Nov 18, evening. Photo and file attachments, the Updates tab, the share extension, and the first round of fixes from real use. I also signed up for the paid Apple Developer Program that night.</li><li>Nov 19, morning. Push notifications worked, and the first TestFlight invite went out at 7:51 AM. My wife signed in that day.</li><li>Nov 19, afternoon. We got a new app icon. My Family bot sent my wife six icon options as Updates cards with “Love it” and “I’d pick another” buttons. Her pick, a little bot inside a house with a heart, is the icon now.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xif_4OYOQERwTz06gzlkEw.png" /><figcaption>How we picked the app icon. My wife voted on six options right from the Updates tab. Mockup.</figcaption></figure><ul><li>Nov 20. Architecture diagrams, plus a deploy kit so I can ship the server and a TestFlight build from my Mac myself, without spending bot credits.</li><li>Nov 21 to 22. A full redesign: an inbox-style home screen, answer cards with suggested follow-ups, unread threads and message search, archiving, and builds 6 through 13.</li><li>Nov 23. Read receipts, replies that stream in word by word with light haptics, and named bot senders.</li></ul><p>The free Apple account. At first the app was signed with a free Apple developer account. That meant it expired every 7 days, and installing it on my wife’s phone meant plugging her iPhone into my Mac with a cable. Push notifications needed the paid program too. Buying the paid program fixed all of it and moved us to TestFlight (@AppStore).</p><p>Tailscale and a second VPN. Homebase is reachable only over my private @Tailscale network, with nothing open to the public internet. Early on the connection kept dropping on my phone. The culprit was that an iPhone runs one VPN at a time, so any other VPN knocked Tailscale off. Keeping Tailscale as the only VPN on our phones fixed it, and sign-in is rate limited in the app.</p><p>Making the wait feel instant. Each message wakes a fresh assistant, which takes about a minute to start and read the thread, and a specialist question adds a second hop. Two cheap fixes went in. The server now posts “Homebase is on it…” right away, and specialists can get their own webhook to skip the relay. A typical reply takes about a minute, and the instant status covers the wait.</p><p>TestFlight “Missing Compliance.” The first builds got stuck waiting on Apple’s encryption question. Declaring it in the app’s Info.plist made that go away for good.</p><p>Small bugs from real use. Tapping a push opened the home screen instead of the card (the phone had an older build). Saving a picture to Photos crashed. My wife’s profile photo didn’t show because Google left it out of her sign-in token, so the server now falls back to Google’s userinfo. Each one was an issue, a PR, and a new build, usually the same day.</p><p>It isn’t on the App Store, and it isn’t meant to be. It’s for my family only, and only people on the allowlist can sign in. Replies take about a minute, with an instant status while the bot works.</p><ul><li>Part 2. How nothing leaves the house without my approval: roles, the allowlist, the Approvals list, and the audit log.</li><li>Part 3. How one assistant routes to a team of specialist bots, and what my bots post to the Updates tab.</li><li>Part 4. What my family actually uses Homebase for after a few weeks. I’ll only write that one from real use.</li></ul><p><em>Originally published on </em><a href="https://x.com/arangs/status/2126749513318895806"><em>X</em></a><em> and </em><a href="https://www.linkedin.com/pulse/i-built-my-family-private-chat-app-bots-answer-kannan-manickam-6hpbc/"><em>LinkedIn</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4d1b78ba8a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>