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.
npx agentmods add instructions/xiaolai/vmark/agents-mdgit clone --depth 1 https://github.com/xiaolai/vmarkWhat 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.
| Model | Per session | Once 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 |
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 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 -sbat 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.mdand link it fromdev-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 todev-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:allfails if coverage drops. -
Exceptions: CSS-only, docs, config. See
.claude/rules/10-tdd.mdfor full scope.
-
-
Run
pnpm check:allfor gates. -
check:allis 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. Usepnpm check:fast(typecheck+ cachedlint+ tests related to your changes) as the inner loop, and runpnpm check:allonce before you push. -
pnpm check:predeltabridges the two — run it before the confirmingcheck:all.check:allexits on the FIRST failure, so a batch of independentcheck: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:predeltaruns everycheck:staticleaf, pluscheck:serversandcheck:buildand the runtime-file app tests — in parallel, collecting EVERY failure at once — and skips only the full instrumented app suite (test:coverage) andtest:changed, which is a subset of it.The property it now guarantees, pinned by
check-predelta.test.mjs: a greencheck:predeltameanscheck:allcannot die in a gate predelta could have run.lintused to be excluded on the reasoning thatcheck:fastcovers it — true only if you happen to have runcheck:fastsince your last edit, which a pre-push gate cannot assume. On 2026-08-21 predelta reported all 38 gates green and the confirmingcheck:alldied ~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.typecheckhas no gate of its own and is not skipped either —check:build→build→typecheck, so a type error surfaces as acheck:buildfailure. Measured 1m41s vs ~15min (2026-08-21, 40 gates; it was ~40s beforelint:type-awareandlint:test-typesjoinedcheck: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, asize-limitoverflow). The gate list is DERIVED frompackage.json, so it cannot drift;scripts/check-predelta.test.mjspins the derivation, the collect-all behaviour, and that it stays out ofcheck:all(it is a pre-push helper, not a CI gate). It does NOT replacecheck:all— the full app coverage suite still runs there.
-
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.
- 2d ago First seen · 697 lines · 11,152 tokens per session scan B 75afceaa60c1
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.
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.
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).
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.
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.
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).
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.