Skip to content

v4.0.0 — Per-session devlogs, safe shared-vault writes and guided upgrades

Choose a tag to compare

@AdrianV101 AdrianV101 released this 16 Nov 21:11
51a7295

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 in development/devlog/, and devlog.md becomes 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's repos: list, or the main checkout's folder name. The server's own instructions replace the ## PKM Integration section init-project used 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 doctor shows 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 with obsidian-pkm init before 4.0 keeps its old 05-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 after git 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_append and vault_add_links are exact, and a heading that appears more than once returns an error listing each match.
  • Every vault_read mode is capped at about 80,000 characters (400,000 with force), 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 .md notes outside dot-folders. Symlinks are judged by their real target.
  • vault_trash refuses folders; vault_move won't move into or out of dot-folders or the vault root.
  • vault_write writes normalised YAML frontmatter, and frontmatter is parsed as YAML 1.2 (0x1F becomes a number, 0b101 stays 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_DAYS changes it, 0 keeps everything). A log from 3.x keeps every entry until you agree to trim it: Claude asks at session start, and obsidian-pkm trim-activity does it.
  • The vault_activity path filter matches one note or a folder exactly, instead of any substring of the stored arguments.

Upgrading

  1. Update vault-pkm on every device that uses the vault before you migrate a devlog. The plugin now starts the server as obsidian-pkm@^4, so the server updates with it.
  2. Start a Claude session in a linked repo. Claude lists what your setup still needs and offers to do it. npx obsidian-pkm doctor shows the same list.
  3. If your vault was set up with obsidian-pkm init before 4.0, delete 05-Templates/devlog.md or replace it with the package's templates/devlog.md.
  4. Migrate each project's devlog: npx obsidian-pkm migrate-devlog <project> previews, --apply makes the change. Projects you don't migrate keep working.
  5. Optionally, run /vault-pkm:init-project in each repo and delete its old ## PKM Integration section.

Full changelog: CHANGELOG.md · v3.10.1...v4.0.0