How to Build a Knowledge Base Agents Actually Use

Five notes deep, slice per worker, every correction becomes a standing rule — the vault is the business, the agents are interchangeable

← AI Agents  ·  Productivity  ·  Agentic Commerce  ·  Headless Empire OS  ·  Company Brain  ·  AI Operating System  ·  Dreaming

Source & credit

Distilled from Machina (@EXM7777) — the short version: x.com/i/status/2081092390660792604 (“I simply can’t comprehend why everyone isn’t building this yet…”).

Full blueprint (one-person AI business: two assets, five lanes, knowledge vault, memory levels, operating rules): x.com/i/status/2081017272924361162 / X Article. (Piece is sponsored by Viktor; the architecture ideas transfer whether you use that product or a custom agent stack.)

This page is a practical rewrite for our stack — especially Mike’s Headless Empire OS, Company Brain, and the agent memory / OS patterns across this site.

The one-line thesis

Your offers, ad angles, content pipeline, writing voice, and every decision you already made — in one place any model can skim in seconds. The workers are interchangeable. The vault is the business.

Most people keep “context” as a giant system prompt or a chat that drifts. That doesn’t compound. A real knowledge base is a small set of durable markdown notes the whole operation reads from — and that you update when reality changes, not when a model invents a new personality.

Why this matters (two assets, not ten tools)

Machina’s framing: a one-person business scales on two assets wired together:

  1. Software that already wins at its job — Stripe for billing, CRM for pipeline, Meta for ads, booking tools for scheduling. That layer is solved; your job is operating it.
  2. Business knowledge — who the client is, what you charge, what a good lead looks like, which requests escalate, how delivery actually works.

The missing middle used to be a hire: someone who knows your business and runs the software daily. An AI worker is that connection — but only if the knowledge is loadable, sliced, and corrected once.

Same idea at company scale as Eric Siu’s “single brain” and Loro’s GitHub + Claude company OS: stop scattering tribal knowledge across heads and chats; put it where agents and humans both read.

The vault: five notes deep

Strongest version is embarrassingly simple: a folder of markdown files (Obsidian is popular because it’s text on disk, linked, human-readable and agent-readable). Structure by what the business knows, one note per fact cluster:

1. The offer

What you sell, pricing, what’s included, what’s out of scope. Stops agents inventing packages or under-quoting.

2. The client

Who buys, verticals, ICP, what a qualified lead looks like. Feeds outreach and ads without re-explaining every run.

3. The voice

How you write, words you never use, examples of best work. Writer agents load this — not the whole vault.

4. The playbooks

How a project runs stage by stage, checklists, handoffs. Delivery agents and project standups live here.

5. The rulings

Every decision that should never be re-argued. The note nobody builds and everyone needs. Every agent correction becomes one permanent line.

Rulings: fix once, not forever

Pattern from the article: every time you correct an agent, add one line to rulings. Every worker reads rulings before starting. That is how a correction becomes permanent instead of a weekly re-teach.

In Headless Empire OS this maps cleanly to:

  • 02-tasks-projects/decision-log.md — decisions with dates and owners
  • 05-knowledge-base/ — company, people, products, market research
  • 06-systems-sops/ — durable how-we-work
  • Agent identity files under 04-ai-agents/ — stable “who I am / never do”

If you only steal one habit: maintain a single rulings (or decision-log) surface that every brief loads. Skip that and you will edit forever.

Slice the vault: one agent, one job

The fragile setup is one giant assistant with one enormous prompt expected to do everything. Builds that hold up do the opposite: one agent, one job.

  • Research agent only researches
  • Writer only writes — and loads the voice note, not the whole brain
  • Outreach worker loads client (+ offer slice), not your content calendar
  • Reviewer is never the author (self-grading agents approve their own work)

Each specialist is assembled from the same four parts:

Part Role Headless Empire OS analog
Identity Who this agent is, scope, things it must never do. Durable, rarely edited. 04-ai-agents/…, AGENTS.md, CLAUDE.md, .cursorrules
KB slice Only the business context this job needs. Files under 05-knowledge-base/ + relevant SOPs
Memory What it learned doing this job — bounded on purpose. Per-agent notes; not the same file as identity
Schedule + gate When it wakes; which outputs wait for your yes. TODAY / WEEK + human review windows; blast-radius permissions

Keep identity separate from memory, always. Identity stays stable so a passing fact never rewrites who the agent is. Memory is where churn belongs. That separation is the difference between an agent that stays itself for months and one that drifts the first time it saves a bad note — related to why Dreaming / memory consolidation and bounded agent memory matter.

Memory: three levels (stop early)

Memory is where new builders overspend. Move up only when the problem forces you:

Level What it is When you need it
1 — Files Markdown the agent loads at startup: facts, procedures, preferences. Most one-person and small multi-company ops. Stay here first.
2 — Memory product Dedicated store (e.g. mem0), retrieval by meaning. Material genuinely outgrows context; many sessions, many entities.
3 — Graph Entities and facts with time windows. When “what changed when” is the real question (enterprise scale).

Keep the always-loaded core small. Cap working memory files (hundreds of lines, not novels); load the rest on demand. Memory that grows without a ceiling crowds out the actual work.

The hard half of memory is forgetting: review dates, sweep what didn’t earn its place, write the new fact and mark the old one as replaced so bad beliefs are traceable. One production store in the article’s world logged ~10k entries in a month and ~200 worth keeping.

For operator-side “clear the brain so the vault can hold it,” see Clear Mental Fog and the live Mental Fog Reset in Headless Empire OS. For agent self-improvement over transcripts, see Dreaming. For RAM/process chaos when you run too many agents at once, see agent memory problem hacks (different kind of “memory,” same discipline: bound and reap).

Map: Machina vault ↔ Headless Empire OS

You don’t need a second system. Map the five notes onto the OS you already run (or clone):

Vault note Put it here in Headless Empire OS
Offer 05-knowledge-base/products/ + pricing / scope notes
Client / ICP 05-knowledge-base/company/, market-research, people profiles
Voice 03-marketing-content/ swipe-file, brand notes; agent voice file under 04-ai-agents/
Playbooks 06-systems-sops/ + active project templates in 02-tasks-projects/
Rulings decision-log.md + a short always-on rulings.md agents must read

Command center files (TODAY.md, WEEK.md, inbox.md) are execution, not the vault. Don’t dump permanent business facts only into TODAY — they’ll rot by Friday. Capture fast → route durable knowledge into 05 / 06 / rulings (same capture discipline as the OS daily workflow).

Public framework: github.com/HeadlessEmpire/headless-empire-os · HeadlessEmpire.com

Compare: vault vs Company Brain vs AI OS vs lanes

This vault (Machina)

Minimal business brain for interchangeable workers. Five clusters + rulings. Best starting shape for one operator or a small multi-company portfolio.

Company Brain

Unified org intelligence in Slack/tools, specialist agents, end-to-end workflows, closed loops. Same “one brain” idea at team scale — more surface area, more change management.

AI Operating System (Loro)

GitHub folders per function + Claude skills + daily briefings. Spreads the 1% AI-pilled workflows to the 99%. Vault notes become skills/folders.

Five lanes (content, projects, outreach, finance, ads)

Operating layer: one channel/agent per lane, pinned context (= vault in miniature), cadence + human gates on send/spend. Knowledge without lanes is a wiki; lanes without knowledge are confident noise.

Practical stack for this site’s world: vault (markdown)Headless Empire OS command centerspecialist agents / lanesclosed loops ( Loops, Dreaming ) → optional collab surface ( Buzz, Open Tag, Slack).

Operating rules (management beats magic prompts)

Lanes and vaults fail when you treat agents like genius interns with no blast radius. Steal these rules:

  1. The brief carries the context. Name the deliverable and what “done” means. A lazy brief produces confident work in the wrong direction.
  2. Permissions by blast radius. Routine internal work can run free; anything that sends or spends waits for your yes. The day the strictness annoys you is the day it saves you.
  3. You review on a schedule. Two windows a day to clear drafts/approvals — lanes produce faster than you read.
  4. Cap the bill on day one. Quote-before-execute in every context message. Untended agents teach you pricing the hard way.
  5. Next lane only when the last runs without you. Scaling is one question: did this morning’s lane produce without a prompt from me?

Your job shifts to the approval queue: drafts in, decisions out, and every decision writes a line in rulings so tomorrow’s queue is shorter. Same spirit as Boris’s AI-first roles and agentic setup checklists: verification and ownership, not more chat.

Build sheet (run once per lane or agent)

□ One agent or one channel per lane — never one assistant for everything
□ Knowledge base = business: offer, client, voice, playbooks, rulings
□ Identity file separate from memory file
□ Hand each worker only its slice of the vault
□ Every correction → one line in rulings (agents read rulings first)
□ Schedules before ad-hoc prompts (e.g. 8:00 standup is one sentence in a brief)
□ Permissions by blast radius; send/spend behind your yes
□ Budget cap + quote-before-execute from day one
□ Next lane only when the last one runs without you
□ Stay on memory Level 1 until Level 1 is honestly too small

Fast path (product workspace like Viktor-style “AI employee in Slack”): one channel per lane + one pinned context message = the vault in miniature. Custom path: same structure, files on your disk, full control. Ideas transfer either way.

Starter templates (copy into your vault)

offer.md

# Offer
## What we sell
## Pricing / packages
## Included
## Explicitly out of scope
## Proof / case snippets
## How we say no

client.md

# Client / ICP
## Who buys (and who doesn't)
## Verticals
## Qualified lead criteria
## Disqualifiers
## Common pains we solve
## Example accounts (anonymized OK)

voice.md

# Voice
## Tone (3 bullets)
## Words we never use
## Structure preferences (hooks, length, CTAs)
## 3 gold examples (link or paste)
## Anti-examples (what we sound like when we fail)

playbooks.md

# Playbooks
## Project stages + exit criteria
## Checklists per stage
## Handoffs (human / agent)
## Escalation rules
## Definition of done

rulings.md

# Rulings (append-only, agents read first)
# Format: YYYY-MM-DD — Rule — Why (optional)
- 2026-07-25 — Never send outreach without human approve — blast radius
- 2026-07-25 — Do not invent pricing; quote only from offer.md

Related on this site

Headless Empire OS

Live human + agent OS: command center, agent roster, 05-knowledge-base, SOPs, decision log.

Read the OS →

Company Brain

Single-brain org implementation: specialists, closed loops, change management in Slack.

Read →

AI Operating System

Loro: GitHub function folders + Claude skills + company-wide briefings.

Read →

Dreaming

Background memory consolidation so agents improve from past sessions without bloating identity.

Read →

Mental Fog / Reset

Dump cognitive load into the OS so your head isn’t the database — vault hygiene for humans.

Concept →   Live OS →

Agentic Setup Checklist

Router docs, verification, worksheets — the engineering side of “knowledge that doesn’t rot.”

Open checklist →

Loops

Closed loops and verification so production isn’t one-shot chat.

Read →

Buzz by Block

Shared human/agent rooms; pair with a portable vault so the room isn’t the only memory.

Read →

OpenClaw sessions

Topic-scoped deep knowledge without cross-contamination — same “slice” principle.

Read →

Harness / CLAUDE.md / SOUL.md

Identity and coding harness patterns that pair with a business vault.

Harness →   CLAUDE.md →   SOUL.md →

References

Comments

Approved comments appear below. Log in once with GFAVIP — it applies across the whole site. GFAVIP login

View comments archive