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.
npx agentmods add skills/nikitacodesave/claude-code-harness/harnessnpx skills add nikitaCodeSave/claude-code-harness --skill harnessgit clone --depth 1 https://github.com/nikitaCodeSave/claude-code-harnessWrote 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.
[](https://agentmods.dev/skills/nikitacodesave/claude-code-harness/harness)<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 731 B
- references/audit-checklist.md 36 KB
- references/bootstrap-checklist.md 34 KB
- references/codex-peer-skill.md 13 KB
- references/evidence-base.md 15 KB
- references/harness-discipline.md 17 KB
- references/harness-evolution.md 9.5 KB
- references/native-capabilities.md 65 KB
- references/operator-playbook.md 15 KB
- references/project-docs/docs-discipline.md 9.0 KB
- references/project-docs/testing.md 2.0 KB
- references/project-docs/workflow.md 11 KB
- scripts/release.sh 3.7 KB runs code
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.
- today Changed · +4 lines 4755ff7b6a5b
- 4d ago First seen · 212 lines · 224 tokens per session scan A 78f496dca1f3
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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.
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.
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.
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.
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…