Obsidian Mind is an Obsidian vault that stores notes, links, indexes, and other accumulated context so AI coding agents can retain memory across sessions. It is designed for Claude Code and also supports Codex CLI and Gemini CLI through shared hooks, commands, and vault data. Its catalogue add-ons package the vault’s commands, agents, skills, hooks, instructions, settings, plugin, and MCP integration.
Borrowing it
Nothing to install: this file belongs to breferrari/obsidian-mind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/breferrari/obsidian-mind/main/.claude/commands/om-tidy.mdgit clone --depth 1 https://github.com/breferrari/obsidian-mindWrote 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/breferrari/obsidian-mind/om-tidy)<a href="https://agentmods.dev/commands/breferrari/obsidian-mind/om-tidy"><img src="https://agentmods.dev/badge/commands/breferrari/obsidian-mind/om-tidy/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/breferrari/obsidian-mind/om-tidy"><img src="https://agentmods.dev/badge/commands/breferrari/obsidian-mind/om-tidy.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.00045 | $0.01475 |
| Opus 5 | $0.00023 | $0.00737 |
| Sonnet 5 | $0.00009 | $0.00295 |
| Haiku 4.5 | $0.00005 | $0.00147 |
Grade A, and why
om-tidy 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 9d 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/om-tidy
The acting half of the hygiene system. The SessionStart/Stop hooks and the PostToolUse write-time flags DETECT drift; this command ACTS on it. Run on demand, at wrap-up when flags are present, or when the flag list has visibly piled up.
Hard rails (safe by construction)
- Never delete. Reorganization is
git mv+ splits with verbatim content moves. Zero content loss. - Never commit. Git sync stays the user's call — leave the working tree for review.
- Judgment calls get flagged, not executed. Anything ambiguous (does this cluster share real context? is this note's status actually done?) is listed for the user instead of acted on.
The mechanical tier (act on these)
Work through the current hygiene flags in order:
- Completed-not-archived —
git mvfromwork/active/towork/archive/YYYY/; clusters keep their folder (mirror the grouping); updatework/Index.md. Same semantics as/om-project-archive— use it for anything with ceremony. - Ungrouped clusters — when the loose notes genuinely share context (judge, don't trust token overlap): create
work/active/<Topic>/,git mvthe members in. - Oversized notes (25KB+) — SPLIT, never trim: move whole sections verbatim into domain notes, event-log satellites, or an archive note; leave a one-liner index behind in the original; retarget links that pointed at the moved sections.
*Archive*names are exempt by design. A split is complete only when the new notes are wired into the graph — search each new note's concepts (QMD when available) and link what surfaces. - Index drift, orphans, broken links — new notes must be linked from at least one note; fix wikilinks broken by any moves this pass made; update
work/Index.md/org/People & Context.md/perf/Brag Doc.mdas touched. - Semantic-linking pass — for notes created or split this pass,
qmd querytheir core concepts (index name fromvault-manifest.json) and add the links the graph is missing. - Memory-inbox promotion (
memories/YYYY/MM/) — durable captures get copied into the rightbrain/topic note. Promotion is ADDITIVE: copy, never move.recallreachesbrain/only through a capture, so deleting one removes the lesson from every repo that cannot readbrain/at all — which is the whole audience it was written for.
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.
- 9d ago First seen · 65 lines · 45 tokens per session scan A ffdae9a51d5a
om-tidy is a command published in the GitHub repository breferrari/obsidian-mind (4,615 stars, last pushed 6d ago), licensed MIT. It adds 45 tokens to every session and 1,475 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
daily-okr
Run a daily knowledge compound loop (7 KR). Invoke with /daily-okr or "start my daily review".
open
Open the memex vault in Finder or Obsidian.
canvas
AI-orchestrated visual canvas production — create, populate, layout, present, generate, and export Obsidian canvases.
update_brain
Migra a ESTRUTURA do vault da v1 para a v2 (skills→commands, CLAUDE.md→AGENTS.md) sem perder dados.
handover_chat
Salva o progresso da sessão atual em 07 - HANDOVERS/ ou em uma tarefa T0XX ativa.
handon_chat
Retoma uma tarefa T0XX ou lista handovers ativos.