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.00031 | $0.03551 |
| Opus 5.5 | $0.00012 | $0.01420 |
| Sonnet 5.5 | $0.00006 | $0.00710 |
| Haiku 4.5 | $0.00003 | $0.00355 |
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 1mo 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.
- 1mo ago Changed · +31 tokens per session 1a46efab3d72
- 2mo ago Changed acd529331930
- 3mo 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 (2 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 3,551 once invoked, about $0.0001 per session on Opus 5.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.
harness-init compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| harness-initwaqas1412/claude-harness | Skill | 2 | 1mo ago | MIT | A | 31 | Claude Code |
| capture-milestone-principle-updatesuHappyLogic/cairn | Skill | 3 | 12d ago | MIT | A | 29 | Claude Code, Codex |
| context-compressionviktorbezdek/skillstack | Skill | 16 | 5mo ago | MIT | A | 131 | Claude Code |
| context-degradationviktorbezdek/skillstack | Skill | 16 | 5mo ago | MIT | A | 131 | Claude Code |
| context-fundamentalsviktorbezdek/skillstack | Skill | 16 | 5mo ago | MIT | A | 121 | Claude Code |
| context-optimizationviktorbezdek/skillstack | Skill | 16 | 5mo ago | MIT | A | 117 | Claude Code |
| forge-snapshotForgeyClap/claude-forge | Skill | 2 | 2mo ago | MIT | B | 42 | Claude Code |