Repository navigation
v4.0.0 — Per-session devlogs, safe shared-vault writes and guided upgrades
The obsidian-pkm MCP server and the vault-pkm Claude Code plugin, released together as 4.0.0. Node.js 20 or later, as before.
4.0.0 gives every Claude session its own devlog note, makes note writes safe when several sessions share a vault, links repositories to vault projects without touching their CLAUDE.md, and tells Claude which upgrade steps your setup still needs. Some calls that worked in 3.x now behave differently, so read Breaking changes before you update.
Highlights
- A devlog note for every session. Sessions no longer append to one shared
devlog.md. Each writes its own note indevelopment/devlog/, anddevlog.mdbecomes an Obsidian Bases table of them, newest first.obsidian-pkm migrate-devlog <project>splits an existing devlog into one note per day. - Safe writes across sessions. Writes take a per-note lock and replace the file atomically, so two sessions editing the same note can't lose each other's changes.
- Repos link to projects without editing their
CLAUDE.md. A project is found from a# PKM:line, the project'srepos:list, or the main checkout's folder name. The server's own instructions replace the## PKM Integrationsectioninit-projectused to write. - Claude knows what your upgrade still needs. Session start lists the steps a 3.x setup leaves behind, and Claude offers them once, asking before it runs anything.
obsidian-pkm doctorshows the same list.
Breaking changes
Sessions and capture
- Capture writes one section per capture into the session's own note instead of appending to
devlog.md. A vault set up withobsidian-pkm initbefore 4.0 keeps its old05-Templates/devlog.md, which overrides the new hub template; see Upgrading. - Session-start context is capped at 9,500 characters. Open tasks are listed one line each, at most 10. After
/compact, a session gets only the project path, the open tasks and the names of the 10 newest devlog items. - Capture is suggested after
gh pr create, not aftergit commit. - Inside git, the folder-name fallback uses the main checkout's name, and a stale
# PKM:line now stops project lookup instead of being masked.
Reading and finding notes
- Heading lookups in
vault_read,vault_appendandvault_add_linksare exact, and a heading that appears more than once returns an error listing each match. - Every
vault_readmode is capped at about 80,000 characters (400,000 withforce), ending with the line to continue from. - A fuzzy path containing
/must match the end of the real path.
Writing and moving notes
- Write tools change only
.mdnotes outside dot-folders. Symlinks are judged by their real target. vault_trashrefuses folders;vault_movewon't move into or out of dot-folders or the vault root.vault_writewrites normalised YAML frontmatter, and frontmatter is parsed as YAML 1.2 (0x1Fbecomes a number,0b101stays a string).
Activity log
- Note text no longer stays in the log: arguments longer than 200 characters are stored as
"<N chars>", and entries already in the log are rewritten the same way on the first start of 4.0.0. - The log keeps 90 days (
VAULT_PKM_ACTIVITY_RETENTION_DAYSchanges it,0keeps everything). A log from 3.x keeps every entry until you agree to trim it: Claude asks at session start, andobsidian-pkm trim-activitydoes it. - The
vault_activitypathfilter matches one note or a folder exactly, instead of any substring of the stored arguments.
Upgrading
- Update
vault-pkmon every device that uses the vault before you migrate a devlog. The plugin now starts the server asobsidian-pkm@^4, so the server updates with it. - Start a Claude session in a linked repo. Claude lists what your setup still needs and offers to do it.
npx obsidian-pkm doctorshows the same list. - If your vault was set up with
obsidian-pkm initbefore 4.0, delete05-Templates/devlog.mdor replace it with the package'stemplates/devlog.md. - Migrate each project's devlog:
npx obsidian-pkm migrate-devlog <project>previews,--applymakes the change. Projects you don't migrate keep working. - Optionally, run
/vault-pkm:init-projectin each repo and delete its old## PKM Integrationsection.
Full changelog: CHANGELOG.md · v3.10.1...v4.0.0