docs · installation
Installation & Setup.
Three installation pathways: complete agent workbench bootstrap, standalone skill installation via skills.sh, or the zharness binary.
Prerequisites.
Ensure your environment satisfies the base requirements before proceeding with installation:
- Node.js 18+ — Required for skill discovery and global CLI execution.
- jq — Required for terminal statusline processing.
- Git — Version control for repository tracking and hooks.
- Rust (stable) (Optional) — Required only if compiling the
zharnessbinary from source. - SSH Access — Valid key configured for
git@github.com:tinhtute/monoharness.git.
After installation, review ~/.claude/settings.json and ensure ANTHROPIC_AUTH_TOKEN or relevant provider tokens are set in your shell environment.
Give this to a coding agent.
Copy the block below into the consumer repository chat when you want the agent to install, refresh, or work with zharness on its own.
Work in this git repository. Read https://github.com/therealtinhtute/mono-harness/blob/master/README.md and, once they exist, this repo's AGENTS.md and docs/WORKFLOW.md. If zharness is not on PATH or outdated, install/upgrade it with scripts/install-zharness.sh. If this repo has no docs/WORKFLOW.md, run zharness install. Before upgrading, independently install the six workflow skills (brainstorm, to-plan, work, check, handoff, recall) using the skills instructions below. If a required skill or reference is missing, report the dependency and stop workflow execution. If the repo is initialized or zharness install reports drifted files, run zharness update to refresh WORKFLOW and conservatively retire recorded legacy procedures (edited/unknown files and recovery data are retained; PROJECT.md is never overwritten, and an edited AGENTS.md block makes update refuse with a diff). Plans live only in docs/plans/ — multi-session or complex work uses exactly one file at docs/plans/active/{slug}.md, moved to docs/plans/completed/ upon verified handoff. Small changes need no plan. zharness only manages the doc set (install/update/uninstall) — it does not run the lifecycle. Missing AGENTS.md: zharness install, do not invent the file. Claude Code reads CLAUDE.md, not AGENTS.md; if CLAUDE.md is missing, the consumer writes a thin file containing the line @AGENTS.md.
Option A: Full Claude Code bootstrap.
The recommended approach for setting up a full agent workstation. Skills and the harness agents (lead, worker, verifier) come from this repository; the Claude Code setup lives in the separate monoclaudian repository, whose install.sh deploys global agent instructions (CLAUDE.md), core rules, a settings template, and the statusline script.
# Skills and harness agents: clone monoharness
$git clone git@github.com:tinhtute/monoharness.git ~/monoharness
$cd ~/monoharness
$npx skills add git@github.com:tinhtute/monoharness.git -a claude-code -g -y
$bash scripts/install-agents.sh
# Claude Code setup (CLAUDE.md, rules, settings, statusline): monoclaudian
$git clone https://github.com/tinhtute/monoclaudian ~/monoclaudian && bash ~/monoclaudian/install.sh
Existing configuration files such as ~/.claude/settings.json are safely preserved. Backups are created before replacing any global dotfiles.
Option B: Skills only (via skills.sh).
If you prefer to install only the skills without configuring global agent settings or rules, use the standard skills.sh package manager.
# Inspect published skills in repository without installing
$npx skills add git@github.com:tinhtute/monoharness.git --list
# Install all skills globally for Claude Code
$npx skills add git@github.com:tinhtute/monoharness.git -a claude-code -g -y
Option C: zharness binary installation.
The zharness CLI manages the workflow router, identity documents, and base hashes in target projects.
Release Binary
Prebuilt
Download and install the prebuilt binary directly to ~/.local/bin/zharness (Linux & macOS on amd64 / arm64).
$bash scripts/install-zharness.sh
$zharness --version
Build From Source
RustCompile the binary with a stable Rust toolchain.
$cd cli
$cargo build --release
$cp target/release/zharness ~/.local/bin/zharness
$zharness --version
First run: Project workflow setup.
To enable the structured workflow in any target Git repository, complete these two steps:
zharness installWORKFLOW.md and PROJECT.md, adds AGENTS.md block.bash scripts/install-git-hooks.shVerification.
Verify that your installation is functional and ready for development work:
# 1. Verify CLI installation
$zharness --version
zharness version 0.24.0
# 2. Verify CLI commands
$zharness install --help
$zharness update --help
$zharness uninstall --help
# 3. Test pre-commit hook enforcement
$bash scripts/install-git-hooks.sh
installed .git/hooks/pre-commit with fail-closed proof re-execution