Yunseul

approvedunreviewed

by zaemyung

Yunseul - sparkling ripples of clarity across your Obsidian vault. Chat with your notes using LM Studio or Claude Code.

★ 2 stars↓ 1,032 downloadsUpdated 27d agoMIT

Yunseul logo — a sun setting into rippling water beneath a single sparkle

MIT licensed Latest release Obsidian 1.7.2+ Buy me a coffee

Yunseul

Yunseul — sparkling ripples on the water. Where your notes catch the light: brilliant insights amidst a chaotic web of notes.

Chat with your Obsidian vault using a local OpenAI-compatible LLM server (LM Studio, Ollama, llama.cpp server, vLLM, LocalAI), the Claude Code CLI, or the Codex CLI.

Yunseul chat panel showing the YUNSEUL wordmark, the status strip (model · bound note · context size), the logo, the tagline 'Where your notes catch the light.', four quick-start suggestion chips, and the composer with a 'Ask Yunseul' textarea

Status: Pre-1.0 — actively developed; expect breaking changes between versions.

What it does

  • Three backends, your choice. Connect to a local LLM server (LM Studio, Ollama, llama.cpp, vLLM, LocalAI) for fully-offline chat, or ride your existing Claude Code or Codex subscription via the claude / codex CLI subprocess.
  • Slash commands. Type / for a command list. /model and /effort switch model and reasoning effort for the current chat on any backend; with Claude Code you also get the CLI's own headless commands (/compact, /context, …), skills, and your <vault>/.claude/commands/.
  • Vault-aware retrieval. Optional on-device BM25 search pulls the most relevant notes for every question. A "Top retrieved sources" block under each reply shows what the model saw, with clickable wikilinks back to the originals.
  • Tied to your current note. Each session binds to the active file, so Append always lands where you started — even if you switch notes mid-conversation.
  • Streaming everything. Tokens appear as they're generated; Stop anytime; multi-turn conversations persist locally per session.
  • Provider-aware diagnostics. "Test connection" and the offline banner tell you exactly what went wrong (no model loaded, CORS off, claude not on PATH, etc.) and how to fix it.
  • Safe by default. Sanitized streaming render, sanitized writes to disk, injection-guarded vault excerpts, secret-redacted debug output. External images and unsafe URL schemes in assistant output never silently fetch.
  • Operator's Console aesthetic. Bubble-less, typographically driven, theme-aware. Plays well with Catppuccin, Things, Minimal, and stock Obsidian.

Providers

Yunseul ships three backends. The active one is selected under Settings → Yunseul → Provider.

LM Studio (and other OpenAI-compatible local servers)

Talks to any server that implements the OpenAI /chat/completions SSE protocol — LM Studio, Ollama, llama.cpp server, vLLM, LocalAI. Configure the base URL, API key (if your server requires one), and the model id in Settings → Yunseul. Everything runs on your machine: prompts, vault excerpts, and retrieved chunks never leave the host.

Claude Code subprocess

Spawns the local claude CLI binary. Yunseul does NOT manage an API key for this provider; it rides on your existing Claude Code authentication (Pro/Max OAuth, Anthropic Console, Bedrock, Vertex, etc.) as configured in your Claude Code install. Configure the binary path (optional — defaults to claude on PATH) and model in Settings → Yunseul → Provider: Claude Code subprocess. Writes (Edit/Write tools) are off by default; toggle "Enable file writes" to let the assistant modify vault files.

Codex CLI subprocess

Spawns the local codex CLI (codex exec --json). As with Claude Code, Yunseul manages no API key: it rides on your existing Codex login (codex login, ChatGPT or API key) and your ~/.codex/config.toml defaults. Configure the binary path (optional — defaults to codex on PATH), a default model, and a default reasoning effort under Settings → Yunseul → Provider: Codex. Each chat continues the same Codex thread (codex exec resume), so follow-up questions keep their context. Codex runs model-issued shell commands inside its own sandbox: read-only by default; toggle "Enable file writes" to switch to the workspace-write sandbox so it can modify vault files. Approval prompts are disabled (there is nobody to answer them from a non-interactive process), so the sandbox is the only guard.

Slash commands

Type / in the composer for a command list. On every backend, Yunseul handles these itself:

  • /model opens a picker of the models your backend offers, the way the CLIs' own /model does: arrow keys or typing to filter, Enter or a click to apply, default at the top to go back to the setting. The row in effect is marked "current". With Claude Code the list is the CLI's documented aliases (sonnet, opus, haiku, fable, best, the [1m] variants, opusplan); with Codex it is the account's model catalog that the Codex CLI keeps locally, with each model's description; with LM Studio it is whatever the server has loaded. /model <id> still applies an id directly, including ones that are not listed. The choice is stored with the chat and shown in the status strip.
  • /effort does the same for reasoning effort. Claude Code offers low, medium, high, xhigh, max; Codex offers the levels the current model supports (from the same local catalog; typically low through ultra, and the picker adjusts when you switch model); LM Studio has no effort setting.
  • /clear starts a new chat, so the transcript and the backend session stay in step.

With the Claude Code provider, any other message that starts with / is handed to the CLI as a command, the same way it works in the terminal:

  • Custom commands and skills work — <vault>/.claude/commands/*.md, <vault>/.claude/skills/, and your user-level ~/.claude/ ones. The vault root is the CLI's working directory, so vault-specific commands live inside the vault.
  • Headless-capable built-ins such as /compact, /context, and /usage run inside the CLI and their output appears as the reply. /compact shows a one-line "Conversation compacted" notice and the session carries on with the compacted history.
  • The popover lists what your CLI advertises for headless use. Yunseul learns the list from the CLI itself on every reply, so the CLI's entries appear after your first Claude Code reply and always match the installed version.
  • Terminal-only commands (/help, /login, /theme, …) reply with the CLI's "isn't available in this environment" notice.
  • Tool permissions still apply. Yunseul pre-approves only Read, Grep, and Glob (plus Edit and Write when "Enable file writes" is on), so skills that need Bash, subagents, or the web are denied by the CLI.

Codex's own interactive slash commands do not exist in its non-interactive mode, so with Codex only the three Yunseul commands above apply; any other /text is sent as a normal message.

Privacy & data flow

  • LM Studio path: prompts, vault excerpts, and retrieved chunks stay on your machine. No network calls leave the host beyond the local server URL you configured.
  • Claude Code path: prompts, vault excerpts, and retrieved chunks are sent to Anthropic via your authenticated claude CLI. See Anthropic's privacy policy: https://www.anthropic.com/legal/privacy
  • Codex path: prompts, vault excerpts, and retrieved chunks are sent to OpenAI via your authenticated codex CLI, which also keeps its own session transcripts under ~/.codex/. See OpenAI's privacy policy: https://openai.com/policies/privacy-policy
  • Codex model picker reads two of the Codex CLI's own local files to list models: ~/.codex/models_cache.json (the catalog the CLI fetches and refreshes itself) and the top-level model key of ~/.codex/config.toml. Both reads are local and read-only; Yunseul never writes to ~/.codex/ and never fetches the catalog itself. $CODEX_HOME is honoured.
  • BM25 index stays in your vault at <vault>/.yunseul/bm25-index.json. It is never uploaded by Yunseul itself; any sync service watching the vault will see it (see "Sync services" below).
  • Sessions persist locally at <vault>/.obsidian/plugins/yunseul/sessions/<id>.json.
  • Environment variables are allowlist-filtered, not collected. Each CLI subprocess inherits only a minimal allowlist: PATH, locale, and proxy vars for both, plus the auth vars its own CLI needs — CLAUDE_*/ANTHROPIC_*/AWS_*/GOOGLE_*/VERTEX_* for Claude Code, OPENAI_*/CODEX_* for Codex — and never the other provider's. Everything else — including all ELECTRON_* internals — is stripped. Yunseul never reads hostname, username, or hardware identifiers, and no environment data leaves your machine.
  • Clipboard is write-only and user-initiated. The Copy buttons write chat text to the clipboard; Yunseul never reads from it.
  • API keys for the LM Studio provider are stored in plain text in <vault>/.obsidian/plugins/yunseul/data.json (Obsidian's standard plugin data location).
  • No telemetry, no analytics, no automatic network calls without an explicit user action (sending a message, clicking Test Connection, or building the vault index).
  • Persisted assistant output is sanitized. When Append or Download writes assistant text to a vault note, external images, data: URIs, Obsidian ![[embed]] syntax, and unsafe link schemes are rewritten as bracketed placeholder text (e.g., [blocked external image: host], [blocked data image], [embed stripped: target]). This applies to both Append-to-note and Download-as-Markdown paths, is independent of the in-chat "Allow external images" toggle, and cannot currently be disabled.

Installation

Community plugin store (recommended)

  1. Open Settings → Community plugins in Obsidian.
  2. Turn Restricted mode off.
  3. Click Browse, search for "Yunseul", and install.
  4. Enable Yunseul.

Manual install

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create a folder at <vault>/.obsidian/plugins/yunseul/ and drop the three files into it.
  3. In Obsidian: Settings → Community plugins → Restricted mode OFF → Yunseul.

Vault search & the on-disk index

When the "Enable vault search" toggle is on, Yunseul builds a BM25 inverted index over every markdown file in your vault. The index lives at:

<vault>/.yunseul/bm25-index.json

Notes on this file:

  • It is stored as a single JSON document under the vault root (NOT inside .obsidian/) so it survives plugin reinstall.
  • Size scales roughly with the total token count of the indexed bodies. A vault of 5,000 notes typically produces a 30-150 MB index; a vault of 50,000 notes can produce a multi-hundred-MB index.
  • The file is rewritten atomically (*.tmp sibling + rename) whenever an indexed note changes. The debounce window is 1.5 seconds.

Sync services

The index file lives under the vault root, so anything that watches the vault will see and potentially sync it. To exclude it:

  • Obsidian Sync: Obsidian Sync ignores hidden files (paths starting with .) by default, which covers .yunseul/. Verify in your sync settings.
  • iCloud (macOS): Append .nosync to the directory to opt out: rename .yunseul to .yunseul.nosync. Note this requires updating the path in the plugin code.
  • Syncthing: Add .yunseul/ to the folder's .stignore file.
  • Dropbox / OneDrive / Google Drive: Most desktop clients do not provide per-folder ignore lists; consider moving your vault out of the synced folder if you don't want a multi-hundred-MB index uploaded.
  • git: Add .yunseul/ to your vault's .gitignore.

Resetting the index

To remove the on-disk index, either:

  • Open Settings → Yunseul → Vault search → Reset index, or
  • Run the command "Reset vault index" from the command palette.

Both routes show a confirmation modal before deleting the file.

Contributing & building from source

See CONTRIBUTING.md for dev setup, code conventions, architecture overview, and how to add a provider or setting.

Support the work

Yunseul is built with care, in spare hours, by one person — alongside other small things that try to make a few minutes of someone's day a little brighter. If it's been useful to you, a coffee keeps the next small bright thing alive.

Buy me a coffee

Buy me a coffee QR code

More small things at zaemyung.github.io.

License

MIT. See LICENSE.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.