LLM wikis, or how I stopped re-explaining my infrastructure to Claude

Table of Contents

The problem

Every conversation with an LLM agent starts from zero. Close the session, lose the thread — the model that just spent an hour learning my deploy pipeline’s quirks has no idea any of that happened five minutes later. The context window is finite. I ran into this directly today, migrating this very site’s CI off a docker-compose setup onto Kubernetes and Helm, debugging a Forgejo instance, and chasing down a DNS misconfiguration across three separate domains I run. Long session, lots of decisions. None of which the next Claude session would know about unless I wrote it down somewhere it could actually read.

So I did what I’d do if a new freelancer joined a project: I gave it a wiki.

What it actually is

Not a product, not a framework I installed. Just a wiki/ folder in this repo, full of markdown with frontmatter, linked the way I already link my personal Obsidian notes — [[wikilinks]], tags, a Home.md pointing at everything else. Claude is supposed to read it before starting a task and write to it as things change. I read it too, which is the whole point — unlike a vector database full of embeddings, there’s nothing in it I can’t open in a text editor and understand at a glance, or edit and update.

I’ve separated it into several categories:

  • Rules — things that basically never change. Commit message format, atomic commits, never push yourself and others. I keep these short and point to them from the root AGENTS.md so any agent framework finds them without being told twice.
  • Tasks — state that changes within hours. What’s blocked, what’s done, what’s next. This is the part that actually makes an agent’s work legible across sessions. A fresh Claude session with zero memory of yesterday can open Tasks.md and know exactly where things stand, instead of reconstructing it from git log and guessing. I actually ask Claude in the morning: What’s next?
  • Knowledge — durable facts that aren’t in the code. Which IP a domain is supposed to resolve to. Why a redirect got dropped during a migration. Things git blame can’t tell you, because they’re decisions, not diffs.

Why not RAG or one big instructions file

The obvious competitor is RAG over a vector store. It’s good at “find the paragraph that’s semantically close to this question,” bad at “remember that we decided X instead of Y and here’s why,” because that kind of fact doesn’t cluster near anything in embedding space until you already know what to search for.

A wiki entry, by contrast, gets written at the moment the decision is made, by whoever made it, in whatever shape is most useful to the next reader. It’s push, not pull. And: It’s human readable!

The other competitor is “just put everything in one big CLAUDE.md.” That works until the file is a few thousand lines and loads into every single session whether it’s relevant or not. A wiki lets an agent fetch only what matters to the task in front of it.

A wiki that I and a handful of agent sessions all edit needs the same discipline a codebase does, which is exactly why it lives inside the git repo instead of as some bespoke “agent memory” database bolted on the side. Git gives me blame, diffs, and revert for free. Today’s session updated Tasks.md probably a dozen times over the course of debugging CI, DNS, and a cert-manager issue — each one a small, reviewable commit, same as any other change to this repo. By the end, anyone (human or agent) opening that file cold could tell exactly where the deploy stood, without reading the conversation that produced it.

Gotchas

We all know those wikis that are filled once, but never updated. Or we know that there’s wiki pages with conflicting information in various places.

One thing Agents are great at, are writing text. Thus they’re great at updating my wiki. My work produces a finding: I tell the agent to document it in the wiki. I have the agent analyze logfiles and have findings, the agent updates the wiki. I can then also ask the agent for a text for a ticket, create the ticket and have the agent track the ticket.

However, sometimes the wiki gets out of sync, so it’s a good practice to tell the agent to update and consolidate the wiki, while it’s session still is fresh.

Multi-Agent workflows

The Hugging Face incident has clearly shown, that agents work better if they can communicate with each other. So the wiki can also act as a shared context for multiple agents. So in case you have a multi agent workflow, the LLM wiki is the way to go. I’m currently experimenting with locally hosted models on my gaming machine, and it seems to work quite well, to use either Claude or the local LLM to work on a project and have them cross-check each other. The wiki here is the crucial element to make this work, since Claude can’t access the context of the local LLM or vis a versa.

Additional benefits

I tend to work on private projects rather acyclic. Means, that I sometimes work on one project, sometimes on another. The wiki helps me to get back my personal context on a project, to know what’s up next. Especially on projects that are pet-projects and are not collaborative projects where communication is done via tickets.

The Meta wiki - a real superpower

I also have had very good success with a meta wiki. My projects directory hosts another wiki that has information about all my projects, and I have an agent running on this. This agent knows the state of all the projects and I can ask it to check all the projects, maybe read the open tickets, check for security updates and so on.

“I have 2 hours now. Please scan all projects and give me a todo that fits this timeframe - focus on urgent todos.”

That’s a prompt I use quite often, and it works surprisingly well.

The take away

Even if you don’t want AI to write your code, let the AI write your wiki and your todos, let the AI track your tickets and help organize your work. That’s a real productivity boost and helps you juggle the many things you might have on your plate.

I use this technique for both work and private projects with great success. This doesn’t mean that i neccessarily have enough time for my private stuff, and that I am so bored at work that I don’t know what to do - on the contrary. The wiki helps me to keep track accross multiple projects, customers and roles. With the use of LLMs I can automate much of the manual work and work on multiple projects at the same time, without loosing focus. Everything gets recorded, and Claude can check on the progress of my tickets, remind me to do this update or check on the progress of a migration. It also watches the pipelines for me and analyzes the output to give me options for next steps. I don’t let an Agent run completely free. I own the code and the decisions. I own the tickets and the documentation, since I am responsible to deliver a good result for my co-workers and customers. I don’t want to be that person who puts the responsibility onto AI.

Share :

Related Posts

What is wrong with DevOps?

Caveat This is an opinion based on my observations and does not have to be true within your organization.

Read More