> ## Documentation Index
> Fetch the complete documentation index at: https://trytilde.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Wikis

> Keep runbooks, decisions, and reference pages in Markdown that people and agents both read and edit, with every change kept as a revision.

A wiki is a named tree of Markdown pages that people and agents both read and edit. Use it for knowledge that needs structure and stays up to date, such as runbooks, design decisions, and how a system works. For short facts an agent recalls, use a [memory bank](https://trytilde.ai/docs/memory/memory-banks.md).

Agents reach a wiki only through a link. See [How an agent gets access](https://trytilde.ai/docs/memory/overview.md#how-an-agent-gets-access).

## How wikis work

Each page has a path, such as `runbooks/deploys`, a title, and Markdown content. Link to another page by its path from the wiki's root, such as `[Deploys](/runbooks/deploys)`.

Every change to a page is a revision, recorded with whether a person or an agent made it. A change is based on the revision the writer read. If someone else saved first, Tilde refuses the change, and the writer reads the page again. Two writers never silently overwrite each other.

> [!WARNING]
>
> Deleting a page does not erase its content, which stays in its revisions. Delete the wiki to remove it for good.

## Create a wiki and give it to an agent

**1. Create the wiki**

Open **Wikis**, and select **New wiki**. Enter a **Name**, and a **Description** that agents see.

**2. Link it to an agent**

Open the agent in the Agent Registry, and select **Capabilities**. In the **Wikis** section, under **Other wikis**, link the wiki with **Read** or **Read and write** access.

To give an agent a wiki of its own instead, choose **Its own wiki** in the **Wikis** section, then select **Create its own wiki**.

Changes apply from the agent's next tool listing. Unlinking a wiki keeps its pages.

## Edit pages

Open a wiki to see its page tree, and the open page rendered from Markdown.

* **New page** creates a page at a **Path**, with a **Title** and **Content**.
* **Edit** opens the Markdown editor. If someone saved first, choose **Overwrite with mine** or **Discard and open latest**.
* **Move** gives the page a new path.
* **History** lists the page's revisions, with links to the sessions where agents made them. Select a revision, then **Restore this revision**.

To find text, choose **Search words**, **Find exact text**, or **Find a regular expression**.

The **Settings** tab holds the wiki's name, description, linked agents, and **Delete wiki**. Deleting a wiki deletes its pages and their history.

You can do the same through the management API.

## Wiki tools

Agents linked to a wiki get these tools. The write tools need **Read and write** access.

| Tool | What it does |
| - | - |
| `wiki.search` | Finds pages by keywords, best match first. |
| `wiki.grep` | Finds lines that contain exact text, or match a regular expression. |
| `wiki.read` | Reads a page and its current revision. |
| `wiki.list` | Lists pages' paths and titles. |
| `wiki.write` | Creates a page, or changes one at the revision the agent read. |
| `wiki.delete` | Deletes a page at the revision the agent read. |

The tools tell agents to read a page before changing it, to keep its structure, and never to store secrets, credentials, or tokens.

## Good to know

* **A memory bank can learn from a wiki.** Tilde keeps facts from its pages in the bank, and each recalled fact names the page it came from. See [Synthesis](https://trytilde.ai/docs/memory/memory-banks.md#synthesis).
* **The UI does not render raw HTML** in pages, and shows images from other origins as links.
* **Each agent has at most one wiki of its own.** Tilde deletes it, with its pages and history, when it deletes the agent.

## Who can manage wikis CLOUDENTERPRISE

* `view` on a wiki lets you see it and its pages. `edit` lets you change its pages and settings.
* Linking a wiki to an agent needs `edit_wiki` on the agent, plus `view` on the wiki for **Read** access, or `edit` for **Read and write**.

See [Operator access](https://trytilde.ai/docs/operator-access.md#resource-access).

## Related pages

* [Memory and wikis overview](https://trytilde.ai/docs/memory/overview.md)
* [Memory banks](https://trytilde.ai/docs/memory/memory-banks.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.