Wiki 

    This feature is experimental. It can change between releases.

    A wiki is a set of notes that an AI agent writes and keeps up to date for you. The idea comes from a method that Andrej Karpathy described. You collect raw sources, such as web pages and articles. The agent reads each source and writes wiki pages that sum it up. Over time the pages link to each other and form a body of knowledge about your topics.

    The method has three parts:

    • Sources are raw notes. Nobody changes them after they are saved. They are the ground truth.
    • Wiki pages are notes that the agent writes and updates. Each page says which sources it draws on.
    • The schema note is a normal note with the rules. You and the agent both follow it.

    The wiki uses the Open Knowledge Format (OKF) v0.3. OKF is an open format for a folder of Markdown pages with YAML properties. Other tools and agents can read a Kimün wiki without Kimün. To move the wiki to another tool, copy the wiki folder.

    Kimün does the parts that need no judgment. It saves web pages as sources, protects the sources, and checks the wiki for facts that are wrong. The agent does the parts that need judgment, such as writing pages. Kimün makes no call to an AI model for the wiki.

    A vault that is not a wiki does not change. Kimün treats a vault as a wiki only after you set it up.

    What Kimün provides 

    Kimün supports this method as a built-in feature. It gives you a frame for a knowledge base that an AI agent builds and maintains. You search it and ask it questions later.

    • Layout: one command, one click in Preferences, or one key sequence builds the folders and the notes. You choose the folder names.
    • Skills: the kimun-wiki skill teaches an agent the routine. The agent learns to save a source, update pages, answer from the wiki, and check it.
    • Tools: an agent can save a web page as a source, stamp a source, list the pages, check the wiki, and rewrite the index notes. The same steps work from the command line.
    • Protection: Kimün refuses edits to the sources folder, so the sources stay as you saved them.
    • Retrieval: the pages are normal notes. You find them with search and Ask. Search also matches other forms of a word and the words of note cards. Search by meaning is an optional build feature, see Search by meaning. Ask knows which notes are pages and which are sources. It warns you about a page with a known problem.

    The agent writes the pages and judges the facts. Kimün saves, protects, and checks. The agent keeps the pages tidy and linked, so the knowledge base is easy to search.

    Set up 

    Run this command in a workspace:

    kimun wiki init

    The command creates these items:

    • The file .kimun/wiki.toml. It declares the vault as a wiki. It is hidden, so it never appears as a note.
    • The folder wiki, for the pages.
    • The folder wiki/sources, for raw sources. It sits inside the wiki folder, so a copy of the wiki folder takes the sources with it.
    • The note wiki/schema.md, with starter rules.
    • The note wiki/log.md, where the agent writes one entry for each piece of work.
    • The file wiki/index.md, the first index note.

    The command prints one line for each item. The word created means that it made the item. The word kept means that the item was already there. The command never overwrites the schema note, the log, the sources, or your pages, so you can run it again at any time. It does rewrite the index.md files, and it backs up an old one before it changes it.

    To use other folder names, add the flags:

    kimun wiki init --sources notes/wiki/raw --wiki notes/wiki

    The log note and the schema note go inside the wiki folder. Keep the sources folder inside the wiki folder, as in this example. If you put it outside, wiki check reports sources_outside_wiki.

    If the wiki folder already has an index.md file, the command backs it up before it writes its own. The settings screens of both apps do the same.

    The schema note has a Folders section. It says that the wiki is flat until the first regroup. After that, each page goes in the subfolder of its topic and gets a link on the group page of that subfolder.

    Edit wiki/schema.md to fit your needs. It tells the agent how to name pages, which properties to set, how to cite a source, and how to ingest a source. It also shows a full example page. An AI agent reads it before it writes. An agent with no Kimün tools can write a valid page from it.

    The declaration file 

    The file .kimun/wiki.toml holds the rules that Kimün can check. This is the default file:

    sources = "/wiki/sources"
    wiki = "/wiki"
    log = "/wiki/log.md"
    schema = "/wiki/schema.md"
    required_properties = [
        "type",
        "description",
        "sources",
        "generated",
    ]

    The keys have these meanings:

    KeyMeaning
    sourcesThe folder of raw sources. Kimün protects this folder.
    wikiThe folder of wiki pages.
    logThe note where the agent logs its work. Its file name must be log.md.
    schemaThe note that holds the prose rules.
    required_propertiesThe properties that every wiki page must have. Every page also needs type. Kimün requires it in all cases.

    Each rule has a limit. The sources folder and the wiki folder must be different. The sources folder can be inside the wiki folder, but the wiki folder cannot be inside the sources folder. Neither can be the vault root. The log note and the schema note must be different notes, and neither can be inside the sources folder.

    An unknown key is an error, so a typo never turns a rule off silently. If the file has a mistake, the commands tell you what to change.

    Wiki pages 

    A wiki page is a Markdown note with a YAML frontmatter block. Frontmatter is the block of properties between two --- lines at the top of the note. A wiki page must use YAML. A TOML block (+++) cannot hold the lists and maps of the format. So wiki check reports each required property of such a page as missing.

    This is the page wiki/spaced-repetition.md:

    ---
    type: Concept
    title: Spaced repetition
    description: Reviewing at growing intervals beats cramming for long-term recall.
    tags: [learning, memory]
    generated: { by: claude-code/opus-5.5, at: 2026-12-03T10:00:00Z }
    sources:
      - resource: sources/wozniak-supermemo.md
        id: wozniak-supermemo
    keywords: [srs, anki]
    questions: [what interval works best?]
    ---
    # Spaced repetition
    
    Reviews at growing intervals keep a memory longer.[^wozniak-supermemo] See also [forgetting curve](forgetting-curve.md).
    
    [^wozniak-supermemo]: Wozniak on SuperMemo.

    The properties have these meanings:

    PropertyMeaning
    typeWhat the page is about, in free text, such as Concept, Person, Project or Topic. Every page needs it.
    titleThe name of the page. Without it, Kimün and other tools use the file name.
    descriptionOne sentence that says what the page covers. The index notes and the catalogue show it.
    tagsA list of short labels.
    generatedThe author of the last change (by) and its time (at).
    sourcesThe source notes that the page draws on.
    keywords, questions, entitiesOptional words that help Kimün search find the page. Other tools ignore them.

    Kimün keeps every other property of a page as it is. Other tools do the same with the properties that only Kimün uses.

    The generated stamp 

    generated has two keys. by names who made the change: <producer>/<version> for an agent, such as claude-code/opus-5.5, or human:<id> for a person. at is the time of the change in ISO 8601 with an offset, such as 2026-12-03T10:00:00Z. A date alone, such as 2026-12-03, also works.

    The agent writes generated each time it creates or changes a page. When Ask changes a wiki page, Kimün sets it, with by: kimun/<model>. The editor never sets it. A page that you edit by hand keeps its last stamp.

    Sources and citations 

    Each entry of sources has a resource and an id. The resource is the path of the source note, relative to the page. From a page in a subfolder, the path starts with ../. The id is a short label, usually the file name of the source without its extension.

    The text of the page cites a source with a footnote whose label is the id, such as [^wozniak-supermemo]. Kimün does not compare the footnotes with the entries.

    Wiki pages link to each other with Markdown links and paths relative to the page, such as [forgetting curve](forgetting-curve.md) or [bees](../bees/bees.md). A path in a wiki file never starts with /. For other tools, a leading / means the wiki folder. For Kimün, it means the vault root.

    Other tools cannot follow a wikilink, so a wiki page does not use them. wiki check reports each one as wikilink_in_wiki. The page still works in Kimün.

    If a file name has a space, write it as %20 in a Markdown link, such as [my page](my%20page.md). Kimün decodes the link before it looks for the note. Links to attachments and images are decoded the same way, so ![photo](my%20pic.png) shows my pic.png. A wikilink is not decoded, and neither is an embed such as ![[my%20pic.png]]. Some file names hold a % and two hex digits, such as a%41.md. In a link to such a note or file, write the % as %25, as in a%2541.md.

    Move a page 

    When Kimün moves a page, it rewrites the links to it and the relative links in it. It also rewrites the resource paths of the moved page, so its sources stay correct.

    A rename or a move of a source note rewrites the resource entries of the pages that cite it. This holds for a source file such as a PDF or an image too.

    A rename or a move of a folder rewrites the resource paths of the notes inside it. It also rewrites the pages outside the folder that cite sources inside it. A folder move does not rewrite the body links of the notes in it. It does not refresh the index notes either. When the moved folder holds pages, wiki check then reports stale_index. Run kimun wiki index to fix it.

    A rename or a move of the sources folder, the wiki folder, the log note, or the schema note also changes .kimun/wiki.toml. The file then names the new place. The terminal app and the desktop app show a notice, such as Updated .kimun/wiki.toml to follow the move: sources is now /wiki/raw. A move of the wiki folder changes each declared path inside it, and the notice names each one.

    Kimün refuses a move that would make the declaration invalid. Nothing moves, and the message starts with This move would break .kimun/wiki.toml. For example, Kimün refuses to move the wiki folder into the sources folder. It also refuses to move the log note into the sources folder. Source protection then refuses each new line in the log.

    Kimün writes the declaration file again after such a move. Comments that you typed in the file are lost. Kimün does not change the schema note. Its text can still name the old folder. If that matters to you, edit the schema note.

    The sources list of a page can have an item that is not an entry with keys, such as a plain line of text. Kimün then leaves that page alone. wiki check reports missing_source on it. Fix the resource by hand.

    Index notes 

    Kimün writes an index.md file in the wiki folder and in each of its subfolders that holds pages. The sources folder gets none. Other tools and agents start at the index.md file of the wiki folder to find the pages. Kimün writes the files from its own index. No AI model is involved.

    This is the index.md file of a small wiki:

    ---
    okf_version: "0.3"
    title: "wiki"
    ---
    
    # Pages
    * [Forgetting curve](forgetting-curve.md) - Memory of new facts fades fast without review.
    * [Spaced repetition](spaced-repetition.md) - Reviewing at growing intervals beats cramming for long-term recall.
    
    # Topics
    * [Bees](bees/) - How to keep bees and read the hive.
    • The # Pages section has one line for each page of the folder, sorted by title. The line shows the description of the page.
    • The # Topics section has one line for each subfolder. The line shows the description of the group page of that subfolder.
    • Only the index.md file of the wiki folder has frontmatter, with okf_version and title.
    • A folder with no pages gets no index.md file. Kimün deletes one that it finds there.
    • Kimün writes the file names in the index links and the resource paths in lower case. Other tools on a disk that tells letter case apart need the exact name, so name your wiki files in lower case.

    If you add your own text to an index.md, Kimün backs the file up before an index run replaces or removes it. The command line, the MCP tools and Ask actions make this backup. A line in Kimün's entry format counts as Kimün's own, so a change to such a line gets no backup. A key that you add to the frontmatter of the root index.md gets a backup. See Backups.

    Kimün rewrites the index notes after each change that it makes in the wiki. This includes Ask actions, a regroup, wiki init, the settings screens, and every MCP tool that writes a note in the wiki folder. A run writes only the files whose text changes. After an Ask action or an MCP tool, Kimün rewrites only the index notes of the folder of the changed note and of the folders above it. wiki stamp changes only sources, so it rewrites no index note.

    These changes do not rewrite the index notes:

    • A save in the editor.
    • The file actions of the terminal app and the desktop app, such as new, rename, move, and delete.
    • The kimun note commands of the command line.

    After such a change, run this command to rewrite the index notes:

    kimun wiki index

    The command prints each file that it wrote or deleted. The MCP tool wiki_index does the same. If an index note does not match the pages, for example after a hand edit, wiki check reports stale_index.

    Do not name a page index or log. Those names belong to the index notes and the log.

    The log 

    The log note is wiki/log.md. Its file name must be log.md, because other tools look for that name. wiki check reports another name as log_name.

    The log has no frontmatter. Each day has a heading ## YYYY-MM-DD, and the newest day comes first. Each entry is one bullet that starts with *:

    # Wiki log
    
    ## 2026-12-03
    
    * Ingest of [Wozniak on SuperMemo](sources/wozniak-supermemo.md). Created [spaced repetition](spaced-repetition.md).
    
    ## 2026-12-01
    
    * **Creation**: Set up the wiki.

    A new entry goes first under today's heading. If the heading is missing, it goes above the other days.

    A link from the log or from an index note does not save a page from the orphan rule. Another page must link to it.

    Sources are protected 

    When an automated tool changes a note in the sources folder, Kimün refuses. This holds for the kimun commands and for the MCP server. These actions on an existing source fail:

    • Overwrite or replace text
    • Append
    • Move or rename
    • Delete

    This is the message:

    Error: /wiki/sources/bees.md is in the sources folder that .kimun/wiki.toml protects. Automated edits cannot change it.

    The command exits with code 2. Creating a new source is allowed. You can still edit a source yourself in the editor, because the rule guards against a mistake of the agent and not against you.

    Save a web page 

    The terminal app and the desktop app can also clip a page. See Clip a web page and Clip a web page. In a wiki vault, the clip defaults to a source. One toggle makes it a plain note.

    kimun wiki clip https://example.com/article

    The command fetches the page, keeps the main content, converts it to Markdown, and saves it as a new source. It prints the path, the number of words that it saved, and the title:

    Saved /wiki/sources/2026-11-28-example-domain (28 words)
    Title: Example Domain

    If the page has 100 words or fewer, the command adds a line that starts with Warning. A login page or a block page that a site sends as a normal page is usually this short. Open the note and make sure that it has the text you wanted.

    The note name is the date and a short form of the title. The note starts with these properties:

    PropertyValue
    source_urlThe address you gave.
    ingested_atThe date of the clip.
    content_typeThe kind of content, such as text/html.
    content_hashA fingerprint of the text.

    The first heading of the note is the title of the page. For a Markdown page, the title is the first of these that exists: the title of its front matter block, its first heading, or the file name of the address. For a plain text page, the rule is shorter. If the text starts with a front matter block, the title is its title. Otherwise the title is the file name of the address, such as rfc2616.txt. If the address has no file name, the title is the host. Kimün removes a front matter block from the saved text of both kinds, because the note has its own properties.

    If you clip the same address again, Kimün saves a second note with the ending _0. It does not check for duplicates. Look at the sources folder first.

    What the command accepts 

    The command protects your computer, because an AI agent can choose the address. These limits apply:

    • The address must start with https. Every redirect must lead to https too. A page can redirect at most five times.
    • The address must be on the public internet. Addresses on a private or local network are refused, for example localhost or 192.168.1.5. Kimün checks every connection, so a redirect cannot lead to a private address.
    • The page can have at most 20 MB. An HTML page can have at most 2 MB of source text.
    • Loading must finish in about a minute. The conversion has its own time limit.
    • The page must be HTML, Markdown, or plain text. Kimün saves Markdown and plain text as they are. Other kinds, such as PDF files, are refused.
    • Kimün reads the page as UTF-8. A page in another encoding can show wrong characters.
    • A page that needs a login, or that builds its text with JavaScript, gives little or no content. Kimün does not run JavaScript.

    Kimün does not use a proxy from your environment.

    When a clip fails, the command exits with code 2 and gives one of these messages:

    MessageCause
    Only https addresses can be clipped: ...The address starts with http or another scheme.
    The host ... is on a private or local network and is not allowed.The address is not public.
    This is not a usable web address: ...The address does not parse.
    This vault has no wiki declaration. Run kimun wiki init.You did not set up the wiki.
    The page is larger than the limit of N MB.The page is over a size limit.
    The page took too long to load.A time limit passed.
    The address redirected too many times.The page redirected more than five times.
    The server answered with status N.The server gave an error, such as 404. For 401, 403, 429, and 451, the message adds that some sites refuse automated requests.
    This kind of content cannot be clipped: ...The page is not HTML, Markdown, or plain text.
    The page has no readable content.Kimün found no text.
    The network request failed: ...The connection failed.

    Check the wiki 

    kimun wiki check

    The command reads the index and checks the notes against the rules. It never calls an AI model, so it is fast and gives the same result on every computer. If you changed notes outside Kimün, run kimun workspace reindex first.

    Each finding is one line. It has the level, the rule, the note, and a message:

    problem  unresolved_link  /wiki/bees  The link "nowhere" points to no note.
    info  unstamped  /wiki/sources/bees  The source has no content_hash, so a change to it cannot be found.
    7 problems, 1 info, 4 notes checked.

    A vault without a wiki declaration gets the first three rules. A wiki gets all of them.

    RuleWhat it findsLevel
    orphanA note that no other note links to.problem
    unresolved_linkA link that points to no note. This is also a page that is missing.problem
    ambiguous_linkA link that matches more than one note.problem
    missing_propertyA wiki page that lacks a required property. A page whose properties do not parse gets one finding that says so.problem
    invalid_propertyA property with a wrong value. Examples are an empty type, a generated with no by, and an at that is not a date or a time.problem
    missing_sourceAn entry of sources with no resource, or with a resource that names no note. A resource with a web address, such as https://..., is never a finding.problem
    source_modifiedA source whose text no longer matches its content_hash.problem
    stale_pageA page whose generated time is before the ingested_at date of a source that it cites. If at is a date alone, the same day is not stale.problem
    stale_indexAn index.md file that does not match the pages, that is missing, or that sits in a folder with no pages. Run kimun wiki index.problem
    log_nameA declaration whose log note is not named log.md.problem
    unstampedA source with no content_hash, so Kimün has nothing to compare.info
    catalogue_too_largeA group with more than 200 pages.info
    long_descriptionA description with more than 200 characters.info
    missing_group_pageA subfolder of the wiki without a group page, or a group page without a description.info
    wikilink_in_wikiA wikilink in a wiki page. Other tools cannot follow it.info
    sources_outside_wikiA sources folder outside the wiki folder. A copy of the wiki folder then misses the sources.info

    Put quotes around a property value that has a colon and a space, such as description: "Mites: how to count them". Without the quotes, the whole properties block fails to parse. Kimün then reports one missing_property finding that says so.

    Give sources and wiki pages different names. Then a search by name finds one note only.

    If the command finds a problem, it exits with code 1. An info finding alone gives code 0. To get the findings as data, add --format json:

    kimun wiki check --format json

    The JSON has the fields declared, notes_checked, and findings. Each finding has rule, severity, path, and message.

    To list only the notes that have a finding, add --format paths. The command prints each path once, one on each line. If the wiki is clean, it prints nothing. The exit code stays the same.

    Kimün cannot find contradictions, claims that are out of date, or topics that the wiki covers too thinly. These need judgment. The AI agent checks them with the skill.

    Stamp sources 

    When a source has a content_hash, it has a baseline. The command wiki clip writes the hash for you. A source that you or a sync tool created has none. Run this command to add the properties:

    kimun wiki stamp

    The command writes content_hash and ingested_at into every source that lacks a hash, and prints the path of each one. It uses the current text as the baseline and today as the date. If it cannot stamp a source, it prints that source and exits with code 1. When all sources have a hash, the command prints Nothing to stamp.

    This is the one write that protection allows on an existing source.

    The catalogue 

    kimun wiki catalogue

    If the wiki has up to 200 pages, the command lists each page with its path, title, type, and description. The type comes from the type property and the description from the description property. To change the limit, add --limit 50. For data, add --format json.

    If the wiki has more pages than the limit and its pages fall into two or more groups, the command gives an overview. The pages at the top of the wiki count as one group. The overview shows one line for each group:

    group /wiki/bees  42 pages  How to keep bees and read the hive
    group /wiki/honey  18 pages  titles: Harvest, Storage
    212 pages in 9 groups. List one group with the group argument.

    A group is a subfolder of the wiki folder. A line shows the description of the group page. If the group page has no description, the line lists page titles instead. A description shows at most 200 characters.

    To list the pages of one group, add its folder path. Use the folder path from the overview line.

    kimun wiki catalogue --group /wiki/bees

    If the group has more pages than the limit, the command cuts the list. The last line then says how many pages it shows. For example, --group /wiki/bees --limit 20 ends with 20 of 42 pages shown. If the group has no pages, the command prints No pages in group /wiki/bees. as its only line.

    If the wiki has more pages than the limit but no groups, the command never gives an overview. A flat wiki has one group only. The command lists the first pages up to the limit and ends with N of M pages shown, with the full total.

    The MCP tool wiki_catalogue takes the same choice as the argument group.

    Groups and group pages 

    A group page is a note with the name of its folder, such as /wiki/bees/bees. It has type, description and generated. It needs no sources. It links to each page of its group. The agent writes it. Group pages never show as orphans.

    A parent page is a wiki page directly at the top of the wiki folder that links at least one group page. Like a group page, it needs no sources, and it never gets an orphan finding. A split leaves the old group page at the top of the wiki as a parent page.

    The group page gives the overview and the index notes their text. A group page without a description makes the overview line fall back to page titles, and wiki check reports missing_group_page.

    Regroup a large wiki 

    If a group has more than 200 pages, wiki check reports catalogue_too_large. A regroup splits the group into subfolders by topic. When you lint the wiki, Ask proposes it. The agent can also do it with the kimun-wiki skill.

    The regroup follows these rules:

    • Kimün moves each page itself, so links to it and its sources keep working. An agent that works through MCP uses the tool move_note for the same job.
    • Each note that Kimün changes is backed up first.
    • Folders never nest. A group is one folder below the wiki folder.
    • If a split replaces an old group page, Kimün moves it to the top of the wiki. It stays there as a parent page. It never deletes it.
    • If a note anywhere in the vault already has the name of a new group page, Kimün refuses that folder. A link to that name then becomes ambiguous.
    • Kimün never merges groups back.

    Run the check on a schedule 

    Kimün has no scheduler, because the app is not always running. Use the scheduler of your system, or the scheduler of your AI agent.

    On Linux and macOS, add a line to your crontab with crontab -e. This line checks the wiki every Monday at 8:00 and saves the result:

    0 8 * * 1 kimun wiki check --format json > "$HOME/wiki-report.json"

    Cron uses a short path. If it cannot find kimun, write the full path of the program, which which kimun shows. The command uses the current workspace. When there are problems, the exit code is 1. Use it to run a command that tells you:

    0 8 * * 1 kimun wiki check > "$HOME/wiki-report.txt" || notify-send "The wiki has problems"

    With an AI agent that has a scheduler, give it a task such as this one:

    Every Monday, call wiki_check. Fix each problem that it names. Then tell me what you fixed and what is still open.

    In the desktop app 

    The desktop app sets up a wiki and changes its folders. It has no screen for the other wiki commands.

    To set up a wiki, open Preferences and choose Wiki. The section comes after AI provider. It shows five fields:

    • Sources folder
    • Wiki folder
    • Log note
    • Schema note
    • Required properties

    The fields start with the defaults of kimun wiki init. Separate the required properties with commas. If you change the wiki folder, the log note and the schema note follow it, unless you edited them.

    If the vault is not a wiki, the button reads Set up wiki. Click it to create the declaration, the folders, the two notes, and the first index note. Below the button, one line for each folder and note says Created or Kept.

    If the vault is a wiki, the fields show the saved declaration and the button reads Apply. Click it to save your changes. Apply creates what is missing and never moves a note. The old folders and their notes stay where they are.

    If you change the sources folder, the section tells you before you click. The old folder is no longer protected, and the new folder is. If the schema note exists, Apply does not change its text. Edit it so that it names the new layout.

    If the file .kimun/wiki.toml has a mistake, the section says so. It shows the words of the file reader in a box with a monospace font, so the pointer under the faulty text lines up. Fix the fields and click Set up wiki. The button replaces the file.

    If the vault already has a folder with the name of the sources folder, Kimün uses it as the sources folder. From then on, Kimün protects it from automated edits.

    The section acts at once. Save and Cancel do not apply to it, because the declaration is stored with your notes.

    To set up a wiki with the defaults, press Ctrl+Shift+B v w. You can also open the command palette and run +vault · set up wiki. The app tells you the result in one line:

    • Wiki set up: created ... lists the items that it made.
    • This vault is already a wiki. Change its folders in Preferences, Wiki. means that nothing was missing.
    • The wiki declaration has a mistake. Fix it in Preferences, Wiki. means that the file needs a repair.

    If you deleted the wiki folder by accident, open Preferences, Wiki and click Apply. You can also run +vault · set up wiki in the palette. Both make the folder again.

    In the terminal app 

    The terminal app sets up a wiki and changes its folders, like the desktop app. It has no screen for the other wiki commands.

    To set up a wiki, open Preferences and choose Wiki. The section comes after AI provider. It shows the same five fields as the desktop app:

    • Sources folder
    • Wiki folder
    • Log note
    • Schema note
    • Required properties

    Each field has a hint under its name. Separate the required properties with commas. If you change the wiki folder, the log note and the schema note follow it, unless you edited them.

    Press Tab or Down to move to the next field. The last stop is the button. Press Shift+Tab or Up to go back. Left and Right move the cursor in a field.

    If the vault is not a wiki, two lines explain what a wiki is. The button reads Set up wiki. Press Enter on it, or click it, to create the declaration, the folders, the two notes, and the first index note. Below the button, one line for each folder and note says Created or Kept.

    If the vault is a wiki, the fields show the saved declaration and the button reads Apply. Press Enter on it to save your changes. Apply creates what is missing and never moves a note.

    Press Enter in a field to apply too. After an apply, the keyboard focus moves to the button.

    If you change the sources folder, the section tells you before you apply. The old folder is no longer protected, and the new folder is.

    If the file .kimun/wiki.toml has a mistake, the section shows the words of the file reader in a box. Fix the fields and apply. The button replaces the file.

    The section acts at once. The Save command does not apply to it, because the declaration is stored with your notes. If you press Esc before you apply, the app drops the values that you typed.

    To set up a wiki with the defaults, press Ctrl+B v w. The leaf set up wiki is in the +vault group. It also shows in the command palette, the help, and the panel that lists your choices. The app tells you the result in one line. The lines are the same as in the desktop app.

    Ask and the wiki 

    When the vault is a wiki, Ask knows it. Ask knows which folder holds the pages and which holds the sources. It also knows the text of the schema note. A very long schema note is cut at 8,000 characters, so Ask sees only the first part. Ask knows the count for each rule of kimun wiki check and the first 20 findings, problems first.

    If Ask relies on a page that has a finding, such as a stale page, it is told to warn you. If a page and a source disagree, it is told to warn you too. The model decides this from the notes it read, so the warning is not guaranteed.

    In the Sources view of an answer, a note under the wiki folder shows the word Wiki. A note under the sources folder shows the word Source. The log note and the schema note show Wiki, because they are in the wiki folder. Other notes show no word.

    Ask has a wiki_catalogue tool. The model can call it to list the pages, or the groups of a large wiki. Ask still searches the whole vault first. This includes your journal. A note that is not in the wiki can still answer the question.

    The app collects these facts once for each thread. If you change a note or fix a finding during a thread, the thread does not see it. Start a new thread to see the change. If the check takes more than two seconds, the thread has no findings. It still has the roles and the schema.

    Ask can propose changes to your notes in every vault. In a wiki, the model never creates a file in the sources folder. It never edits the text of a source, so your sources stay as they were. Two actions that you confirm write into that folder. The save on the first card of an ingest adds a source. The lint fix for unstamped adds the stamp properties to the sources that have none, and does not change their text.

    A vault that is not a wiki does not change. Ask needs an AI provider. A wiki does not need one for its other tools.

    Lint your wiki 

    Lint asks the model to explain the problems of your wiki and to fix some of them. It needs a wiki and Ask with an AI provider.

    To start a lint run, use one of these:

    • Press the leader chord a l, the leaf lint wiki of the ask group.
    • Choose lint wiki in the command palette.
    • Type the word lint alone in the question box. Any letter case works, and spaces around the word are fine.

    While an answer is still coming or a card runs, the terminal app refuses the typed word and the a l chord. It shows Ask is busy. Try again when the answer is done. and keeps the typed text. The desktop app does the same.

    The typed word starts a lint run only in a vault that has a wiki. In any other vault, the word is a normal question. In a vault without a wiki, lint from the leaf or from the palette fails. The turn shows the message This vault has no wiki. Lint needs a wiki.

    Each lint run checks the wiki again with wiki check, in the background. It stops after 30 seconds and shows the message The wiki check took longer than 30 seconds, so Kimün stopped it. Try again. Kimün then sends a report of the findings with the question.

    The report holds the count of every kind of problem. It holds up to 10 findings of each kind and at most 50 findings in all. The answer tells you how many findings were left out. Lint has no "continue". To see more, fix some problems and run lint again. The fixed problems drop out of the report.

    The answer explains the findings in groups. The model reads the pages that the findings name. If it sees a contradiction or a stale claim in those pages, it mentions it. It mentions no others. It does not scan the whole vault for contradictions, and the answer says so. If the report is empty, the answer says that the wiki is clean. A clean answer is not proof that the wiki has no contradictions. The check looks for rule problems, and the model reads only the pages that the findings name.

    Eight kinds of problems get a fix card:

    • A page that lacks a required property (missing_property). The fix sets the property. For a missing sources, the fix cites a source. A missing generated gets no card, because Kimün sets it on each page that a confirmed change touches.
    • A page that no other page links to (orphan). The fix links the page from its group page, from a parent page, or from a related page.
    • A link to a page that does not exist (unresolved_link). The fix creates the page. If the model is sure which note you meant, the fix edits the link text instead.
    • A link that points to several notes (ambiguous_link). If the model is sure which note you meant, the fix edits the link text.
    • A source that has no stamp (unstamped). The fix stamps every unstamped source.
    • A group with more than 200 pages (catalogue_too_large). The fix is a regroup. See The regroup card.
    • A description with more than 200 characters (long_description). The fix sets a shorter description.
    • A subfolder without a group page, or a group page without a description (missing_group_page). The fix creates the group page or sets its description.

    The card works like the one in Ask. Tick the changes that you want, then press Confirm (Apply N changes in the desktop app). See proposed changes. The model is told never to write generated to hide a stale page, and you confirm every change on the card.

    Three kinds of problems are only explained: stale_page, source_modified, and missing_source. Each one needs your judgment about the content. A lint answer ends with a line such as Pages to review: /wiki/old.md [7], /wiki/other.md [8]. In the terminal app, a click on a number selects that note in the Sources view. Press o there to open the note. In the desktop app, a click on a number opens the Sources view at that note.

    When you ask again with r on a lint answer, Kimün runs a fresh check. The desktop app has a Lint wiki item in the Ask ⋯ menu. In a vault with a wiki, an empty conversation also has a Lint wiki button. See Ask actions.

    The regroup card 

    A regroup item on the card reads like this: Regroup: move 212 pages into 9 folders. 3 notes outside the wiki change. The count covers the notes outside the wiki whose text changes. Those are notes with a link by a full path, or a link by a name that is not unique. Kimün fixes those links.

    The item has a list of the moves. The list also shows the description that each new group page gets, in lines such as New group page /wiki/bees/bees: "Bees and hives". For a split, it also shows the move of the old group page. In the terminal app, a mark shows at the item: ▸ for a closed list and ▾ for an open list. Press d to open or close the lists. If a list exists, the key hints show d, also after you confirm. A click on a line of the list does nothing. In the desktop app, click the mark, or press d.

    One confirmation runs every move. Links keep working. Kimün backs up each changed note. A split moves the old group page to the top of the wiki and never deletes it.

    Ingest a source 

    Ingest takes a web page or a note and asks the model to add it to your wiki. It needs Ask with an AI provider. You confirm every change.

    To start an ingest, use one of these:

    • Type ingest and a URL or a note path in the question box, then send it. Any letter case works. If the note name has spaces, put it in double quotes, for example ingest "Bee health". You can also paste a URL into the question box. Only the first line of a paste is used.
    • Press the leader chord a i, the leaf ingest of the ask group. In the terminal app, it fills the question box with ingest , moves the cursor there, and does not send. If the box already has text, the word goes in front of that text. Type the URL or the note path, then send it. In the desktop app, it opens a chooser where you pick a note or type a URL. See Ask actions.

    While an answer is still coming or a card runs, the terminal app refuses a typed ingest and its argument. It shows Ask is busy. Try again when the answer is done. and keeps the typed text.

    The word ingest alone is a normal question. So is ingest followed by more than one word without quotes, such as ingest the news from today.

    The first card saves the source. In a wiki, a URL gives the card Save <url> as a source. A note outside the sources folder gives the card Copy <note> into the sources folder as a source. A note that is already in the sources folder gives no card, and the follow-up turn starts at once. When you press Confirm (Apply N changes in the desktop app), or click the chip, Kimün saves the page. If you dismiss the card, nothing follows.

    A URL always gets its card. Kimün refuses the page only after you confirm. If the page is not https, the line shows failed: Only https addresses can be clipped: and the address. If the host is on a private or local network, the line shows failed: and the message that the host is not allowed. Any other failed save also shows failed: with the reason. When a save fails, nothing follows.

    A URL or a note that you saved before is not saved again. The line of the card then says done (already saved). An ingest of the same note again uses the copy that Kimün saved the first time. If you changed the note after that, the model does not see your changes. To send the new text, delete the earlier copy from the sources folder, then run the ingest again.

    When the first card ran, the follow-up turn starts by itself. Its title is Ingest <name>: wiki changes. If the page was saved before, the title ends with (already saved). Kimün sends the model the text of the source, up to 30,000 characters. If Kimün cut the text, the answer says so. The model proposes one group of up to 15 changes as cards. In a wiki, the group can hold these changes:

    • Updates to existing pages. A revise card shows Revise <page>: "<old>" becomes "<new>". Each text is a short preview of about 60 characters. The preview shows the part of the text that changes.
    • Citations. Each page that the source touches gets an entry for the source in its sources list. The card reads Cite <source> on <page>. Kimün writes the entry with a resource relative to the page and an id. The id is the file name of the source without its extension. If the page already has that id, Kimün adds -2, -3, and so on. The model cites the source in the text with a footnote such as [^<id>]. If Kimün changed the id, the footnote does not match it. wiki check does not report this.
    • New pages, with type, title, description and tags. The model links them with Markdown links.
    • An entry in the log. The card reads Add to the log: <text>. Kimün puts the entry first under today's heading.

    The model never writes generated or sources itself. After a confirmed change to a wiki page, Kimün sets generated on that page, with by: kimun/<model>. After the group runs, Kimün rewrites the index notes.

    Kimün matches the old text the way Ask read it. A revise therefore works on a line that holds a link, bold or italic text, a tag, or a list bullet. Ask reads [hive health](hive-health.md) as hive health. The new text replaces the whole matched text in the file, link included. If the new text leaves out the link, the link is gone.

    When Ask revises a list item, the new text can use a different bullet, for example * in place of -. An item of a numbered list can lose its number. Read the revise line before you confirm. If the bullet changed, fix it by hand.

    The card shows the changes in the order that Kimün runs them. New pages come first. The other changes come next. The revises come last. A rename keeps its place, and no change moves across it. The changes still run in the order of the card and stop at the first failure. Kimün puts the revises last in each part of the card between renames. A failed revise therefore usually leaves the new pages and the other changes done. If the group is over 15 changes, Kimün usually cuts the revises at the end.

    A revise fails with a plain message in three cases. The old text is missing, the old text appears twice, or the change breaks the properties block of the page. The old text must match exactly one place in the page. Some notes have Windows line endings (CRLF). On such a note, a revise whose old text has more than one line fails. The message says that the text is not found. Ask never replaces a whole sources list. It cites one source at a time. A source that is already in the list is not added twice.

    If the source needs more than 15 changes, type ingest with the same source again. Kimün shows the first card again. Confirm it (Apply 1 change in the desktop app). Kimün does not save the source again, the line of the card reads done (already saved), and the follow-up turn starts. The model then looks for the pages that already cite the source.

    Ask never changes the text of a source. Two writes into the sources folder are possible, and you confirm each one. The first is the save on the first card of an ingest. The second is the lint fix for unstamped, which adds the stamp properties to the sources that have none.

    A vault without a wiki works too. A URL gives the card Save <url> as a note in <inbox>, where <inbox> is your inbox folder. A note gives no card. The follow-up turn is titled Ingest <name>: summary note. The model proposes one new summary note, linked to the saved note and placed in a folder near related notes. It can also append links to related notes. It does not revise your notes.

    The desktop app has an Ingest… item in the Ask ⋯ menu. An empty conversation also has an Ingest a page or note button. See Ask actions.

    Work with an AI agent 

    The MCP server has one tool for each wiki command: wiki_init, wiki_check, wiki_catalogue, wiki_stamp, wiki_index, and wiki_clip. The tool vault_info tells the agent whether the vault is a wiki and where the folders are. The tools give the same text as the commands.

    The MCP server has no tool that cites a source or writes to the log. The agent writes sources and generated in the frontmatter itself. It adds a log entry under today's heading with replace_in_note. The skill and the schema note tell it how.

    The kimun-wiki skill teaches the agent the method: how to ingest a source, how to answer a question from the wiki, how to check it, and how to regroup a large wiki.