Borrowing it
Nothing to install: this file belongs to liyi-run/liyi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/liyi-run/liyi/main/AGENTS.mdgit clone --depth 1 https://github.com/liyi-run/liyiWrote 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.
[](https://agentmods.dev/instructions/liyi-run/liyi/agents-md)<a href="https://agentmods.dev/instructions/liyi-run/liyi/agents-md"><img src="https://agentmods.dev/badge/instructions/liyi-run/liyi/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/liyi-run/liyi/agents-md"><img src="https://agentmods.dev/badge/instructions/liyi-run/liyi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05957 | $0.05957 |
| Opus 5.5 | $0.02383 | $0.02383 |
| Sonnet 5.5 | $0.01191 | $0.01191 |
| Haiku 4.5 | $0.00596 | $0.00596 |
Grade C, and why
liyi AGENTS.md scanned grade C 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 1mo 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- START liyi agent instructions rev. 1 --> How it starts
The opening of the file, as written. The whole thing — 409 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This repository is 立意 (Lìyì) — a convention and tooling project for making intent explicit, persistent, and reviewable in AI-assisted software development.
立意 is not an agent skill collection — it defines the practice and ships the tools (linter, spec format, agent skill template) that other projects adopt. One of its deliverables is an agent skill template that downstream repositories can use to bootstrap their own AGENTS.md and contributing workflows.
Before making any changes, read the contributing guide that matches the predominant language of the current user session:
- 中文会话 → docs/contributing-guide.zh.md
- English session → docs/contributing-guide.en.md
If the session language is unclear, default to the Chinese version.
The contributing guide covers project structure, content workflows, code style, commit message conventions, AIGC policy compliance, and the validation checklist. All of those rules are authoritative and must be followed.
Code style (quick reference)
For Rust code:
- Conform to official rustfmt style.
- Keep free from Clippy lints.
Before committing, run make lint (rustfmt check, Clippy, the linter's own
self-check, and the agent-template sync check) and ensure it passes, or
make verify to also run the test suite. Both gates abort at the first
failure and end with a success banner (lint: all gates passed /
verify: all gates passed), so you can confirm success by the final line —
no need to capture the exit code or redirect output to a log.
If you are an AI agent, prefer the quiet variants make lint-short and
make verify-short. They run the exact same gates but suppress normal
output to conserve your context window: on success they print only a banner
(lint-short: all gates passed / verify-short: all gates passed), and on
failure they print a short tail of the failing gate's output plus the full
make <gate> target to re-run for complete diagnostics. Run that full target
when you need to see everything. Do not hand-roll make lint >log 2>&1; echo $? pipelines — the short variants already do this correctly.
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.
- 1mo ago Changed · +17 lines · +900 tokens per session scan A → C 5bfb8d2c4c0c
- 1mo ago Changed · +167 tokens per session 8f23259c0c38
- 2mo ago First seen · 392 lines · 4,890 tokens per session scan A 15a96fc32406
liyi AGENTS.md is an instructions file published in the GitHub repository liyi-run/liyi (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 5,957 tokens to every session, about $0.0238 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
liyi AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| liyi AGENTS.mdliyi-run/liyi | Instructions file | 6 | 1mo ago | Apache-2.0 | C | 5,957 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 3d ago | MIT | A | 4,313 | Codex, OpenCode |