vmark AGENTS.md

Shared instructions for AI agents working on the VMark project. They describe the project’s working rules, such as how to inspect changes, organise code, research new features, and handle translations.

In plain words
What is it for?
They are for guiding development tasks in VMark, including code changes, research, translation work, status checks, and documenting completed research.
Why use it?
They give different coding agents the same expectations when changing the project. This helps keep edits focused and consistent with the repository’s conventions.

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/xiaolai/vmark/agents-md
Clone the repo
git clone --depth 1 https://github.com/xiaolai/vmark

Made for: Codex, OpenCode.

Per session 11,152 This file is loaded in full into every session.
When invoked 11,152 The same file — it is already loaded in full.
Security scan B 1 finding. 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.11152 $0.11152
Opus 5 $0.05576 $0.05576
Sonnet 5 $0.02230 $0.02230
Haiku 4.5 $0.01115 $0.01115

Measured 2d ago against content hash 75afceaa60c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

vmark AGENTS.md scanned grade B with 1 finding 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

~20 live credentials plus the sudo password — into a commit message that
AGENTS.md · 697 lines

How it starts

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

AGENTS.md

Shared instructions for all AI agents (Claude, Codex, etc.).

  • You are an AI assistant working on the VMark project.

  • Use English regardless what languages xiaolai uses.

  • Follow the VMark working agreement:

    • Run git status -sb at session start.

    • Read relevant files before editing.

    • Keep diffs focused; avoid drive-by refactors.

    • Do not commit unless explicitly requested.

    • Keep code files under ~300 lines (split proactively).

    • Do not destructure Zustand stores in components; use selectors.

    • Prefer useXStore.getState() inside callbacks.

    • Keep features local; avoid cross-feature imports unless truly shared.

    • Research before building: For new features, search for industry best practices,
      established conventions, and proven solutions (web search, official docs, prior art in
      popular open-source projects). Don't invent when a well-tested pattern exists.

    • Archive finished deep researches: When a deep-research run finishes, write its full
      cited report (verdict, findings, refuted claims, caveats, sources) to
      dev-docs/deep-researches/YYYYMMDD-topic.md and link it from dev-docs/README.md.
      Don't leave finished research only in chat transcripts or task output files.

    • dev-docs/ and .vmark/ are maintainer-local (gitignored): they exist on
      maintainer machines, not in the public repo. References to dev-docs/ in these
      rules apply when the folder is present; skip them otherwise.

    • Edge cases are not optional: Brainstorm as many edge cases as possible — empty input,
      null/undefined, max values, concurrent access, Unicode/CJK, RTL text, rapid repeated
      actions, network failures, permission denials. Write tests for every one.

    • Test-first is mandatory for new behavior:

      • Write a failing test (RED), implement minimally (GREEN), refactor (REFACTOR).

      • Coverage thresholds are enforced — pnpm check:all fails if coverage drops.

      • Exceptions: CSS-only, docs, config. See .claude/rules/10-tdd.md for full scope.

    • Run pnpm check:all for gates.

    • check:all is the gate, not the loop. It runs ~1,465 test files, 25 lint gates and three builds; measured locally it is a ~15-minute round trip, which makes it useless as feedback while you work. Use pnpm check:fast (typecheck + cached lint + tests related to your changes) as the inner loop, and run pnpm check:all once before you push.

    • pnpm check:predelta bridges the two — run it before the confirming check:all. check:all exits on the FIRST failure, so a batch of independent check:all-only problems surfaces one per 15-minute run — using a slow gate for discovery, which this file forbids ("never use a slow gate as an instrument of discovery"). check:predelta runs every check:static leaf, plus check:servers and check:build and the runtime-file app tests — in parallel, collecting EVERY failure at once — and skips only the full instrumented app suite (test:coverage) and test:changed, which is a subset of it.

      The property it now guarantees, pinned by check-predelta.test.mjs: a green check:predelta means check:all cannot die in a gate predelta could have run. lint used to be excluded on the reasoning that check:fast covers it — true only if you happen to have run check:fast since your last edit, which a pre-push gate cannot assume. On 2026-08-21 predelta reported all 38 gates green and the confirming check:all died ~40 seconds later on five eslint errors: one full cycle spent discovering what a cached, seconds-long gate already knew. eslint is --cached and runs in parallel here, so including it costs nothing.

      typecheck has no gate of its own and is not skipped either — check:buildbuildtypecheck, so a type error surfaces as a check:build failure. Measured 1m41s vs ~15min (2026-08-21, 40 gates; it was ~40s before lint:type-aware and lint:test-types joined check:static — both are ~95s and run in PARALLEL with each other, so they set the floor together rather than adding up). It finds the whole batch in one pass (the six issues the "does not see" list below can produce: a baseline ratchet, a knip finding, a corpus-enumerating test, a sidecar ESM/coverage break, a size-limit overflow). The gate list is DERIVED from package.json, so it cannot drift; scripts/check-predelta.test.mjs pins the derivation, the collect-all behaviour, and that it stays out of check:all (it is a pre-push helper, not a CI gate). It does NOT replace check:all — the full app coverage suite still runs there.

Read the full file on GitHub · 697 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. 2d ago First seen · 697 lines · 11,152 tokens per session scan B 75afceaa60c1

Subscribe to this mod's changes

vmark AGENTS.md is an instructions file published in the GitHub repository xiaolai/vmark (544 stars, last pushed 2d ago), licensed ISC. It adds 11,152 tokens to every session, about $0.0558 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). 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

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

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

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

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

next.js 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