Borrowing it
Nothing to install: this file belongs to SUNRNEHUI/agent-harness. 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/SUNRNEHUI/agent-harness/main/AGENTS.mdgit clone --depth 1 https://github.com/SUNRNEHUI/agent-harnessWrote 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/sunrnehui/agent-harness/agents-md)<a href="https://agentmods.dev/instructions/sunrnehui/agent-harness/agents-md"><img src="https://agentmods.dev/badge/instructions/sunrnehui/agent-harness/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/sunrnehui/agent-harness/agents-md"><img src="https://agentmods.dev/badge/instructions/sunrnehui/agent-harness/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.01481 | $0.01481 |
| Opus 5.5 | $0.00592 | $0.00592 |
| Sonnet 5.5 | $0.00296 | $0.00296 |
| Haiku 4.5 | $0.00148 | $0.00148 |
Grade A, and why
agent-harness 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.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
本文件是 agent-harness 项目的项目级规则。它覆盖用户级通用规则中与本项目冲突的部分。
项目定位
本仓库维护一个运行时中立、Plan-native 的可靠性 skill。它复用 Codex、Claude Code、Grok 等运行时的原生规划,只在任务需要跨会话、跨模型或强审计时增加持久状态。
核心原则:
- 默认选择能可靠完成任务的最轻模式:Native、Portable、Audited。
- Native 使用运行时原生 Plan,不写 harness 文件,也不复制计划。
- Portable 只保存
contract.json、events.jsonl、capsule.md;contract.json是唯一可变真相。 - Audited 才启用 typed receipts、Production State Witness、受保护 TDD chronology、evaluator 和更强 fencing。
- 并行是执行选择,不是模式;只有责任边界独立且收益高于协调成本时才使用 worker。
- Portable 核心只保存可观察事实,不保存 chain-of-thought、完整聊天、provider reasoning、secret 或 in-flight 外部副作用。
- 保持 legacy
handoff-v1Full artifact 可恢复,不静默迁移或破坏旧格式。 - provider/model slug 只能存在于 runtime profile 或 adapter,不进入 Portable contract。
主要文件
skills/agent-harness/:唯一、完整、可直接安装的 runtime Skill 包。skills/agent-harness/SKILL.md:Skill 入口协议和触发说明。skills/agent-harness/VERSION:当前发布版本的单一来源。README.md/README.zh-CN.md:公开说明,必须保持英文和中文同步。skills/agent-harness/references/:运行时按需加载的协议材料。skills/agent-harness/templates/:运行时需要的 artifact 与 worker 模板。skills/agent-harness/scripts/:控制器、validator、status、TDD 和 witness 运行时脚本。tests/:行为、拒绝边界和开放包结构契约测试;不得放进 runtime Skill 包。scripts/package_skill.py:校验、复制并比较权威skills/包,不维护第二份文件白名单。scripts/sync_version.py:从 Skill 包内的VERSION同步公开版本引用。docs/legacy/:不进入 runtime 的历史 prompt、旧协议说明和开发工具。
修改规则
- 修改 skill 行为时,优先改行为测试,再改 Skill 包内的
SKILL.md、references/、模板和脚本。 - 修改公开行为或版本时,必须同步
README.md和README.zh-CN.md。 - 修改当前版本时,先改 Skill 包内的
VERSION,再运行python3 scripts/sync_version.py --fix --date YYYY-MM-DD。 skills/agent-harness/目录本身就是 runtime 权威边界;新增 runtime 文件不需要再登记白名单。- repository-only 测试、fixture、历史文档和维护工具不得进入 Skill 包。
- 不要把
workspace/、.harness/、缓存、session 日志、私有配置或生成 artifact 加入 runtime 包。 - 不要把本地安装目录
~/.codex/skills/agent-harness当成源码。源码以本仓库为准。 README.md与README.zh-CN.md的标题结构必须一致。- Skill 包内的
SKILL.md默认不超过 750 words,agents/openai.yaml不超过 120 words。 - 保持 diff 小而聚焦,不做无关重排、格式化或重命名。
TDD 和验证
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.
- 2mo ago First seen · 117 lines · 1,481 tokens per session scan A 8dead16216ee
agent-harness AGENTS.md is an instructions file published in the GitHub repository SUNRNEHUI/agent-harness (4 stars, last pushed 2mo ago), licensed MIT. It adds 1,481 tokens to every session, about $0.0059 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.