harness-workflow: Instructions file for Codex

AGENTS.md

harness-workflow AGENTS.md is an instructions file for Codex, OpenCode from YSAA1/harness-workflow. It costs 2,466 tokens per session, scanned A, original, MIT.

A set of AGENTS.md project instructions for the YSAA1/harness-workflow repository. It explains the project overview, file layout, setup steps, and core rules, with some sections in Chinese.

In plain words
What is it for?
Use it when working on YSAA1/harness-workflow and needing guidance on how the project is organised, started, or maintained.
Why use it?
It gives coding agents the repository-specific context and rules they need before changing files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 harness-workflow AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ysaa1/harness-workflow/agents-md"><img src="https://agentmods.dev/badge/instructions/ysaa1/harness-workflow/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,466 This file is loaded in full into every session.
When invoked 2,466 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.02466 $0.02466
Opus 5.5 $0.00986 $0.00986
Sonnet 5.5 $0.00493 $0.00493
Haiku 4.5 $0.00247 $0.00247

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

Security

Grade A, and why

harness-workflow 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 11d 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 · 111 lines

How it starts

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

AGENTS.md

项目概览

本项目是 harness-workflow agent workflow skills 仓库,把 Learn Harness Engineering 的方法落成一组可执行 workflow skills;安装面以 skills.sh 为主(一条命令多端可选:选择目标 agent 与要装的技能),Claude Code 另有托管插件路径,未列入 skills.sh 的 CLI 手动拷贝。核心目标是让 agent 工作具备项目入口、状态协议、验证闸门、恢复路径和收尾纪律。

项目地图

  • .claude-plugin/: Claude Code plugin manifest 和 marketplace catalog(source 指向仓库根)。
  • .harness/: 运行时 recovery 三文件(work_index、state、lessons)。
  • README.md / README.zh-CN.md: 用户入口,说明安装(skills.sh 多端可选)、workflow 分层、使用场景和验证命令。
  • CONTEXT.md: 术语和边界澄清。
  • docs/harness-method-contract.md: Harness Method Contract,解释 C1-C10 稳定方法论。
  • docs/install.md: 统一安装指南(skills.sh、Claude Code 插件路径、Grok/ZCode/Kimi 手动拷贝)。
  • docs/skills.md / docs/skills.zh-CN.md: 双语技能详解指南,面向第三方用户的逐技能通俗导读(协议权威仍在 skills/*/SKILL.md)。
  • docs/specs/: brainstorm 默认 Spec 产物目录,允许多份独立 Spec(目录按需重建)。
  • docs/plans/: plan 默认 Executable Plan 产物目录,允许多份独立计划和恢复记录(目录按需重建)。
  • docs/adr/: 架构决策记录目录(目录按需重建)。
  • docs/research/、docs/reviews/: 调研日志与审查报告的默认落点(目录按需重建)。
  • docs/out-of-scope/: 不做清单——每个被拒想法一个文件(拒绝内容/理由/替代做法/来源),含改动门槛说明。
  • .github/workflows/ci.yml: GitHub Actions,运行结构检查、README 资产检查、Claude 插件可选校验与 harness-builder 脚本测试。
  • scripts/check-plugin.mjs: 仓库结构与安装面一致性的快速验证脚本。
  • scripts/agent/check.sh: agent-facing 快速验证入口,串联默认结构检查。
  • skills/*/SKILL.md: 每个 active workflow skill 的主入口和执行协议。
  • skills/*/references/: 按需读取的细节政策、检查表和参考资料。
  • skills/*/templates/: skill 使用或 backend 生成时复用的模板。

快速开始

  • 快速验证:node scripts/check-plugin.mjs
  • Agent 快速验证:bash scripts/agent/check.sh
  • Skill 脚本测试:python3 -B skills/harness-builder/tests/test_scripts.py
  • 当前没有 package install 或测试框架配置;不要虚构 npm test、npm install 或不存在的 agent 脚本。

项目铁律

  • 这是 skills 仓库;安装面以 skills.sh 为主、Claude Code 插件为辅;所有改动必须保持 README.md(含 zh-CN)、docs/install.md、docs/skills.md(含 zh-CN)、.claude-plugin/、docs/harness-method-contract.md 和 skills/*/SKILL.md 之间语义一致;docs/ 顶层只放面向第三方用户的文档,内部任务产物走退休流程不留存(git 历史即归档)。
  • Active workflow skills 只有 harness-builder、brainstorm、plan、implement、diagnose、review、ship、cleanup、autoresearch;verify 只是 review 的历史触发词别名,不再是独立 skill;autoresearch 是研究循环编排总控(同 ship 只编排底层阶段,自带授权边界与预算规则,研究日志为保留交付物);find-skills、capability-recommender、writing-for-agents 是辅助 skill,不是额外 workflow lane;tdd 是被 implement 驱动的纪律 skill;工具 skill 四个:remove-deadcode-py(按需全仓 Python 死代码清理)、sweep(按需全仓对账)由 cleanup 路由或显式触发,research(轻量单发调研:后台跑腿、一手来源、产物自登记落 docs/research/)、handoff(会话交接:压缩当前会话给下一个 agent,有恢复面优先写 state)显式触发;四个工具 skill 均不做任务收尾。
  • AGENTS.md 只做薄入口(T1);临时计划、会话摘要、active slice 和当前任务 plan/Spec 路径不要写进这里。
  • 本插件仓库使用 .harness/;生成到目标项目时按所选 backend 复用恢复入口,不强制迁移已有系统。
  • harness-builder 是 canonical 项目 harness skill;"bootstrap" 只能作为历史别名或触发词出现。
  • 每个 SKILL.md 必须保留 YAML frontmatter,并让 name 与目录名匹配。
  • 没有 fresh verification,不声明插件结构、流程图或方法论覆盖已经可用。
  • 修改 skill 行为须附观察到的失败(真实会话里跑了什么、技能做了什么、期望什么);借鉴上游或纸面推演的改动在 commit/state 标注「未首跑」并写首跑观察点,首跑后回填。被拒想法落 docs/out-of-scope/,提议前先查。
  • 关键里程碑必须使用 Git commit,commit 信息使用中文,清晰简洁。

Read the full file on GitHub · 111 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. 11d ago Changed · +2 lines · +128 tokens per session eae8494c5615
  2. 26d ago Changed · -2 tokens per session ea2aec640e8e
  3. 27d ago Changed · +2 lines · +329 tokens per session bcd298706753
  4. 29d ago Changed · +7 lines · +229 tokens per session 40c1153472c9
  5. 1mo ago Changed · +40 tokens per session 73a395be5f8f
  6. 1mo ago Changed · -16 lines · -134 tokens per session 2325d5e4944f
  7. 1mo ago Changed · -11 lines · -136 tokens per session 82efe3420e1b
  8. 1mo ago Changed · -3 tokens per session e958c5ffd390
  9. 1mo ago First seen · 127 lines · 2,015 tokens per session scan A 9dc16af6cea2

Subscribe to this mod's changes

harness-workflow AGENTS.md is an instructions file published in the GitHub repository YSAA1/harness-workflow (3 stars, last pushed 12d ago), licensed MIT. It adds 2,466 tokens to every session, about $0.0099 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

Other instructions, from other repositories

data-scientist copilot-instructions.md

Repository instructions for a data-science workflow in GitHub Copilot, covering datasets, statistics, and analysis files.

realnghon/data-scientist · 373 tokens

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

microsoft/vscode · 9,649 tokens

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.

vercel/next.js · 7,384 tokens

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

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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

microsoft/vscode · 2,731 tokens