Borrowing it
Nothing to install: this file belongs to longyijdos/kana. 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/longyijdos/kana/main/AGENTS.mdgit clone --depth 1 https://github.com/longyijdos/kanaWrote 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/longyijdos/kana/agents-md)<a href="https://agentmods.dev/instructions/longyijdos/kana/agents-md"><img src="https://agentmods.dev/badge/instructions/longyijdos/kana/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/longyijdos/kana/agents-md"><img src="https://agentmods.dev/badge/instructions/longyijdos/kana/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.01229 | $0.01229 |
| Opus 5.5 | $0.00492 | $0.00492 |
| Sonnet 5.5 | $0.00246 | $0.00246 |
| Haiku 4.5 | $0.00123 | $0.00123 |
Grade A, and why
kana 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 24d 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Scope and workflow
- Choose a change scope that matches the task and keep the result cohesive.
- Default to completing the task in one pass. Do not impose separate implementation, review, test, or documentation phases unless the user requests a checkpoint.
- Do not stop for routine approval. Ask for direction only when a missing choice would materially change the result, broaden the scope, or authorize a consequential action.
- Avoid unnecessary churn. For larger features or refactors, explain the important design tradeoffs and keep related changes together.
- Do not blindly follow a brittle or overly complex request. Explain the maintenance concern and suggest the simplest durable alternative.
- Before an unfamiliar or cross-module change, read
docs/architecture.mdand usedocs/README.mdto find the canonical owner; for a narrow change, read only the relevant owner document and avoid loading unrelated documentation.
Implementation
- Prefer clear names and code structure over comments.
- Add comments only for non-obvious invariants, design decisions, protocol semantics, ordering requirements, provider-specific behavior, and mutable state boundaries.
- Keep implementation comment blocks within four lines and 320 characters. Do not add comments that restate the code.
- Put longer explanations in documentation only when they describe a stable contract or design boundary that future contributors need.
- Do not add
comment-check-ignoresuppressions without maintainer approval. - For imports under
src, use relative imports within the same top-levelsrcdirectory. Use the@/alias only across top-level directories and prefer target barrels such as@/coreor@/toolsover deep aliases.
Trust boundaries and state
- Validate untrusted input once, at the edge where it enters: files, network and provider responses, tool arguments, CLI flags, and user input. Use
parseWithSchemafor structured formats. - Trust typed values inside the system. Do not re-validate, re-normalize, or guard states that the types already rule out, and do not add fallbacks for branches that cannot happen.
- Treat data as immutable: declare readonly types, update by replacing values, and share them by reference. Copy only when handing a value to code that mutates it or when crossing a persistence or process boundary.
- Give each resource one owner that handles idempotent close and cleanup. Callers do not add their own flags or wrappers around it.
- The logger never throws, so do not wrap logging in
try/catch. Isolate failures only around callbacks that a frontend or user supplies. - Before writing a helper, search
utils,core, and the module's own helpers for an existing one.
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.
- 24d ago Changed · +11 lines · +267 tokens per session 15066442999e
- 2mo ago First seen · 52 lines · 962 tokens per session scan A 31898fbc4663
kana AGENTS.md is an instructions file published in the GitHub repository longyijdos/kana (8 stars, last pushed 2d ago), licensed MIT. It adds 1,229 tokens to every session, about $0.0049 per session on Opus 5.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-31.
kana AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kana AGENTS.mdlongyijdos/kana | Instructions file | 8 | 2d ago | MIT | A | 1,229 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |