Creating a new vault from scratch is the simplest path to a fully configured pi-napkin setup.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cad0p/pi-napkin/llms.txt
Use this file to discover all available pages before exploring further.
napkin init produces the subdir layout that auto-distill requires — config lives in .napkin/config.json alongside your notes rather than mixed in with them — and pi-napkin handles git initialization automatically on your first session.
Create a directory and run napkin init
Make a new directory for your vault and initialize it with After
napkin init. This creates the subdir layout by default: a .napkin/ config subdirectory with config.json (containing "vault": { "root": ".." } to point back at the note root), a NAPKIN.md overview file, and starter changelog/ and daily/ subdirectories.napkin init, your vault looks like this:Enable auto-distill in .napkin/config.json
Open You can also set
.napkin/config.json and add the distill block. Set enabled to true and configure the interval, shutdown behavior, and model you want to use for background distillation.enabled via the CLI without opening the file:Start a pi session in the vault directory
cd into the vault directory (or a subdirectory) and launch pi. pi-napkin’s napkin-context extension detects the vault automatically by walking up from your current working directory looking for .napkin/.pi-napkin auto-inits git on first session
Because
distill.enabled is true and the vault has no .git/ yet, pi-napkin runs ensureVaultReadyForDistill at session start and automatically initializes the vault as a git repository:- Runs
git init -q -b mainin the vault root. - Installs the managed
.gitignoreblock (delimited by# BEGIN NAPKIN-DISTILL MANAGED/# END NAPKIN-DISTILL MANAGEDmarkers) that excludes.napkin/distill/,.obsidian/workspace*.json,.obsidian/cache,.obsidian/.trash/, and common secret patterns. - Stages everything with
git add .(respecting the just-written.gitignore) and creates an initial commit:napkin: initial vault commit (auto-distill setup).
distill: Xm..s countdown appears in the pi status bar.When pi-napkin auto-initializes git on your first session, it posts a one-time notification with this information:
Initialized git repo in your vault for auto-distill.Commit: 'napkin: initial vault commit (auto-distill setup)'Files tracked: <N>— the count comes fromcountTrackedFiles, which runsgit ls-fileson the freshly committed vaultTo undo: rm -rf <vault>/.git— removes git history; your notes are untouchedTo opt out: set distill.enabled: false in vault config.json