Knowledge Base

Documentation your AI agent can search semantically

Hierarchical Markdown pages with a WYSIWYG editor, image uploads to MinIO, and semantic search via pgvector + OpenAI embeddings. A wiki designed for humans and AI agents alike.

Wiki page tree with nested hierarchy

Key features

Page hierarchy

Page tree with parent/child relationships. Breadcrumbs for navigation. Child pages displayed on parent page.

Child page order

A new page without an explicit position goes last among its siblings, so the tree keeps the order pages were added in. The AI agent sets the order of one parent's child pages with a single reorder_wiki_children call, and the monolynx wiki reorder command does it from the terminal. The list must hold exactly all child pages; a missing, extra or duplicate id ends with an error and nothing is saved.

WYSIWYG editor (EasyMDE)

Markdown with live preview, formatting, and drag & drop image insertion. Dark theme matching the UI.

Image uploads to MinIO

Images stored in object storage (MinIO). Path: {slug}/attachments/{filename}. Served directly.

Semantic search (RAG)

pgvector with HNSW index + OpenAI text-embedding-3-small. Ask in natural language — system finds best matching fragments.

Chunking with overlap

Pages split into ~500 token chunks with overlap. Tokenization via tiktoken. Each chunk has its own embedding.

Author tracking

Who created the page, who last edited. Full change transparency.

Graceful degradation

No OpenAI key? Wiki works normally — semantic search is simply disabled.

Markdown rendering

render_markdown_html() with Tailwind prose prose-invert. Same renderer used in Scrum tickets and comments.

Public publishing (blog)

A "public page" checkbox on the wiki form exposes content without login at /blog/{slug}. Only an account with the blog permission, granted by a superuser, can change it; other accounts see the state read-only. Page attachments (images, PDFs) are served safely — MIME allow-list for inline (PNG/JPEG/GIF/WebP), everything else as attachment with an X-Content-Type-Options: nosniff header.

Stable blog post URLs and dates

A post's URL does not change when the page title changes, and a previous URL redirects (301) to the current one. The /blog/ list orders posts by publication date, so editing an older post does not reshuffle it. The list teaser and the meta description come from the post description, or from a content summary when there is none.

Blog post blocks

You write a post in plain markdown and the page gets ready-made blocks: callouts (note, tip, warning) and TL;DR, a quote with its author, an image with a caption, code with a file name and a copy button, heading anchors and footnotes. The server generates the block HTML and sanitizes the author's content, so custom scripts, classes and ids never reach the page.

Structural blog post blocks

A few lines of markdown give a post an accordion FAQ, steps, statistics, a comparison table with a highlighted column, a collapsible section, a gallery, a CTA button and a glossary. YouTube and Vimeo videos load only after a click, so the page sends no request to the video service before that. From the FAQ, steps and videos the server prepares structured data for search engines and AI models.

Graphic blog post blocks

A markdown table becomes a bar, line or pie chart that the server draws as SVG, a description with Mermaid code becomes a diagram, and a console block becomes a terminal window with a typing animation. Animated schematics come from a closed list of components kept in the repository, so a post never contains scripts or styles. The source of every graphic is text: an AI model reading the markdown version and a reader with JS turned off get the data, the description or the code. Charts and schematics work in the light and the dark theme, and animations turn off when the system asks for reduced motion.

Post page and blog list for readers

A post has a header with tags, author, dates, reading time and cover, plus a table of contents built from H2-H3 headings that highlights the current section (from 3 headings up). Below the content are links to the other language versions and up to 3 related posts in the same language. The /blog/ list filters by tag and language (?tag=, ?lang=), and pagination keeps the filters.

Blog for feed readers and AI models

The blog has Atom, RSS and JSON Feed feeds with the full content of the 20 newest posts, and readers find them in the page head. The /llms.txt file lists the newest posts live with markdown addresses, and /llms-full.txt holds all public blog content in one document. Post translations are linked in the sitemap, and AI crawlers (GPTBot, ClaudeBot, PerplexityBot and others) may read the blog in robots.txt without getting into the dashboard, the API or MCP.

Blog post lint for AI

The lint checks a post before it is published: a description of 50-300 characters, a TL;DR block with 2-5 points at the top, image alt text, the content of graphic blocks, heading order, descriptive link texts, the verified date and the translation. The result is a list of problems with a line number and a level (error, warning, info) and a score from 0 to 100. The lint_blog_post MCP tool, the REST API and the monolynx blog lint command return the same result.

Publishing a post behind the lint gate

Publishing a post is a separate operation: the lint runs first, then the page goes public at /blog/{slug}. A post with lint errors stays private and the refusal names the rules to fix; the force parameter publishes anyway. Unpublishing takes the post and its markdown version offline (404), while the publication date and the slug stay, so publishing again restores the same address. The publish_blog_post and unpublish_blog_post MCP tools, the REST API and the monolynx blog publish and monolynx blog unpublish commands do it. Publishing, unpublishing and changing the metadata need the blog permission on the user account: only a superuser grants it, and a role in the project, the owner's included, is not enough.

Post metadata on the wiki form

A "Blog post" section on the page edit form sets the address (slug), a description with a character counter, the author, tags, language, the link to a translation, a cover picked from the page attachments and the verified date. A validation error shows a message and keeps the values you typed, and a regular wiki page with an empty section does not become a post. Only an account with the blog permission sees the section.

Draft preview before publishing

A "Post preview" button on the wiki page opens the draft in the look of the public blog, with blocks, the table of contents and reading time, before you tick "public page". Only a signed-in user with wiki read permission sees the preview, and its address carries a noindex header and never appears in the sitemap, the feeds or /llms.txt.

The blog-post skill and a guide for any model

The /monolynx:blog-post skill takes a post from the brief through the outline, the draft and the lint to the preview, and publishes only after your explicit consent; in a background session it ends at the draft. The public guide /blog-authoring.md describes the block syntax, the lint rules and the connector operations, so a model without the plugin can write a post in this format too.

Inserting blocks and images in the editor

An "Insert block" menu in the editor toolbar inserts a ready syntax template of every post block at the cursor, and the list of blocks comes from the registry on the server. An image uploaded in the editor becomes a page attachment and, once the post is published, shows to a reader without login.

Large attachments through a one-time URL

The AI agent does not have to encode a file in base64: request_attachment_upload issues a one-time upload address valid for 15 minutes, and the agent sends the file with a plain curl -T. The server checks the size limit and the file type, then attaches the file to the wiki page, wiki file, ticket or settlement on its own. For files above about 50 KB this is the recommended path; the base64 tools work as before. API v2 accepts the same files as multipart, and the CLI has monolynx wiki attach and monolynx wiki file upload.

Moving pages in the tree

Move a page under another parent or to the top level through MCP (update_wiki_page with parent_id), API v2 and the CLI (monolynx wiki update --parent). Subpages move with the page, and the ID, slug, content and attachments stay unchanged. The server refuses to move a page under itself or under one of its subpages.

Partial page edits

The AI agent fixes part of a page without sending the whole content: patch_wiki_page takes a list of "old text -> new text" edits, applies them in order and saves all of them or none. The fragment must be unique in the content, unless the edit is meant to replace every occurrence. An optional expected_updated_at marker reports a conflict when someone changed the page in the meantime. The REST API and the monolynx wiki patch command do the same.

Backlinks independent of page order

The server remembers [[slug]] references to pages that do not exist yet, so a page created after the pages that link to it has all its backlinks right away. Renaming a slug and purging a page from the trash update the links too. After an import or a migration rebuild_wiki_links recomputes the backlinks of the whole project from page content and returns how many were added and removed; the REST API and the monolynx wiki rebuild-links command do the same.

Page tree import and bulk moves

The AI agent creates a whole documentation tree with one bulk_create_wiki_pages call (up to 50 pages and 2 MB of content), with child pages pointing at a parent from the same batch. bulk_move_wiki_pages moves up to 100 pages at once. Both operations are atomic: an error in one item saves nothing. The monolynx wiki import command turns a directory of .md files into a page tree (subdirectories become child pages), and monolynx wiki bulk-move moves pages from a list of pairs or a JSON file.

Stable page slug

A page slug is derived from the title only on creation, and changing the title leaves it alone, so wikilinks do not break. Set your own slug on creation and edit: the slug parameter of create_wiki_page and update_wiki_page, the slug field in REST API v2 and the --slug flag of monolynx wiki create and monolynx wiki update. The old slug stays as an alias: [[old-slug]] and [text](old-slug) links still reach the page, the wiki audit does not count them as dead, and /dashboard/<project>/wiki/by-slug/<slug> redirects (301). Changing the slug of a public page requires the blog permission.

Page rename with link rewriting

rename_wiki_page changes the title and slug of a page and rewrites [[old-slug]] and [text](old-slug) references on every page of the project to the new slug. Code blocks and inline code stay untouched. The dry_run mode lists the pages and the number of links without saving, and the old slug stays as an alias. The wiki keeps no version history, so run the preview before saving. The REST API and the monolynx wiki rename command do the same.

Trash and page restore

A deleted page goes to the trash together with its subpages. After 30 days it expires: it is deleted for good by the admin command make purge-wiki-trash (all projects) or when the project trash list is opened. Before deleting, dry_run shows what will go: the pages of the subtree and the number of backlinks that will stop working. list_deleted_wiki_pages shows the trash and restore_wiki_page brings a page back with its subpages; a public page comes back private and has to be published again. The slug of a page in the trash stays taken. The REST API and the monolynx wiki delete --dry-run, monolynx wiki trash and monolynx wiki restore commands do the same.

How it works

1

Create a root page

E.g., "System Architecture". Use the EasyMDE editor to write in Markdown.

2

Add child pages

Create children, e.g., "Database Design" under "Architecture". Tree builds automatically.

3

Insert images

Drag images into the editor — they auto-upload to MinIO and insert as Markdown.

4

Search semantically

Type a question in the search field — system finds best matching page fragments based on meaning, not just keywords.

5

AI searches wiki via MCP

Your AI agent can read any page and search semantically — as if it were a team member.

AI & MCP

Wiki is the heart of Monolynx's AI-first approach. Your AI agent searches documentation, manages attachments and project files - 22 MCP tools.

Available MCP tools

list_wiki_pages Full hierarchy tree with slug, parent_id and depth; the parent_id filter returns only the direct children of a page
get_wiki_page Page content by ID or slug + breadcrumbs for navigation
create_wiki_page New page with optional parent_id (child page) and an explicit slug, placed last among its siblings without position
update_wiki_page Edit content, title, position and slug (the old slug stays as an alias; a title change keeps the slug); move under another parent (parent_id) together with subpages
patch_wiki_page Partial content edit with a list of old_string -> new_string replacements, atomic, with optional conflict check
delete_wiki_page Move a page and its subpages to the trash (restorable for at least 30 days); dry_run returns the page list and the number of dead backlinks without writing; LLM Wiki system pages cannot be deleted
list_deleted_wiki_pages Trash contents: deleted pages with deletion date, page count and the date after which they can be purged
restore_wiki_page Restore a page from the trash together with its subpages; a public page comes back private
reorder_wiki_children Set the order of a parent's child pages (full list of child ids, no parent_id = top-level pages)
bulk_create_wiki_pages Up to 50 pages (2 MB of content) in one call, parent by parent_id or a parent_ref from the batch; atomic, embeddings after the save
bulk_move_wiki_pages Up to 100 page moves in the tree in one call (null = top level); atomic, public pages excluded
search_wiki Semantic RAG search (if embeddings are active)
add_wiki_page_attachment Add attachment to wiki page (base64)
list_wiki_page_attachments List wiki page attachment metadata (no content)
get_wiki_attachment Get wiki page attachment content (base64)
add_wiki_file Add global file to wiki repository
get_wiki_file Get global file content (base64)
update_wiki_file Update file description or name
list_wiki_files List global files in wiki repository
request_attachment_upload One-time upload URL (15 min) for a wiki page, wiki file, ticket or settlement; send the file with curl -T, no base64
rebuild_wiki_links Recomputes the project's backlinks and unresolved references from page content, returns how many were added and removed (repair after an import or migration)
rename_wiki_page Change a page's title and slug and rewrite wikilinks on the project's pages; dry_run returns the pages and link count without saving
EasyMDE editor with Markdown preview and image uploads

Technical details

Embeddings
OpenAI text-embedding-3-small (1536 dimensions). Chunking via tiktoken (gpt-4o model), ~500 tokens with overlap.
Search
pgvector with HNSW index, cosine similarity. Results sorted by relevance with snippet preview.
Content storage
Markdown in MinIO ({slug}/pages/{page_id}.md). Metadata (title, hierarchy, position) in PostgreSQL.
Graceful degradation
OPENAI_API_KEY='' disables embeddings. Wiki works without semantic search.

Other modules

Try Monolynx

Free, open source, self-hosted. Deploy on your infrastructure in minutes.