moss-harness: Instructions file for Claude Code

CLAUDE.md

moss-harness CLAUDE.md is an instructions file for Claude Code from cybernetix-lab/moss-harness. It costs 2,095 tokens per session, scanned A, original, MIT.

A project guide for an AI-agent harness, meaning software that runs and coordinates coding or research agents. It describes skills, session hooks, multiple agents, tool connections, memory, and built-in checks, with commands for setup and verification.

In plain words
What is it for?
Use it to initialise the harness, start an agent session, activate a skill, run validation, or run evaluations.
Why use it?
It shows how to start the project and how its agents and checks fit together, so work does not depend on undocumented steps.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

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

Reuse

Borrowing it

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cybernetix-lab/moss-harness/claude-md.svg)](https://agentmods.dev/instructions/cybernetix-lab/moss-harness/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/cybernetix-lab/moss-harness/claude-md"><img src="https://agentmods.dev/badge/instructions/cybernetix-lab/moss-harness/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,095 This file is loaded in full into every session.
When invoked 2,095 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.02095 $0.02095
Opus 5 $0.01047 $0.01047
Sonnet 5 $0.00419 $0.00419
Haiku 4.5 $0.00210 $0.00210

Measured 9d ago against content hash 966b004491dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

moss-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 9d 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 · 300 lines

How it starts

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

Harness Project Guide

项目概述

这是一个生产级完备的 AI Agent Harness 工程模板,提供可靠、可观测、可恢复的 Agent 运行环境, 核心功能包括:

  • 技能系统 - 可复用的 Agent 能力模块
  • 会话钩子 - 自动化上下文管理
  • 多 Agent 架构 - 专用 Agent 分工协作
  • 代码规则 - 自动化规范检查
  • MCP 集成 - 外部工具标准化接口
  • 记忆系统 - 跨会话学习
  • 验证循环 - 多级质量保障

核心原则

  1. 上下文即记忆 - 所有状态持久化到文件系统
  2. 约束先于能力 - 先定义边界,再赋予权限
  3. 验证内嵌 - 每个阶段自动验证
  4. 可恢复性 - 任何时刻可从断点继续
  5. 持续学习 - 从会话中提取模式

快速开始

# 初始化项目
./init.sh

# 启动 Agent 会话
./scripts/start-session.sh

# 激活技能
./scripts/skill-activate.sh typescript-patterns

# 运行验证
./scripts/verify.sh

# 运行评估
./scripts/run-evals.sh

项目结构

awesome-agent-harness/
├── CLAUDE.md                    # 仓库级持久指令
├── init.sh                      # 项目初始化脚本
│
├── agents/                      # Agent 配置
│   ├── implementer.yaml         # 功能实现 Agent
│   ├── reviewer.yaml            # 代码审查 Agent
│   └── researcher.yaml          # 研究分析 Agent
│
├── skills/                      # 技能系统
│   ├── coding/                  # 开发技能
│   │   ├── typescript-patterns/
│   │   └── react-hooks/
│   ├── review/                  # 审查技能
│   │   └── security-scan/
│   └── research/                # 研究技能
│       └── documentation-lookup/
│
├── hooks/                       # 会话钩子
│   ├── session-start.sh         # 会话启动
│   ├── session-stop.sh          # 会话结束
│   ├── pre-action.sh            # 动作前验证
│   └── post-action.sh           # 动作后记录
│
├── .runtime/                    # 运行时数据
│   └── context/                # 上下文管理
│       ├── PROGRESS.md
│       └── DECISIONS.md
│
├── constraints/                 # 约束与护栏
│   ├── hard-constraints.yaml    # 硬约束
│   ├── soft-constraints.yaml    # 软约束
│   └── tools-policy.yaml        # 工具策略
│
├── rules/                       # 代码规则
│   ├── typescript/              # TypeScript 规则
│   │   ├── function-size.yaml
│   │   └── type-safety.yaml
│   └── security/                # 安全规则
│       └── no-secrets.yaml
│
├── evals/                       # 评估框架
│   └── harness/
│       ├── context-retention.yaml
│       └── constraint-enforcement.yaml
│
├── verification/                # 验证循环
│   ├── README.md
│   └── config.yaml
│
├── telemetry/                   # 可观测性
│   └── config.yaml
│
├── mcp/                         # MCP 配置
│   └── servers.json
│
├── memory/                      # 记忆系统
│   └── README.md
│
├── tools/                       # 工具定义
│   ├── filesystem/
│   ├── code/
│   └── execution/
│
├── scripts/                     # 运维脚本
│   ├── start-session.sh
│   ├── update-context.sh
│   ├── create-checkpoint.sh
│   ├── restore-checkpoint.sh
│   ├── skill-list.sh            # 列出技能
│   ├── skill-activate.sh        # 激活技能
│   ├── agent-list.sh            # 列出 Agent
│   ├── verify.sh                # 运行验证
│   ├── run-evals.sh
│   └── health-check.sh
│
└── runtime/                     # 运行时数据
    ├── current -> sessions/xxx
    ├── sessions/
    └── telemetry/

Read the full file on GitHub · 300 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. 9d ago First seen · 300 lines · 2,095 tokens per session scan A 966b004491dc

Subscribe to this mod's changes

moss-harness CLAUDE.md is an instructions file published in the GitHub repository cybernetix-lab/moss-harness (135 stars, last pushed 3mo ago), licensed MIT. It adds 2,095 tokens to every session, about $0.0105 per session on Opus 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-30.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens