obsidian-mind AGENTS.md

obsidian-mind AGENTS.md is an instructions file for Codex, OpenCode from breferrari/obsidian-mind. It costs 1,145 tokens per session, scanned B, original, MIT.

Instructions for Obsidian Mind, a note-taking vault used with several coding agents. They describe the vault's note formats and linking rules, plus shared event hooks that add context, classify messages, validate notes, and back up transcripts.

In plain words
What is it for?
Starting sessions with vault context, routing messages, checking note metadata and links, backing up transcripts, and working in the vault from another repository.
Why use it?
They help agents follow the vault's structure and keep notes and links valid across Claude Code, Codex CLI, and Gemini CLI.

Instructions file for CodexOpenCode

About the project

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.

breferrari/obsidian-mind · 4,599 stars · on GitHub

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.

agentmods
npx agentmods add instructions/breferrari/obsidian-mind/agents-md
Clone the repo
git clone --depth 1 https://github.com/breferrari/obsidian-mind

Made for: Codex, OpenCode.

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-mind AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/breferrari/obsidian-mind/agents-md.svg)](https://agentmods.dev/instructions/breferrari/obsidian-mind/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/breferrari/obsidian-mind/agents-md"><img src="https://agentmods.dev/badge/instructions/breferrari/obsidian-mind/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,145 This file is loaded in full into every session.
When invoked 1,145 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
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.01145 $0.01145
Opus 5 $0.00573 $0.00573
Sonnet 5 $0.00229 $0.00229
Haiku 4.5 $0.00114 $0.00114

Measured 6d ago against content hash 68fe756bd39d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade B, and why

obsidian-mind AGENTS.md scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Codex CLI**: Reads `AGENTS.md` natively. For direct access to `CLAUDE.md`, add to `~/.codex/config.toml`:
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 71 lines

How it starts

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

Obsidian Mind

This vault is built for Claude Code with a full operating manual in CLAUDE.md.

Read CLAUDE.md for all vault conventions — structure, note types, linking rules, frontmatter schemas, indexes, and workflows. Most of the content is agent-agnostic.

Hooks

The hook scripts in .claude/scripts/ are agent-agnostic TypeScript and shell, executed natively by Node via --experimental-strip-types — no build step, no runtime dependencies, no Claude SDK. Hook configs are provided for three agents:

Agent Config Status
Claude Code .claude/settings.json Full support
Codex CLI .codex/hooks.json Shared hook scripts
Gemini CLI .gemini/settings.json Shared hook scripts
Script Purpose Claude event Codex event Gemini event
session-start.ts Inject vault context at startup SessionStart SessionStart SessionStart
classify-message.ts Classify messages, inject routing hints UserPromptSubmit UserPromptSubmit BeforeAgent
validate-write.ts Validate frontmatter and wikilinks PostToolUse PostToolUse AfterTool
pre-compact.ts Back up transcript before compaction PreCompact PreCompress

Commands

Commands live in .claude/commands/ — agent-agnostic markdown with YAML frontmatter. brain/Skills.md is the catalog.

  • Claude Code / Gemini CLI: invoke as /om-standup, /om-dump, etc.
  • Codex CLI: type the command name as a regular prompt without the / prefix (e.g. om-standup). Codex will find and execute the command file.

Memory

The vault's memory lives in brain/Memories.md, Patterns.md, Key Decisions.md, Gotchas.md. These are plain markdown files that any agent can read and write. When you learn something worth remembering, write it to the relevant brain/ topic note with a wikilink to context.

The ~/.claude/ auto-loaded memory index is Claude Code-specific — skip that section in CLAUDE.md. The vault-side brain/ notes are the source of truth.

Read the full file on GitHub · 71 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. 6d ago First seen · 71 lines · 1,145 tokens per session scan B 68fe756bd39d

Subscribe to this mod's changes

obsidian-mind AGENTS.md is an instructions file published in the GitHub repository breferrari/obsidian-mind (4,599 stars, last pushed 3d ago), licensed MIT. It adds 1,145 tokens to every session, about $0.0057 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

obsidian-loop-wiki AGENTS.md

Instructions for uninhibited-scholar/obsidian-loop-wiki, covering agents.md — obsidian-loop-wiki, locate the vault first, node types (keep separated), ingest an article / organize the inbox and verification pass (definition of done).

uninhibited-scholar/obsidian-loop-wiki · 768 tokens

third-brain-v7-skills CLAUDE.md

Instructions for Mark393295827/third-brain-v7-skills, covering third brain v8.1 skills — claude code, v8.1 multi-domain taxonomy specification, 20 core skills overview, 📥 knowledge pipeline and 🔄 daily loop.

Mark393295827/third-brain-v7-skills · 1,124 tokens

third-brain-v7-skills GEMINI.md

Instructions for Mark393295827/third-brain-v7-skills, covering third brain v8.1 skills — gemini / antigravity cli, 20 core agent skills, 📥 knowledge pipeline, 🔄 daily loop and 🎨 behavior & creativity.

Mark393295827/third-brain-v7-skills · 894 tokens

memex-plugin CLAUDE.md

Instructions for linxule/memex-plugin, covering memex - personal knowledge base, quick start, check vault status, search for something (rrf scoring is default) and search recent docs only (7d, 2w, 3m).

linxule/memex-plugin · 2,575 tokens

onebrain GEMINI.md

Instructions for onebrain-ai/onebrain, covering onebrain — gemini cli, load order, project-level gemini config, tool name mapping and agent instructions.

onebrain-ai/onebrain · 468 tokens

ariadne AGENTS.md

Instructions for pariyar07/ariadne, covering ariadne — agent instructions, what this repo contains, how skills are structured, routing and rules.

pariyar07/ariadne · 1,885 tokens