kana AGENTS.md

kana AGENTS.md is an instructions file for Codex, OpenCode from longyijdos/kana. It costs 962 tokens per session, scanned A, original, MIT.

Project instructions for developing the Kana codebase, covering how to choose the scope of a change, find the right architecture documentation, write code, and test it.

In plain words
What is it for?
Use them when planning or implementing changes in an unfamiliar or multi-module part of Kana, especially when deciding which documentation, code owner, tests, and comments apply.
Why use it?
They help agents make focused changes that fit the project's structure without unnecessary approval steps, duplicated work, or brittle maintenance choices.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/longyijdos/kana/agents-md
Clone the repo
git clone --depth 1 https://github.com/longyijdos/kana

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 kana AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/longyijdos/kana/agents-md.svg)](https://agentmods.dev/instructions/longyijdos/kana/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/longyijdos/kana/agents-md"><img src="https://agentmods.dev/badge/instructions/longyijdos/kana/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 962 This file is loaded in full into every session.
When invoked 962 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00962 $0.00962
Opus 5 $0.00481 $0.00481
Sonnet 5 $0.00192 $0.00192
Haiku 4.5 $0.00096 $0.00096

Measured 4d ago against content hash 31898fbc4663, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 4d 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.

AGENTS.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 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.md and use docs/README.md to 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-ignore suppressions without maintainer approval.
  • For imports under src, use relative imports within the same top-level src directory. Use the @/ alias only across top-level directories and prefer target barrels such as @/core or @/tools over deep aliases.

Tests

  • Treat tests as evidence for behavior, not as mandatory file churn for every code edit.
  • When observable behavior changes, inspect existing coverage first. Add or update tests only where the current suite does not adequately cover the changed contract or regression risk.
  • Add a regression test for a bug fix when it is practical, stable, and likely to prevent recurrence.
  • Do not change tests solely because implementation structure, comments, formatting, documentation, or generated references changed while behavior remained covered.
  • Before adding a case, identify the lowest behavior owner and search existing coverage. Prefer strengthening or consolidating an existing case when it remains independently readable.
  • Keep complete input and error matrices at the lowest owning layer. Higher-level tests should cover representative wiring and cross-module behavior instead of repeating those matrices.
  • Run checks in proportion to the change. Use the full bun run check for broad, risky, or commit-ready changes.

Read the full file on GitHub · 52 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. 4d ago First seen · 52 lines · 962 tokens per session scan A 31898fbc4663

Subscribe to this mod's changes

kana AGENTS.md is an instructions file published in the GitHub repository longyijdos/kana (5 stars, last pushed 6d ago), licensed MIT. It adds 962 tokens to every session, about $0.0048 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-31.