obsidian-save

obsidian-save is a command for Claude Code from eugeniughelbur/obsidian-second-brain. It costs 10 tokens per session (1,331 once invoked), scanned A, original, MIT.

A command that saves useful parts of a conversation into an Obsidian vault, a folder of linked notes. It groups saved material into people, projects, tasks, decisions, ideas, deals, and content.

In plain words
What is it for?
Use it to record people and project updates, create development logs, capture ideas and deals, and save reusable content or research findings.
Why use it?
It prevents important decisions, follow-up tasks, and research from being lost in old conversations. It can also update existing notes instead of leaving related information scattered.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PROJECT_DIR variable. Also seen: mentions subagents; mentions Claude Code.

Part of the obsidian-second-brain plugin — 1 skill, 49 commands, 3 hooks shipped together

Good fit Use it to record people and project updates, create development logs, capture ideas and deals, and save reusable content or research findings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eugeniughelbur/obsidian-second-brain/obsidian-save
About the project

obsidian-second-brain turns an Obsidian vault into persistent, searchable memory for Claude Code and other command-line coding agents, storing knowledge as linked Markdown notes. It is for developers, founders, writers, and researchers who want agents to retain project context across sessions. Its catalogue entries provide commands, hooks, a plugin, a skill, and instructions for capturing, finding, and maintaining that memory.

eugeniughelbur/obsidian-second-brain · 5,505 stars · on GitHub · theaioperator.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brain

Made for: Claude Code.

Or install obsidian-second-brain, the plugin that ships this one along with the rest of its 1 skill, 49 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for obsidian-save

README.md
[![agentmods](https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-save/github.svg)](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-save)
Your own site
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-save"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-save/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for obsidian-save

Your own site · 80×15
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-save"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-save.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,331 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.01331
Opus 5.5 $0.00004 $0.00532
Sonnet 5.5 $0.00002 $0.00266
Haiku 4.5 $0.00001 $0.00133

Measured 3d ago against content hash eac4984ded83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

obsidian-save scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/obsidian-save.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use the obsidian-second-brain skill. Execute /obsidian-save:

  1. Read _CLAUDE.md first if it exists in the vault root 1b. Keep the raw chat (opt-in, Claude Code only for now). Run uv run --directory "SKILL_ROOT" scripts/session_archive.py --latest --cwd "${CLAUDE_PROJECT_DIR:-$PWD}" --json (the skill root was given at session start as Skill root; substitute it for SKILL_ROOT). With OBSIDIAN_SESSION_ARCHIVE on, it writes a redacted copy of this conversation to raw/sessions/ (what was said, without tool output, cut into linked parts of about 7,000 characters) and prints their paths. Add the part that holds each item as a wikilink in the sources: of the note it lands in, so a later agent can follow a note back to the full chat. The steps below still pick what is worth a note; the raw copy keeps what they skip. With the flag off it prints "status": "off" and writes nothing: carry on. On other agents, skip this step.
  2. Scan the entire conversation and identify all vault-worthy items: decisions, tasks, people mentioned, projects started, ideas, learnings, deals, mentions/shoutouts, AND content-worthy items (hooks, data points, swipe-file material, research findings)
  3. Group items by type: people, projects, tasks, decisions, ideas, deals, content
  4. Spawn parallel subagents - one per group - so all note types are handled simultaneously:
    • People agent: search for each person, create or update notes, log interactions
    • Projects agent: search for each project, create or update notes. If the conversation was a substantial dev/work session (code written, problems solved, decisions made on a project), also write a dev-log note for it - the same artifact /obsidian-log produces - to the logs folder (resolved per references/folder-map.md: wiki-style wiki/logs/, Obsidian-style Dev Logs/), named YYYY-MM-DD - Project Name.md, and link it from the project's Recent Activity and today's daily note. This is why /obsidian-save absorbs /obsidian-log: a full save already captures the work, so you do not need to run both. If a dev-log for this project and date already exists, update it rather than creating a second.
    • Tasks agent: parse tasks, add to the right kanban columns
    • Decisions agent: find relevant project notes, append to Key Decisions sections
    • Ideas agent: search Ideas/ for related notes, create or append
    • Content agent (if a social-media/ folder exists in the vault): scan for content-worthy items and route them:
      • Hooks, angles, contrarian takes → append to social-media/ideas.md (dated bullet)
      • Specific numbers, stats, reusable data points → append to social-media/data-points.md (with source)
      • External posts that hit + why → append to social-media/swipe-file.md (link + reason)
      • Research findings, frameworks, methodologies → create social-media/research/YYYY-MM-DD - topic.md
  5. After all agents complete: update today's daily note with links to everything saved
  6. Report back: a clean list of what was saved and where

Search before creating anything - duplicate notes are vault rot. Propagate every write to boards, daily note, and linked notes. Never create an orphaned note.

The content agent only runs if social-media/ exists in the vault. If it doesn't exist, skip silently - don't create the folder unprompted.


AI-first rule: Every note created or updated by this command MUST follow references/ai-first-rules.md - ## For future agent preamble, rich frontmatter (type, date, tags, ai-first: true, plus type-specific fields), recency markers per external claim, mandatory [[wikilinks]] for every person/project/concept referenced, sources preserved verbatim with URLs inline, and confidence levels where applicable. If that path does not resolve from your working directory, search upward for it; if you still cannot read it, say so before writing rather than producing a note that silently skips the rule. The vault is for future agent retrieval - not human reading.

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed eac4984ded83
  2. 19d ago Changed · +6 lines 6fd1b261fe76
  3. 1mo ago Changed · +1 lines 3ae72613ca94
  4. 2mo ago Changed · +1 lines d0dcfe9fb659
  5. 3mo ago First seen · 39 lines · 10 tokens per session scan A ff18c3bc6801

Subscribe to this mod's changes

obsidian-save is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (5,505 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 1,331 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

obsidian-save compared with commands from other repositories

obsidian-save next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
obsidian-saveeugeniughelbur/obsidian-second-brainCommand5.5ktodayMITA10Claude Code
curatekimsanguine/llm-brainCommand1017d agoMITA22Claude Code
ingestkimsanguine/llm-brainCommand1017d agoMITA19Claude Code
ontologykimsanguine/llm-brainCommand1017d agoMITA12Claude Code
onboardjohnfkoo951/cmds-llm-wikiCommand1061mo agononeA139Claude Code
refresh-contextjohnfkoo951/cmds-llm-wikiCommand1061mo agononeA43Claude Code
patternsmycelium-hq/ai-brain-starterCommand61todayMITA20Claude Code