krouter-obsidian

krouter-obsidian is a cursor rule for Cursor from 398894496-arch/runtime36. It costs 287 tokens per session, scanned A, original, MIT.

A routing rule for questions that depend on an Obsidian vault, a folder of linked notes and files. It sends those questions through KRouter Obsidian and checks the vault's stored knowledge before answering.

In plain words
What is it for?
Use it when answering questions about vault state, durable project knowledge, past decisions, or saved working methods.
Why use it?
It helps preserve project history, preferences, corrections, and reusable methods instead of relying only on the current conversation.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Codex.

Good fit Use it when answering questions about vault state, durable project knowledge, past decisions, or saved working methods.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/398894496-arch/runtime36/krouter-obsidian
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.

Clone the repo
git clone --depth 1 https://github.com/398894496-arch/runtime36

Made for: Cursor.

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 krouter-obsidian

README.md
[![agentmods](https://agentmods.dev/badge/rules/398894496-arch/runtime36/krouter-obsidian/github.svg)](https://agentmods.dev/rules/398894496-arch/runtime36/krouter-obsidian)
Your own site
<a href="https://agentmods.dev/rules/398894496-arch/runtime36/krouter-obsidian"><img src="https://agentmods.dev/badge/rules/398894496-arch/runtime36/krouter-obsidian/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 krouter-obsidian

Your own site · 80×15
<a href="https://agentmods.dev/rules/398894496-arch/runtime36/krouter-obsidian"><img src="https://agentmods.dev/badge/rules/398894496-arch/runtime36/krouter-obsidian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 287 This file is loaded in full into every session.
When invoked 287 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.00287 $0.00287
Opus 5.5 $0.00115 $0.00115
Sonnet 5.5 $0.00057 $0.00057
Haiku 4.5 $0.00029 $0.00029

Measured 1mo ago against content hash 25818c0820f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

krouter-obsidian 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 1mo 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.

extras/cursor/krouter-obsidian.mdc · 14 lines

What it actually says

When a question depends on durable preferences, corrections, project history, reusable methods, or vault state:

  1. Set OBSIDIAN_VAULT to the vault root.
  2. Follow ~/.agents/skills/krouter-obsidian/SKILL.md.
  3. Run ~/.agents/skills/krouter-obsidian/scripts/route_knowledge.sh for the needed route (Windows: python3 route_knowledge.py). Use status only when you need system state.
  4. If the receipt has host_action:, tell the host that line (paste *_API_KEY on the vault key page, or log in grok / official Codex / claude). Do not print secrets.
  5. Do not read 下意识.md. If canonical_match: true, answer from how when it closes the question; cite canonical_source. Open the page only if how does not close it. If correction_first: yes, run correction first. Do not dump the vault.
  6. If the receipt has host_prompt:, ask the host that sentence and stop. Do not pick a winner among suggestions. On a miss with suggestions: and conflict: no, retry one suggested alias once.
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. 1mo ago Changed · +1 lines · +78 tokens per session 25818c0820f1
  2. 1mo ago First seen · 13 lines · 209 tokens per session scan A 3fade60aa876

Subscribe to this mod's changes

krouter-obsidian is a cursor rule published in the GitHub repository 398894496-arch/runtime36 (37 stars, last pushed 1mo ago), licensed MIT. It adds 287 tokens to every session, about $0.0011 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-08-30.