Adaptive-Harness: Instructions file for Codex

AGENTS.md

Adaptive-Harness AGENTS.md is an instructions file for Codex, OpenCode from hilt21/Adaptive-Harness. It costs 1,429 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Adaptive Harness, a local-first Python command-line tool and embeddable runtime for giving agents a trusted workspace identity, capability limits, execution evidence, and completion checks.

In plain words
What is it for?
Use them when reading, changing, testing, or documenting the Adaptive Harness repository, especially across its kernel, observability, experience, and evolution components.
Why use it?
They define which documents and components are authoritative and prevent planned features from being described as already implemented.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to hilt21/Adaptive-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.

Copy the file
curl -O https://raw.githubusercontent.com/hilt21/Adaptive-Harness/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/hilt21/Adaptive-Harness

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 Adaptive-Harness AGENTS.md

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

agentmods 80×15 button for Adaptive-Harness AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hilt21/adaptive-harness/agents-md"><img src="https://agentmods.dev/badge/instructions/hilt21/adaptive-harness/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,429 This file is loaded in full into every session.
When invoked 1,429 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.01429 $0.01429
Opus 5.5 $0.00572 $0.00572
Sonnet 5.5 $0.00286 $0.00286
Haiku 4.5 $0.00143 $0.00143

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

Security

Grade A, and why

Adaptive-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.

AGENTS.md · 86 lines

How it starts

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

AGENTS.md

本文件适用于整个仓库。若子目录以后出现更具体的 AGENTS.md,以离目标文件最近的说明为准。

项目定位

Adaptive Harness 是本地优先、客户端无关的渐进式 Agent Harness。首版为 Python 3.12+ 的 CLI 与可嵌入 Runtime,核心目标是提供可信的工作区身份、能力边界、执行证据和完成门禁,而不是替模型增加固定的分析或开发流程。

当前仓库包含 v0.2 Runtime 前身实现和 v0.3 目标设计。阅读或交付时必须区分 implemented、partial 与 planned,不得把目标设计描述为当前能力。

事实来源

不同类型事实由以下文件分别负责:

  • 产品目标、范围、不可破坏约束和验收边界:docs/adaptive-harness-prd.md
  • 组件边界、依赖方向、权威关系和失败语义:docs/architecture/
  • 机器协议:src/adaptive_harness/schemas/
  • 协议版本和兼容政策:docs/contracts/
  • 重要设计决策及原因:docs/adr/
  • requirement、实现、测试和发布证据映射:docs/acceptance/traceability.md
  • 实现顺序:docs/v0.3-observability-evolution-sprint-plan.md

这些来源按领域分工,不互相覆盖。发现矛盾时停止实现,记录冲突并修正相应事实来源,不得自行选择最宽松解释。

架构边界

  • Kernel 不得依赖 Observability、Experience 或 Evolution。
  • Observability 和 Experience 是派生层,不得参与 capability、approval 或 completion 判断。
  • Evolution 只能协调注册 Manager 执行 mutation,不得成为 canonical config、Capability 或 Completion authority。
  • 新增跨领域依赖前必须更新 dependency rules、architecture overview 和相应测试。
  • planned 能力不得在代码、文档或交付报告中描述为 implemented。

不可破坏的约束

  • 最小内核包含 Task Envelope、Capability Gateway、Executor、Verifier 和 Task Store;这些组件及其安全 invariant 不可关闭或被可选模块削弱。
  • 按 capability、真实副作用和环境治理操作,不按任务名称或命令字符串推断安全性。
  • 模型声明、自评和模板输出不能作为完成证据;completed 必须由当前任务的合法 acceptance evidence 支持。
  • 权限取交集、限制取最严格值、deny 优先。未知字段、未知副作用和越界路径必须拒绝或升级审批。
  • required acceptance 不得由模型自动删除;base SHA 在同一任务内不可改变;失败和不利证据不可覆盖。
  • observe 与 enforced 必须如实标注。无法确认客户端具备拦截能力时使用 observe。
  • 默认本地、离线、零遥测;不得回显 secret,也不得把未经脱敏的数据写入模型上下文或导出物。
  • 初始化和配置修改必须先展示 diff、经用户确认后原子应用;失败时恢复原状态。
  • Authority 归属与 contract execution 是两项独立职责。每个 canonical owner 必须在 authoritative write/publish 前、canonical read 返回可信数据前执行完整版本化 contract;producer 校验与 integrity digest 都不能替代该边界。
  • PRD 中每条验收 requirement 必须有唯一稳定的 F-xxx-Ryy;covered traceability 必须引用存在的 pytest node ID和已登记 contract ID。路径存在只证明追踪链完整,不能替代语义 coverage review。

预期结构

实现代码放在 src/adaptive_harness/,按架构控制面中的边界组织:core/、cli/、adapters/、scanners/、modules/、templates/、feedback/ 和 schemas/。测试放在 tests/,测试数据放在 fixtures/,设计与用户文档放在 docs/。

Read the full file on GitHub · 86 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. 2mo ago First seen · 86 lines · 1,429 tokens per session scan A 2a15cb564f24

Subscribe to this mod's changes

Adaptive-Harness AGENTS.md is an instructions file published in the GitHub repository hilt21/Adaptive-Harness (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,429 tokens to every session, about $0.0057 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

Adaptive-Harness AGENTS.md compared with instructions from other repositories

Adaptive-Harness AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Adaptive-Harness AGENTS.mdhilt21/Adaptive-HarnessInstructions file22mo agoApache-2.0A1,429Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot