obsidian-agentic-resource-discovery-server: Instructions file for Codex

AGENTS.md

obsidian-agentic-resource-discovery-server AGENTS.md is an instructions file for Codex, OpenCode from dsebastien/obsidian-agentic-resource-discovery-server. It costs 10,008 tokens per session, scanned A, a copy of obsidian-transcriber AGENTS.md, MIT.

Project instructions for an Obsidian plugin that publishes skills and agent resources from a local vault. It creates a searchable catalog and serves resources through local REST and MCP interfaces.

In plain words
What is it for?
Use it when documenting, building, or modifying this Obsidian plugin, especially its catalog, local server, routing, resource serving, and security behavior.
Why use it?
It gives contributors the project’s architecture, terminology, and required rules in one place before they change the code.

Instructions file for CodexOpenCode

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

This is dsebastien/obsidian-agentic-resource-discovery-server's own configuration. It tells Codex and OpenCode how to work on obsidian-agentic-resource-discovery-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-agentic-resource-discovery-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dsebastien/obsidian-agentic-resource-discovery-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/dsebastien/obsidian-agentic-resource-discovery-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/dsebastien/obsidian-agentic-resource-discovery-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-agentic-resource-discovery-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dsebastien/obsidian-agentic-resource-discovery-server/agents-md.svg)](https://agentmods.dev/instructions/dsebastien/obsidian-agentic-resource-discovery-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dsebastien/obsidian-agentic-resource-discovery-server/agents-md"><img src="https://agentmods.dev/badge/instructions/dsebastien/obsidian-agentic-resource-discovery-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 10,008 This file is loaded in full into every session.
When invoked 10,008 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 94% copy Near-identical to another mod 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.10008 $0.10008
Opus 5 $0.05004 $0.05004
Sonnet 5 $0.02002 $0.02002
Haiku 4.5 $0.01001 $0.01001

Measured 8d ago against content hash af72b5834124, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

obsidian-agentic-resource-discovery-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 8d 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.

Origin

This is a copy

94% identical to obsidian-transcriber AGENTS.md — 90 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 772 lines

How it starts

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

This project: obsidian-agentic-resource-discovery-server

Read this first. It orients you in this codebase; the generic template guidance follows below.

What it is. An Obsidian plugin (isDesktopOnly) that turns the vault into a local-first Agentic Resource Discovery (ARD) publisher + Agent Registry: it scans AI Skills into an ai-catalog.json and serves it (REST + MCP) on 127.0.0.1 so local AI agents can search and fetch resources.

Start here.

How the code is shaped (deep modules, tested through their interface).

  • The HTTP layer is split: server/router.ts is a pure RegistryRequest → RegistryResponse function (all endpoint behaviour, fully unit-tested without sockets); server/http-server.ts is a thin node:http adapter over it. Don't put behaviour in the adapter.
  • server/registry-controller.ts is the only seam the plugin drives (start/stop/rebuild/setSkillEntries). It owns the catalog, the SearchBackend, the SkillFileService, and the server. The router closes over a mutable RouterDeps, so a rebuild swaps the catalog in place.
  • Pluggable seams: SearchBackend (search/search-backend.ts, default lexical-search-backend.ts, built via search-backend-factory.ts) and SkillFileService (skills/skill-file-server.ts). Add new behaviour as a new implementation, not a flag.
  • The MCP endpoint (mcp/) is hand-rolled JSON-RPC (not @modelcontextprotocol/sdk) + a QuickJS WASM Code Mode sandbox (mcp/sandbox.ts).

Conventions specific to this repo.

  • Test-first (TDD), verify on real data. Write the *.spec.ts red→green per module; run a single file with bun test <path>. The scanner/enricher are verified against the real ~395-skill vault at /c/users/trankill/My Drive/Notes/Seb/.claude/skills — a real-data smoke test already caught a Date.slice bug that unit tests missed.
  • Frontmatter is untrusted. js-yaml turns unquoted dates into Date objects and yields numbers/booleans; always coerce via asString/asStringArray (see skills/skill-enricher.ts) before string ops. Do not reintroduce gray-matter — it calls yaml.safeLoad, removed in the repo's pinned js-yaml@4.
  • Lint gotchas: plugin lifecycle methods return void (not Promise) — fire-and-forget with void; use window.setTimeout, never bare setTimeout; avoid NodeJS.* type references (no-undef); no String(unknown) (no-base-to-string) — narrow with typeof x === 'string'. *.spec.ts files may use fetch and any (override in eslint.config.ts).
  • Always finish a change green: bun run validate (tsc + tests + lint) and bun run build. Keep the plan's §1a status table updated and commit per milestone with a conventional-commit message (allowed scopes: all/build/deps/docs/plugin).

Read the full file on GitHub · 772 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. 8d ago First seen · 772 lines · 10,008 tokens per session scan A af72b5834124

Subscribe to this mod's changes

obsidian-agentic-resource-discovery-server AGENTS.md is an instructions file published in the GitHub repository dsebastien/obsidian-agentic-resource-discovery-server (6 stars, last pushed 6d ago), licensed MIT. It adds 10,008 tokens to every session, about $0.0500 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to obsidian-transcriber AGENTS.md, differing in 90 lines, and is treated as a copy.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens