Agent Knowledge Export · Obsidian plugin documentation

Agent Knowledge Export documentation

Agent Knowledge Export Obsidian plugin preview

Agent Knowledge Export compiles any vault folder, tag, or Map of Content (MOC) note into a clean AI knowledge pack. Preview the exact file count, word count, and token estimate before you copy the bundle to your clipboard or save it into your vault.

Payment is required for full access. Pro costs $15 one time or $5 a month: Get Pro.

Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.

1 Installation

  1. Open "Settings -> Community plugins", select "Browse" and search for "Agent Knowledge Export".
  2. Select "Install" and "Enable".

For manual installation, copy main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/agent-knowledge-export/ and enable the plugin. You need Obsidian 1.13.4 or later.

2 Getting started

Run "Open knowledge exporter" from the command palette or click the file-output icon in the left ribbon. Choose a folder, tag, or MOC note, check the live file and token counts, and select "Copy bundle" or "Save to vault". To export the active folder right away without opening the modal, run "Export active folder as Markdown bundle".

Run "Open knowledge exporter" from the command palette or click the ribbon icon.

Select a source type: Folder, Tag, or MOC note.

Choose whether to include subfolders, keep YAML frontmatter, or inline 1-hop wikilinks.

Check the live file count, word count, and token estimate in the summary bar.

Select "Copy bundle" to copy the pack to your clipboard, or "Save to vault" to write it to your configured export folder.

With Pro active, switch formats to Anthropic XML, NotebookLM size-split bundle, or OpenAI JSONL, turn on secret and PII scrubbing, save named export profiles, or include a deterministic SHA-256 manifest.

3 Features

Folder, tag, and MOC note selection

Export notes from any vault folder (with optional subfolder recursion), any #tag in frontmatter or note text, or any MOC note plus its outgoing wikilinks in document order. The exporter works offline on both desktop and mobile (isDesktopOnly: false).

Single-file Markdown bundle with TOC and 1-hop wikilink inlining

Every Free export produces a single knowledge-bundle.md file with a YAML metadata header, a Table of Contents with anchor links, and clean ## <path> sections. Turn on 1-hop wikilink inlining to append linked notes automatically while skipping links inside fenced code blocks and inline code, with cycle protection so circular links never loop.

Multi-platform packs, secret scrubbing, profiles, and SHA-256 manifests (Pro)

Upgrade to Pro to export Anthropic XML <documents> packs with strict XML escaping, NotebookLM size-split Markdown bundles that stay under configurable word and token ceilings, and OpenAI JSONL structured packs. Turn on built-in secret and PII scrubbing to redact API keys, bearer tokens, private keys, emails, and custom regex rules before export. Save, load, and delete reusable named export profiles in the exporter modal, and write deterministic JSON manifests with per-file and overall SHA-256 content hashes.

4 Commands

Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.

Command Command id
Open knowledge exporter agent-knowledge-export:open-knowledge-exporter
Export active folder as Markdown bundle agent-knowledge-export:export-active-folder-markdown
What Pro adds agent-knowledge-export:what-pro-adds

5 Settings

Open "Settings -> Agent Knowledge Export" to set your defaults. Choose whether the exporter starts on a folder, a tag, or a MOC note, and pick Markdown (Free) or a Pro format (Anthropic XML, NotebookLM split, or OpenAI JSONL).

You can toggle subfolder recursion, YAML frontmatter inclusion, and 1-hop wikilink inlining, and set the vault export folder and base filename used when saving bundles.

Pro settings let you configure NotebookLM word and token ceilings per part file, turn on automatic secret and PII scrubbing with custom LABEL=regex rules, and write a deterministic .manifest.json file with per-file and overall SHA-256 hashes.

6 Pro

The command "What Pro adds" shows each Pro feature with an interactive demo on sample notes.

Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.

7 Privacy, payment and network

The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.

One payment turns on Pro in every NoteMods plugin.

GitHub handles the payment. Sponsor at https://notemods.com/pro/go?p=agent-knowledge-export&s=readme. You need no account for the free features. Pro needs the GitHub account that sponsors.

Until you select "Sign in with GitHub" in the settings, Agent Knowledge Export makes no network requests. Sign in uses the GitHub device flow. Agent Knowledge Export sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.

After sign in, Agent Knowledge Export sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.

After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.

8 Questions and answers

Does the exporter send my notes to an external server?

No. All note selection, wikilink inlining, formatting, scrubbing, and SHA-256 hashing run locally in Obsidian.

Does it work on mobile?

Yes. The plugin uses pure TypeScript with no desktop-only APIs (isDesktopOnly: false).

What happens if two notes link to each other during 1-hop inlining?

Each note tracks visited targets and skips self-links and duplicate links, so circular links never loop. Links inside fenced code blocks and inline code are also ignored.

How does NotebookLM splitting handle a single very long note?

If a note exceeds your configured word or token ceiling, the compiler splits it at paragraph or word boundaries so every part file stays under the limit.

9 Support

Plugin page: agent-knowledge-export.

Report bugs in the issues, with your Obsidian version and a sample note if you can.

Agent Knowledge Export · Obsidian plugin documentation