Search

Vault

I built Vault because I want to forget nothing. Forgetting why I decided something hurts the most. Which port a service listens on, I can always look up. But why did we agree last week to leave everything as it is? You explain it to the next agent, it writes it down in its own place, and a month later each of them has its own version. I wanted an assistant I could write to while I still remember, and later ask in my own words what we agreed on back then.

A fact lives in one note, the note has its history in Git, and a secret never gets into a note.

One Vault on two devices

I already run one Vault on two devices: I changed laptops and carried on with the same notes on machines, projects and decisions. At the computer I ask it from the command line; from my phone I write to my bot in Telegram. My agents look for answers in the same place, each in the notes it has access to.

This project used to be called Letopis, and two old posts are about it.

Where do you know that from?

For every fact in an answer, Vault names the note it took it from.

-- When does the nightly backup on sample-host start?

-- At 03:00 UTC. Source: 3_Areas/home-lab/sample-host.md.

With that path I can open the file and check the time, and the note has its history in Git.

Save and recall, then who uses the Vault: an illustration with sample data

How the shared memory works

At the core of Vault is one shared knowledge store. For search, Vault splits the notes into chunks by fixed rules: as long as a note's text stays the same, so do the chunk boundaries. That is deterministic chunking. When I ask a question, Vault looks for the chunks closest in meaning and builds the answer from them. That is RAG.

  1. An agent saves. vault save hands over a fact, and the Vault agent files it into the notes on a working copy. One writer works at a time; the next one waits.
  2. A check for keys. When the text holds a password or a token, the whole save is refused and nothing is written.
  3. Sync. Every installation syncs through Git in the background: a pass fetches, merges, commits and pushes, and the next pass starts 12 seconds after the last one ends. A conflict is not lost: Vault keeps a copy of the local file and shows it until I resolve it.

Secrets

Secrets live apart from the notes, in two KeePassXC databases. L1 opens with the machine's key from its protected login keyring. L2 opens only with a password that I know. Between machines Git carries only the encrypted bytes.

One launcher opens KeePassXC with L1 unlocked and L2 waiting for its password. An agent never sees a secret: it names an address such as l1/<group>/<title>, and the value is delivered where it is needed.

Secrets: L1 on each machine, L2 with the owner, Git between machines
The machine's key opens L1; L2 needs a password only I know. Between devices Git carries both databases encrypted.

How my projects connect

The Vault code is closed for now.

sense1tapo4ek · Backend & ML Platform Engineer · Applied AI

My projects and a personal diary.

If everything broke

Open around the clock, with breaks for sleep

© 2026 Yahor Mesherykou · RU / EN