optimike-obsidian-mcp: Instructions file for Codex

AGENTS.md

optimike-obsidian-mcp AGENTS.md is an instructions file for Codex, OpenCode from optimikelabs/optimike-obsidian-mcp. It costs 1,111 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for an Obsidian MCP server, a program that lets tools communicate with an Obsidian vault. It defines safe write procedures, security boundaries, testing rules, and stable tool contracts.

In plain words
What is it for?
Use it as guidance when developing or modifying the server, its Obsidian plugins, transports, write operations, and tests.
Why use it?
It prevents unsafe vault changes, bypassed recovery controls, false success reports, and tests against real user data.

Instructions file for CodexOpenCode

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

This is optimikelabs/optimike-obsidian-mcp's own configuration. It tells Codex and OpenCode how to work on optimike-obsidian-mcp 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 optimike-obsidian-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to optimikelabs/optimike-obsidian-mcp. 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/optimikelabs/optimike-obsidian-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/optimikelabs/optimike-obsidian-mcp

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/optimikelabs/optimike-obsidian-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/optimikelabs/optimike-obsidian-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,111 This file is loaded in full into every session.
When invoked 1,111 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.01111 $0.01111
Opus 5.5 $0.00444 $0.00444
Sonnet 5.5 $0.00222 $0.00222
Haiku 4.5 $0.00111 $0.00111

Measured 23d ago against content hash 7f91fed97454, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

optimike-obsidian-mcp 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 23d 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.

AGENTS.md · 94 lines

How it starts

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

Optimike Obsidian MCP

TypeScript MCP server for Obsidian, with stdio/HTTP transports, shared runtime state and Obsidian plugins under plugins/. Read README for the product, Operations for runtime setup, Security for trust boundaries and the documentation hub for contracts.

Invariants never traded

  • No new vault write path without a sealed plan. Preserve governed plan → apply → status → recover, CAS, idempotency and effect fences; never bypass them through a direct/legacy tool or raw Markdown fallback.
  • Never report a silent, failed or uncertain write as success. Reconcile the same plan through its journal and public status/recovery contract.
  • Keep the public tool contract stable: names, schemas, annotations, errors, profiles and capability claims must agree with what the runtime can execute.
  • The real vault is never test data. Use synthetic fixtures in an isolated test vault, with private temporary cache and journal state.

The three ways to hurt yourself

  1. Killing by name or path. Several agents and the shared backend use this machine. Stop only a process whose PID you recorded when you started it; never kill by a process name, path or worktree pattern.
  2. Leaking a secret. Never print or commit credentials, private vault content or local runtime configuration, including in PRs and review reports.
  3. Writing to a real vault. Check the resolved vault, REST endpoint and canary target before a live smoke. Follow the relevant Operations runbook; a canary confirmation does not authorize using an ordinary user note.

Hit every surface

For a tool change, trace the applicable entries below and state in the PR which apply. The Operon paths are a concrete example, not a requirement to edit every file for every change.

  • MCP registration/schema: src/mcp-server/tools/, including operonTools/registration.ts; service/input/refusal contracts in src/services/operon/.
  • Bridge HTTP route and contract: the relevant plugins/*/src/main.ts and contract.ts; Operon Developer API sessions, exact grants and native payloads in plugins/obsidian-operon-bridge/src/developer-api-adapter.ts.
  • Profiles and tool visibility: src/mcp-server/toolSurfaceRegistry.ts, src/mcp-server/toolProfiles.ts, evals/tool-catalog.v1.json.
  • Capability claims: src/services/capabilityManifest.ts; authorization: src/services/writePolicy.ts and src/mcp-server/vaultInstructionsGate.ts, including every exact target of a batch.
  • User contracts: README.md / README.fr.md, OPERATIONS.md / OPERATIONS.fr.md, relevant EN/FR pages under docs/ and plugin READMEs.
  • Surface evidence: relevant scripts/test-tool-*.mjs, scripts/test-http-tool-profiles.mjs, scripts/test-capability-*.mjs, scripts/test-vault-instructions*.mjs and the affected Bridge tests. Protect membership and refusals rather than copying total tool counts.

Read the full file on GitHub · 94 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. 23d ago First seen · 94 lines · 1,111 tokens per session scan A 7f91fed97454

Subscribe to this mod's changes

optimike-obsidian-mcp AGENTS.md is an instructions file published in the GitHub repository optimikelabs/optimike-obsidian-mcp (43 stars, last pushed today), licensed Apache-2.0. It adds 1,111 tokens to every session, about $0.0044 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-12.

Related

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

optimike-obsidian-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimike-obsidian-mcp AGENTS.mdoptimikelabs/optimike-obsidian-mcpInstructions file43todayApache-2.0A1,111Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot