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.
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.
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brainWrote 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.
[](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/research)<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/research"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/research.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.01119 |
| Opus 5 | $0.00028 | $0.00560 |
| Sonnet 5 | $0.00011 | $0.00224 |
| Haiku 4.5 | $0.00006 | $0.00112 |
Grade A, and why
research 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 8d 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.
What it actually says
Use the obsidian-second-brain skill. Execute /research [topic]:
-
Resolve the topic from the user's argument. Multi-word topics fine ("AI memory tools", "vector databases for RAG"). If no topic, ask: "What topic should I research?"
-
Run the script from the skill root (its absolute path was given at session start as Skill root; substitute it for
SKILL_ROOT):uv run --directory "SKILL_ROOT" -m scripts.research.research "<topic>"The script auto-selects its mode: if
PERPLEXITY_API_KEYis set it uses Perplexity Sonar (paid); otherwise it falls back to free, key-less sources. Pass--freeto force free mode even when a key is set, or--academic(free mode only) to restrict to scholarly sources (arXiv, Semantic Scholar, OpenAlex, CrossRef). IfTAVILY_API_KEYorBRAVE_API_KEYis set, that source joins the free-mode pool as an extra web source; without them the pool stays fully key-less - never require either. -
Handle the output by mode:
- Paid mode - the script prints a finished dossier (Summary, Key Facts with recency markers, Timeline, Key Players, Contrarian Views, Further Reading, Open Questions, Sources) and saves the AI-first note itself to
Research/Web/plus a log line. Show the dossier verbatim, then surface the saved file path. Nothing else to do. - Free mode - the script prints a JSON block with
"mode": "free-sources", containingresults(raw items per source: title, url, snippet/abstract, authors, year, points, comments),stats, andwarnings. YOU synthesize the dossier from it: a. Read the JSON. Ifstats.successis false (fewer than 3 sources returned results), say so plainly and flag the thin coverage in Open Questions - do not pad. b. Write a dossier with the same structure as paid mode. Every Key Fact carries a recency marker and the source domain/URL it came from. Never invent facts to fill a section; if the sources are thin, the section is short or empty (see the anti-fabrication rule below). c. Save it yourself as an AI-first note atResearch/Web/YYYY-MM-DD - <slug>.mdperreferences/ai-first-rules.md(preamble, frontmatter withtype: research,ai-first: true, asourceslist of every result URL verbatim, tags). Append a one-line entry to the operation log (Logs/YYYY-MM-DD.mdif it exists, elselog.md). d. Show the dossier to the user and surface the saved path.
- Paid mode - the script prints a finished dossier (Summary, Key Facts with recency markers, Timeline, Key Players, Contrarian Views, Further Reading, Open Questions, Sources) and saves the AI-first note itself to
-
Plain English triggers: "research [topic]", "look up [topic]", "deep research on [topic]" (note: "do deep research" or "research deep" should route to
/research-deepinstead - the chained version), "find me info on [topic]". -
If the user wants ALSO X discourse on the same topic, suggest running
/x-pulse [topic]after this. If they want full vault-aware synthesis with propagation, suggest/research-deep [topic]. -
Errors handled inside the script with auto-retry on transient failures. Surface fatal errors verbatim.
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.
Anti-fabrication: Search exhaustively before claiming any note, person, or file is absent - false absence is the most common failure mode - and never invent facts, entities, or dates (mark unknowns as TBD). See the anti-fabrication and search-completeness hard rules in references/ai-first-rules.md.
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.
- 8d ago First seen · 39 lines · 55 tokens per session scan A fbc72969aaf2
research is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,364 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,119 once invoked, about $0.0003 per session on Opus 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.
Other commands, from other repositories
cierre
A sales call just ended: turn its transcript into the full follow-up (CRM, tasks, email draft, reminder, coaching).
daily-journal
Daily journal interview and entry creator with emotional floor tagging.
deconstruct
First-principles analyst: surface hidden assumptions, find foundational truths, rebuild from scratch.
diagnose
Run a self-check on your AI Brain Starter install (CLAUDE.md, Meta folder, skills, hooks, MCPs).
evolve
Cluster hardened instincts into a proposed Command / Skill / Agent (Instinct Engine).
graphify
Turn your vault into a clustered knowledge graph with HTML and JSON outputs.