document-buddy: Instructions file for Codex

AGENTS.md

document-buddy AGENTS.md is an instructions file for Codex, OpenCode from Hanzhi0807/document-buddy. It costs 295 tokens per session, scanned A, original, MIT.

Repository instructions for agents working on the Document Buddy project. They require each agent to read specified project documents before work and update a handoff document afterward.

In plain words
What is it for?
Use them to guide agent handoffs, document changed files and tests, and require project answers to cite the project wiki.
Why use it?
They help multiple agents continue work without losing project context, decisions, validation results, or next steps.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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 document-buddy AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hanzhi0807/document-buddy/agents-md"><img src="https://agentmods.dev/badge/instructions/hanzhi0807/document-buddy/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 295 This file is loaded in full into every session.
When invoked 295 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.00295 $0.00295
Opus 5.5 $0.00118 $0.00118
Sonnet 5.5 $0.00059 $0.00059
Haiku 4.5 $0.00030 $0.00030

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

Security

Grade A, and why

document-buddy 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 2mo 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 · 26 lines

What it actually says

Agent 接力规则

这个仓库会被多个 agent 轮流继续开发。每个 agent 开始工作前必须先阅读:

  • README.md
  • docs/agent-handoff.md
  • 与当前任务相关的 docs/*.md

每个 agent 完成工作后,必须在最终回复前更新 docs/agent-handoff.md,不需要等待用户再次提醒。

更新交接文档时至少写清楚:

  • 本轮做了什么。
  • 改了哪些关键文件。
  • 跑了哪些验证命令,结果如何。
  • 当前还没做什么。
  • 下一位 agent 应该从哪里继续。
  • 如果相关 commit 已经生成,写上 commit hash;如果当前提交尚未生成,最终回复里必须补充最新 hash。

项目方向提醒:

  • 产品名:文档搭子 / Document Buddy。
  • 正式目标:把团队可见的 wiki 做到飞书知识库或飞书云文档里。
  • 当前形态:无服务端 MCP 工具包,不做 SaaS、不做 webhook、不保存飞书 token、不保存 LLM API key。
  • 本地 WORK_MEMORY_DATA_DIR 只作为缓存、索引、冲突状态和离线 fallback。
  • 回答项目问题前必须调用 query_project_wiki 或 get_cited_context,没有 citations 就不能编答案。
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. 2mo ago First seen · 26 lines · 295 tokens per session scan A a596ad2421f5

Subscribe to this mod's changes

document-buddy AGENTS.md is an instructions file published in the GitHub repository Hanzhi0807/document-buddy (2 stars, last pushed 4mo ago), licensed MIT. It adds 295 tokens to every session, about $0.0012 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.

Related

document-buddy AGENTS.md compared with instructions from other repositories

document-buddy AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
document-buddy AGENTS.mdHanzhi0807/document-buddyInstructions file24mo agoMITA295Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode