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.
Files changed (177) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/CONTRIBUTING.md +98 -0
  3. package/README.md +211 -86
  4. package/README.zh-CN.md +54 -34
  5. package/SKILL.md +25 -18
  6. package/docs-release/README.md +9 -5
  7. package/docs-release/architecture/overview.md +17 -5
  8. package/docs-release/architecture/overview.zh-CN.md +9 -5
  9. package/docs-release/assets/dashboard-overview.png +0 -0
  10. package/docs-release/guides/agent-installation.en-US.md +31 -8
  11. package/docs-release/guides/agent-installation.md +34 -9
  12. package/docs-release/guides/contributing.md +100 -0
  13. package/docs-release/guides/contributing.zh-CN.md +99 -0
  14. package/docs-release/guides/document-audience-and-surfaces.en-US.md +3 -2
  15. package/docs-release/guides/document-audience-and-surfaces.md +3 -2
  16. package/docs-release/guides/full-legacy-migration-subagent-strategy.md +2 -2
  17. package/docs-release/guides/full-legacy-migration-subagent-strategy.zh-CN.md +2 -2
  18. package/docs-release/guides/legacy-migration-agent-prompt.md +0 -11
  19. package/docs-release/guides/legacy-migration-agent-prompt.zh-CN.md +0 -11
  20. package/docs-release/guides/migration-playbook.en-US.md +14 -15
  21. package/docs-release/guides/migration-playbook.md +14 -15
  22. package/docs-release/guides/parent-control-repository-pattern.en-US.md +7 -5
  23. package/docs-release/guides/parent-control-repository-pattern.md +7 -5
  24. package/docs-release/guides/preset-development.md +214 -0
  25. package/docs-release/guides/repository-operating-models.en-US.md +5 -4
  26. package/docs-release/guides/repository-operating-models.md +5 -4
  27. package/docs-release/guides/task-state-machine.en-US.md +207 -0
  28. package/docs-release/guides/task-state-machine.md +214 -0
  29. package/docs-release/intl/en-US.md +1 -1
  30. package/docs-release/intl/zh-CN.md +1 -1
  31. package/examples/minimal-project/docs/09-PLANNING/TASKS/demo-task/findings.md +7 -0
  32. package/package.json +8 -3
  33. package/presets/legacy-migration/checks/preset-check.mjs +3 -0
  34. package/presets/legacy-migration/preset.yaml +134 -0
  35. package/presets/legacy-migration/scripts/plan-work-queue.mjs +4 -0
  36. package/presets/legacy-migration/scripts/scaffold-task-contracts.mjs +4 -0
  37. package/presets/legacy-migration/templates/execution_strategy.append.md +18 -0
  38. package/presets/legacy-migration/templates/findings.seed.md +17 -0
  39. package/presets/legacy-migration/templates/review.seed.md +12 -0
  40. package/presets/legacy-migration/templates/task_plan.append.md +9 -0
  41. package/presets/legacy-migration/templates/visual_map.append.md +12 -0
  42. package/presets/legacy-migration/workbench/dashboard-panels.yaml +2 -0
  43. package/presets/legacy-migration/workbench/migration-queue.schema.json +23 -0
  44. package/presets/lesson-sedimentation/preset.yaml +23 -0
  45. package/presets/lesson-sedimentation/templates/prompt.md +23 -0
  46. package/presets/module/preset.yaml +25 -0
  47. package/presets/module/templates/execution_strategy.append.md +8 -0
  48. package/presets/module/templates/task_plan.append.md +17 -0
  49. package/presets/standard-task/preset.yaml +31 -0
  50. package/presets/standard-task/templates/task_plan.append.md +7 -0
  51. package/references/adversarial-review-standard.md +2 -2
  52. package/references/agents-md-pattern.md +2 -2
  53. package/references/delivery-operating-model-standard.md +3 -3
  54. package/references/docs-directory-standard.md +6 -7
  55. package/references/harness-ledger.md +53 -96
  56. package/references/lessons-governance.md +88 -93
  57. package/references/module-parallel-standard.md +14 -14
  58. package/references/planning-loop.md +12 -6
  59. package/references/pull-request-standard.md +118 -0
  60. package/references/repo-governance-standard.md +11 -2
  61. package/references/review-routing-standard.md +7 -1
  62. package/references/ssot-governance.md +67 -59
  63. package/references/taskr-gap-analysis.md +600 -0
  64. package/references/walkthrough-closeout.md +7 -7
  65. package/scripts/check-harness.mjs +40 -301
  66. package/scripts/commands/dashboard-command.mjs +67 -0
  67. package/scripts/commands/migration-command.mjs +96 -0
  68. package/scripts/commands/preset-command.mjs +73 -0
  69. package/scripts/commands/task-command.mjs +327 -0
  70. package/scripts/harness.mjs +55 -260
  71. package/scripts/lib/capability-registry.mjs +66 -8
  72. package/scripts/lib/check-module-parallel.mjs +237 -0
  73. package/scripts/lib/check-profiles.mjs +61 -153
  74. package/scripts/lib/check-task-contracts.mjs +47 -0
  75. package/scripts/lib/core-shared.mjs +10 -0
  76. package/scripts/lib/dashboard-data.mjs +29 -6
  77. package/scripts/lib/dashboard-workbench.mjs +52 -12
  78. package/scripts/lib/dashboard-writer.mjs +14 -2
  79. package/scripts/lib/git-status-summary.mjs +46 -0
  80. package/scripts/lib/governance-index-generator.mjs +174 -0
  81. package/scripts/lib/governance-sync.mjs +514 -0
  82. package/scripts/lib/governance-table-boundary.mjs +175 -0
  83. package/scripts/lib/harness-core.mjs +5 -0
  84. package/scripts/lib/lesson-maintenance.mjs +36 -29
  85. package/scripts/lib/migration-support.mjs +1 -1
  86. package/scripts/lib/preset-audit-contracts.mjs +37 -0
  87. package/scripts/lib/preset-engine.mjs +497 -0
  88. package/scripts/lib/preset-registry.mjs +627 -0
  89. package/scripts/lib/preset-resource-contracts.mjs +83 -0
  90. package/scripts/lib/review-confirm-git-gate.mjs +248 -0
  91. package/scripts/lib/status-dashboard-renderer.mjs +102 -0
  92. package/scripts/lib/subagent-authorization-audit.mjs +196 -0
  93. package/scripts/lib/task-completion-consistency.mjs +16 -0
  94. package/scripts/lib/task-index.mjs +93 -0
  95. package/scripts/lib/task-lesson-candidates.mjs +242 -0
  96. package/scripts/lib/task-lesson-sedimentation.mjs +326 -0
  97. package/scripts/lib/task-lifecycle/review-confirm.mjs +101 -0
  98. package/scripts/lib/task-lifecycle/review-gates.mjs +70 -0
  99. package/scripts/lib/task-lifecycle/text-utils.mjs +24 -0
  100. package/scripts/lib/task-lifecycle.mjs +297 -403
  101. package/scripts/lib/task-review-model.mjs +469 -0
  102. package/scripts/lib/task-scanner.mjs +130 -236
  103. package/scripts/lib/task-tombstone-commands.mjs +140 -0
  104. package/scripts/postinstall.mjs +14 -0
  105. package/skills/preset-creator/SKILL.md +179 -0
  106. package/skills/preset-creator/references/complex-task-skeleton/README.md +31 -0
  107. package/skills/preset-creator/references/complex-task-skeleton/artifacts/INDEX.md +12 -0
  108. package/skills/preset-creator/references/complex-task-skeleton/brief.md +32 -0
  109. package/skills/preset-creator/references/complex-task-skeleton/execution_strategy.md +71 -0
  110. package/skills/preset-creator/references/complex-task-skeleton/findings.md +24 -0
  111. package/skills/preset-creator/references/complex-task-skeleton/lesson_candidates.md +70 -0
  112. package/skills/preset-creator/references/complex-task-skeleton/long-running-task-contract.md +76 -0
  113. package/skills/preset-creator/references/complex-task-skeleton/progress.md +33 -0
  114. package/skills/preset-creator/references/complex-task-skeleton/references/INDEX.md +13 -0
  115. package/skills/preset-creator/references/complex-task-skeleton/review.md +107 -0
  116. package/skills/preset-creator/references/complex-task-skeleton/task_plan.md +111 -0
  117. package/skills/preset-creator/references/complex-task-skeleton/visual_map.md +50 -0
  118. package/skills/preset-creator/references/preset-package-skeleton.md +296 -0
  119. package/templates/AGENTS.md.template +19 -15
  120. package/templates/dashboard/assets/app-src/00-state.js +1 -0
  121. package/templates/dashboard/assets/app-src/10-router.js +2 -1
  122. package/templates/dashboard/assets/app-src/20-overview.js +11 -5
  123. package/templates/dashboard/assets/app-src/30-tasks.js +92 -246
  124. package/templates/dashboard/assets/app-src/35-task-detail.js +246 -0
  125. package/templates/dashboard/assets/app-src/45-review.js +241 -22
  126. package/templates/dashboard/assets/app-src/50-migration.js +24 -10
  127. package/templates/dashboard/assets/app-src/90-bindings.js +171 -29
  128. package/templates/dashboard/assets/app.css +698 -156
  129. package/templates/dashboard/assets/app.css.manifest.json +9 -0
  130. package/templates/dashboard/assets/app.js +662 -91
  131. package/templates/dashboard/assets/app.manifest.json +1 -0
  132. package/templates/dashboard/assets/css-src/00-foundation.css +342 -0
  133. package/templates/dashboard/assets/css-src/10-panels-flow.css +236 -0
  134. package/templates/dashboard/assets/css-src/20-briefs-controls.css +398 -0
  135. package/templates/dashboard/assets/css-src/30-task-index.css +739 -0
  136. package/templates/dashboard/assets/css-src/35-review-workspace.css +507 -0
  137. package/templates/dashboard/assets/css-src/40-detail-modules-migration.css +427 -0
  138. package/templates/dashboard/assets/css-src/50-responsive-overrides.css +551 -0
  139. package/templates/dashboard/assets/i18n.js +123 -21
  140. package/templates/ledger/Harness-Ledger.md +13 -25
  141. package/templates/lessons/lesson-arch-process-change.md +1 -1
  142. package/templates/lessons/lesson-new-doc.md +1 -1
  143. package/templates/lessons/lesson-ref-change.md +1 -1
  144. package/templates/planning/execution_strategy.md +31 -0
  145. package/templates/planning/lesson_candidates.md +18 -6
  146. package/templates/planning/optional/artifacts/INDEX.md +3 -3
  147. package/templates/planning/optional/references/INDEX.md +3 -3
  148. package/templates/planning/review.md +59 -0
  149. package/templates/planning/task_plan.md +36 -13
  150. package/templates/reference/execution-workflow-standard.md +4 -3
  151. package/templates/reference/pull-request-standard.md +80 -0
  152. package/templates/reference/repo-governance-standard.md +7 -6
  153. package/templates/reference/review-routing-standard.md +6 -0
  154. package/templates/reference/walkthrough-standard.md +2 -1
  155. package/templates/verifier/verifier-output.md +1 -1
  156. package/templates-zh-CN/AGENTS.md.template +20 -16
  157. package/templates-zh-CN/ledger/Harness-Ledger.md +17 -40
  158. package/templates-zh-CN/planning/execution_strategy.md +30 -0
  159. package/templates-zh-CN/planning/lesson_candidates.md +18 -6
  160. package/templates-zh-CN/planning/review.md +59 -1
  161. package/templates-zh-CN/planning/task_plan.md +30 -10
  162. package/templates-zh-CN/reference/adversarial-review-standard.md +1 -1
  163. package/templates-zh-CN/reference/docs-library-standard.md +1 -1
  164. package/templates-zh-CN/reference/execution-workflow-standard.md +4 -3
  165. package/templates-zh-CN/reference/harness-ledger-standard.md +2 -2
  166. package/templates-zh-CN/reference/pull-request-standard.md +106 -0
  167. package/templates-zh-CN/reference/repo-governance-standard.md +4 -3
  168. package/templates-zh-CN/reference/review-routing-standard.md +8 -1
  169. package/templates-zh-CN/reference/walkthrough-standard.md +3 -2
  170. package/templates-zh-CN/walkthrough/Closeout-SSoT.md +1 -1
  171. package/docs-release/assets/dashboard-overview-en.png +0 -0
  172. package/scripts/smoke-dashboard.mjs +0 -92
  173. package/scripts/test-harness.mjs +0 -1395
  174. package/templates/ssot/Feature-SSoT.md +0 -43
  175. package/templates/ssot/Lessons-SSoT.md +0 -44
  176. package/templates-zh-CN/ssot/Feature-SSoT.md +0 -49
  177. 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,
@@ -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 agents can write code quickly. The annoying part starts later: one session made a plan, another changed files, and the next agent has to guess what is still risky.
7
+ ![Coding Agent Harness architecture](docs-release/assets/harness-architecture.svg)
8
8
 
9
- Coding Agent Harness keeps that work in the repo: plans, progress, reviews, migration notes, and a dashboard that shows the current state.
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
- ![Coding Agent Harness dashboard overview](docs-release/assets/dashboard-overview-en.png)
11
+ ![Coding Agent Harness Dashboard](docs-release/assets/dashboard-overview.png)
12
12
 
13
- ## What It Looks Like
13
+ ## At A Glance
14
14
 
15
- The harness is just files plus a local dashboard.
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
- - `AGENTS.md` tells the next agent how this repo works.
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
- ## The Loop
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
- | Step | Human Experience | Agent / CLI Surface |
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
+ ![Harness workflow](docs-release/assets/harness-workflow.svg)
30
25
 
31
- ## Try It In A Project
26
+ ## What It Is
32
27
 
33
- Use `npx` first. It does not add the CLI to your project dependencies.
28
+ Coding Agent Harness is a project engineering framework for AI coding agents.
34
29
 
35
- ```bash
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
- For Chinese templates:
32
+ ## Why It Exists
42
33
 
43
- ```bash
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
- If you want a static evidence snapshot instead of the live local workbench:
36
+ Coding Agent Harness turns those facts into part of the project.
48
37
 
49
- ```bash
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
- ## What The Agent Reads
40
+ ### Open Source, Simple, Ready To Use
55
41
 
56
- Harness is ordinary repository content. There is no database to run.
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
- ```text
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
- Typical task files:
46
+ ### Compatible With Coding Agents
70
47
 
71
- ```text
72
- task_plan.md
73
- execution_strategy.md
74
- visual_map.md
75
- progress.md
76
- review.md
77
- lesson_candidates.md
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
- Humans scan the dashboard. Agents read the files. That is the whole trick.
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
- ## Language Support
68
+ It gives each agent step context, evidence, and a finish condition.
83
69
 
84
- | Language | Public intro | README / guides | Executable templates |
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
- Intro-only pages are deliberately small. Agent-executable templates stay in English and Simplified Chinese first, because stale translated instructions are worse than no translation.
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
- This is useful when:
76
+ Coding Agent Harness is useful for:
99
77
 
100
- - agents work on real repositories for days or weeks;
101
- - multiple agents or developers share the same project;
102
- - task state, review evidence, and regression results need to survive across sessions;
103
- - an existing project has old plans, migration notes, or scattered agent instructions;
104
- - the important parts of AI work should not live only in chat logs.
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
- ## Install The Skill
84
+ ## Quick Start
107
85
 
108
- If your agent supports Skills:
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
- Install into the global Codex skill directory:
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
- Agents should not silently run a global npm install. If a long-lived `harness` command is desired, ask the human first:
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
- ## Agent Prompt
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
- Send this to an agent inside your target project:
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 diagnose the project structure, then give me an initialization or migration plan.
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
- Use npx unless I explicitly approve a global npm install:
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
- After confirmation, execute Diagnose -> Decide -> Scaffold -> Configure -> Verify -> Deliver.
148
- When finished, report created files, check results, Dashboard URL or HTML path, and recommended next steps.
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
- - Docs release index: [`docs-release/README.md`](docs-release/README.md)
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