obsidian-yolo: Instructions file for Codex

AGENTS.md

obsidian-yolo AGENTS.md is an instructions file for Codex, OpenCode from Lapis0x0/obsidian-yolo. It costs 2,313 tokens per session, scanned A, original, MIT.

Repository instructions for YOLO, an Obsidian plugin that provides AI chat, agent workflows, search-based assistance, writing tools, and learning features.

In plain words
What is it for?
Use them to decide which checks to run for host code, modules, runtime components, and styles, and to understand the project's structure.
Why use it?
They give contributors one place to check project rules, code ownership, commands, and verification steps before changing the plugin.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

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

About the project

Obsidian YOLO is an AI assistant integrated with Obsidian for chatting, writing, learning, and managing a knowledge base. It is for people who use Obsidian as a workspace for notes and personal knowledge. Catalogue add-ons provide related assistant capabilities.

Lapis0x0/obsidian-yolo · 1,341 stars · on GitHub

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lapis0x0/obsidian-yolo/agents-md.svg)](https://agentmods.dev/instructions/lapis0x0/obsidian-yolo/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lapis0x0/obsidian-yolo/agents-md"><img src="https://agentmods.dev/badge/instructions/lapis0x0/obsidian-yolo/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,313 This file is loaded in full into every session.
When invoked 2,313 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.02313 $0.02313
Opus 5 $0.01156 $0.01156
Sonnet 5 $0.00463 $0.00463
Haiku 4.5 $0.00231 $0.00231

Measured yesterday against content hash 68dbaaeeda6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

obsidian-yolo 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 yesterday.

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 · 90 lines

How it starts

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

Repository Guidelines

YOLO is an Obsidian plugin for AI chat, agent workflows, RAG, writing assistance, and independently shipped product modules such as FSRS-based Learning and the Whiteboard infinite canvas.

For a behavior ↔ code-location ↔ verification-path index (complements this file's directory-ownership rules, doesn't restate them), see FEATURE_MAP.md.

Commands

Verify what you touched: host code → type-check + relevant tests; module code → module typecheck, tests, npm --prefix modules/<id> run test:boundary when available, and module build; runtime component code → runtime typecheck, tests, build, and verify; host CSS → styles build (module CSS is rebuilt by the module build).

  • npm run dev - Build runtime components and first-party modules, then watch the host app, host styles, and dev-vault artifacts
  • npm run build - Production build with host, module, and runtime component type checking; run for changes affecting production bundling, module boundaries, runtime loading, or cross-platform behavior
  • npm run type:check / npm run module:typecheck / npm run runtime:typecheck - Type-check the host, first-party modules, or runtime components
  • npm run module:build - Rebuild first-party module artifacts and the bundled module catalog
  • npm run runtime:build / npm run runtime:verify - Rebuild runtime component artifacts and their registry, or verify the host bundle doesn't statically pull in a runtime component's dependencies
  • npm run lint:check / npm run lint:fix - Check or fix Prettier and ESLint
  • npm test - Run the full Jest suite; use npx jest <test-file> --runInBand for serial debugging
  • npm run styles:build - Regenerate the host styles.css from src/styles/**
  • npm run deps:check - Enforce the circular-dependency ratchet; after removing cycles, tighten the baseline with npm run deps:baseline

Architecture

  • src/main.ts owns the host plugin lifecycle. src/ChatView.tsx and src/components/chat-view/ own the main chat surface.
  • src/core/modules/ owns module discovery, installation, loading, activation, lifecycle, and the versioned Host API. modules/host-sdk.d.ts is the module-facing API contract.
  • modules/<id>/ owns everything in a product module: its UI, domain logic, host adapters, styles, assets, workers, and tests. modules/learning/ and modules/whiteboard/ hold the complete Learning and Whiteboard implementations.
  • src/core/runtime-components/ owns discovery, download, and lifecycle of on-demand runtime components. runtime-components/<id>/ at the repo root owns each component's source and build output; runtime-components/sdk.d.ts is the component-facing contract.
  • src/core/agent/ owns the shared native agent runtime, tool gateway, conversation service, subagents, and background tasks. Quick Ask, Sidebar Chat, and Agent Chat run through AgentService.run; permissions come from resolveChatModeRuntime.
  • src/core/cli-runtime/ owns the external CLI agent runtimes the chat surface can switch to. They are a separate execution surface alongside AgentService, not a second orchestration of it, and are desktop-only — keep their implementations out of the mobile static graph.
  • src/core/ai/single-turn.ts is the low-latency path for Sparkle (tab completion, selection rewrite, continuation). Do not route these features through the agent runtime.
  • src/core/tools/ owns every built-in tool: capabilities/ is the single registration point, and the tool catalog, settings rows, approval policy, persisted keys, and the chat summary classification are all derived from it — never add a side table. dispatcher.ts is the only execution path. Deferred disclosure is the only mode: a tool outside the request's tools array is reached through the protocol-internal invoke_tool / load_tool_schemas, which carry no capability and never appear in settings. Evaluate approval and every other per-tool policy against the unwrapped call, never the wrapper.
  • src/core/llm/, auth/, rag/, mcp/, and skills/ own shared model, provider, retrieval, and MCP capabilities.
  • src/features/ contains host-shipped cross-cutting features. src/database/, src/settings/, and src/styles/ own host persistence, settings, and global styles.

Read the full file on GitHub · 90 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. yesterday Changed · +5 tokens per session 68dbaaeeda6a
  2. 2d ago Changed · +2 lines · +198 tokens per session dda3b2f62a67
  3. 8d ago First seen · 88 lines · 2,110 tokens per session scan A 540b929cd853

Subscribe to this mod's changes

obsidian-yolo AGENTS.md is an instructions file published in the GitHub repository Lapis0x0/obsidian-yolo (1,341 stars, last pushed yesterday), licensed MIT. It adds 2,313 tokens to every session, about $0.0116 per session on Opus 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.

Related

Other instructions, from other repositories

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,182 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

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

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

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

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