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 skills add waqas1412/claude-harness --skill harness-initgit clone --depth 1 https://github.com/waqas1412/claude-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/waqas1412/claude-harness/harness-init)<a href="https://agentmods.dev/skills/waqas1412/claude-harness/harness-init"><img src="https://agentmods.dev/badge/skills/waqas1412/claude-harness/harness-init/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.
<a href="https://agentmods.dev/skills/waqas1412/claude-harness/harness-init"><img src="https://agentmods.dev/badge/skills/waqas1412/claude-harness/harness-init.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00000 | $0.03633 |
| Opus 5 | $0.00000 | $0.01817 |
| Sonnet 5 | $0.00000 | $0.00727 |
| Haiku 4.5 | $0.00000 | $0.00363 |
Grade A, and why
harness-init 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/harness-init: self-adapting project bootstrap
Generate this repository's navigation harness by scanning it and emitting four artifacts that follow a documented pattern. Run autonomously: infer everything you can, write the files, and record any assumption you had to make in the profile so the user can correct it. Ask the user only if a decision is genuinely blocking and cannot be inferred (rare).
For a large or multi-package repo, fan out: use Explore or parallel agents to map areas in
parallel, then synthesize. The main loop owns the file writes.
What you produce
CLAUDE.md(repo root) plus the root router index..claude/repo-index/<area>.mdone deep index per area (read on demand, not auto-loaded)..claude/meta/navigation.mdthe on-demand reference layer (includes an orchestration map)..claude/harness/profile.mdthe project profile (repo slug, tracker, verify commands, stack flags)..claude/memory/a project memory scaffold (one starter fact plus aMEMORY.mdindex).
Optional with --emit codex: a root AGENTS.md mirroring the same model for Codex and Cursor.
Wrap generated content between <!-- harness:start --> and <!-- harness:end --> markers so a later
--refresh replaces only the managed block and leaves any hand-written prose intact. If a target
file already exists without markers, back it up to <name>.bak.<timestamp> before writing.
Phase 1: Detect (do not write yet)
Run a fast, read-only scan. Prefer Bash one-liners and Glob over reading whole files.
- Repo identity:
git remote get-url origin(deriveowner/repo),git rev-parse --show-toplevel. - Default branch:
git symbolic-ref --quiet refs/remotes/origin/HEAD(striporigin/); fall back tomainthenmasterif unresolved. - Monorepo vs single: look for multiple sub-projects each with their own manifest
(
package.json,go.mod,pyproject.toml,Cargo.toml,pom.xml,build.gradle,*.csproj,Gemfile). One area per manifest dir; otherwise treat the root as a single area. - Stack per area: infer from the manifest plus lockfile:
- Node:
package.json(+yarn.lock-> yarn,pnpm-lock.yaml-> pnpm,package-lock.json-> npm,bun.lockb-> bun). Read thescriptsblock for lint/test/build. - Go:
go.mod(+ aMakefile: read targets forlint,test,build,sqlc). - Python:
pyproject.toml(+uv.lock-> uv,poetry.lock-> poetry); detect ruff/pytest/mypy. - Rust
Cargo.toml; RubyGemfile; Java/Kotlinpom.xml/build.gradle; .NET*.csproj.
- Node:
- Verify commands (the most important output): resolve concrete
LINT_CMD,UNIT_TEST_CMD,BUILD_CMD, andE2E_TEST_CMDper area from the scripts/targets above. Quote them exactly as a user would type them (e.g.yarn lint,make test,uv run pytest,go build ./...). - Docs and rules: find
AGENTS.md,CLAUDE.md,README*,CONTRIBUTING*,docs/**, and any spec/KB dirs. Note per-areaAGENTS.mdas authoritative. - Setup and environment quirks: check for
.env.example/.env.sample,.envrc,.tool-versions/.nvmrc,docker-compose*.yml, a.devcontainer, and a README Setup/Prerequisites/Getting-started section. Route real signals to the profile (Phase 2) and the Phase 6 memory fact; do not add a new root CLAUDE.md section for these. - Deny zones: standard ignores plus anything large/generated you actually see
(
node_modules,.next,dist,build,out,target,cdk.out,.git,.venv,__pycache__,*.egg-info,vendor, generatedsqlc/codegen dirs, test-report/snapshot dirs). - Tracker prefix: infer from branch and commit history
(
git log --oneline -50,git branch -a): a recurring[A-Z]{2,}-\d+token is the prefix (e.g.PROJ-,JIRA-,OPS-). If none is found, leaveTICKET_PREFIXempty and note that/prand/ticketshould fall back to GitHub issue refs. - Routing triggers: for each area, identify the dirs that own the common intents (entrypoints, HTTP handlers/routes, data layer, shared libs, UI components, config, tests). These become Section 2.
What ships with it
1 file 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.
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.
- 4d ago Changed acd529331930
- 12d ago First seen · 249 lines · 0 tokens per session scan A b7a661f185a2
harness-init is a skill published in the GitHub repository waqas1412/claude-harness (1 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,633 tokens. 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
hive.context-preservation
Proactively extract critical values from tool results into working notes before automatic context pruning destroys them.
hive.note-taking
Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.
caveman-compress
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or…
continuous-learning-v2
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
lat-md-knowledge-graph
Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections. Use when AGENTS.md/CLAUDE.md is too flat for a large codebase or when a custom harness needs durable structured project memory.
flame-harness-evaluator
Phase 6 — skeptical QA. Run the game, watch it, then judge against the contract. Default = functional check; --strict adds quality and edge-case passes.