An Ontology for Three PCs - Updated

An Ontology for Three PCs - Updated

Leader ●2 ●5 ●26
calendar_today β€’ schedule4 min read

I ended up removing this - using it with Claude Code for just me alone was overkill. Claude remembers everything and needed constant clarification of discrepancies. I'd change my mind or move a file and it'd ask: "what about this, what about that?" - the maintenance far outweighed the usefulness. I consider it time well-spent though - in concept, it really does keep everything straight.

Palantir is one of the biggest data companies around. Governments, armies and huge corporations pay it serious money. Underneath all of it sits something Palantir calls the Ontology: a map of every thing an organization deals with, how those things connect, and what software is allowed to do with each one.

I have three PCs, a handful of projects and an AI assistant. It turns out I needed one too.

The problem: my assistant believes old notes

I do most of my Linux work with Claude Code. I decide, and Claude does the work: building my own distro, XiraLinux, reviving old PCs, helping with articles like this one.

Every new session starts from close to zero, so Claude keeps notes to remember things: "the OptiPlex is the build PC," "Ben dropped the idea for a game in assembly." The trouble is that Claude would write a note once and believe it from then on.

And I change my mind all the time. Projects end, files move, ideas get dropped. A note that was accurate on Monday is wrong by Thursday, and nobody notices until the AI acts on it.

What an ontology is

The word comes from philosophy, where it means the study of what exists. In computing it's practical: an ontology is a written-down agreement about what things exist in your world, what they're called, how they connect, and what may be done with them, so that people and software read it the same way.

Mine is easiest to picture as a card index with rules. (In ontology terms the cards are objects, the kinds of card are types, and the rules file is the schema.)

  • One card per thing. Each computer, project, article, idea, decision and publishing site gets one small text file.
  • Only six kinds of card:
Kind What it is Example
Machine A real computer My HP 17m
Project Work that takes more than one sitting XiraLinux Distro
Content Something made for other people This article
Idea Something floated, not committed to Wake-on-LAN
Decision A choice I made, with date and reason SSH SLM models to Optiplex
Outlet Somewhere things get published Coder Legion
  • Fixed words. Every card has a status from a short list. A project is done, dropped or parked, and each means exactly one thing.
  • Links. The XiraLinux card says it was built on the OptiPlex and tested on my old Toshiba.
  • A checker. A small script reads every card and complains about anything that breaks the rules: a made-up status, a link to a card that doesn't exist, a file that isn't where the card says.
  • Nothing is erased. When I change my mind, Claude doesn't rewrite the old decision. It adds a new one that supersedes it, and marks the old one as replaced. The history stays, and it's always clear which decision is current.

That's all of it: plain text files in a folder. No database, no server. Palantir's Ontology is the same idea, vastly bigger.

Day one: the cards caught my AI's mistakes

To fill in the cards, Claude had to check every fact against what was really on disk, instead of trusting its notes. That alone turned up a note pointing at a file that had been deleted, a logo that had moved to my backup folder, and two "facts" that contradicted each other. It also found files I had twice, with the two copies different. Now each card names the real one.

When Claude can't confirm something, it doesn't guess. It marks the card unsure and settles it later from what I say in passing. It doesn't quiz me.

The words that mean several things

"Archive" means three things in my world: my backup folder, the Internet Archive website, and marking something as finished. A person works it out from context. An AI guesses. So the ontology has a small glossary saying what each slippery word means here. Boring, and it works.

"Isn't this overkill for three PCs?"

I thought so too. The first plan called for 10 to 20 types. Claude pushed back: my world is a few machines and a few projects, so most of those types would be empty boxes that still need looking after. We cut it to six.

Start tiny. Add a new kind of card only when something real doesn't fit.

The whole thing is one rules file, a few dozen small cards, a checker of about 150 lines of Python, and an optional script that draws it all as a picture. I didn't write any of it. I explained what I wanted, and Claude built it and tested it by breaking it on purpose.

The weak spot I found later

A few days in, the decision cards were spotless and the checker said OK. Yet one of Claude's own notes still said "Install QEMU on Optiplex," days after it'd been done. The checker never read those notes, so it couldn't catch it.

The fix was simple: a note points at the card instead of copying it. A copy of a fact goes stale the moment the original changes. A pointer can't. The checker now also looks at Claude's notes for links to things that no longer exist.

The lesson: tidy records only help if they're what the AI actually reads.

Day to day

Almost nothing changes, and that's the point. I talk to Claude normally. When I finish, drop or decide something, Claude updates the cards and runs the checker. Each new session reads the cards first, so it sees my world the way the last one left it.

The takeaway

Palantir needs an ontology because big organizations drown in data their software misunderstands. I needed one for the same reason, even for my small scale operation: my AI kept misunderstanding my world.

If you work with an AI for many hours a day, every day, a folder of plain text cards, a rules file and a checker is probably worth an afternoon.

Ben Santora - November 2026

Want more #ontology-ai-claudecode-linux deep dives?

Join 6,176+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

Three Design-to-Code Rules Most Developers Ignore (That Will Make You a Better Engineer)

Joemetry - Sep 26

CData's New AI Gateway Puts Context at the Center β€” Fixes the Three Reasons Enterprise AI Stalls

Tom Smithverified - Sep 28

Kamal vs Kubernetes: An Honest Comparison for Teams Who Don’t Need 1,000 Services

Alexandre Vazquez - Jul 24

Faceted Navigation and Pagination for Ecommerce SEO

floxolab - Aug 31

Optimizing the Clinical Interface: Data Management for Efficient Medical Outcomes

Huifer - Jan 26
chevron_left
1.4k Points β€’ 33 Badges
Montserrat MA β€’ xiralinux.pages.dev
8Posts
26Comments
10Connections
Linux and AI Advocate - Creator of xiralinux - a lightweight Debian 12 + Openbox live distro built t... Show more

Related Jobs

View all jobs β†’

Commenters (This Week)

6 comments
5 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!