shwrk harness

The shwrk harness

The harness is an APM package that makes a repository self-checking. Install it, and every repo exposes the same interface: one command to verify everything (make check), one health endpoint (/health), one set of agent instructions (AGENTS.md), and one convergence test that proves the repo still satisfies the contract.

It is language-agnostic by design. The iron rule: nothing outside a Makefile target body references a specific language. The TypeScript / Cloudflare Workers defaults live in overridable ?= variables — point them at ruff, pytest, cargo, or anything else and the same target names keep working.

Why a harness

Agents are strong at writing code and weak at remembering process. The harness encodes the process so the agent cannot skip it:

The pieces

SurfaceWhat it is
MakefileThe standard target contract. include Makefile.core, override the *_CMD vars.
/healthA uniform JSON health endpoint. 200 = up, anything else = down.
AGENTS.mdLean, mapped agent instructions. CLAUDE.md is a symlink to it.
harness-checkThe convergence test: ten invariants that must hold, each with a fix.
Git hooksConventional-commit enforcement + a fast pre-commit lint/typecheck + secret scan.
Skills & agentsOpenSpec workflow, harness-reviewer, app-evaluator, fleet-update, gardener.

Get started

curl -sSL https://harness.shwrk.com/install | bash

Then open the repo in Claude Code and run the harness skill. See Install for what that script does, and Adoption Guide for adopting an existing repo safely.