---
title: "LLM Wiki for Teams: Automated Maintenance in Cohub"
description: "Build an LLM wiki for teams inside a Cohub Space: keep immutable raw sources, schedule agent tidy passes, gate edits by role, and publish a reader App."
lang: "en"
canonical: "https://cohub.live/use-cases/llm-wiki"
image: "https://cohub.live/_seo/og/use-cases/llm-wiki.png"
updated: "2026-12-02"
---

# How to run an LLM wiki for teams inside one Cohub Space

For a team's LLM wiki, put the raw sources, the agent-written pages and the AGENTS.md schema in one Cohub Space, give contributors the builder role, schedule a tidy prompt, and publish the pages as an App. Obsidian with a local agent is still the better home for a wiki only you use.

- **Who:** A team lead or the one person who ends up keeping the team's notes, with several people adding sources over months.
- **When:** A personal LLM wiki works, and now teammates want to drop in sources, read it without an account, and ask it questions from their own projects.
- **Why:** In a Cohub Space the raw files, the wiki and its schema stay on the Space's disk, a scheduled prompt tidies it while everyone's laptop is closed, and roles decide who can change it.

![The wiki published as a Cohub App: the Sampling protocol v3 page with a highlighted conflict note between the 30-day and 21-day calibration intervals, each fact citing its raw file](https://cohub.live/_seo/img/wiki/wiki-app-conflict-light.webp)

A personal LLM wiki runs smoothly in an Obsidian vault on one laptop until teammates start adding meeting notes, outside readers ask for a plain URL, and scheduled cleanups stop whenever that laptop sleeps. Hosting an LLM wiki for teams in a Cohub Space keeps immutable raw sources, agent-maintained Markdown pages, and `AGENTS.md` rules in one shared workspace—so scheduled tidy runs execute on time and Space roles control who can edit.

## Map the three-layer LLM wiki onto a Space
Andrej Karpathy's LLM wiki pattern separates three layers—untouched raw sources, an agent-maintained wiki, and a schema telling the agent how to write—across three recurring tasks: ingest, query, and lint. Each piece maps cleanly to a path or feature inside one Space:

| Wiki layer | Place in a Cohub Space |
|---|---|
| Raw sources | `raw/`, where contributors upload untouched source files |
| Maintained wiki | `wiki/`, holding `index.md` and an append-only `log.md` |
| Rules schema | `AGENTS.md` at `/workspace` root, loaded when any Chat starts |
| Periodic lint | A scheduled prompt targeting a dedicated `"Wiki tidy"` Chat |
| Reader view | `site/`, generated from `wiki/` and shipped as a directory App |

## End-to-end test: Northwind Field Wiki (2026-11-17)
On 2026-11-17 we built a public Space on cohub.live called Northwind Wiki and published it as [Northwind Field Wiki](https://cohub.live/bangwu/northwind-wiki-demo/w/wiki), covering twelve coastal monitoring stations. Here is the shortened `AGENTS.md` schema that governed every agent turn:

```markdown
- `raw/`: source documents people drop in. Never edit or delete them.
- `wiki/`: the wiki. You write and maintain it.
- Every fact ends with its source: `(raw/<file>)`.
- When two sources disagree, keep both, mark the page `> Conflict:` and say which is newer.
## Tidy
First ingest any raw file the log does not mention yet. Then check the whole wiki:
broken links, orphan pages, facts without a source, unmarked conflicts, and claims
a newer raw file contradicts. Fix what you can, list what needs a person.
```

### 1. First ingest and initial publish
We uploaded a field log and a sampling protocol into `raw/` and issued one ingest prompt. Within 40 seconds the agent created six station pages, one procedure page, two topic pages, `index.md`, and `log.md`, then rebuilt `site/`.

```bash
cohub -s northwind-wiki-demo spaces files upload \
  raw/2026-10-field-log.md raw/sampling-protocol-v3.md --dir raw
cohub -s northwind-wiki-demo prompt --title Ingest \
  "Ingest the new files in raw/ as AGENTS.md describes."
cohub -s northwind-wiki-demo spaces checkpoints create "First ingest"
cohub -s northwind-wiki-demo apps publish wiki --source workspace --dir site
```

![Terminal: uploading AGENTS.md and two raw files, one ingest prompt, six station pages written under wiki/stations, a Save and the first App publish](https://cohub.live/_seo/img/wiki/wiki-ingest-dark.webp)

Our run on cohub.live, 2026-11-17

### 2. Scheduled tidy catches a new source automatically
Next we uploaded team call notes changing sonde calibration from every 30 days to every 21 days, without prompting the agent manually. For the test we set the tidy schedule a few minutes ahead and removed it after one run; for an ongoing team wiki, a weekly schedule fits:

```bash
cohub -s northwind-wiki-demo spaces sessions create "Wiki tidy"
cohub -s northwind-wiki-demo spaces prompt --cron "0 7 * * 1" --timezone Europe/London \
  --session <tidy-chat-id> --label Tidy "Run the tidy pass from AGENTS.md."
```

That scheduled turn finished in 51 seconds. It ingested the call notes, inserted a `> Conflict:` callout on the protocol page rather than silently overwriting the 30-day rule, linked an orphan log page, and surfaced two human decisions: whether to issue a v4 protocol, and whether a seasonal station's missing October visit was skipped or unlogged.

![Terminal: a scheduled tidy prompt ran as a scheduled_task turn in 51 seconds, changed six wiki pages after a new raw file arrived, then the App was published as v2 and the schedule deleted](https://cohub.live/_seo/img/wiki/wiki-tidy-dark.webp)

Our run on cohub.live, 2026-11-17

### 3. Diff, Save, and ship the next App version
Scheduled tidy passes modify `/workspace` only—published readers see nothing until someone promotes a new App version. After checking changed paths, we saved a snapshot and published v2:

```bash
cohub -s northwind-wiki-demo spaces files diff --json \
  | jq -r '.files[] | "\(.status) \(.path)"'
cohub -s northwind-wiki-demo spaces checkpoints create "After first tidy"
cohub apps publish-version <app-id>
```

To inspect line-level edits to a single page between two Saves, run `cohub spaces checkpoints diff <save-id> <path>`.

### 4. Query the wiki from another project Space
From a separate Space we mentioned the wiki Space and asked when a station returns online. The reply cited the specific wiki pages it relied on. Running `cohub references query` showed the agent listed `wiki/` and opened the station page, the sensor-maintenance page, and `log.md`—plain file reads worked at this scale with no vector database.

![Terminal: a Chat in another Space mentions the Northwind Wiki Space and gets an answer that names the NW-05 Teal Inlet and Sensor maintenance pages; the reference log shows the agent listed the wiki folder and read those two pages and log.md](https://cohub.live/_seo/img/wiki/wiki-mention-v2-dark.webp)

Our run on cohub.live, 2026-11-17

## Separate editors from readers with Space roles
| Role | Permissions inside the wiki Space |
|---|---|
| Host | Full builder access plus membership, Mods, Channels, and sandbox settings |
| Builder | Upload raw sources, edit pages, prompt the agent, create Saves, manage schedules and Apps |
| Guest | Read Chats, files, and Saves; no file edits or agent prompts |

Assign `builder` to teammates who contribute sources or review tidy runs. Casual readers only need the published App URL, which requires no Cohub account. Setting signed-in and anonymous access to `guest`—as we did in the test Space—also lets visitors browse raw sources and Chats read-only:

```bash
cohub -s <wiki-space> spaces invites create --role builder --days 7 --max-uses 1
cohub -s <wiki-space> spaces access set --signed-in guest --anonymous guest
```

## When to stay in Obsidian vs move to a Cohub Space
Stay with Obsidian plus local Claude Code or Codex when:
- Only you use the wiki and want to browse locally while the agent edits on disk.
- Your workflow depends on Obsidian's graph view, Dataview, Marp, or Web Clipper.
- Source documents must stay strictly on your device or work offline.

Move the wiki into a Cohub Space when:
- Multiple teammates add sources and you need role boundaries on edits.
- Scheduled tidy passes must run even while every laptop is closed.
- External readers expect a web link instead of syncing a vault.
- Agents in other Spaces need to query the wiki via `@space` mentions.

Obsidian's paid Sync and Publish add-ons handle syncing and web reading, but do not execute scheduled agent runs; a local cron job only fires while that computer stays awake.

If your goal is pulling scattered sources together to answer one cited research question rather than maintaining one team knowledge base over months, see [AI research workspace](https://cohub.live/use-cases/ai-research-workspace).

## Six operational limits to plan around
- **Direct workspace writes:** a tidy pass edits `wiki/` immediately with no pre-apply approval step; audit `files diff` before creating a Save or publishing.
- **Snapshot-based App versions:** the live App does not auto-sync with `/workspace`; run `apps publish-version` after reviewing a tidy pass.
- **Plain Markdown in Files panel:** no graph view, backlinks, or `[[wikilinks]]` rendering—instruct the agent to emit standard relative Markdown links.
- **Directory-listing retrieval only:** tested on nine content pages without a search index; once a wiki reaches hundreds of pages, add a search script the agent can invoke.
- **Access required for `@space` mentions:** mentioning a private wiki Space only succeeds for users who can read it, so add readers as guests first.
- **Directory App ceiling:** one directory App holds 1 to 1,000 files and up to 1 GiB; split very large wikis across multiple Apps.

## Reference in the docs

**This page:** Whether a team's LLM wiki should live in a Cohub Space or in Obsidian with a local agent, and how to keep it current once several people feed it.

- [Spaces](https://cohub.live/docs/workspace/spaces): Space settings for members and access
- [Files & Sandbox](https://cohub.live/docs/workspace/files-and-sandbox): why files, not Chat history, are the durable state
- [CLI](https://cohub.live/docs/developers/cli): spaces prompt with --cron and --session
- [Apps](https://cohub.live/docs/create/apps): directory Apps and publishing a new version
- [Chats](https://cohub.live/docs/workspace/chats): @space mentions

## FAQ

### Do I need embeddings or a vector database for an LLM wiki in Cohub?

Not at this size. In our run the agent listed the wiki folder, read the station page, a topic page and log.md, and answered from them. A search tool becomes worth adding when listing and reading files no longer finds the right page quickly.

### Can the scheduled tidy run publish the App by itself?

We published by hand after reading the diff, and recommend that. The agent in a Space can run the cohub CLI, so the tidy prompt could also ask it to run apps publish-version, but we did not test that.

### What does a scheduled tidy run cost?

Each run is a normal agent turn in the wiki Space, billed like any other prompt, at the rate of the model you choose. The tidy run we scheduled finished in 51 seconds.

## Related

- [How to run an AI research workspace across linked Cohub Spaces](https://cohub.live/use-cases/ai-research-workspace): Cohub works as an AI research workspace with shared context: keep each source collection in its own Space, then @mention it for one question or mount it read-only so every Chat can read it.
- [Scheduled prompts: cron for AI agents](https://cohub.live/features/scheduled-prompts): Scheduled prompts are cron for AI agents: a Cohub prompt sent to a Space after a delay, at an ISO time, or on a cron expression with a time zone, with each run recorded in a Chat.
- [How shared AI context works when a team shares one Cohub Space](https://cohub.live/use-cases/team-shared-ai-context): Cohub provides shared AI context for teams: Chats in a Space are visible to its members, the agent works on the same files for everyone, and anyone can continue or fork a teammate's thread.
- [How to publish a running app from an AI sandbox as a live link](https://cohub.live/use-cases/publish-app-from-ai-sandbox): To publish a running app from an AI sandbox in Cohub, run one CLI command, or use the Publish dialog, to point an App at the port your dev server listens on; static output can go out as a folder or a single HTML file instead.

## Sources

- [LLM Wiki, Andrej Karpathy (the pattern: raw sources, wiki, schema; ingest, query, lint)](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f)
- [Cohub docs: Spaces (members, access)](https://cohub.live/docs/workspace/spaces)
- [Cohub docs: Core concepts (roles host, builder, guest; scheduled prompts)](https://cohub.live/docs/learn/core-concepts)
- [Cohub docs: Files & Sandbox (files are the durable state)](https://cohub.live/docs/workspace/files-and-sandbox)
- [Cohub docs: Apps (directory target limits, versions)](https://cohub.live/docs/create/apps)
- [Cohub docs: Chats (@space mentions)](https://cohub.live/docs/workspace/chats)
- [Obsidian pricing (Sync and Publish add-ons)](https://obsidian.md/pricing)
- [Northwind Field Wiki, the App published from the Northwind Wiki Space in this run](https://cohub.live/bangwu/northwind-wiki-demo/w/wiki)

Updated Dec 2, 2026
