Installation
Add harness-kit to a project from npm and check that it runs.
You'll: install harness-kit in your project and check that it runs. The package comes from the npm registry, so the install needs no .npmrc and no token.
Before you start
You need macOS or Linux, Claude Code, Node.js 26 or newer on the
PATH Claude Code starts hooks with, and a project installed with npm, pnpm or bun. Yarn is not supported.Install the package and check that it runs
npm install --save-dev @microeinhundert/harness-kit
npx harness-kit --versionIt prints the installed version. If it exits with 2, the platform or Node is unsupported, and the message names what it needs and what it found; see Troubleshooting.
Continue with the quick start
The hooks are not on yet. The quick start writes your first harness.config.ts and turns them on with npx harness-kit settings sync.
Imports the package offers
| Import | What it gives you |
|---|---|
@microeinhundert/harness-kit | defineConfig, GIT_CONVENTIONS, DecisionSchema and the types of a Policy |
@microeinhundert/harness-kit/effect | the Effect the command line runs on, for a Policy written in code |
@microeinhundert/harness-kit/testing | payload builders and runHook, to test a configuration |
@microeinhundert/harness-kit/github | the GitHub forge and GitHub Issues tracker, as Effect layers |
@microeinhundert/harness-kit/jira | the Jira Cloud tracker, as an Effect layer |
Import Effect from the kit
Import Effect from @microeinhundert/harness-kit/effect, not from effect: the hook has that copy loaded already, so your configuration runs on it instead of loading a second one.