# Wiki

> How a Cozy workspace is organized into wiki, sources, skills and agents folders, and what each one is for.

Every workspace is a tree of plain files: Markdown, text, JSON or CSV. There's
no database to set up and no special memory format. Agents read and write the
same files you see in the web app.

## The four folders [#the-four-folders]

| Folder | What it holds | Who writes it |
| --- | --- | --- |
| `wiki/` | Curated pages and `wiki/index.md`, a short map of the wiki | You and the agents you authorize |
| `sources/` | Original evidence, each with a stable ID, its link and its times | Connectors and imports |
| `skills/` | `SKILL.md` instructions for your agents | You and the agents you authorize |
| `agents/` | Agents' working notes, handoffs and task memory | Agents, within the folders they're allowed |

Keep facts in `wiki/` pages, and keep the evidence for them in `sources/`. A
page cites a source by linking to it. See [Sources](/docs/wiki/sources).

## Where to find them [#where-to-find-them]

The sidebar has a view for each part of a workspace:

- **Wiki**: your pages. Choose **+ New page** to write one.
- **Graph**: how pages connect. See [Links and graph](/docs/wiki/links-and-graph).
- **Sources**: imported evidence. See [Sources](/docs/wiki/sources).
- **Connectors**: the apps Cozy reads from, and the agents that use Cozy.
- **Skills**: your agents' instructions. See [Skills](/docs/wiki/skills).
- **Agents**: your MCP server URL and workspace credentials. See
  [Credentials](/docs/credentials).
- **Health**: what needs fixing. See [Health](/docs/wiki/health).
- **Activity**: a history of edits, imports and access changes in this
  workspace. Changes an agent made show its name.

Search at the top of the sidebar looks through file paths, titles and full
text. It matches words, not meanings: Cozy doesn't use embeddings.

## Personal Library [#personal-library]

Select **Shelve excerpt** on a source or wiki page. Choose an exact passage and a shelf. The Reading Desk in **More views → Personal Library** lets you check the evidence, approve librarian proposals, and copy instructions for Agent Fetch. If the cited revision changes, agents lose library access to that excerpt until you review the new revision. **Unshelve** removes the excerpt and its proposals.

Choose **Keep my excerpt** for immediate filing. The overnight librarian can suggest a shorter claim from an excerpt, with up to 16 excerpts processed per workspace per night at 02:00 UTC. Both operations run without paid inference. Select **Let my connected librarian propose a claim** to use your own agent. **Show Sweepers** controls the desk illustration on this device.

To seed from files you already imported, choose **Review local archive**. The browser previews a JSON manifest for the current workspace and open domain. Select individual passages to approve. Each entry needs the shelf, exact source path, revision and quote. For example:

```json
{
  "workspace": "YOUR_WORKSPACE_UUID",
  "entries": [
    {
      "privacyDomain": "general",
      "namespace": "projects",
      "path": "wiki/projects/reading-group.md",
      "revision": 1,
      "quote": "The reading group meets on Monday."
    }
  ]
}
```

Only the selected fields of approved entries are submitted. Health-domain entries stay outside the cloud library.

## Start with the index [#start-with-the-index]

New workspaces start with `wiki/index.md`. Agents read it first, so keep it a
short map: where to start, then a line per page. An agent can draft it with
`cozy_map`, which groups pages by type.

<Cards>
  <Card title="Pages" href="/docs/wiki/pages">
    Write, edit, move, delete and restore pages.
  </Card>
  <Card title="Links and graph" href="/docs/wiki/links-and-graph">
    Wikilinks, typed relations, backlinks and the Graph view.
  </Card>
  <Card title="Sources" href="/docs/wiki/sources">
    Evidence, the Inbox, uploads and citations.
  </Card>
  <Card title="Health" href="/docs/wiki/health">
    The score and the list of fixes.
  </Card>
  <Card title="Skills" href="/docs/wiki/skills">
    Instructions your agents follow, including dreaming.
  </Card>
</Cards>

