К основному содержанию
плагин

oh-my-obsidian — плагин для Claude Code: память проекта в Obsidian

Плагин даёт Claude Code постоянную память через хранилище Obsidian: агент записывает решения и контекст сессий в Markdown, а потом находит нужное через поиск по хранилищу.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install oh-my-obsidian@claude-community
Открыть на GitHub

Что делает oh-my-obsidian

oh-my-obsidian хранит архитектурные решения, заметки сессий и контекст проекта в виде Markdown-файлов в хранилище Obsidian. Команда /oh-my-obsidian:setup запускает интерактивный мастер, который спрашивает про домен, стек и команду, затем генерирует структуру папок через агента vault-architect. После настройки /oh-my-obsidian:recall ищет релевантный контекст из прошлых сессий, session-save записывает текущую работу, а refactor реорганизует хранилище по мере роста проекта.

Плагин работает с Codex через естественные промпты и явные скиллы ($oh-my-obsidian-recall, $oh-my-obsidian-jev). Опциональная интеграция Jev добавляет платный внешний ререйтинг результатов поиска через API TypeSafe; она отключена до явного согласия для конкретного проекта и хранилища. Jev не нужен для локальной работы с памятью. Синхронизация с Git настраивается отдельно через три режима: safe, manual и team-sync.

Какие задачи решает

  • записать архитектурные решения и контекст сессии в Markdown для Claude Code
  • найти релевантные заметки и прошлые решения через поиск по хранилищу Obsidian
  • реорганизовать структуру хранилища по мере роста проекта
  • настроить tailored структуру папок через интерактивный мастер
  • подключить платный ререйтинг поиска через Jev API

Примеры запросов агенту

  • Запусти мастер настройки хранилища Obsidian: /oh-my-obsidian:setup
  • Найди в хранилище наши прошлые решения про структуру vault
  • Сохрани текущую сессию в хранилище Obsidian

Как установить oh-my-obsidian

Через маркетплейс плагинов

/plugin marketplace add anthropics/claude-plugins-community
/plugin install oh-my-obsidian@claude-community

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о oh-my-obsidian

Как установить oh-my-obsidian в Claude Code?

Выполни /plugin marketplace add anthropics/claude-plugins-community, затем /plugin install oh-my-obsidian@claude-community. После этого запусти /oh-my-obsidian:setup для интерактивной настройки хранилища.

Что делает oh-my-obsidian?

Плагин даёт агенту постоянную память через Obsidian: записывает архитектурные решения и контекст сессий в Markdown, потом находит релевантные заметки через поиск по хранилищу.

Зачем нужен Jev в oh-my-obsidian?

Jev добавляет платный ререйтинг результатов поиска через TypeSafe API. Локальная память работает без него; Jev включается отдельно для проекта после явного согласия.

Исходный текст

SKILL.md · MIT
<p align="center">
  <br/>
  ◯ ─────────── ◯
  <br/><br/>
  <img src="https://upload.wikimedia.org/wikipedia/commons/1/10/2023_Obsidian_logo.svg" width="120" alt="Obsidian">
  <br/><br/>
  <strong>O H - M Y - O B S I D I A N</strong>
  <br/><br/>
  ◯ ─────────── ◯
  <br/>
</p>

<p align="center">
  <strong>Stop forgetting. Start remembering.</strong>
  <br/>
  <sub>Give your AI coding agents a permanent, evolving second brain.</sub>
</p>

<p align="center">
  <a href="README.md">English</a> | <a href="README.ko.md">한국어</a>
</p>

<p align="center">
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="License"></a>
  <img src="https://img.shields.io/badge/Claude_Code-Plugin-purple" alt="Claude Code">
</p>

<p align="center">
  <a href="#quick-start">Quick Start</a> ·
  <a href="#why-oh-my-obsidian">Why</a> ·
  <a href="#how-it-works">How It Works</a> ·
  <a href="#commands">Commands</a> ·
  <a href="#the-agents">The Agents</a>
</p>

**Oh-my-obsidian gives Claude Code and Codex persistent, Obsidian-backed project memory.**

AI coding agents are capable but lose context between sessions. Oh-my-obsidian stores project decisions and session notes as Markdown in an Obsidian vault, then helps Claude Code and Codex retrieve the relevant context later. Guided setup, vault maintenance, and approval-based Git sync keep that memory usable without hiding where it lives.

---

## Why Oh-My-Obsidian?

Most AI coding agents start every session with a blank slate. 

| Problem | What Happens | Oh-My-Obsidian Fix |
| :--- | :--- | :--- |
| **Amnesia** | AI forgets why a decision was made last week | `session-save` records architectural decisions into Markdown |
| **Lost Context** | You paste the same context over and over | `recall` automatically searches the vault for relevant past work |
| **Messy Docs** | Documentation rots and becomes disorganized | `refactor` safely reorganizes the vault as the project evolves |
| **Setup Friction** | Hard to bootstrap a good folder structure | Socratic `setup` interviews you to generate a tailored vault |

---

## Quick Start

### Claude Code Quick Start

```bash
# 1. Add our custom marketplace
/plugin marketplace add https://github.com/hongdangmoo49/oh-my-obsidian

# 2. Install the plugin
/plugin install oh-my-obsidian@omob
```

**Install via Official Marketplace** — (Pending Approval) If installed from the official Claude registry:
```bash
/plugin install oh-my-obsidian
```

*(For local development: `claude --plugin-dir /path/to/oh-my-obsidian`)*

**Initialize** — Run the interactive Socratic setup wizard:

```
> /oh-my-obsidian:setup
```

### Codex Quick Start

Codex reads the repository marketplace from:

```text
.agents/plugins/marketplace.json
```

Add the marketplace from GitHub:

```bash
codex plugin marketplace add hongdangmoo49/oh-my-obsidian
```

Then open Codex and install `oh-my-obsidian` from the plugin directory:

```text
/plugins
```

Then ask Codex:

```text
Set up an Obsidian vault for this project.
```

After setup, you can continue with Codex using natural-language prompts or an
explicit skill name such as:

```text
What did we decide last time about the vault layout?
Save this session to the Obsidian vault.
Show me the vault health check.
Add a note to the vault for today's API decisions.
$oh-my-obsidian-recall Find our prior vault-layout decision.
```

<details>
<summary><strong>What happens during setup?</strong></summary>

The plugin will:
1. Check for the Obsidian desktop app on your system.
2. Conduct a Socratic interview to understand your project (domain, tech stack, team size).
3. Generate a tailored folder structure via the `vault-architect` agent.
4. Offer an optional Obsidian Git choice (`safe`, `manual`, or `team-sync`) after separate approvals.
5. For Codex, offer approval-gated official hooks and optional session history restore after validation.
</details>

## Codex Plugin

Codex support is shipped from a separate plugin root:

```text
plugins/oh-my-obsidian/
```

Use the Codex-native marketplace file:

```text
.agents/plugins/marketplace.json
```

When users add `hongdangmoo49/oh-my-obsidian` as a Codex marketplace source,
Codex reads this marketplace and exposes the bundled `oh-my-obsidian` plugin.
Do not reuse `.claude-plugin/marketplace.json` for Codex.

Typical Codex start flow:

1. run `codex plugin marketplace add hongdangmoo49/oh-my-obsidian`
2. run `codex`, then open `/plugins` and install `oh-my-obsidian`
3. ask Codex: `Set up an Obsidian vault for this project.`

The Codex plugin keeps the same product shape: guided setup, recall,
session-save, vault management, and official Codex hooks for project-local
memory context. In Codex, these flows are typically used through natural-language
prompts or explicit skill invocation rather than Claude-style slash commands.

## Connect Jev (Optional)

Already installed? Follow the [existing-user update guide](docs/UPDATING.md).
Marketplace refresh alone does not refresh copied project hooks.

Local memory works without Jev. Jev adds paid, external recall reranking; it is
disabled until you approve it for a particular project and managed vault.

1. Sign in to the [official TypeSafe console](https://console.typesafe.ai/settings/keys),
   create an API key and check your credit balance. API usage is billed separately
   from OMOB and your coding agent. See the [official quick start](https://docs.typesafe.ai/introduction/quickstart).
2. If using an installed plugin, ask Claude Code `/oh-my-obsidian:jev connect`, or
   ask Codex to use `$oh-my-obsidian-jev` to explain key setup. The agent should
   give you the absolute helper command to run yourself, never ask for your key
   in chat. Update older plugin installations first if this command/skill is missing.
3. In a separate interactive terminal, run the connection command. For a source
   checkout, the following commands work from this repository root:

```text
node plugins/oh-my-obsidian/scripts/jev.mjs connect
node plugins/oh-my-obsidian/scripts/jev.mjs status
node plugins/oh-my-obsidian/scripts/jev.mjs test --allow-billed-test
node plugins/oh-my-obsidian/scripts/jev.mjs enable --allow-external-text
```

Paste the key only at the hidden `connect` prompt. Windows stores it in Credential
Manager. macOS/Linux currently require `TYPESAFE_API_KEY` supplied through a
protected environment/secret manager; no plaintext fallback or profile edits.
Never put keys in agent chat, arguments, Markdown, Git or logs.

Before `status`/`enable`, finish vault setup. If the project pointer does not
resolve it, set `OBSIDIAN_VAULT` to your approved vault in the current shell only.
For another project, keep cwd at that project's root and use the helper's
absolute path, not this repository's cwd. Key registration is user-scoped;
external-text consent is separately bound to the project and vault.

`test` sends a synthetic sentence and may incur charges; it does not enable
search. `enable` approves paid transmission of search questions and bounded
candidate excerpts to TypeSafe. Review that scope before running it. Errors
fall back to local search. To revoke consent, run the same helper with `disable`;
`disconnect` deletes the shared Windows credential, not environment credentials.
See the [full connection and privacy guide](plugins/oh-my-obsidian/docs/jev.md).

## Feature Matrix

| Capability | Claude Code Plugin | Codex v1 | Official Codex Hooks |
| :--- | :--- | :--- | :--- |
| Guided setup | Yes | Yes | N/A |
| Recall | Yes | Yes | N/A |
| Session save | Yes | Yes | Stop reminder |
| Vault manager | Yes | Yes | N/A |
| Hook auto-enable | Yes | Approval-gated | Setup step |
| Hook install path | Claude config | Project `.codex/` by default | Project `.codex/` |

---

## How It Works

Oh-my-obsidian acts as a bridge between the **AI (Claude Code)**, the **Knowledge Base (Obsidian)**, and the **Team (Git)**.

In Codex, the same loop is driven through skill-guided prompts rather than the
Claude command surface shown below.

```text
    [ Claude Code ] <---> [ oh-my-obsidian ] <---> [ Obsidian Vault ]
           |                                             |
           +----------------( Git Sync )-----------------+
```

| Phase | Action |
| :--- | :--- |
| **Initialize** | Socratic agents interview you to design a tailored vault structure |
| **Work** | The agent retrieves context via `recall` to solve coding tasks |
| **Document** | The agent records decisions via `session-save` directly into the vault |
| **Evolve** | As the project grows, `refactor` audits and safely reorganizes folders |

---

## Commands

Use these commands directly inside your Claude Code session.

In Codex, use the equivalent natural-language prompts or explicitly invoke the
installed skill surface, such as `$oh-my-obsidian-setup`,
`$oh-my-obsidian-recall`, `$oh-my-obsidian-session-save`, and
`$oh-my-obsidian-vault-manager`.

| Command | Role | Description |
| :--- | :--- | :--- |
| `/oh-my-obsidian:setup` | **Bootstrap** | Socratic interview to create and sync a new project vault |
| `/oh-my-obsidian:refactor` | **Evolve** | Audits an existing vault and safely executes a structural migration |
| `/oh-my-obsidian:recall <query>` | **Retrieve** | Uses configured MCP search when available, otherwise searches local Markdown |
| `/oh-my-obsidian:session-save` | **Record** | Summarizes the current session and archives it to the vault |
| `/oh-my-obsidian:enable-auto-save` | **Config** | Enables quiet automatic summaries and migrates the old SessionEnd callback safely |
| `/oh-my-obsidian:vault` | **Manage** | General purpose vault management (list, add, organize) |

---

## The Agents

Oh-my-obsidian uses specialized sub-agents to handle complex reasoning tasks. They do the heavy lifting so you don't have to.

| Agent | Role | Core Question |
| :--- | :--- | :--- |
| **Socratic Interviewer** | Guides project setup | *"What is the core domain and tech stack of this project?"* |
| **Vault Architect** | Designs folder structures | *"What is the optimal vault layout for this specific team?"* |
| **Vault Auditor** | Diagnoses messy vaults | *"Where are the bottlenecks and overgrown folders in this vault?"* |
| **Migration Verifier** | Ensures safe refactoring | *"Will moving this folder cause data loss or nested overlaps?"* |

---

## Team Onboarding

Once a vault is initialized with Git sync, onboarding a new team member takes seconds.
The setup command automatically generates cross-platform installation scripts in the vault.

```bash
# Team member clones the repo, then runs:
cd scripts/team-setup
./install.sh     # Mac/Linux
.\install.ps1    # Windows
```

---

## 🔧 Prerequisites

Items that users must **manually** prepare to run the plugin normally:

- **Node.js 18 or higher** must be installed on your system.
- **Git** should be installed for repository-local Codex hooks and optional vault sync.
- You need a project-specific Obsidian vault path. Setup can create a new vault
  or attach a compatible existing vault; Git initialization and Obsidian Git sync
  are optional approval-gated steps.

## ⚙️ Under the Hood

During setup, the plugin can help with the following tasks, but each sensitive
step is permission-gated and may be skipped. Package-manager installs, shell
profile edits, config-pointer creation, third-party downloads, community plugin
enablement, and auto-sync choices all require separate approval.

1. **Obsidian Desktop App Detection and Install Guidance**: The setup checks whether Obsidian is available in the current environment. Automatic install is only offered when the platform/context supports it and only after explicit approval. Container and WSL flows have stricter limits.
2. **Obsidian Git Plugin Choices**: After the vault exists, setup can offer `safe`, `manual`, or `team-sync` Obsidian Git options. Download, enablement, and sync behavior are separate approvals, not defaults.
3. **Local Script Generation and Environment Setup Guidance**: Setup generates onboarding scripts and can help users set `OBSIDIAN_VAULT`, but shell profile edits or Codex config-pointer creation are opt-in and approval-gated.

For Codex follow-up skills, vault resolution checks explicit `OBSIDIAN_VAULT`
first, then approved Codex hook pointers (`<repo>/.codex/oh-my-obsidian.local.json`
and `~/.codex/oh-my-obsidian.local.json`), then the optional approved config
pointer at `~/.oh-my-obsidian/config.json`.

For the beginner Codex path, the recommended repo-local hooks setup creates the
project-local pointer and protects it with `<repo>/.codex/.gitignore`, so
machine-specific vault paths are not committed and users do not need to configure
environment variables first.

## Permission Boundaries

Both Claude Code and Codex flows require explicit approval before:

- package-manager installs
- shell profile mutation
- third-party Obsidian Git downloads
- community plugin enablement
- auto-sync or team-sync behavior
- git remote changes or push operations
- overwrites, moves, deletes, or reconcile actions

Codex-only approval boundary:

- creation of Codex config pointers
- official Codex hooks installation or `.codex/*` edits

## Plugin Structure

```
oh-my-obsidian/
├── .claude-plugin/plugin.json   # Claude plugin manifest
├── commands/                    # Claude command surface
├── skills/                      # Claude/root skills
├── agents/                      # Claude sub-agents
├── hooks/                       # Claude session hooks
├── scripts/                     # Shared/root installation scripts
├── .mcp.json                    # MCP server config (optional)
├── .agents/plugins/marketplace.json
└── plugins/oh-my-obsidian/      # Codex plugin surface
```

---

<p align="center">
  <em>"A second brain for your AI."</em>
  <br/><br/>
  <strong>Oh-my-obsidian</strong>
  <br/><br/>
  <code>MIT License</code>
</p>

© hongdangmoo49 · MIT · hongdangmoo49/oh-my-obsidian

Похожие плагины

Все плагины по теме «Настройка агента: память, контекст, субагенты» →
ponytail DietrichGebert Плагин настраивает агента на короткие решения без лишних абстракций. Сгодится, когда нужно использовать возможности уже имеющегося кода и не усложнять задачу. ★ 176 443звёзд репо impeccable pbakaus Даёт агенту словарь дизайнера: 24 команды вроде polish, audit и bolder, чтобы правки интерфейса не сводились к «сделай красиво». ★ 88 212звёзд репо last-30-days-skill mvanhorn Собирает свежие посты, комментарии и транскрипты по любой теме за последний месяц и укладывает их в один отчёт. ★ 65 508звёзд репо claude-hud jarrodwatts Показывает под строкой ввода, сколько контекста занято, какие инструменты работают и как идут задачи. Пригодится, когда сессия длинная и надо видеть расход. ★ 28 841звёзд репо understand-anything Egonex-AI Плагин сканирует проект и строит интерактивный граф файлов, классов и зависимостей с веб-дашбордом. Пригодится при знакомстве с чужим или крупным кодом. ★ 88 314звёзд репо mem0 mem0ai Подключает долговременную память к Claude Code, сохраняя контекст проектов и привычки между сессиями. ★ 67 829звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой