he-setup-cli
v0.1.1
Published
Scaffold reusable harness-engineering workflow files, plan tooling, and agent setup into any repo.
Readme
he-setup-cli
Reusable CLI to scaffold the harness-engineering workflow into any repo.
It installs:
AGENTS.mdandCONTRIBUTING.md- plan helper scripts
- Planner / Developer / Reviewer role docs
- optional Codex and Claude subagent wrappers
- profile-aware plan directories
Profiles:
generic->docs/plans/**mvp->docs/mvp/plans/**plusdocs/mvp/tracker/**
The generated repo stores its workflow settings in .harness-engineering/setup.json. The generated plan tooling reads that file, so plan paths are config-driven rather than hardcoded.
Install / Run
Install globally:
npm install -g he-setup-cliThen use it from the target repo root:
cd /path/to/your/project
he-setup init
he-setup doctorYou can still target another directory explicitly:
he-setup init ../my-solution --profile mvpOr run from a local clone of this repo:
node bin/harness-engineering-setup.mjs initCommands
init
Initialize the current repo by default.
he-setup initWhat it does:
- scaffolds into the current working directory when no path is provided
- creates the target directory if an explicit target path is given
- writes workflow docs, scripts, and agent wrappers
- creates or updates
package.jsonwithplan:*scripts - initializes git if needed
adopt
Install the workflow into an existing repo.
he-setup adoptdoctor
Validate a scaffolded repo.
he-setup doctorChecks:
- workflow config exists and parses
- expected scaffolded files exist
- active/archive plan directories exist
package.jsoncontains the plan scripts- git availability/repo status is reported when available
Profile Attribute
profile is the workflow preset. It decides the default folder layout and policy surface.
generic->docs/plans/active,docs/plans/archivemvp->docs/mvp/plans/active,docs/mvp/plans/archive,docs/mvp/tracker
The generated manifest keeps both the selected profile and the exact path configuration so future tooling can use the configured paths directly instead of assuming a layout.
Development
npm test