Skip to content

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obsidian Sync

Obsidian Sync turns coding sessions into structured notes inside an Obsidian vault and lets you recall that knowledge later with local search.

This repository now builds two plugin targets from a shared prompt source:

  • Claude plugin output in claude
  • Codex plugin output in codex

The plugin payloads live under those target directories. The only repo-root exception is Claude's .claude-plugin, which stays at the root for production use:

  • claude/obsidian-sync/.claude-plugin + .claude-plugin
  • codex/plugins/obsidian-sync + codex/.agents

Features

  • Multi-agent session capture for reports, learnings, follow-up tasks, and ideas
  • qmd-based local recall with semantic and keyword search
  • Obsidian-native output with wikilinks, callouts, frontmatter, and .canvas files
  • Dashboard and Bases templates for sessions, learnings, tasks, and ideas
  • Shared template source for Claude and Codex runtimes

Installation

Generate the target artifacts first:

uv run scripts/build_plugin.py --target all

Claude

If you publish this plugin through Claude's marketplace flow, the legacy install commands from the original README still apply:

/plugin marketplace add jylkim/obsidian-sync
/plugin install obsidian-sync@jylkim-obsidian-sync

For local development or local use from this repository, point Claude at the repository root. The root .claude-plugin metadata resolves the actual plugin payload under claude/obsidian-sync.

claude --plugin-dir /path/to/repo

Codex

The generated Codex target is namespaced under codex. For a home-local install, keep your personal marketplace at ~/.agents/plugins/marketplace.json, and install the plugin payload under ~/.codex/plugins/obsidian-sync.

If you do not already have a Codex marketplace file:

mkdir -p ~/.agents/plugins ~/.codex/plugins
cp -R codex/plugins/obsidian-sync ~/.codex/plugins/obsidian-sync
cat > ~/.agents/plugins/marketplace.json <<'EOF'
{
  "name": "obsidian-sync",
  "interface": {
    "displayName": "Obsidian Sync"
  },
  "plugins": [
    {
      "name": "obsidian-sync",
      "source": {
        "source": "local",
        "path": "./.codex/plugins/obsidian-sync"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Productivity"
    }
  ]
}
EOF

If you already have ~/.agents/plugins/marketplace.json, merge an obsidian-sync plugin entry into your existing file and set its source.path to ./.codex/plugins/obsidian-sync, then copy or symlink the payload:

mkdir -p ~/.codex/plugins
ln -sfn "$(pwd)/codex/plugins/obsidian-sync" ~/.codex/plugins/obsidian-sync

After updating the marketplace file and plugin path, restart Codex or reopen the workspace so it reloads the plugin registry.

Repository Layout

  • data contains shared plugin metadata and runtime profiles
  • prompts contains shared and target-specific Jinja templates
  • scripts/build_plugin.py renders generated artifacts
  • claude contains the generated Claude plugin payload
  • codex contains the generated Codex plugin payload
  • .claude-plugin contains the Claude marketplace metadata
  • codex/.agents contains the Codex marketplace metadata

Build

uv run scripts/build_plugin.py --target all
uv run scripts/build_plugin.py --check

--target claude and --target codex are also supported.

Running the build rewrites the selected target roots and removes legacy generated outputs from older layouts.

Runtime Notes

  • Config resolves from OBSIDIAN_SYNC_CONFIG first.
  • On non-Windows systems, the default config path is ${XDG_CONFIG_HOME:-~/.config}/obsidian-sync/config.yaml.
  • On Windows, the Codex target documents %APPDATA%\obsidian-sync\config.yaml.
  • Default vault folders are Agent/Sessions, Agent/Learnings, Agent/Tasks, Agent/Ideas, Agent/Ideas/canvas, and Agent/Dashboard.

Prerequisites

Tool Purpose
Obsidian Note-taking app and vault host
Obsidian CLI Vault CRUD operations and daily note integration
qmd Local indexing and recall
obsidian:obsidian-markdown skill Obsidian-native note formatting
obsidian:json-canvas skill .canvas generation for idea diagrams

License

MIT

About

Claude Code plugin — sync sessions to Obsidian vaults as structured notes with multi-agent analysis and qmd semantic recall

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages