The-Ideal-Harness: Instructions file for Claude Code

CLAUDE.md

The-Ideal-Harness CLAUDE.md is an instructions file for Claude Code from bharat3645/The-Ideal-Harness. It costs 3,800 tokens per session, scanned C, original, MIT.

Repository instructions for The Ideal Harness, a control system that applies rules and workflows around a stateless AI model. It describes the project’s six separate modules and the currently active policy rules.

In plain words
What is it for?
Use it when contributing to or operating The Ideal Harness. It helps route work through the project’s own modules and follow its enforcement rules and conventions.
Why use it?
It prevents an agent from using unrelated workflows and explains which project modules handle particular needs. This reduces confusion when tool output is large or when code structure and policy questions arise.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is bharat3645/The-Ideal-Harness's own configuration. It tells Claude Code how to work on The-Ideal-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 The-Ideal-Harness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bharat3645/The-Ideal-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/bharat3645/The-Ideal-Harness/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/bharat3645/The-Ideal-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 The-Ideal-Harness CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bharat3645/the-ideal-harness/claude-md"><img src="https://agentmods.dev/badge/instructions/bharat3645/the-ideal-harness/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,800 This file is loaded in full into every session.
When invoked 3,800 The same file — it is already loaded in full.
Security scan C 2 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.03800 $0.03800
Opus 5 $0.01900 $0.01900
Sonnet 5 $0.00760 $0.00760
Haiku 4.5 $0.00380 $0.00380

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

Security

Grade C, and why

The-Ideal-Harness CLAUDE.md scanned grade C with 2 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 10d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

(`rm -rf ~//`, `mkfs`, `dd …of=/dev/`, fork bomb).

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Ask:** all `Bash`, `Edit`, `Write`, `WebFetch`; `curl`/`wget`/`nc`; `git push`.
CLAUDE.md · 156 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

The Ideal Harness — Project Instructions

Scope rule (overrides global workflow): In this repository, route work through the Ideal Harness's own modules only. Do not invoke the global user-level workflow plugins here — no gsd, caveman, gstack, claude-mem, ruflo, codex-gate, brainstorming, or graphify. This project is the harness; it dogfoods itself. Use its modules, skills, and floor — nothing else.

This repo builds The Ideal Harness: a control-plane around a stateless model. It dogfoods its own enforcement floor and bootstrap skill via .claude/settings.json. The six modules below are the only lanes in play here — the harness ships as a single Claude Code plugin, but each module is its own MCP server/CLI and its own source boundary; treat them as separate lanes, not as a monolith.

The harness modules (the only lanes)

Need Module How to reach it
Token pressure / large tool output compress Automatic tool_result compression; call ccr_retrieve when you see a <<ccr:HASH>> marker.
"What calls X", "where is Y", past decisions memory query_graph (code structure) / memory_search (episodic) instead of re-reading whole files. A durable, project-level architecture decision goes in decisions.md (human-reviewed file), not a tool call.
Stale/uncertain library or package knowledge web web_docs (live npm registry metadata/README) / web_fetch (any URL) — policy-gated exactly like the native WebFetch tool.
Multi-step build / plan / review orchestrate Brainstorm (no code until approved) → plan → scout locates → plan-critic (different model tier, non-trivial plans only — the dual-model consensus gate) → fresh-context implementer per task → reviewer gate → fix loop. ledger_verify actually re-runs a task's verify.command instead of trusting a self-report. The four agents ship in agents/ (symlinked into .claude/agents/ for dogfood discovery).
Any tool call guard Deterministic floor below the model. vet_skill / vet_skill_deep scan a third-party skill (text or a whole directory, the latter adding semgrep/osv-scanner when present) before you trust it. If a call is denied, it is denied for a reason — do not route around it.
Substrate (loader, validation, templating) core pnpm validate; skill templating + multi-host generation.

Read the full file on GitHub · 156 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. 10d ago First seen · 156 lines · 3,800 tokens per session scan C 1135f6287622

Subscribe to this mod's changes

The-Ideal-Harness CLAUDE.md is an instructions file published in the GitHub repository bharat3645/The-Ideal-Harness (5 stars, last pushed today), licensed MIT. It adds 3,800 tokens to every session, about $0.0190 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). 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

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

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

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