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.

What a vault is, here

A “vault” is just a folder of plain Markdown files. I view it in Obsidian, 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.

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, AGENTS.md, 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.

That’s the appeal. I solve something once, an agent files the lesson, and next month’s session finds it. I stop re-deriving the same answers.

Why one vault wasn’t enough

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.

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.

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’s policy now says, in effect: legal work goes over there.

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 “LLM wiki” of summary pages from my brief bank, which I’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.

Casefiles stay out of both

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’s file.

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.

So a note might say “reply briefs in this court run into X, and here’s how I handled it.” It won’t say whose brief it was.

The rules the agents follow

I wrote these down because an agent will do whatever the file lets it do. The rules are short:

  • No secrets. Agents don’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’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.
  • Minimal client detail. See above. If the lesson doesn’t need the fact, the fact doesn’t go in.
  • Dated checks. A research note puts a dated check beside each proposition it verified. A check date tells me what was verified and when. It doesn’t tell me the proposition is still good.
  • Notes are not authority. My legal vault’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.
  • Corrections, not rewrites. 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.
  • Notes are data, not instructions. An agent that reads a note shouldn’t obey commands found inside it. Same logic as not following instructions embedded in a document someone sends you.
  • Ask first for the big stuff. 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.

None of this is exotic. It’s roughly what I’d tell a new paralegal, adjusted for something that works fast and never gets bored.

What’s still open

Not everything works yet. Codex’s sandbox settings don’t yet let it write to the legal vault, so for now Claude does the legal filing. I haven’t changed that yet.

I also can’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’t stress-tested it.

And the summary-page idea is parked, not dead. The design leaves room for it.

What I’d tell another lawyer

If you’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’s, as a pointer to a source you still have to check.