yarstack AGENTS.md

Repository guidance for yarstack, a software project that contains installable add-ons. It documents project rules, commands, package boundaries, and agent guidance.

In plain words
What is it for?
Use it when changing yarstack packages, skills, manifests, installers, or shared agent instructions. It also tells you which validation commands to run before finishing.
Why use it?
It gives coding agents the rules they need to make safe, consistent changes in the repository. It also helps prevent incorrect package paths, mismatched metadata, and unsafe installer tests.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/yarlson/yarstack/agents-md
Clone the repo
git clone --depth 1 https://github.com/yarlson/yarstack

Made for: Codex, OpenCode.

Per session 679 This file is loaded in full into every session.
When invoked 679 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00679 $0.00679
Opus 5 $0.00340 $0.00340
Sonnet 5 $0.00136 $0.00136
Haiku 4.5 $0.00068 $0.00068

Measured yesterday against content hash de9d570f8091, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

yarstack 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 · 42 lines

How it starts

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

Repository Rules

Commands

  • Run make validate before finalizing changes.
  • Run make install-system-prompt only when the user explicitly requests changes to global agent guidance; it writes outside the repository.
  • Test installer changes with YARSTACK_AGENT_HOME pointed at a temporary directory. Do not test destructive paths against the real home directory.

Package invariants

  • Keep each installable package self-contained under plugins/<plugin-name>/. Marketplace installs are cached copies; runtime paths must not traverse outside the owning plugin root.
  • Follow SKILL_FORMAT.md when adding or changing skills.
  • Keep Codex metadata in .codex-plugin/plugin.json, Claude metadata in .claude-plugin/plugin.json, and their marketplace schemas separate.
  • Keep each plugin's shared identity, author, repository, and version values aligned between its manifests.
  • Do not change 0.1.0 or any later explicit version unless the user requests a release/version change. When changing it, update both manifests for that plugin together.
  • Do not add a plugin-root CLAUDE.md; Claude Code does not load it as plugin context.
  • Do not declare skills, hooks, agents, MCP servers, apps, assets, or capabilities before the corresponding package content and behavior exist.

Engineering guidance

  • Treat plugins/yarstack/agent-guidance/engineering-standards/ as the canonical source for the installed system prompt.
  • Preserve policy fragment contents and assembly order unless the user explicitly requests prompt changes.
  • Preserve installer idempotency, existing symlinks, preflight rejection of dangling symlinks, and backups before replacing differing files.
  • Keep guidance installation explicit. Do not convert it into an automatic hook, startup action, or implicit plugin side effect.

Yarbrain invariants

  • Keep the canonical vault and all mutable knowledge outside the installed or cached plugin root.
  • Do not choose, create, import, or configure a vault during plugin installation. Require an explicit wiki-initialize action and preserve existing vault contents.
  • Keep lifecycle hooks lightweight. They may load a bounded index or enqueue session locators, but must not copy transcript bodies, call a model or network service, or change canonical semantic notes.
  • Preserve episodes as evidence. Search before semantic writes, keep proposed changes reviewable, and do not activate a generated skill without explicit approval.
  • Test Yarbrain with a temporary YARBRAIN_CONFIG and vault. Never use the real user configuration or vault.

Read the full file on GitHub · 42 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 First seen · 42 lines · 679 tokens per session scan A de9d570f8091

Subscribe to this mod's changes

yarstack AGENTS.md is an instructions file published in the GitHub repository yarlson/yarstack (3 stars, last pushed 4d ago), licensed MIT. It adds 679 tokens to every session, about $0.0034 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-31.