Skip to main content
Free Download

The Claude Code Harness Pack

Everyone compares models. Almost nobody configures the thing around the model — the instructions it always reads, the permissions it never has to ask about, the hooks that run whether or not it remembers, and the sub-agents that keep one context from carrying every job.

That layer is the harness, and it is the part you keep when the model changes.

Download the pack

Free · no sign-up · 11 files


What's inside

Four pieces, one job each

CLAUDE.md

The instructions loaded on every single turn

This is the most expensive text in your project — read on every request. Keep it short enough to stay cheap and specific enough to change behavior. The template marks exactly which parts to replace and which to delete.

settings.json

Permissions you grant once instead of every session

Every command you approve by hand is a turn spent on ceremony. Read-only commands are allowlisted; nothing that writes, deletes, pushes or spends money is pre-approved.

hooks/

The parts that do not depend on the model remembering

An instruction is a request. A hook is a guarantee. One formats every file that gets written; the other inspects edits before they land and refuses anything holding a credential.

agents/

So one context does not carry every job

One agent can technically do everything, and quality falls off long before the window fills. Planner, reviewer and build-fixer each get their own context and one job.


Every file

What you get

CLAUDE.md
Commented template — replace the bracketed parts, delete the rest
settings.json
Permissions allowlist and denylist, plus both hooks wired up
hooks/format-on-edit.sh
Formats every written file — TypeScript, Python, Go, Rust, shell
hooks/block-secrets.sh
Blocks any edit containing a credential, and any write to a .env
agents/planner.md
Plans before code. No write tools, by design
agents/code-reviewer.md
Reviews the diff for defects, not preferences
agents/build-error-resolver.md
Gets the build green with minimal diffs, never suppression

Two minutes to set up

Drop it in and go

Per project

cp CLAUDE.md your-project/
mkdir -p your-project/.claude
cp settings.json your-project/.claude/settings.json
cp -r hooks agents your-project/.claude/
chmod +x your-project/.claude/hooks/*.sh

To apply it everywhere instead, copy the same files into ~/.claude/. Restart Claude Code, then run /hooks to confirm both hooks registered.

Change these first

Your real build and test commands in CLAUDE.md, the read-only commands you approve most often in settings.json, and the formatter your project actually uses. Everything else can wait until it annoys you.


Grab the harness pack

The full config layer — instructions, permissions, hooks and sub-agents — ready to copy into your next project. Free, editable, no sign-up.

Download the pack

Building AI at your company? Eight Labs consults for enterprise, SMEs and startups. Details at theaihow.com.


FAQ

Frequently asked

Do I need all four pieces?

No. Start with CLAUDE.md — filling in your real build and test commands stops the model guessing them every session, which is the fastest payoff in the pack. Add the permissions allowlist next, once you notice yourself approving the same command repeatedly.

Is this specific to a particular model?

No, and that is the point. The harness is the layer you keep when the model changes. Switching models is the smallest change you can make; the config around the model is what carries over to the next one.

Will the secret-blocking hook fire on placeholders?

It should not. The patterns are deliberately narrow and match live credential shapes — real key prefixes and minimum lengths — rather than any string containing the word key. A noisy hook gets disabled within a day, which protects nothing.

Where do the files go?

Per project, CLAUDE.md sits in the repo root and the rest in .claude/ beside it. To apply everywhere, put the same files in ~/.claude/ instead. Make the hook scripts executable, restart Claude Code, and run /hooks to confirm they registered.

Is this the exact config The AI How runs?

It is the transferable part of it. Our own CLAUDE.md carries project-specific rules that would be noise in your repo, so the template here keeps the structure and the rule-writing guidance and leaves the specifics to you. The hooks and sub-agents are as we run them.

Does it cost anything?

No. Free to download, use, and change. No sign-up.