claude-code-harness

claude-code-harness is a skill for Claude Code, Codex from nikitaCodeSave/claude-code-harness. It costs 224 tokens per session (3,877 once invoked), scanned A, original, MIT.

A setup guide for Claude Code, including the project files that control its instructions, commands, agents, skills, and hooks.

In plain words
What is it for?
Use it to create, inspect, simplify, or expand a project's Claude Code configuration.
Why use it?
It helps keep an agent setup small, understandable, and free of outdated or duplicated parts.

Skill for Claude CodeCodex

Part of the claude-code-harness plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nikitacodesave/claude-code-harness/harness
Any agent
npx skills add nikitaCodeSave/claude-code-harness --skill harness
Clone the repo
git clone --depth 1 https://github.com/nikitaCodeSave/claude-code-harness

Made for: Claude Code, Codex.

Or install claude-code-harness, the plugin that ships this one along with the rest of its 1 skill.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nikitacodesave/claude-code-harness/harness.svg)](https://agentmods.dev/skills/nikitacodesave/claude-code-harness/harness)
Your own site
<a href="https://agentmods.dev/skills/nikitacodesave/claude-code-harness/harness"><img src="https://agentmods.dev/badge/skills/nikitacodesave/claude-code-harness/harness.svg" alt="Measured on agentmods" height="20"></a>
Per session 224 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00224 $0.03877
Opus 5 $0.00112 $0.01938
Sonnet 5 $0.00045 $0.00775
Haiku 4.5 $0.00022 $0.00388

Measured today against content hash 4755ff7b6a5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/release.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/harness/SKILL.md · 216 lines

How it starts

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

Claude Code Harness

Designs, bootstraps, audits, and extends the harness around Claude Code — the .claude/ directory and root CLAUDE.md that turn a fresh repository into a high-leverage agentic workspace. Opinionated, and the opinion is one line:

Under a capable model, less harness yields more productivity. Find the simplest setup that works; add a component only when a simpler approach demonstrably underperforms. If a component encodes "the model can't do X" and the model already does X natively, it should not exist. (Model-agnostic principle — don't re-pin it to a version; evidence in references/evidence-base.md.)

When to use

  • A project has no .claude/ and wants its harness now → Bootstrap (production-grade default; minimal on explicit request).
  • A project has a .claude/ that has accumulated cruft (custom orchestrator subagent, multi-stage pipeline, 500-line CLAUDE.md, mid-thought blocking hooks, prescriptive stack presets, stale model-version pins, duplicate skills) → Audit.
  • About to add a hook/skill/subagent/command and want to confirm a built-in doesn't already cover it → Extend.
  • Someone asks how Claude Code differs from generic agentic frameworks, or when to use a dynamic workflow → Explain.

Do NOT use when: the operator's own harness already encodes this discipline (this skill is transmittable knowledge, not a self-description for a mature setup); the question is about building a harness inside another framework (OpenAI/Codex/MCP-without-Claude) → point to references/evidence-base.md external sources — an external CLI attached to this harness via MCP is in scope, not an exclusion (references/codex-peer-skill.md); the question is general programming/debugging.

The four modes

Mode 1: Bootstrap (empty .claude/)

Read references/bootstrap-checklist.md. Two things decide the shape before anything else. (1) Does the repo already have AGENTS.md or another agent's rule files? Then CLAUDE.md is a bridge (@AGENTS.md import or symlink), never a paraphrase — Claude Code does not read AGENTS.md, measured. (2) /init with CLAUDE_CODE_NEW_INIT=1 now does interactive discovery, subagent exploration and a reviewable proposal — use it for the draft instead of hand-rolling the same walk, and spend the run on what it does not do: the permission model, the shipped distillation, and cutting the draft down to what cannot be derived from the repo. Run claude --version first (the built-in subagent types you must not recreate are catalogued in references/native-capabilities.md; /agents no longer opens a wizard — inspect configured agents via /context ("Custom Agents") or .claude/agents/ directly; the CLI claude agents lists running background sessions, not types). Default shape is production-grade regardless of project size — which means conventions + documents, not machinery, so it does not contradict the headline principle: root CLAUDE.md ≤ 200 lines + settings.json with sane permissions + the shipped workflow distillation .claude/docs/{workflow,testing,docs-discipline}.md (Phase 2c, verbatim copies from references/project-docs/) + docs/ARCHITECTURE.md as a decision record (no module map, no CODE-MAP.md — the code carries those, and a boundary test pins them where the project has one)

  • .claude/rules/ for the domain prohibitions no type or test can express, where the repo actually has any. No custom subagents, hooks, or skills until justified; minimal MVH only on explicit operator request. Greenfield (0 files, 0 commits) is a valid detected state, not a reason to stall: an explicit request for the full harness on an empty repo is informed consent — deploy it with honestly-labelled stubs (never invented facts) whose marker names its own fill trigger. Close every bootstrap by recording it (Phase 8: the run writes its own first episodic entry, in whatever carrier the project's continuity duty names — the layer starts live instead of as a convention nobody has exercised). Then stop.

Read the full file on GitHub · 216 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 · +4 lines 4755ff7b6a5b
  2. 4d ago First seen · 212 lines · 224 tokens per session scan A 78f496dca1f3

Subscribe to this mod's changes

claude-code-harness is a skill published in the GitHub repository nikitaCodeSave/claude-code-harness (5 stars, last pushed today), licensed MIT. It adds 224 tokens to every session and 3,877 once invoked, about $0.0011 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens