xp-harness: Instructions file for Claude Code

CLAUDE.md

xp-harness CLAUDE.md is an instructions file for Claude Code from sei-newbear/xp-harness. It costs 2,986 tokens per session, scanned A, original, MIT.

A maintainer guide for xp-harness, a project that helps turn a person's development goals into suitable agent instructions, skills, and subagents.

In plain words
What is it for?
Use it when modifying xp-harness, its agent guidance, memory files, skills, or subagent setup.
Why use it?
It separates maintainer work from files distributed to users and emphasizes agreeing on the real goal before making changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is sei-newbear/xp-harness's own configuration. It tells Claude Code how to work on xp-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 xp-harness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sei-newbear/xp-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/sei-newbear/xp-harness/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/sei-newbear/xp-harness

Made for: Claude Code.

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 xp-harness CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sei-newbear/xp-harness/claude-md"><img src="https://agentmods.dev/badge/instructions/sei-newbear/xp-harness/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,986 This file is loaded in full into every session.
When invoked 2,986 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.02986 $0.02986
Opus 5.5 $0.01194 $0.01194
Sonnet 5.5 $0.00597 $0.00597
Haiku 4.5 $0.00299 $0.00299

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

Security

Grade A, and why

xp-harness CLAUDE.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 1mo 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.

CLAUDE.md · 115 lines

How it starts

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

xp-harness — このリポジトリで作業するときの working rules

このファイルは xp-harness 本体を改修するとき に守るべき改修者向け instruction。consumer に配布される skill / instruction ではない (= project root の CLAUDE.md は consumer 配布対象外)。


依頼者の真のゴール (= 改修者の方向性)

改修者が「やりたいこと」を伝えたら、main session (= コーディング Agent、現時点では Claude Code 等) が xp-harness の harness 機構 (= skill / CLAUDE.md / subagent) に適切に落とし込めるよう、ある程度自走して任せられる状態 を実現する。

ここでの自走は「止まらず手を動かすこと」ではない (= philosophy の「対話と自走の境界」の通り、依頼者の意図を汲み、認識を揃えてから実行すること)。認識を揃える前に成果物を作るのは自走でなく自己満足で、ズレていれば手戻りを生む。カードや直前の会話で方向が見えても、それは「着手してよい合図」であって「認識が揃った」ではない。揃っていなければ、手を動かす前に揃える。

改修者が都度説明しないと整理できない状態が続くと、.apm/ 配下 (= 利用者向け本題) の改修が全く進まない。本リポジトリの改修者向け装置 (= 本 CLAUDE.md / .claude/skills/philosophy/ / .claude/skills/skill-design-style/ / .claude/agents/skill-reviewer.md) はすべて、その自走を支えるためのもの。


xp-harness の中核思想

  • 規律装置最小注入: 規律は最小限の文書で注入する。重複させない、肥大化させない
  • ペアプロ哲学: 機械的なチェックよりも subagent / 改修者によるペアプロでの捕捉が筋
  • 単一責任 (= SRP): 各 skill / agent / instruction は単一の責任を持つ
  • harness 機構の E2E テスト枠組みは未確立 → harness 改修の Done は事前縛り最小化、事後評価許容
  • 投資フェーズの仕組み作り では運用コスト最適化より価値命題の充実を優先

詳細な中核思想は .claude/skills/philosophy/SKILL.md に集約。常時 context に乗せる:

@.claude/skills/philosophy/SKILL.md

詳細な規律 / 判断軸 / 改修フローは .claude/skills/skill-design-style/SKILL.md に集約されている (= 下記の埋め込み参照を参照)。


スコープ境界の判別 (= 利用者向け vs 改修者向け)

xp-harness は OSS として skill / agent / instruction を配布する harness。改修対象が「利用者向け」か「改修者向け」かを必ず判別する。

カテゴリ パス 配布
利用者向け .apm/skills/* / .apm/agents/* / .apm/instructions/* および .claude/ 配下の対応 symlink (= .apm/ と同じ実体) APM 経由で配布
改修者向け CLAUDE.md (project root) / .claude/skills/harness-verification/ / .claude/skills/philosophy/ / .claude/skills/release/ / .claude/skills/skill-design-style/ / .claude/agents/skill-reviewer.md (= それぞれ git tracked、symlink でない) 非配布

判別法: ls -la で symlink でないことを確認。symlink なら .apm/ 配下と同じものなので利用者向け、symlink でなく直接コミットされていれば改修者向け。

新規 skill / agent を改修者向けで作るときは、必ず .claude/ 配下に直接コミット (= .apm/ には置かない)。philosophy skill / skill-design-style / skill-reviewer と同じパターン。

Read the full file on GitHub · 115 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. 1mo ago Changed · +6 lines · +88 tokens per session dc15d04b19a2
  2. 2mo ago First seen · 109 lines · 2,898 tokens per session scan A 4f4c84fbd72c

Subscribe to this mod's changes

xp-harness CLAUDE.md is an instructions file published in the GitHub repository sei-newbear/xp-harness (9 stars, last pushed 1mo ago), licensed MIT. It adds 2,986 tokens to every session, about $0.0119 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

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,715 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,461 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,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens