Skip to content

Wiki ​

Wiki stores Markdown pages next to the workflows they explain: runbooks, handoff notes, and diagrams. Open Wiki in the navigation.

Wiki with the page tree, a page in Preview with a Mermaid diagram, and its outlineWiki with the page tree, a page in Preview with a Mermaid diagram, and its outline

Pages and Folders ​

The sidebar shows the page tree of the selected workspace. Its header buttons expand or collapse all folders, sort the tree, and create a page.

ToDo this
Create a pageNew Wiki page in the tree header, or in a folder's actions menu. A / in the path creates folders, as in runbooks/nightly-etl.
RenameRename in the item's actions menu. Save the page first if it has unsaved changes.
MoveDrag the item onto a folder, within the same workspace
DeleteDelete in the actions menu, or select several items and delete them together
Find a pageType in Search Wiki pages... to match names and content, or Filter by tags
SortSort by name, newest or oldest, folders or files first

Dagu adds .md to a page name without it. A page and a folder cannot share a path, so runbook.md and runbook/ cannot exist side by side.

A page can start with YAML frontmatter. title replaces the file name in the tree, and tags, a list or a comma-separated string, feed Filter by tags:

markdown
---
title: Nightly ETL runbook
description: What to do when nightly-etl fails
tags: [etl, on-call]
---

Edit a Page ​

Opening a page adds it as a tab. Switch between Edit and Preview, and save with Save or Cmd+S / Ctrl+S. The preview renders Mermaid diagrams, and Outline under the tree lists the page's headings.

Unsaved edits are kept in browser storage, per user, server, and workspace, so a reload does not lose them. When another user or Git Sync changes an open page, the editor shows External Changes Detected and lets you keep your edits or reload.

Start From a Template ​

New Wiki page offers built-in templates: Runbook, Postmortem, Architecture Decision, and Onboarding. Pages under _templates/ appear there too, from the default workspace and the target workspace.

Restore an Earlier Version ​

Each save keeps the previous content as a revision, up to 20 per page. History lists them, newest first, and compares one with the current page. Load into editor puts a revision in the editor as an unsaved change; save to restore it.

WriteResult
[[runbooks/nightly-etl]]Link to a page
[[runbooks/nightly-etl#if-a-run-fails]]Link to a heading
[[runbooks/nightly-etl|the runbook]]Link with your own text
[[dag:nightly-etl]]Link to a workflow
![[chart.png]]Show an attachment of this page

Backlinks lists the pages that link to the open page. Links in code blocks do not count.

Paste or drop a file into the editor to attach it to the page, up to 10 MiB. Dagu inserts the Markdown for it: an image shows inline, other files as a link.

Workspaces ​

Wiki follows the workspace selector:

SelectionPages shown
All workspacesEvery workspace you can access
Default workspacePages outside any named workspace
A named workspaceThat workspace's pages

Under All workspaces, New Wiki page in the tree header creates a page in the default workspace, and in a folder's actions menu, in that folder's workspace. Pages cannot move between workspaces.

On disk, default pages sit at the root of paths.wiki_dir, and each named workspace has a subdirectory. Renaming a workspace moves its pages. A workspace that still has pages cannot be deleted. See Workspaces.

The sidebar search filters the tree by name and content. The Search box in the navigation also returns matching pages with the lines that match, within the workspaces you can access.

Use Wiki From a Workflow ​

On a workflow's page, the Wiki tab lists the pages in the DAG's folder and the pages that link to it with [[dag:<name>]]. New runbook creates a page in that folder.

A running step reads the same folder at ${context.paths.wiki_dir}, or DAG_WIKI_DIR in its environment:

yaml
steps:
  - id: print_runbook
    run: cat "${context.paths.wiki_dir}/runbook.md"

For a DAG named operations, the folder is <paths.wiki_dir>/operations, or <paths.wiki_dir>/platform/operations in the platform workspace. See Runtime Variables.

Edit Pages From an AI Agent ​

MCP clients connected to Dagu search, read, create, and edit pages with dagu_read and dagu_change. They use the same permissions, workspaces, Git Sync write policy, and audit log as the Web UI. See the MCP Quickstart and Tools.

Storage and Git Sync ​

Pages live under paths.wiki_dir (DAGU_WIKI_DIR), <paths.dags_dir>/wiki by default. See Configuration.

Git Sync pulls pages and attachments from wiki/ in the repository and publishes Web UI edits back. See its repository layout.

Permissions ​

Anyone with access to a workspace can read its pages. Creating, saving, renaming, moving, and deleting need the developer role or higher, and permissions.write_dags.

Dagu is open source under the GNU General Public License v3.0.