obsidian-mcp-server: Instructions file for Codex

AGENTS.md

obsidian-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from sunub/obsidian-mcp-server. It costs 637 tokens per session, scanned A, original, ISC.

Project instructions for developing the Obsidian MCP server, including file organization, dependency rules, and a no-code-comments policy. An MCP server connects an AI assistant to external tools or data.

In plain words
What is it for?
Use it when modifying the Obsidian MCP server so new or edited code follows its repository rules.
Why use it?
It keeps related code together, prevents unwanted dependencies between features, and records the project's coding conventions for future changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is sunub/obsidian-mcp-server's own configuration. It tells Codex and OpenCode how to work on obsidian-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sunub/obsidian-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sunub/obsidian-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/sunub/obsidian-mcp-server

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-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sunub/obsidian-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/sunub/obsidian-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sunub/obsidian-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/sunub/obsidian-mcp-server/agents-md/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-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sunub/obsidian-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/sunub/obsidian-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 637 This file is loaded in full into every session.
When invoked 637 The same file — it is already loaded in full.
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.00637 $0.00637
Opus 5.5 $0.00255 $0.00255
Sonnet 5.5 $0.00127 $0.00127
Haiku 4.5 $0.00064 $0.00064

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

Security

Grade A, and why

obsidian-mcp-server AGENTS.md 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 today.

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.

AGENTS.md · 37 lines

What it actually says

obsidian-mcp-server

코드 규칙

코드에 주석을 쓰지 않는다

주석은 코드가 바뀌어도 함께 갱신되지 않아 곧 사실과 어긋난다. 의도는 이름, 타입, 함수 분리로 드러낸다. 설명이 꼭 필요하면 커밋 메시지나 docs/에 쓴다.

예외는 도구가 읽는 지시문(biome-ignore, @ts-expect-error)뿐이며, 이유를 한 줄로 붙인다. 기존 주석은 해당 코드를 수정할 때 함께 지운다.

기능마다 폴더 하나

한 기능의 코드, 타입, 파라미터 스키마, 보조 함수는 그 기능의 폴더 안에 둔다. src/tools/<tool>/이 기준 형태다. 기능을 지우려면 폴더 하나만 지우면 되는 상태를 유지한다. 테스트는 tests/unit/에 둔다.

여러 기능이 쓰는 코드는 기능 폴더에 두지 않고 아래 shared로 옮긴다. shared는 src/shared/<역할>/ 폴더로 나눈다. 역할이 드러나지 않는 utils 같은 폴더를 만들지 않는다.

import 금지 규칙은 엄격하게 지킨다

기능 폴더가 import할 수 있는 대상은 세 가지뿐이다.

  • 자기 폴더 안의 파일
  • @shared/*
  • 외부 패키지

다른 기능 폴더를 import하지 않는다. 그럴 필요가 생기면 필요한 코드를 src/shared/로 옮겨 양쪽이 @shared/*로 쓰게 한다. 기능 사이를 직접 잇는 편이 짧아 보여도, 그렇게 쌓인 의존이 순환과 삭제 불가능한 코드를 만든다.

  • src/shared/는 기능 폴더를 import하지 않는다. 의존 방향은 기능, 그다음 shared 한 방향이다.
  • 옮길 때는 두 번째 사용처가 실제로 생긴 시점에 옮긴다. 쓸 일이 생길지 모르는 코드를 미리 shared에 넣지 않는다.
  • shared에 추가한 코드는 순환이 생기지 않았는지 npm run build로 확인한다.

기존 코드의 도구 간 직접 import는 이 규칙 이전에 만들어졌다. 건드리는 파일에서만 규칙에 맞게 고치고, 규칙 때문에 관련 없는 파일을 대규모로 바꾸지 않는다.

<teaching_guidelines> The user is constantly learning new systems and domains. Whenever introducing a core term that the user is likely unfamiliar with, briefly explain it in 1-2 sentences and move on. Use the prefix "💡" for these explanations. (e.g., 💡 [Term]: [1-2 sentences explanation]) </teaching_guidelines>

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. today First seen · 37 lines · 637 tokens per session scan A e60ee40b019a

Subscribe to this mod's changes

obsidian-mcp-server AGENTS.md is an instructions file published in the GitHub repository sunub/obsidian-mcp-server (2 stars, last pushed yesterday), licensed ISC. It adds 637 tokens to every session, about $0.0025 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-11-27.

Related

obsidian-mcp-server AGENTS.md compared with instructions from other repositories

obsidian-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
obsidian-mcp-server AGENTS.mdsunub/obsidian-mcp-serverInstructions file2yesterdayISCA637Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,377GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot