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/qwenlm/qwen-code/agents-mdgit clone --depth 1 https://github.com/QwenLM/qwen-codeWhat 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.03617 | $0.03617 |
| Opus 5 | $0.01809 | $0.01809 |
| Sonnet 5 | $0.00723 | $0.00723 |
| Haiku 4.5 | $0.00362 | $0.00362 |
Grade A, and why
qwen-code 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 327 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Working Principles
Simplicity First
Minimum code that solves the problem. Nothing speculative. (This is the principle we care about most.)
- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
Core Infrastructure Is Maintainer-Only (triage gate, two-tier rule)
Core modules — packages/core/src/**, packages/*/src/auth/**,
packages/*/src/providers/**, packages/*/src/models/**,
packages/*/src/config/**, packages/*/src/tools/**,
packages/*/src/services/**, cross-package changes — are the architectural
backbone. External PRs touching them face a two-tier gate (maintainer-authored
PRs are exempt):
- Large-scope
refactorchanges (500+ production logic lines in core, excluding test and generated/schema files) → hard block. Skip evaluation entirely — the maintainer exemption above is the sole exception. Large-scale core refactors must be maintainer-initiated. When counting lines, exclude files matching*.test.ts,*.test.tsx,*.spec.ts,*.spec.tsx,__tests__/**,*.schema.ts,*.schema.json,*.generated.ts, and**/generated/**— only production logic counts.feat-type and other non-refactorPRs are NOT hard-blocked on size; they escalate to the maintainer for awareness instead. A non-blocking advisory also applies at 1000+ production logic lines. Breadth alone is not size — a low-risk sweep that touches 10+ files but changes a line or two each is escalated to a maintainer for awareness and otherwise judged under Tier 2's 100%-confidence bar, not auto-rejected on file count. - Small-scope changes → gate may evaluate, but must be 100% confident. Any doubt at all → escalate to maintainer. "The direction looks correct" is not confidence. The gate must name every downstream consumer; if it cannot, escalate.
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.
- 3d ago First seen · 327 lines · 3,617 tokens per session scan A c3a7b9451f6f
qwen-code AGENTS.md is an instructions file published in the GitHub repository QwenLM/qwen-code (27,559 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,617 tokens to every session, about $0.0181 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.
Other instructions, from other repositories
parallel-code CLAUDE.md
Instructions for johannesjo/parallel-code, covering parallel code, stack, commands, project structure and conventions.
loongsuite-pilot AGENTS.md
Instructions for alibaba/loongsuite-pilot, covering loongsuite-pilot 项目导航, 架构总览, 模块清单, agent 采集矩阵 and 依赖关系.
claude-code-handbook AGENTS.md
Instructions for vitoworleone/claude-code-handbook, covering agents.md — claude-code-handbook 仓库维护指南, 1. 项目定位, 2. 目录结构规范, 2.1 顶层目录 and 2.2 命名规范.
roamcode AGENTS.md
Instructions for burakgon/roamcode, covering repository instructions for coding agents, public-repository safety, stable release and ota contract, releasing a stable version and ota changes.
deepsteve CLAUDE.md
Instructions for deepsteve/deepsteve, covering deepsteve, development workflow, restart the daemon after making changes, check if running, and read logs and stop the daemon.
wove copilot-instructions.md
Instructions for mits-pl/wove, covering wave terminal — copilot instructions, project rules, skill guides and preview server.