coding-agent-harness 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/CONTRIBUTING.md +98 -0
- package/README.md +211 -86
- package/README.zh-CN.md +54 -34
- package/SKILL.md +25 -18
- package/docs-release/README.md +9 -5
- package/docs-release/architecture/overview.md +17 -5
- package/docs-release/architecture/overview.zh-CN.md +9 -5
- package/docs-release/assets/dashboard-overview.png +0 -0
- package/docs-release/guides/agent-installation.en-US.md +31 -8
- package/docs-release/guides/agent-installation.md +34 -9
- package/docs-release/guides/contributing.md +100 -0
- package/docs-release/guides/contributing.zh-CN.md +99 -0
- package/docs-release/guides/document-audience-and-surfaces.en-US.md +3 -2
- package/docs-release/guides/document-audience-and-surfaces.md +3 -2
- package/docs-release/guides/full-legacy-migration-subagent-strategy.md +2 -2
- package/docs-release/guides/full-legacy-migration-subagent-strategy.zh-CN.md +2 -2
- package/docs-release/guides/legacy-migration-agent-prompt.md +0 -11
- package/docs-release/guides/legacy-migration-agent-prompt.zh-CN.md +0 -11
- package/docs-release/guides/migration-playbook.en-US.md +14 -15
- package/docs-release/guides/migration-playbook.md +14 -15
- package/docs-release/guides/parent-control-repository-pattern.en-US.md +7 -5
- package/docs-release/guides/parent-control-repository-pattern.md +7 -5
- package/docs-release/guides/preset-development.md +214 -0
- package/docs-release/guides/repository-operating-models.en-US.md +5 -4
- package/docs-release/guides/repository-operating-models.md +5 -4
- package/docs-release/guides/task-state-machine.en-US.md +207 -0
- package/docs-release/guides/task-state-machine.md +214 -0
- package/docs-release/intl/en-US.md +1 -1
- package/docs-release/intl/zh-CN.md +1 -1
- package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/findings.md +7 -0
- package/package.json +8 -3
- package/presets/legacy-migration/checks/preset-check.mjs +3 -0
- package/presets/legacy-migration/preset.yaml +134 -0
- package/presets/legacy-migration/scripts/plan-work-queue.mjs +4 -0
- package/presets/legacy-migration/scripts/scaffold-task-contracts.mjs +4 -0
- package/presets/legacy-migration/templates/execution_strategy.append.md +18 -0
- package/presets/legacy-migration/templates/findings.seed.md +17 -0
- package/presets/legacy-migration/templates/review.seed.md +12 -0
- package/presets/legacy-migration/templates/task_plan.append.md +9 -0
- package/presets/legacy-migration/templates/visual_map.append.md +12 -0
- package/presets/legacy-migration/workbench/dashboard-panels.yaml +2 -0
- package/presets/legacy-migration/workbench/migration-queue.schema.json +23 -0
- package/presets/lesson-sedimentation/preset.yaml +23 -0
- package/presets/lesson-sedimentation/templates/prompt.md +23 -0
- package/presets/module/preset.yaml +25 -0
- package/presets/module/templates/execution_strategy.append.md +8 -0
- package/presets/module/templates/task_plan.append.md +17 -0
- package/presets/standard-task/preset.yaml +31 -0
- package/presets/standard-task/templates/task_plan.append.md +7 -0
- package/references/adversarial-review-standard.md +2 -2
- package/references/agents-md-pattern.md +2 -2
- package/references/delivery-operating-model-standard.md +3 -3
- package/references/docs-directory-standard.md +6 -7
- package/references/harness-ledger.md +53 -96
- package/references/lessons-governance.md +88 -93
- package/references/module-parallel-standard.md +14 -14
- package/references/planning-loop.md +12 -6
- package/references/pull-request-standard.md +118 -0
- package/references/repo-governance-standard.md +11 -2
- package/references/review-routing-standard.md +7 -1
- package/references/ssot-governance.md +67 -59
- package/references/taskr-gap-analysis.md +600 -0
- package/references/walkthrough-closeout.md +7 -7
- package/scripts/check-harness.mjs +40 -301
- package/scripts/commands/dashboard-command.mjs +67 -0
- package/scripts/commands/migration-command.mjs +96 -0
- package/scripts/commands/preset-command.mjs +73 -0
- package/scripts/commands/task-command.mjs +327 -0
- package/scripts/harness.mjs +55 -260
- package/scripts/lib/capability-registry.mjs +66 -8
- package/scripts/lib/check-module-parallel.mjs +237 -0
- package/scripts/lib/check-profiles.mjs +61 -153
- package/scripts/lib/check-task-contracts.mjs +47 -0
- package/scripts/lib/core-shared.mjs +10 -0
- package/scripts/lib/dashboard-data.mjs +29 -6
- package/scripts/lib/dashboard-workbench.mjs +52 -12
- package/scripts/lib/dashboard-writer.mjs +14 -2
- package/scripts/lib/git-status-summary.mjs +46 -0
- package/scripts/lib/governance-index-generator.mjs +174 -0
- package/scripts/lib/governance-sync.mjs +514 -0
- package/scripts/lib/governance-table-boundary.mjs +175 -0
- package/scripts/lib/harness-core.mjs +5 -0
- package/scripts/lib/lesson-maintenance.mjs +36 -29
- package/scripts/lib/migration-support.mjs +1 -1
- package/scripts/lib/preset-audit-contracts.mjs +37 -0
- package/scripts/lib/preset-engine.mjs +497 -0
- package/scripts/lib/preset-registry.mjs +627 -0
- package/scripts/lib/preset-resource-contracts.mjs +83 -0
- package/scripts/lib/review-confirm-git-gate.mjs +248 -0
- package/scripts/lib/status-dashboard-renderer.mjs +102 -0
- package/scripts/lib/subagent-authorization-audit.mjs +196 -0
- package/scripts/lib/task-completion-consistency.mjs +16 -0
- package/scripts/lib/task-index.mjs +93 -0
- package/scripts/lib/task-lesson-candidates.mjs +242 -0
- package/scripts/lib/task-lesson-sedimentation.mjs +326 -0
- package/scripts/lib/task-lifecycle/review-confirm.mjs +101 -0
- package/scripts/lib/task-lifecycle/review-gates.mjs +70 -0
- package/scripts/lib/task-lifecycle/text-utils.mjs +24 -0
- package/scripts/lib/task-lifecycle.mjs +297 -403
- package/scripts/lib/task-review-model.mjs +469 -0
- package/scripts/lib/task-scanner.mjs +130 -236
- package/scripts/lib/task-tombstone-commands.mjs +140 -0
- package/scripts/postinstall.mjs +14 -0
- package/skills/preset-creator/SKILL.md +179 -0
- package/skills/preset-creator/references/complex-task-skeleton/README.md +31 -0
- package/skills/preset-creator/references/complex-task-skeleton/artifacts/INDEX.md +12 -0
- package/skills/preset-creator/references/complex-task-skeleton/brief.md +32 -0
- package/skills/preset-creator/references/complex-task-skeleton/execution_strategy.md +71 -0
- package/skills/preset-creator/references/complex-task-skeleton/findings.md +24 -0
- package/skills/preset-creator/references/complex-task-skeleton/lesson_candidates.md +70 -0
- package/skills/preset-creator/references/complex-task-skeleton/long-running-task-contract.md +76 -0
- package/skills/preset-creator/references/complex-task-skeleton/progress.md +33 -0
- package/skills/preset-creator/references/complex-task-skeleton/references/INDEX.md +13 -0
- package/skills/preset-creator/references/complex-task-skeleton/review.md +107 -0
- package/skills/preset-creator/references/complex-task-skeleton/task_plan.md +111 -0
- package/skills/preset-creator/references/complex-task-skeleton/visual_map.md +50 -0
- package/skills/preset-creator/references/preset-package-skeleton.md +296 -0
- package/templates/AGENTS.md.template +19 -15
- package/templates/dashboard/assets/app-src/00-state.js +1 -0
- package/templates/dashboard/assets/app-src/10-router.js +2 -1
- package/templates/dashboard/assets/app-src/20-overview.js +11 -5
- package/templates/dashboard/assets/app-src/30-tasks.js +92 -246
- package/templates/dashboard/assets/app-src/35-task-detail.js +246 -0
- package/templates/dashboard/assets/app-src/45-review.js +241 -22
- package/templates/dashboard/assets/app-src/50-migration.js +24 -10
- package/templates/dashboard/assets/app-src/90-bindings.js +171 -29
- package/templates/dashboard/assets/app.css +698 -156
- package/templates/dashboard/assets/app.css.manifest.json +9 -0
- package/templates/dashboard/assets/app.js +662 -91
- package/templates/dashboard/assets/app.manifest.json +1 -0
- package/templates/dashboard/assets/css-src/00-foundation.css +342 -0
- package/templates/dashboard/assets/css-src/10-panels-flow.css +236 -0
- package/templates/dashboard/assets/css-src/20-briefs-controls.css +398 -0
- package/templates/dashboard/assets/css-src/30-task-index.css +739 -0
- package/templates/dashboard/assets/css-src/35-review-workspace.css +507 -0
- package/templates/dashboard/assets/css-src/40-detail-modules-migration.css +427 -0
- package/templates/dashboard/assets/css-src/50-responsive-overrides.css +551 -0
- package/templates/dashboard/assets/i18n.js +123 -21
- package/templates/ledger/Harness-Ledger.md +13 -25
- package/templates/lessons/lesson-arch-process-change.md +1 -1
- package/templates/lessons/lesson-new-doc.md +1 -1
- package/templates/lessons/lesson-ref-change.md +1 -1
- package/templates/planning/execution_strategy.md +31 -0
- package/templates/planning/lesson_candidates.md +18 -6
- package/templates/planning/optional/artifacts/INDEX.md +3 -3
- package/templates/planning/optional/references/INDEX.md +3 -3
- package/templates/planning/review.md +59 -0
- package/templates/planning/task_plan.md +36 -13
- package/templates/reference/execution-workflow-standard.md +4 -3
- package/templates/reference/pull-request-standard.md +80 -0
- package/templates/reference/repo-governance-standard.md +7 -6
- package/templates/reference/review-routing-standard.md +6 -0
- package/templates/reference/walkthrough-standard.md +2 -1
- package/templates/verifier/verifier-output.md +1 -1
- package/templates-zh-CN/AGENTS.md.template +20 -16
- package/templates-zh-CN/ledger/Harness-Ledger.md +17 -40
- package/templates-zh-CN/planning/execution_strategy.md +30 -0
- package/templates-zh-CN/planning/lesson_candidates.md +18 -6
- package/templates-zh-CN/planning/review.md +59 -1
- package/templates-zh-CN/planning/task_plan.md +30 -10
- package/templates-zh-CN/reference/adversarial-review-standard.md +1 -1
- package/templates-zh-CN/reference/docs-library-standard.md +1 -1
- package/templates-zh-CN/reference/execution-workflow-standard.md +4 -3
- package/templates-zh-CN/reference/harness-ledger-standard.md +2 -2
- package/templates-zh-CN/reference/pull-request-standard.md +106 -0
- package/templates-zh-CN/reference/repo-governance-standard.md +4 -3
- package/templates-zh-CN/reference/review-routing-standard.md +8 -1
- package/templates-zh-CN/reference/walkthrough-standard.md +3 -2
- package/templates-zh-CN/walkthrough/Closeout-SSoT.md +1 -1
- package/docs-release/assets/dashboard-overview-en.png +0 -0
- package/scripts/smoke-dashboard.mjs +0 -92
- package/scripts/test-harness.mjs +0 -1395
- package/templates/ssot/Feature-SSoT.md +0 -43
- package/templates/ssot/Lessons-SSoT.md +0 -44
- package/templates-zh-CN/ssot/Feature-SSoT.md +0 -49
- package/templates-zh-CN/ssot/Lessons-SSoT.md +0 -49
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
- Seed bundled presets into user preset storage during npm/user installation and
|
|
6
|
+
into project preset storage during `harness init`.
|
|
7
|
+
- Added `harness preset seed` for idempotent bundled preset repair/re-run flows.
|
|
8
|
+
- Included bundled presets in user-level Skill installation and `doctor-user`
|
|
9
|
+
validation.
|
|
10
|
+
- Updated agent-facing installation guidance to require preset discovery before
|
|
11
|
+
choosing task presets.
|
|
12
|
+
|
|
13
|
+
## 1.0.3
|
|
14
|
+
|
|
15
|
+
- Added lesson sedimentation follow-up task creation through CLI, preset, and
|
|
16
|
+
Dashboard actions, using task-local candidates and promoted lesson detail
|
|
17
|
+
docs instead of a shared Lessons table.
|
|
18
|
+
- Added git-backed review confirmation audit validation so forged committed
|
|
19
|
+
Markdown blocks cannot satisfy human review confirmation.
|
|
20
|
+
- Added governance table entropy checks for shared governance table boundaries.
|
|
21
|
+
- Bounded lifecycle queue cards and review document panels for long task and
|
|
22
|
+
review content.
|
|
23
|
+
- Split lifecycle review gates, review-confirm writer, and lifecycle test
|
|
24
|
+
suites into dedicated module folders.
|
|
25
|
+
- Added a bilingual pull request standard and PR template, and routed generated
|
|
26
|
+
`AGENTS.md` files to the PR standard.
|
|
27
|
+
|
|
3
28
|
## 1.0.2
|
|
4
29
|
|
|
5
30
|
- Added the dashboard workbench, review queue, migration rails, lifecycle gates,
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping improve Coding Agent Harness. This repository contains the public CLI, templates, presets, Skills, examples, documentation, and the optional GUI submodule.
|
|
4
|
+
|
|
5
|
+
## Before You Start
|
|
6
|
+
|
|
7
|
+
- Use Node.js 18 or newer. CI currently runs on Node.js 20.
|
|
8
|
+
- Install root dependencies with `npm install` from the repository root.
|
|
9
|
+
- If you change `harness-gui`, also run `npm ci` inside `harness-gui/`.
|
|
10
|
+
- Keep pull requests focused. Separate documentation, CLI/runtime, template, preset, and GUI work when the changes are independent.
|
|
11
|
+
|
|
12
|
+
## Repository Layout
|
|
13
|
+
|
|
14
|
+
| Path | Purpose |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `scripts/` | Public CLI and implementation modules. |
|
|
17
|
+
| `tests/` | Root package tests and dashboard smoke tests. |
|
|
18
|
+
| `templates/`, `templates-zh-CN/` | Harness templates installed into target projects. |
|
|
19
|
+
| `presets/` | Bundled Harness preset packages. |
|
|
20
|
+
| `skills/`, `SKILL.md` | Agent Skill entrypoints and nested Skills. |
|
|
21
|
+
| `docs-release/` | Public documentation for users and maintainers. |
|
|
22
|
+
| `examples/` | Minimal target projects and fixtures used by tests. |
|
|
23
|
+
| `harness-gui/` | Optional GUI submodule with its own package and checks. |
|
|
24
|
+
|
|
25
|
+
Do not commit local generated dashboards, temporary output directories, credentials, editor files, or machine-specific environment files.
|
|
26
|
+
|
|
27
|
+
## Branches And Commits
|
|
28
|
+
|
|
29
|
+
- Create a branch from the latest `main`.
|
|
30
|
+
- Use a descriptive branch name such as `codex/fix-task-state-docs` or `feat/preset-validation`.
|
|
31
|
+
- Keep commit messages short and concrete.
|
|
32
|
+
- Do not include unrelated formatting churn or generated artifacts in the same PR.
|
|
33
|
+
|
|
34
|
+
## What To Run
|
|
35
|
+
|
|
36
|
+
Run the checks that match your change. For a small docs-only PR, start with the
|
|
37
|
+
docs row. For larger PRs or when you are unsure, run the full root suite.
|
|
38
|
+
|
|
39
|
+
| Change type | Minimum local checks |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| Docs only | `git diff --check` |
|
|
42
|
+
| CLI/runtime | `npm test`, `npm run check`, `git diff --check` |
|
|
43
|
+
| Templates or examples | `npm test`, `node scripts/harness.mjs check --profile target-project examples/minimal-project`, `git diff --check` |
|
|
44
|
+
| Dashboard | `npm test`, `npm run smoke:dashboard`, `git diff --check` |
|
|
45
|
+
| Package surface | `npm test`, `npm run pack:dry-run`, `git diff --check` |
|
|
46
|
+
| GUI submodule | `cd harness-gui && npm ci && npm run typecheck && npm test && npm run build` |
|
|
47
|
+
|
|
48
|
+
Full root suite:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm install
|
|
52
|
+
npm test
|
|
53
|
+
npm run smoke:dashboard
|
|
54
|
+
npm run check
|
|
55
|
+
node scripts/harness.mjs check --profile target-project examples/minimal-project
|
|
56
|
+
npm run pack:dry-run
|
|
57
|
+
git diff --check
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
GUI submodule setup and checks:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
cd harness-gui
|
|
64
|
+
npm ci
|
|
65
|
+
npm run typecheck
|
|
66
|
+
npm test
|
|
67
|
+
npm run build
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
If a check is not relevant or cannot run in your environment, explain that in the PR template.
|
|
71
|
+
|
|
72
|
+
## Change-Specific Guidance
|
|
73
|
+
|
|
74
|
+
- CLI/runtime changes usually need root tests in `tests/` and source-package validation.
|
|
75
|
+
- Template changes should prove that a target project still passes `check --profile target-project`.
|
|
76
|
+
- Dashboard changes should run `npm run smoke:dashboard`.
|
|
77
|
+
- Preset changes should include preset validation and at least one task creation path when behavior changes.
|
|
78
|
+
- Documentation-only changes should still run `git diff --check` and any targeted link or spelling checks you use.
|
|
79
|
+
- GUI changes must be made in the `harness-gui` submodule and validated with the GUI commands above.
|
|
80
|
+
|
|
81
|
+
## Pull Requests
|
|
82
|
+
|
|
83
|
+
Every PR should include:
|
|
84
|
+
|
|
85
|
+
- What changed and why.
|
|
86
|
+
- The user or maintainer impact.
|
|
87
|
+
- Whether the package version changes. Use "no version change" for docs, CI-only, and internal maintenance unless release behavior changes.
|
|
88
|
+
- Verification commands and outcomes.
|
|
89
|
+
- Any checks not run, with a reason.
|
|
90
|
+
- Known residual risk.
|
|
91
|
+
|
|
92
|
+
Use draft PRs for work that still needs design review, incomplete checks, or follow-up fixes. Mark the PR ready only after the relevant checks pass and review feedback is addressed.
|
|
93
|
+
|
|
94
|
+
## CI Expectations
|
|
95
|
+
|
|
96
|
+
GitHub Actions validates the root package, source/package boundary, minimal target project, dashboard smoke path, npm package dry run, and GUI submodule typecheck/test/build path. A local run should match the CI commands closely enough that failures are reproducible.
|
|
97
|
+
|
|
98
|
+
Repository owners may configure branch protection and required checks separately in GitHub. Contributors do not need to manage those settings.
|
package/README.md
CHANGED
|
@@ -4,115 +4,103 @@
|
|
|
4
4
|
|
|
5
5
|
English | [简体中文](README.zh-CN.md) | [日本語](docs-release/intl/ja-JP.md) | [한국어](docs-release/intl/ko-KR.md) | [Français](docs-release/intl/fr-FR.md) | [Español](docs-release/intl/es-ES.md) | [Deutsch](docs-release/intl/de-DE.md)
|
|
6
6
|
|
|
7
|
-
Coding
|
|
7
|
+

|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> An open-source, document-native, ready-to-use Agent Harness for keeping Codex, Claude Code, Gemini CLI, and other coding agents clear, transparent, and reviewable during long-running software work.
|
|
10
10
|
|
|
11
|
-

|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## At A Glance
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Coding Agent Harness is not another collection of chat prompts. It turns the durable facts that coding agents need into repository files: entry agreements, task plans, execution evidence, regression results, dashboards, and closeout records.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
- `task_plan.md`, `progress.md`, and `review.md` keep the task from turning into chat history.
|
|
19
|
-
- Checks and migration reports say what is safe, what is stale, and what still needs a human decision.
|
|
20
|
-
- `harness dev` opens the dashboard for everyday review.
|
|
17
|
+
The smallest loop is:
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
- A human states the goal, and the agent reads the repository Harness first.
|
|
20
|
+
- The agent follows Diagnose → Decide → Scaffold → Configure → Verify → Deliver.
|
|
21
|
+
- The CLI and Dashboard expose status, risk, migration plans, and review evidence.
|
|
22
|
+
- The next agent resumes from repository facts instead of previous chat memory.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
| --- | --- | --- |
|
|
26
|
-
| Install | Give the agent one entrypoint. | `npx skills add FairladyZ625/coding-agent-harness --skill coding-agent-harness` |
|
|
27
|
-
| Start | The agent scans first, then proposes an init or migration plan. | `npx --yes coding-agent-harness init ...` or `migrate-plan` |
|
|
28
|
-
| Review | Open the dashboard and check the task state. | `npx --yes coding-agent-harness dev .` |
|
|
29
|
-
| Verify | Run checks before handoff. | `npx --yes coding-agent-harness check --profile target-project .` |
|
|
24
|
+

|
|
30
25
|
|
|
31
|
-
##
|
|
26
|
+
## What It Is
|
|
32
27
|
|
|
33
|
-
|
|
28
|
+
Coding Agent Harness is a project engineering framework for AI coding agents.
|
|
34
29
|
|
|
35
|
-
|
|
36
|
-
npx --yes coding-agent-harness init --locale en-US --capabilities core,dashboard .
|
|
37
|
-
npx --yes coding-agent-harness dev .
|
|
38
|
-
npx --yes coding-agent-harness check --profile target-project .
|
|
39
|
-
```
|
|
30
|
+
It adds working agreements, document structure, task lifecycle, regression evidence, and review loops directly into your repository so agents can read, execute, update, and verify the project from durable local facts.
|
|
40
31
|
|
|
41
|
-
|
|
32
|
+
## Why It Exists
|
|
42
33
|
|
|
43
|
-
|
|
44
|
-
npx --yes coding-agent-harness init --locale zh-CN --capabilities core,dashboard .
|
|
45
|
-
```
|
|
34
|
+
Generating a few thousand lines of code with AI is not the hard part. The hard part is keeping the agent oriented after days of work, preventing parallel agents from overwriting each other, and letting a new agent continue from repository facts instead of chat memory.
|
|
46
35
|
|
|
47
|
-
|
|
36
|
+
Coding Agent Harness turns those facts into part of the project.
|
|
48
37
|
|
|
49
|
-
|
|
50
|
-
npx --yes coding-agent-harness dashboard --out-dir tmp/harness-dashboard .
|
|
51
|
-
open tmp/harness-dashboard/index.html
|
|
52
|
-
```
|
|
38
|
+
## Core Strengths
|
|
53
39
|
|
|
54
|
-
|
|
40
|
+
### Open Source, Simple, Ready To Use
|
|
55
41
|
|
|
56
|
-
Harness
|
|
42
|
+
Harness runs as ordinary project files: Markdown, templates, check scripts, static dashboard snapshots, and an optional local dynamic Workbench. The core package has no third-party runtime dependencies and does not require a background service or database. When a human needs web actions, `harness dev` starts a temporary localhost-only workbench.
|
|
57
43
|
|
|
58
|
-
|
|
59
|
-
AGENTS.md
|
|
60
|
-
docs/
|
|
61
|
-
03-ARCHITECTURE/
|
|
62
|
-
04-DEVELOPMENT/
|
|
63
|
-
05-TEST-QA/
|
|
64
|
-
09-PLANNING/TASKS/
|
|
65
|
-
10-WALKTHROUGH/
|
|
66
|
-
11-REFERENCE/
|
|
67
|
-
```
|
|
44
|
+
Give the installation prompt to your agent, and it can initialize, scan, migrate, and verify the target project.
|
|
68
45
|
|
|
69
|
-
|
|
46
|
+
### Compatible With Coding Agents
|
|
70
47
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
48
|
+
Any agent that can read files, write files, and run commands can use this Harness. It works with Codex, Claude Code, Gemini CLI, Cursor-style agents, OpenClaw, and similar coding agents.
|
|
49
|
+
|
|
50
|
+
### Document-Native And Transparent
|
|
51
|
+
|
|
52
|
+
Important project state stays visible in the repository:
|
|
53
|
+
|
|
54
|
+
- what the current task is
|
|
55
|
+
- why it matters
|
|
56
|
+
- how it should be executed
|
|
57
|
+
- where the evidence is
|
|
58
|
+
- whether regression passed
|
|
59
|
+
- what residual risks remain
|
|
60
|
+
- which tasks are complete and which still need work
|
|
61
|
+
|
|
62
|
+
Humans can read briefs, dashboards, and migration reports. Agents can read structured docs, task contracts, and check results.
|
|
63
|
+
|
|
64
|
+
### Built For Long-Running Work
|
|
79
65
|
|
|
80
|
-
|
|
66
|
+
Harness covers the continuity layer of real development: task lifecycle, Brief, Execution Strategy, Visual Map, Progress Log, Review, Regression Evidence, Closeout, and Lessons.
|
|
81
67
|
|
|
82
|
-
|
|
68
|
+
It gives each agent step context, evidence, and a finish condition.
|
|
83
69
|
|
|
84
|
-
|
|
85
|
-
| --- | --- | --- | --- |
|
|
86
|
-
| English | Full | Full | Full |
|
|
87
|
-
| Simplified Chinese | Full | Full | Full |
|
|
88
|
-
| Japanese | Intro | Routing only | Use English templates |
|
|
89
|
-
| Korean | Intro | Routing only | Use English templates |
|
|
90
|
-
| French | Intro | Routing only | Use English templates |
|
|
91
|
-
| Spanish | Intro | Routing only | Use English templates |
|
|
92
|
-
| German | Intro | Routing only | Use English templates |
|
|
70
|
+
### Safe Migration For Existing Projects
|
|
93
71
|
|
|
94
|
-
|
|
72
|
+
Legacy project migration starts with a scan, a migration plan, a recommended migration mode, and user confirmation. Only then should the agent write files. Final status is proven with a dashboard and checks.
|
|
95
73
|
|
|
96
74
|
## Good Fit
|
|
97
75
|
|
|
98
|
-
|
|
76
|
+
Coding Agent Harness is useful for:
|
|
99
77
|
|
|
100
|
-
- agents
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
78
|
+
- teams using coding agents on real software projects;
|
|
79
|
+
- projects that run for days, weeks, or many iterations;
|
|
80
|
+
- work involving multiple agents or multiple developers;
|
|
81
|
+
- repositories with historical task docs, regression records, or migration notes;
|
|
82
|
+
- teams that want AI development to be visible, reviewable, and reusable.
|
|
105
83
|
|
|
106
|
-
##
|
|
84
|
+
## Quick Start
|
|
107
85
|
|
|
108
|
-
|
|
86
|
+
### Install The Skills
|
|
87
|
+
|
|
88
|
+
If your agent supports Skills, inspect this repository's Skill entries with `npx`.
|
|
89
|
+
Because the repository has a root Skill plus nested Skills, use `--full-depth`
|
|
90
|
+
when you want to see or install `preset-creator`:
|
|
109
91
|
|
|
110
92
|
```bash
|
|
111
|
-
npx skills add FairladyZ625/coding-agent-harness --list
|
|
93
|
+
npx skills add FairladyZ625/coding-agent-harness --list --full-depth
|
|
112
94
|
npx skills add FairladyZ625/coding-agent-harness --skill coding-agent-harness
|
|
95
|
+
npx skills add FairladyZ625/coding-agent-harness --skill preset-creator --full-depth
|
|
113
96
|
```
|
|
114
97
|
|
|
115
|
-
|
|
98
|
+
Use the Skills separately:
|
|
99
|
+
|
|
100
|
+
- `coding-agent-harness`: for installing, migrating, operating, and reviewing a Harness inside a target project.
|
|
101
|
+
- `preset-creator`: for authoring reusable Harness preset packages when a family of tasks shares a method, external references, artifacts, evidence requirements, or complex-task skeleton overlays. This Skill includes its own Complex Task skeleton reference, so an agent can build a correct preset without already knowing Harness internals.
|
|
102
|
+
|
|
103
|
+
Install a Skill into the global Codex skill directory:
|
|
116
104
|
|
|
117
105
|
```bash
|
|
118
106
|
npx skills add FairladyZ625/coding-agent-harness \
|
|
@@ -122,40 +110,177 @@ npx skills add FairladyZ625/coding-agent-harness \
|
|
|
122
110
|
-y
|
|
123
111
|
```
|
|
124
112
|
|
|
125
|
-
|
|
113
|
+
For the Preset Creator Skill:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npx skills add FairladyZ625/coding-agent-harness \
|
|
117
|
+
--skill preset-creator \
|
|
118
|
+
--full-depth \
|
|
119
|
+
--agent codex \
|
|
120
|
+
--global \
|
|
121
|
+
-y
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The CLI is not automatically added to the target project's dependencies. Use `npx` when you need to run Harness commands. The first run downloads the package into the local npm cache; it does not write to the target project:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npx --yes coding-agent-harness init --locale zh-CN --capabilities core,dashboard .
|
|
128
|
+
npx --yes coding-agent-harness dev .
|
|
129
|
+
npx --yes coding-agent-harness check --profile target-project .
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
If you want to use `harness` as a long-lived system command, install it globally:
|
|
126
133
|
|
|
127
134
|
```bash
|
|
128
135
|
npm install -g coding-agent-harness
|
|
129
136
|
harness --help
|
|
130
137
|
```
|
|
131
138
|
|
|
132
|
-
|
|
139
|
+
The npm install seeds bundled presets into `~/.coding-agent-harness/presets/`.
|
|
140
|
+
`harness init` also seeds those presets into the target project at
|
|
141
|
+
`.coding-agent-harness/presets/`, so agents can discover stable task methods
|
|
142
|
+
with `harness preset list --json`.
|
|
143
|
+
|
|
144
|
+
Agents must not silently run a global install. They may run `npm install -g coding-agent-harness` only after the user explicitly approves changing the global npm environment. Without that approval, keep using `npx --yes coding-agent-harness ...`.
|
|
133
145
|
|
|
134
|
-
|
|
146
|
+
### Commands For Humans
|
|
147
|
+
|
|
148
|
+
Initialize a Chinese Harness:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
npx --yes coding-agent-harness init --locale zh-CN --capabilities core,dashboard .
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Start the local dynamic Workbench:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
npx --yes coding-agent-harness dev .
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Generate a static Dashboard that can be opened offline:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
npx --yes coding-agent-harness dashboard --out-dir tmp/harness-dashboard .
|
|
164
|
+
open tmp/harness-dashboard/index.html
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Run target-project checks:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
npx --yes coding-agent-harness check --profile target-project .
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Prompt For Agents
|
|
174
|
+
|
|
175
|
+
Send this to the agent inside your target project:
|
|
135
176
|
|
|
136
177
|
```text
|
|
137
178
|
Install and read Coding Agent Harness first:
|
|
138
179
|
|
|
139
180
|
npx skills add FairladyZ625/coding-agent-harness --skill coding-agent-harness
|
|
140
181
|
|
|
141
|
-
First
|
|
182
|
+
First check whether this environment has the harness command.
|
|
183
|
+
|
|
184
|
+
If it does not, do not silently install globally. Ask me first:
|
|
185
|
+
"This environment does not have the harness command. May I run npm install -g coding-agent-harness?
|
|
186
|
+
This changes the global npm environment and then lets you use harness directly.
|
|
187
|
+
If you do not approve, I will use npx --yes coding-agent-harness ... temporarily and will not write to project dependencies."
|
|
188
|
+
|
|
189
|
+
Only after I explicitly approve, run:
|
|
190
|
+
npm install -g coding-agent-harness
|
|
191
|
+
harness preset list --json
|
|
192
|
+
|
|
193
|
+
If I do not approve or do not respond, run CLI commands with:
|
|
194
|
+
npx --yes coding-agent-harness <command>
|
|
195
|
+
|
|
196
|
+
Set up Coding Agent Harness in the current project.
|
|
197
|
+
Use Chinese templates by default. If the project is clearly an English team or English documentation project, ask me before switching to English.
|
|
198
|
+
|
|
199
|
+
First diagnose the project structure, then give me an initialization plan.
|
|
200
|
+
If this is a microservice, multi-repo, split frontend/backend, or externally integrated project, proactively ask me whether I have external architecture docs, API docs, diagrams, meeting notes, links, source paths, or exported packets.
|
|
201
|
+
If the external material is large, create an external-source-packs index and digests first, then project stable conclusions into 03-ARCHITECTURE / 04-DEVELOPMENT / 06-INTEGRATIONS.
|
|
202
|
+
After confirmation, execute Diagnose → Decide → Scaffold → Configure → Verify → Deliver.
|
|
203
|
+
When initializing, run:
|
|
204
|
+
npx --yes coding-agent-harness init --locale zh-CN --capabilities core,dashboard .
|
|
205
|
+
npx --yes coding-agent-harness preset list --json .
|
|
206
|
+
|
|
207
|
+
After initialization, use the dynamic web UI for daily viewing and human confirmations:
|
|
208
|
+
npx --yes coding-agent-harness dev .
|
|
209
|
+
|
|
210
|
+
If you only need an offline evidence snapshot, generate a static dashboard:
|
|
211
|
+
npx --yes coding-agent-harness dashboard --out-dir tmp/harness-dashboard .
|
|
212
|
+
|
|
142
213
|
Do not overwrite existing business docs, historical tasks, regression records, or user changes.
|
|
214
|
+
When finished, report created files, check results, and recommended next steps.
|
|
215
|
+
```
|
|
143
216
|
|
|
144
|
-
|
|
217
|
+
If the target already has an older Harness, use this:
|
|
218
|
+
|
|
219
|
+
```text
|
|
220
|
+
Install and read Coding Agent Harness first:
|
|
221
|
+
|
|
222
|
+
npx skills add FairladyZ625/coding-agent-harness --skill coding-agent-harness
|
|
223
|
+
|
|
224
|
+
First check whether this environment has the harness command.
|
|
225
|
+
|
|
226
|
+
If it does not, do not silently install globally. Ask me first:
|
|
227
|
+
"This environment does not have the harness command. May I run npm install -g coding-agent-harness?
|
|
228
|
+
This changes the global npm environment and then lets you use harness directly.
|
|
229
|
+
If you do not approve, I will use npx --yes coding-agent-harness ... temporarily and will not write to project dependencies."
|
|
230
|
+
|
|
231
|
+
Only after I explicitly approve, run:
|
|
232
|
+
npm install -g coding-agent-harness
|
|
233
|
+
harness preset list --json
|
|
234
|
+
|
|
235
|
+
If I do not approve or do not respond, run CLI commands with:
|
|
145
236
|
npx --yes coding-agent-harness <command>
|
|
146
237
|
|
|
147
|
-
|
|
148
|
-
|
|
238
|
+
This project already has an older Harness. Do not edit files yet.
|
|
239
|
+
|
|
240
|
+
First run a detailed scan and give me a migration plan:
|
|
241
|
+
1. Check git status, Harness status, task count, brief coverage, visual_map coverage, warnings/actions/residuals, strict status, and dashboard usability.
|
|
242
|
+
2. If this is a microservice, multi-repo, split frontend/backend, or externally integrated project, proactively ask me for external source material; when the material is large, create an external-source-packs index and digests before projecting facts into 03/04/06.
|
|
243
|
+
3. Recommend the migration mode from project evidence:
|
|
244
|
+
- baseline-preserve: safe adoption first; only add necessary structure and visibility.
|
|
245
|
+
- status-aware-rewrite: rewrite current or reopened tasks from SSoT, Ledger, progress, review, and git evidence.
|
|
246
|
+
- full-semantic-rewrite: rewrite task briefs / execution_strategy / visual_map so the old project becomes v1.0-readable.
|
|
247
|
+
4. Report the recommended mode, rationale, expected write scope, estimated token/time cost, risks, and whether subagents are needed.
|
|
248
|
+
5. Ask me the confirmation questions you need, then wait for my confirmation before writing files.
|
|
249
|
+
|
|
250
|
+
During the scan phase, run at least:
|
|
251
|
+
npx --yes coding-agent-harness status --json .
|
|
252
|
+
npx --yes coding-agent-harness migrate-plan --json --limit 1000 .
|
|
253
|
+
|
|
254
|
+
When the migration is complete, report the dynamic workbench URL or static dashboard HTML, session.json, normal/strict checks, migrate-plan summary, and whether full-cutover verification passes. If human review confirmation is required, expose that action in the local web workbench; static dashboards are read-only evidence snapshots.
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Contributing
|
|
258
|
+
|
|
259
|
+
External contributors should start with [`CONTRIBUTING.md`](CONTRIBUTING.md). It covers repository layout, pull request expectations, root package checks, Dashboard smoke tests, npm package dry runs, and GUI submodule validation. The detailed public workflow also lives in [`docs-release/guides/contributing.md`](docs-release/guides/contributing.md).
|
|
260
|
+
|
|
261
|
+
If you want your coding agent to make a contribution, send it this prompt:
|
|
262
|
+
|
|
263
|
+
```text
|
|
264
|
+
I want to contribute a focused change to FairladyZ625/coding-agent-harness.
|
|
265
|
+
|
|
266
|
+
Start from the latest main branch and create a new feature branch. Read README.md and CONTRIBUTING.md first. Before editing files, inspect the relevant code/docs and give me a short plan.
|
|
267
|
+
|
|
268
|
+
Keep the change scoped. Use only public repository files and do not rely on maintainer-local state, hidden workflows, credentials, generated dashboards, temporary files, or ignored local-only files.
|
|
269
|
+
|
|
270
|
+
Run the checks that match the change. For docs-only changes, run git diff --check. For root package changes, run npm install, npm test, npm run smoke:dashboard, npm run check, node scripts/harness.mjs check --profile target-project examples/minimal-project, npm run pack:dry-run, and git diff --check as relevant. If the change touches harness-gui, also run cd harness-gui && npm ci && npm run typecheck && npm test && npm run build.
|
|
271
|
+
|
|
272
|
+
When done, summarize what changed, list verification results, call out any skipped checks with reasons, and prepare the PR using the repository template.
|
|
149
273
|
```
|
|
150
274
|
|
|
151
275
|
## Learn More
|
|
152
276
|
|
|
153
|
-
-
|
|
277
|
+
- Contributor guide: [`CONTRIBUTING.md`](CONTRIBUTING.md)
|
|
278
|
+
- Detailed contributor guide: [`docs-release/guides/contributing.md`](docs-release/guides/contributing.md)
|
|
154
279
|
- Agent installation guide: [`docs-release/guides/agent-installation.en-US.md`](docs-release/guides/agent-installation.en-US.md)
|
|
155
|
-
- Architecture overview: [`docs-release/architecture/overview.md`](docs-release/architecture/overview.md)
|
|
156
|
-
- Migration playbook: [`docs-release/guides/migration-playbook.en-US.md`](docs-release/guides/migration-playbook.en-US.md)
|
|
157
|
-
- Operating models: [`docs-release/guides/repository-operating-models.en-US.md`](docs-release/guides/repository-operating-models.en-US.md)
|
|
158
280
|
- Minimal project example: [`examples/minimal-project/`](examples/minimal-project/)
|
|
281
|
+
- Legacy migration playbook: [`docs-release/guides/migration-playbook.en-US.md`](docs-release/guides/migration-playbook.en-US.md)
|
|
282
|
+
- Full legacy migration strategy: [`docs-release/guides/full-legacy-migration-subagent-strategy.md`](docs-release/guides/full-legacy-migration-subagent-strategy.md)
|
|
283
|
+
- Architecture overview: [`docs-release/architecture/overview.md`](docs-release/architecture/overview.md)
|
|
159
284
|
|
|
160
285
|
## Star History
|
|
161
286
|
|