claude-code-harness: Instructions file for Claude Code

AGENTS.md

claude-code-harness AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from nikitaCodeSave/claude-code-harness. It costs 1,997 tokens per session, scanned A, original, MIT.

Project instructions for maintaining the claude-code-harness repository, which contains two Claude Code plugins and their tests. They describe the repository layout, commands, validation rules, and file boundaries.

In plain words
What is it for?
Use them when editing the harness or devlog plugins, checking manifests, running tests, and preparing releases.
Why use it?
They help contributors change the correct plugin files and avoid confusing the repository's own development setup with files that ship in the plugins.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is nikitaCodeSave/claude-code-harness's own configuration. It tells Claude Code, Codex and OpenCode how to work on claude-code-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 claude-code-harness configures →

Reuse

Borrowing it

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

Made for: Claude Code, 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 claude-code-harness AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nikitacodesave/claude-code-harness/agents-md"><img src="https://agentmods.dev/badge/instructions/nikitacodesave/claude-code-harness/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,997 This file is loaded in full into every session.
When invoked 1,997 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.01997 $0.01997
Opus 5.5 $0.00799 $0.00799
Sonnet 5.5 $0.00399 $0.00399
Haiku 4.5 $0.00200 $0.00200

Measured today against content hash 6163aa5e5397, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

claude-code-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 today.

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

How it starts

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

claude-code-harness — operational notes for coding agents

This repository is the source of truth for the harness Claude Code plugin (marketplace claude-code-harness). Read this before changing anything; it carries what the file tree cannot tell you. Claude Code additionally loads .claude/CLAUDE.md (maintainer-facing, Russian); agents from other vendors get this file.

Layout — the part that is easy to break

  • .claude-plugin/marketplace.json (repo root) is the marketplace catalog. Each plugin's own manifest is plugins/<name>/.claude-plugin/plugin.json.
  • There is one plugin: plugins/harness/. Its skills live under skills/: the setup skill with its templates (skills/harness/SKILL.md, skills/harness/templates/) and the user-invoked commands of the flow (skills/<command>/SKILL.md, each with disable-model-invocation: true, so they cost no context until typed). Never put a SKILL.md at the plugin root: once skills/ exists, Claude Code does not load it (M8 checks this).
  • Its one hook lives under hooks/: hooks/hooks.json declares a SessionStart command hook (plugin.json states that path), and hooks/session-start.sh supplies hooks/flow.md, the flow text, where a CLAUDE.md between the session's directory and the repository root has a line that is exactly <!-- harness -->; everywhere else it is silent. The mechanical suite runs it through the command hooks.json declares — keep that seam, the acceptance tests plant defects there.
  • .claude/ at the repo root is this repository's own dev harness. It is not part of the plugin and never ships.
  • ~/.claude/skills/harness on the maintainer's machine is a symlink to plugins/harness/, so edits here are live immediately. Edit here, never in a copy.
  • evals/ is the kit's own regression suite — mechanical checks plus four headless sessions on fixtures, with criteria written before the runs. Dev harness, never shipped. A test whose mechanism the kit has retired is deleted, not kept green.
  • tests/acceptance/<slug>/ holds a ticket's acceptance tests, committed before its build and read-only for it. Dev harness, never shipped.

Read the full file on GitHub · 134 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. today Changed · +3 lines · +74 tokens per session 6163aa5e5397
  2. yesterday Changed · -12 tokens per session 971994fcbb2c
  3. 3d ago Changed · +7 lines · +134 tokens per session 2d314005aa31
  4. 4d ago Changed · +23 lines · +289 tokens per session 9d2ad68d6e7b
  5. 1mo ago Changed · +9 lines · +163 tokens per session d51131b3b7cf
  6. 2mo ago Changed · +2 lines · +49 tokens per session ad896edc65d0
  7. 3mo ago First seen · 90 lines · 1,300 tokens per session scan A f2c4fee35fe1

Subscribe to this mod's changes

claude-code-harness AGENTS.md is an instructions file published in the GitHub repository nikitaCodeSave/claude-code-harness (4 stars, last pushed yesterday), licensed MIT. It adds 1,997 tokens to every session, about $0.0080 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

claude-code-harness AGENTS.md compared with instructions from other repositories

claude-code-harness AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-code-harness AGENTS.mdnikitaCodeSave/claude-code-harnessInstructions file4yesterdayMITA1,997Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot