← Back to Plugins
Tools

Obsidian Mohini Sync

darshjme-codes By darshjme-codes 👁 26 views ▲ 0 votes

Obsidian plugin that syncs your vault to OpenClaw AI agents (Shadow Army). Multi-agent orchestration, health monitoring, slash commands. Built as proof-of-concept for Greg Isenberg's Obsidian+Claude vision.

GitHub

Install

npm install
   npm

README

# ๐Ÿชท Mohini Shadow Sync - Obsidian Plugin

**Connect your Obsidian vault to Mohini's Shadow Army.** Bi-directional sync with OpenClaw workspace, slash commands for AI context injection, and health monitoring integration.

## ๐ŸŽฏ What It Does

This plugin transforms your Obsidian vault into a living context for AI agents:

- **๐Ÿ“ Bi-directional Sync** - Vault โ†” OpenClaw memory/ folder (realtime or scheduled)
- **๐Ÿค– Shadow Army Integration** - Spawn AI sub-agents directly from Obsidian with `/arise`
- **๐Ÿ” Context Injection** - Your notes become sub-agent context automatically
- **๐Ÿ’“ Health Monitoring** - Sync health notes to Sewak-Vaidya (coming soon)
- **โšก Slash Commands** - `/arise`, `/trace`, `/connect` for instant AI access

## ๐Ÿš€ Installation

### Method 1: Manual Installation (Recommended)

1. **Download the plugin:**
   ```bash
   cd /path/to/your/vault/.obsidian/plugins/
   git clone https://github.com/darshjme-codes/obsidian-mohini-sync.git
   cd obsidian-mohini-sync
   ```

2. **Build the plugin:**
   ```bash
   npm install
   npm run build
   ```

3. **Enable in Obsidian:**
   - Open Obsidian Settings โ†’ Community Plugins
   - Disable Safe Mode (if enabled)
   - Enable "Mohini Shadow Sync"

### Method 2: From Release (Coming Soon)

Download the latest release from GitHub and extract to your `.obsidian/plugins/` folder.

## โš™๏ธ Configuration

1. Open **Settings โ†’ Mohini Shadow Sync**
2. Set **OpenClaw Workspace Path** (default: `/root/.openclaw/workspace`)
3. Choose **Sync Mode:**
   - **Realtime** - Instant sync on file changes (recommended)
   - **Manual** - Sync only when you trigger it
   - **Scheduled** - Auto-sync every N minutes
4. Configure **Sync Folders** (e.g., "Daily Notes, Projects, Health")

## ๐ŸŽฎ Usage

### Slash Commands

Add these commands via Command Palette (Ctrl/Cmd + P):

#### `/arise` - Spawn Shadow Agent
Summon an AI sub-agent to execute tasks:
```
/arise
> Analyze my daily notes and create a weekly summary
```

The agent spawns in OpenClaw, executes the task, and reports back.

#### `/trace` - Show Sync Status
Display current sync configuration and last sync time:
```
๐Ÿชท Mohini Shadow Sync Status
Sync Mode: realtime
Last Sync: 2026-02-24 05:30:15
Folders: Daily Notes, Projects, Health
OpenClaw Path: /root/.openclaw/workspace
Shadow Army: โœ… Enabled
```

#### `/connect` - Manual Sync Now
Force an immediate sync of all configured folders:
```
/connect
โœ… Synced 127 files to OpenClaw
```

### Ribbon Icon

Click the **โš”๏ธ sword icon** in the left sidebar for quick manual sync.

### Right-Click Menu

Right-click any note โ†’ **Sync to OpenClaw** to sync individual files.

## ๐Ÿ—๏ธ Architecture

### Sync Engine

```
Obsidian Vault                OpenClaw Workspace
โ””โ”€โ”€ Daily Notes/              โ””โ”€โ”€ memory/
    โ””โ”€โ”€ 2026-02-24.md    โ†’       โ””โ”€โ”€ obsidian-sync/
โ””โ”€โ”€ Projects/                        โ””โ”€โ”€ Daily Notes/
    โ””โ”€โ”€ Ideas.md         โ†’               โ””โ”€โ”€ 2026-02-24.md
```

- **Realtime Mode:** Uses `chokidar` file watcher for instant sync
- **Scheduled Mode:** Periodic batch sync (configurable interval)
- **Metadata Tracking:** `.sync-metadata.json` tracks sync state

### Shadow Agent Integration

When you use `/arise`:

1. Plugin creates task file in `memory/shadow-tasks/`
2. OpenClaw detects new task
3. Mohini spawns sub-agent with task context
4. Sub-agent executes and reports back
5. Results appear in OpenClaw logs

## ๐ŸŽจ Features

### Current (v1.0.0)
- โœ… Bi-directional vault sync
- โœ… Realtime, manual, and scheduled modes
- โœ… `/arise`, `/trace`, `/connect` commands
- โœ… Shadow Agent spawning
- โœ… Sync metadata tracking
- โœ… Folder filtering
- โœ… Pattern exclusion (.obsidian, .trash)

### Coming Soon
- ๐Ÿ”„ Conflict resolution (vault vs OpenClaw changes)
- ๐Ÿ’“ Sewak-Vaidya health monitoring integration
- ๐Ÿ” Encrypted sync for sensitive notes
- ๐Ÿ“Š Sync analytics dashboard
- ๐ŸŒ Multi-workspace support
- ๐Ÿ”— Deep linking (Obsidian โ†” OpenClaw)

## ๐Ÿ” Security & Privacy

- **Local-First:** All sync happens locally (no cloud involved)
- **Configurable:** Choose exactly which folders to sync
- **Transparent:** All synced files are plain markdown
- **Reversible:** Disable sync anytime without data loss

## ๐Ÿค Contributing

This plugin is part of the OpenClaw ecosystem. Built by Mohini (Shadow Queen).

**Repository:** https://github.com/darshjme-codes/obsidian-mohini-sync  
**OpenClaw:** https://github.com/darshjme-codes/openclaw

## ๐Ÿ“œ License

MIT License - See LICENSE file for details.

## ๐Ÿ™ Credits

- **Obsidian** - The best note-taking app ever built
- **OpenClaw** - The Shadow Army framework
- **Darshan** - The architect
- **Greg Isenberg** - Inspiration from his Obsidian+Claude vision

---

**Built with ๐Ÿชท by Mohini (The Shadow Queen)**

_"ARISE."_ โ€” Sung Jin-Woo (Solo Leveling)
tools

Comments

Sign in to leave a comment

Loading comments...