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/obsidian-architect)<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-architect"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-architect/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.
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-architect"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-architect.svg" alt="Reviewed on agentmods" width="80" 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.00036 | $0.01334 |
| Opus 5 | $0.00018 | $0.00667 |
| Sonnet 5 | $0.00007 | $0.00267 |
| Haiku 4.5 | $0.00004 | $0.00133 |
Grade A, and why
obsidian-architect 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 53 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-architect [path-to-codebase]:
Turns a software project into a maintained set of architecture notes in the vault, so future-you (and future agent) can answer "how does this project work and why" without re-reading the code. Re-running refreshes the notes in place.
This is a hybrid command: a deterministic Python scan produces the facts, then YOU synthesize the prose, rationale, and diagram. Never invent structure the scan did not find (see the anti-fabrication rule).
-
Resolve the codebase path. Use the argument if given. Otherwise infer from the active project note's
local-path, or ask. Confirm it is a directory. -
Run the scan 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" scripts/architect_scan.py --path <codebase>It returns JSON:
name,kind,languages(with file counts),modules(proposed top-level parts with acore/supporthint),dependencies,entry_points,signals(dockerfile/makefile/ci), andgit(commit). It writes nothing and calls no LLM - the synthesis is yours. -
Optionally pull decision history for the "Key decisions" note:
uv run --directory "SKILL_ROOT" scripts/mine_commit_decisions.py --repo <codebase> --json -
Pick the destination. Write under the project's hub:
<projects folder>/<name>/Architecture/, with the projects folder resolved perreferences/folder-map.md(wiki-stylewiki/projects/, Obsidian-styleProjects/); create it if missing. If the vault has no project note for this codebase yet, offer to create one via/obsidian-projectfirst so the architecture links into it. -
Synthesize and write these notes, each AI-first compliant:
Architecture - Overview.md(type: architecture-overview): what the project is, its stack (fromlanguages/kind/dependencies), how the parts fit together, and ONE Mermaid diagram of the modules and their main flow. Include a short Personas section (2-4 likely user types, markedconfidence: speculationunless a README states them). Link to each module note.- One note per
coremodule (type: architecture-module):Architecture - <Module>.md- what it does, what it depends on, and its role in the whole. Keepsupportmodules to a single line in the overview unless they are substantial. Architecture - Key decisions.md(type: adrentries or a decisions list): write up the candidates from the commit-decisions miner, each as a real decision with context. Mark anything inferred asconfidence: speculation.
-
Sentinel-safe writing (so refresh never destroys your edits). Wrap every machine-generated section between markers:
<!-- @generated:start --> ...synthesized content... <!-- @generated:end -->Anything a human adds should go in a
<!-- @user:start -->...<!-- @user:end -->block, or simply outside the generated markers. On a re-run, replace ONLY the content inside@generatedblocks; never touch@userblocks or anything outside the markers. If a note has no markers yet (first run), add them around what you generate. -
Refresh behavior. If the architecture notes already exist, this is a refresh: re-scan, then update only the generated blocks whose underlying facts changed (new module, dropped dependency, etc.). Note in the overview's frontmatter the
scanned-commitso a reader knows how current the docs are. Report what changed. -
Link the overview from the project note and from today's daily note. Append a one-line entry to the operation log.
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.
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.
- 10d ago First seen · 53 lines · 36 tokens per session scan A 8494148b0c58
obsidian-architect is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,376 stars, last pushed 3d ago), licensed MIT. It adds 36 tokens to every session and 1,334 once invoked, about $0.0002 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
second-brain-mapping
Map your vault: extract structured metadata from every typed file, surface cross-doc insights, optionally build a knowledge graph.
setup-vault-types
Configure which document types your vault uses (journals, books, meetings, clients, etc.) and scaffold extractors.
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).