liyi: Instructions file for Codex

AGENTS.md

liyi AGENTS.md is an instructions file for Codex, OpenCode from liyi-run/liyi. It costs 5,957 tokens per session, scanned C, original, Apache-2.0.

Project instructions for liyi, a convention and tooling project that makes software intentions explicit, persistent, and reviewable when people work with AI coding agents. They cover contribution rules, code style, commits, and intent specifications.

In plain words
What is it for?
Use them when contributing to liyi, especially for reading the correct contribution guide, following language-specific style rules, and preparing validated changes.
Why use it?
They give an agent the project’s required process and conventions before it edits code or documentation.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; built for openclaw.

This is liyi-run/liyi's own configuration. It tells Codex and OpenCode how to work on liyi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything liyi configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/liyi-run/liyi/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/liyi-run/liyi

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for liyi AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/liyi-run/liyi/agents-md/github.svg)](https://agentmods.dev/instructions/liyi-run/liyi/agents-md)
Your own site
<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.

agentmods 80×15 button for liyi AGENTS.md

Your own site · 80×15
<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>
Per session 5,957 This file is loaded in full into every session.
When invoked 5,957 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 1mo ago against content hash 5bfb8d2c4c0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 -->
AGENTS.md · 409 lines

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:

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.

Read the full file on GitHub · 409 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. 1mo ago Changed · +17 lines · +900 tokens per session scan A → C 5bfb8d2c4c0c
  2. 1mo ago Changed · +167 tokens per session 8f23259c0c38
  3. 2mo ago First seen · 392 lines · 4,890 tokens per session scan A 15a96fc32406

Subscribe to this mod's changes

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.

Related

liyi AGENTS.md compared with instructions from other repositories

liyi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
liyi AGENTS.mdliyi-run/liyiInstructions file61mo agoApache-2.0C5,957Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode