ClaudeMod
Back to browse
Harnesses

Claude Code Harness

Chachamaru127's structured harness for managing multi-file Claude Code projects — task queues, context budgeting, file dependency graphs, and session checkpoints.

Chachamaru1271,703 starsAdded 3 months ago

Claude Code Harness

Claude Harness

Plan. Work. Review. Ship.
A disciplined delivery loop for Claude Code, with bounded paths for Codex and OpenCode.

Latest Release License Claude Code Skills Go Core

English | 日本語

Claude Code Harness operating loop: Spec, Plan, Work, Review, Release

Claude Code is powerful, but raw agent work drifts: plans live in chat, tests become optional, review happens too late, and release evidence gets rebuilt by memory. Harness turns that into one repeatable operating path.

After install, the default changes from "ask the agent to code" to:

  1. write the spec and plan,
  2. implement only the approved slice,
  3. verify the result,
  4. review independently,
  5. package evidence for PR or release.

Quickstart

New users should start from the tool they already use. Existing users should run the migration report before cleanup or reinstall.

PathStart
New userTool-first onboarding
Existing userMigration check
Claude Code fast pathInstall in 30 seconds
Trigger proofSkill trigger gate

Install in 30 Seconds

claude
/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install claude-code-harness@claude-code-harness-marketplace
/harness-setup

Next command: run /harness-plan with one small request.

/harness-plan Improve the README onboarding flow

First 15 Minutes

  1. Install through your tool route.
  2. Run /harness-setup or the equivalent setup script.
  3. Run /harness-plan with a small request; Harness writes the spec.md and Plans.md drafts for you to check.
  4. Approve the generated contract or reply with the correction you want.
  5. Run the smallest approved task, for example /harness-work 1.1.1.
  6. Run /harness-review and keep the verification output.

Your job is not to hand-write the plan. It is to approve or correct the generated contract before execution continues.

How It Works

Harness adds a source-of-truth loop around agent work.

  1. You describe the outcome in normal language.
  2. /harness-plan drafts or updates spec.md and Plans.md with scope, acceptance criteria, unknowns, and stop conditions.
  3. Harness treats those files as the source of truth. Data the agent has not seen stays unknown instead of being silently invented.
  4. /harness-work implements the approved slice with TDD and verification.
  5. /harness-review separates review from implementation.
  6. /harness-release packages only verified evidence.

Commands

CommandWhat happens inside
/harness-setupInstalls project guidance, command surfaces, hooks, and checks so the workflow starts from one known baseline.
/harness-planTurns intent into spec.md and Plans.md, including scope, acceptance criteria, dependencies, unknowns, and stop conditions.
/harness-workExecutes one approved task or range, adds tests when required, runs verification, and keeps work inside the plan.
/harness-work allRuns the approved plan through implementation and review paths; use after the plan is clear and the repo baseline is known.
/harness-reviewReviews the result separately from implementation and treats major findings as blockers.
/harness-releaseChecks release readiness, CHANGELOG/tag boundaries, and evidence packaging after implementation and review are complete.
bin/harness doctor --migration-reportInventories old plugin caches, Codex skills, OpenCode files, symlinks, and memory state without deleting data.

Basic Workflow

StageOutputGate
InvestigateEvidence and unknownsDo not promote unobserved data into claims.
Planspec.md + Plans.mdUser approves or corrects the generated contract.
WorkCode and testsTDD required when the task says so.
ReviewIndependent verdictMajor findings block completion.
PREvidence packPR ready is not release ready.
ReleaseTag/release artifactsRelease preflight must pass on the release path.

Install By Tool

ToolTierRoute
Claude CodesupportedClaude plugin marketplace, then /harness-setup.
Codex CLIinternal-compatiblescripts/setup-codex.sh --user; direct plugin smoke is tracked separately.
Codex appcandidateCandidate smoke only; do not reuse Codex CLI proof.
OpenCodeinternal-compatiblescripts/setup-opencode.sh; runtime parity is not claimed.
CursorcandidatePM handoff or adapter research only.
GitHub Copilot CLIcandidateManual profile research only.
Antigravity CLIfuture/unsupportedNo end-user install route in this phase.

Existing User Migration

Run bin/harness doctor --migration-report before changing an existing setup. The report inventories stale Claude plugin caches, duplicate Codex skills, old symlinks, OpenCode backup paths, and harness-mem state without deleting anything.

Support Boundary

Harness can describe candidate paths, but it does not inherit support claims from Superpowers, Hermes Agent, or any other project. A host only moves up when Harness has its own bootstrap, trigger, runtime, and release evidence.

not_observed != absent: missing local proof means "not proven here", not "impossible" and not "supported".

Requirements

  • Claude Code v2.1+ for the supported Claude path.
  • A project repository with write access for local setup.
  • No Node.js is required for the Go-native guardrail engine.
  • Optional harness-mem for cross-session memory when configured and healthy.

Advanced

Use these after the basic trigger path is visible.

CapabilityWhat it addsBoundary
BreezingPlanner/Critic/Worker style team execution for larger task lists.Still gated by plan quality and review.
Codex companion reviewSchema-backed Codex second opinion through scripts/codex-companion.sh.Raw codex exec is not the Harness companion path.
OpenCode bootstrapMirrors Harness guidance into OpenCode-compatible surfaces.Real runtime parity is not claimed.
harness-memProject-scoped memory and recall across sessions.Optional companion; purge remains explicit.

Documentation

ResourceDescription
Tool-first onboardingWhere to start by host tool.
Install routesPer-tool setup and support-tier boundaries.
Migration checkExisting-user impact, compatibility, and rollback path.
Skill trigger gateHow install success is verified.
Capability matrixSupported, internal-compatible, candidate, and unsupported host claims.
Claude Code CompatibilityCurrent Claude Code requirements and compatibility notes.
Distribution ScopeIncluded vs compatibility vs development-only paths.
Hardening parityRuntime safety differences between Claude hooks and Codex gates.
Work All Evidence PackSuccess/failure verification contract for full-plan execution.
ChangelogUser-facing version history.

Contributing

Issues and PRs welcome. See CONTRIBUTING.md.

Acknowledgments

  • AI Masao - Hierarchical skill design
  • Beagle - Test tampering prevention patterns

License

MIT License. See LICENSE.md.

More Harnesss

Harnesses

claude-simone

Structured project management harness for Claude Code — define milestones and sprints in markdown, then run execution loops that drive Claude through each task.

project-managementmilestonessprints+2
by Helmi
GitHub
Harnesses

Claude Squad

Multi-agent tmux orchestrator — spawn N isolated Claude Code sessions in parallel, each in its own git worktree, then merge the best results back to main.

multi-agentparalleltmux+3
by SMTG AI
GitHub
Harnesses

Claude Swarm

Distributed Claude agent swarms — agents communicate via MCP, share tool access, and collaborate on complex tasks with configurable topology and role specialization.

swarmdistributedmulti-agent+3
by parruda
GitHub

Command Palette

Search for a command to run...