AGENTS.md AGENTS.md

A set of AGENTS.md instructions for how a coding agent should work in a repository. It defines language, rule precedence, approval steps, and safe development practices.

In plain words
What is it for?
Use it to control an agent's workflow, including Japanese communication, approval before implementation, minimal changes, and repository instruction checks.
Why use it?
It gives the agent consistent project-specific guidance about what to inspect, change, and verify.

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/tkumata/agents.md/agents-md
Clone the repo
git clone --depth 1 https://github.com/tkumata/AGENTS.md

Made for: Codex, OpenCode.

Per session 1,121 This file is loaded in full into every session.
When invoked 1,121 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.01121 $0.01121
Opus 5 $0.00561 $0.00561
Sonnet 5 $0.00224 $0.00224
Haiku 4.5 $0.00112 $0.00112

Measured yesterday against content hash 1d862c3ce747, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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 · 57 lines

How it starts

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

Global Agent Instructions

In Code Mode, within each bounded stage, run independent, functions.exec-available tool calls concurrently in one functions.exec call. Use await Promise.allSettled([...]) when partial results are useful, and inspect every result; use await Promise.all([...]) only when any failure should abort the batch. Keep dependencies, waits/resumes, approvals, conflicting or interdependent mutations, and adaptive investigations where each result may change the next step sequential. Do not split otherwise batchable inspections across outer tool calls.

Language

  • ユーザへの説明、進捗、計画、文書、最終回答は日本語で行うこと。
  • コード、識別子、コマンド、ファイル名、ログ、API 名は必要に応じて原文を維持すること。
  • 造語禁止。正しい技術用語や学術用語を用いること。

Precedence

  • リポジトリ固有の AGENTS.md、設計文書、規約、検証手順を確認して追加適用すること。
  • より具体的なリポジトリ固有指示を優先すること。
  • ただし、承認ゲート、ユーザ変更の保護、Git の安全規則は、明示的な指示なしに緩和しないこと。

Core rules

  • リクエストを満たす最小かつ完全な実装をすること。
  • 要求外の機能、抽象化、依存関係、設定、フォールバック、互換処理を実装しないこと。
  • 関係のないコード、文書、コメント、設定、フォーマットを変更しないこと。
  • 外部動作、公開 API、データ形式、永続化形式は、明示的な要求なしに変更しないこと。
  • 要求範囲外の問題は勝手に修正せず報告すること。

Workflow and approval

開発は、計画の提案と文書の作成、承認、実装、報告の順で行うこと。

  • 承認前に、本番コード、テスト、設定、依存関係を開発・修正してはならない。
  • 承認前には、読み取り、検索、現状検証、問題再現、開発文書の作成または更新のみ行ってよい。
  • 承認は提示した計画、設計、対象範囲、フェーズにのみ適用する。
  • 重大な前提変更、設計変更、範囲拡大、新しい依存関係が必要なら、文書を更新して再承認を得ること。
  • ユーザが明示的に承認待ちを不要とした作業に限り、承認ゲートを省略してよい。

Code quality

  • ポリシー、状態遷移、入力検証を I/O、UI、永続化、通信、OS、ハードウェアから可能な範囲で分離すること。
  • クリーンアーキテクチャに従い、外部境界、依存方向、責務分割、データ構造を明確にすること。
  • 新しい抽象化は、具体的な変化、外部境界、またはテスト上の必要性を隔離する場合だけ追加すること。
  • 名前は役割と意図を表し、コメントは理由、制約、トレードオフを説明すること。
  • 可変状態の所有者と更新箇所を明確にし、エラーを握り潰したり根拠のない既定値へ置き換えたりしないこと。
  • テストは観測可能な動作と回帰条件を検証し、実装を通すために削除、無効化、弱体化しないこと。
  • テストの実行と検証は各プロジェクトのハーネスに任せる。

Delegation

  • メインエージェントはオーケストレータとして、各サブエージェントの結果を統合すること。
  • ユーザの brain dump を一回の bounded pass で整理し、文書だけを作成する。その際、下記条件のサブエージェントを使用すること。文書化後に自動で再計画、継続調査、Finalization を行わないこと。
    • モデルは gpt-5.6-sol
    • reasoning effort は medium
  • 承認後の実装に下記条件のサブエージェントを使用すること。
    • モデルは gpt-5.6-luna
    • reasoning effort は max
  • 不具合調査やソースコード調査は下記条件のサブエージェントを使用すること。
    • モデルは gpt-5.6-terra
    • reasoning effort は medium

Read the full file on GitHub · 57 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. yesterday First seen · 57 lines · 1,121 tokens per session scan A 1d862c3ce747

Subscribe to this mod's changes

AGENTS.md AGENTS.md is an instructions file published in the GitHub repository tkumata/AGENTS.md (1 stars, last pushed 2d ago), licensed MIT. It adds 1,121 tokens to every session, about $0.0056 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.