banhmi: Instructions file for Codex

AGENTS.md

banhmi AGENTS.md is an instructions file for Codex, OpenCode from dannyota/banhmi. It costs 3,090 tokens per session, scanned A, original, Apache-2.0.

A repository instruction set stored in an AGENTS.md file, describing which project rules, documents, product boundaries, and delivery practices an agent must follow.

In plain words
What is it for?
It is for guiding an agent through repository reading order, architecture and product rules, country-specific scope, and where durable decisions belong.
Why use it?
It gives coding work a shared source of truth and helps prevent decisions based on outdated, conflicting, or unsupported project information.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is dannyota/banhmi's own configuration. It tells Codex and OpenCode how to work on banhmi 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 banhmi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dannyota/banhmi. 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/dannyota/banhmi/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/dannyota/banhmi

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dannyota/banhmi/agents-md/github.svg)](https://agentmods.dev/instructions/dannyota/banhmi/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dannyota/banhmi/agents-md"><img src="https://agentmods.dev/badge/instructions/dannyota/banhmi/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 banhmi AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dannyota/banhmi/agents-md"><img src="https://agentmods.dev/badge/instructions/dannyota/banhmi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,090 This file is loaded in full into every session.
When invoked 3,090 The same file — it is already loaded in full.
Security scan A 0 findings. 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.03090 $0.03090
Opus 5.5 $0.01236 $0.01236
Sonnet 5.5 $0.00618 $0.00618
Haiku 4.5 $0.00309 $0.00309

Measured 4d ago against content hash d77953178dae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

banhmi 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 · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository rules

Project status

Development and maintenance have stopped. Retain the repository as an archive. Hosted endpoints are unsupported; deployment descriptions are historical. This status supersedes earlier delivery, maintenance, and cutover directions in the retained plans and designs. Do not resume development without new owner instructions. Repository safety, review, and Git rules still apply to authorized archival work.

Authority and reading order

AGENTS.md is the single current rule authority. Topic files add task-specific safeguards. Direct owner instructions take precedence. If project documents conflict, stop dependent work and resolve the shared documentation with the change. Read the documentation index, architecture, the applicable topic rules below, and the spec or design for the task. Read only the delivery plan sections the task touches. Designs are proposals unless labeled approved or implemented. Keep durable decisions in tracked repository records, not tool memory. Read short-term work for the current execution queue. The owning plans retain scope, milestone acceptance, evidence, and open decisions.

Product and evidence boundaries

  • The former planned product was Tra cứu quy định at tracuuquydinh.vn, the approved, unbuilt direction in Website. banhmi remains the engine, repository, and corpus name.
  • The archived scope prioritized Vietnam and retained Malaysia, Singapore, Indonesia, Thailand, and Cambodia on their existing danny.vn hostnames. That maintenance plan is no longer active.
  • VNGCloud in Vietnam was the approved, unbuilt target for the new Vietnam system: serving, corpus writer and workers, review services, and artifact and backup storage. Keep writer and worker capacity separate from the serving host in the archived design. The Vietnam cutover is no longer planned. The former hosting requirements remain in the hosting decision.
  • Serve evidence only. Our servers run no answer model, generative model, or reranker model. The query embedder is the only served model and runs on our own host. The user's own AI reads and judges evidence through the ChatGPT plugin or through /mcp in Claude and other clients.
  • Decision: Reject a platform-run model and a reranker. Why: Sending user questions abroad is a cross-border transfer under Luật Bảo vệ dữ liệu cá nhân 91/2025/QH15, Điều 20. A reranker adds cost and latency with no gain over the user's own model. Rejected: Third-party question processing and query-time reranking. Detail: Public legal source documents may use approved cloud batch OCR and bulk embedding.
  • Vietnam search accepts Vietnamese text with diacritics or a document number such as 50/2024/TT-NHNN. English is for interface text only. This requirement is approved, not deployed; the deployed MCP brief still says to translate first.
  • Keep five MCP tools: guide, corpus_status, quality_gaps, search, and document.
  • Keep a separate corpus and database per jurisdiction on one shared codebase. Preserve each jurisdiction's sources, language, parser, citations, validity, and evaluations. Evidence retains exact native citations, validity, relations, provenance, confidence, and known gaps. Accuracy takes priority over breadth. Never hide weak or missing evidence.
  • Legacy and new corpus code are separate. Legacy is the v1 corpus code that serves the five maintained countries and the current Vietnam service: pkg/{app,ingest,extract,pipeline}, pkg/base/{jurisdiction,sourceurl}, the migration chains under deploy/migrations/, the query sources under sql/{bronze,silver,gold,ingest,config}, and their generated stores under pkg/store/{bronze,silver,gold,ingest,config}. Auth code, its chain, and pkg/store/auth are not legacy. Legacy is frozen: no new migrations, no new features, and no behavior change without an owner-approved maintenance fix. Legacy tests stay and run until the slice that retires their package deletes both together. New Vietnam code follows the approved layout.
  • Decision: Build the new Vietnam corpus schema on fresh migration chains and freeze the legacy chains. Why: The Vietnam writer is a new database with no data to migrate. Appending to the legacy chains would carry their constraints, unused tables, and compatibility columns into a database that never held them. Rejected: Additive migrations on the legacy five-schema chains and a nullable legacy build_id. Detail: The corpus database spec names the chains, query sources, and generated-store paths. The engineering rules govern chain mutability and hosted generation.
  • Report implemented code as coded. Report corpus behavior as validated only after checks against real documents. Report deployed behavior only after checking the deployed service.

Read the full file on GitHub · 188 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 Changed · +8 lines · +74 tokens per session d77953178dae
  2. 24d ago Changed · +30 lines · +581 tokens per session 5e155ea85f0d
  3. 25d ago Changed · +2 lines · +34 tokens per session d56df6331108
  4. 26d ago First seen · 148 lines · 2,401 tokens per session scan A 29ff5c25f145

Subscribe to this mod's changes

banhmi AGENTS.md is an instructions file published in the GitHub repository dannyota/banhmi (2 stars, last pushed 6d ago), licensed Apache-2.0. It adds 3,090 tokens to every session, about $0.0124 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-10-12.

Related

banhmi AGENTS.md compared with instructions from other repositories

banhmi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
banhmi AGENTS.mddannyota/banhmiInstructions file26d agoApache-2.0A3,090Codex, 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