The bot I put in a group chat last week taught me one thing above all: a model will say out loud anything you hand it. So this week started with a question I’d been avoiding. Where do my notes actually live, and who gets to read them?

The answer, until now, was “everywhere, and anyone I forgot about”.

Sunday afternoon: two stores

Last week’s post went out on Sunday. By three that afternoon I’d started on the thing I’d been circling for a month: a proper knowledge system.

Two stores, not one:

  • PKS, personal. Study, health, money, home, journal.
  • KMS, the work. The homelab, the projects, the infrastructure.

Each is a plain Markdown folder that’s also a Git repository. Between them sits one Python service, the bridge. It indexes both, serves them to my models over MCP, pulls in my notes, bookmarks and feeds read-only, and keeps a Git trail of every change.

The rule that matters is boring on purpose: a note lives where it’s used, not where it’s labelled. If something personal starts being used for the work, it gets promoted to the work store. Promotion runs one way. Nothing moves back. The two never share a search, an index or a link. I borrowed the idea from the US federal rule that keeps personal papers apart from agency records. It doesn’t bind me, of course. It’s just a good line to draw.

And the models never write anything directly. Every change a model or an import wants to make is filed as a proposal. I approve it, or I don’t. After last week, that felt less like caution and more like the minimum.

The personal store is served to local models only. Nothing in it goes to a cloud model. Restricted notes aren’t indexed, embedded or served at all.

Sunday evening: the editor that lasted eight hours

I picked SilverBullet as the editor. It’s a lovely browser-based Markdown notebook, and I even built a little 3D graph of each space’s notes, with restricted pages left out so their names never show.

It went live on the Pi around seven. Then the small fires:

  • LibreChat refused to start because an MCP title had parentheses in it. Letters, digits, spaces, hyphens and apostrophes only.
  • LibreChat saw the bridge’s 401, decided the server must want OAuth, and never sent the token it already had. One flag fixed it.
  • n8n silently never started. The Pi had run out of Docker’s default network address pools. Every new stack now gets an explicit subnet.

None of that is why SilverBullet went, though. Its offline client needs HTTPS, and my stacks speak plain HTTP inside the home network. No offline editing meant no notes the moment I’m off the network. That’s when I write most of them.

Before midnight, I’d built its replacement.

Sunday night: Joplin, and a sync I had to write

Joplin has desktop and phone apps with real offline copies, and a server I can host. The catch is that Joplin keeps notes in its database, and I wanted the Markdown folders to stay the source of truth.

So each store got its own little pipeline: a Joplin Server, a database role only that server can reach, and a sync container that runs the headless Joplin client next to a Python engine. The engine maps notebooks to folders and notes to files, fills in the metadata, rewrites links when a note is renamed, and keeps a conflict copy instead of picking a winner. Tagging a proposal “approve” or “reject” in the phone app moves it. That last bit is my favourite. I can review what a model wants to change while waiting for a coffee.

Restricted notes sync with Joplin’s end-to-end encryption on. In the database they’re ciphertext. The bridge never sees them.

Two things cost me an evening:

  • Joplin Server accepts API requests only from the exact host and port in its base URL. Anything else gets a 404 that says “Invalid origin”. So the apps, the sync and the setup script all have to use the same address, down to the port.
  • The headless client never syncs by itself. It decides it has no GUI and just waits. The engine runs the sync itself.

284 tests on the sync engine, 1,163 on the bridge, and an end-to-end run on a throwaway stack: edits both ways, renames, conflicts, encryption, no writes when idle. Just after midnight it was in production. Six containers, about a gigabyte of memory. The only thing left is the part I can’t automate: typing the master passwords into my own apps.

Monday: Syncthing

Syncthing moved in too, sharing the same folders and user as Nextcloud and the downloader, so permissions don’t fight. The music folder gets an ignore file before pairing, so half-downloaded files never travel to another device. No real devices paired yet. That’s this week’s job.

Tuesday: the bot grows up

The group-chat bot got the changes it needed to survive more people:

  • Lanes. The fast Pi model and the bigger workstation model now run in separate lanes. A quick reply no longer waits behind a slow one.
  • Fair turns on the Pi. The Pi’s model handled each step of each reply in arrival order. With three mentions queued, all three replies took turns thinking and came out together at the very end. Now a reply that’s already started gets the model back first. Same total work, but people see answers one by one instead of all at once after a long silence.
  • Public groups. Built, still switched off. A public group gets only the small model, no memory, a neutral persona, four questions an hour per person, and a notice to pin that says plainly what it is, what it reads, and that it can be wrong.
  • An exam for the bot. Twenty fact questions from the university files, 85% to pass. The old evaluator couldn’t even run. It had been missing a thread ID the whole time.

And a quiet discovery: with speculative decoding on, the Pi’s model ignores temperature, top-p and top-k. The drafter and verifier are greedy. I’d been tuning knobs that weren’t connected to anything. I also wrote down a plan to switch between two small models per request, then shelved it. The other model didn’t load on the faster backend and ran 3 to 4 times slower.

Feeds got two fixes. A renamed announcement used to show up twice; now same feed plus same publish second means same item. And a stale feed now says why: still failing, or frozen with no error at all. It writes that to FreshRSS’s log, because nothing else would tell me. My uptime monitor shows an unhealthy container as “pending” and never alerts.

Shopping, corrected

Last week’s upgrade list said a 32 GB office mini PC costs $210–250. That was a US price. In Europe, refurbishers ask €420–650. Buy the 16 GB version for €200–330 and add the RAM yourself. I also priced NAS cases and new mini PCs, and the electricity: at Greek tariffs, every watt running all year costs €1.50–2.50. A box that idles at 10 W is €15–25 a year. One that idles at 60 W is €90–150. Every year, for doing nothing.

The takeaway

I rebuilt the editor within a day, and I’m glad I did. But the part I’d keep no matter what is the rule: notes stay where they’re used, models propose and don’t write, the private side never touches a cloud model. Tools change. Rules don’t have to.

So before you point a model at your notes, draw the line first. Decide what it may read, what it may change, and what it never sees. Write it down. Then pick the software. It’s a lot easier than doing it the other way round.


Sources