@harness-forge/cli 1.2.2 → 1.2.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/.agents/skills/hforge-analyze/SKILL.md +35 -0
- package/.agents/skills/hforge-decide/SKILL.md +29 -0
- package/.agents/skills/hforge-init/SKILL.md +34 -0
- package/.agents/skills/hforge-refresh/SKILL.md +28 -0
- package/.agents/skills/hforge-review/SKILL.md +29 -0
- package/.agents/skills/token-budget-optimizer/SKILL.md +26 -0
- package/AGENTS.md +6 -3
- package/README.md +9 -5
- package/commands/hforge-cartograph.md +35 -0
- package/commands/hforge-commands.md +34 -0
- package/commands/hforge-decide.md +35 -0
- package/commands/hforge-init.md +37 -0
- package/commands/hforge-recommend.md +34 -0
- package/commands/hforge-recursive.md +34 -0
- package/commands/hforge-refresh.md +35 -0
- package/commands/hforge-review.md +36 -0
- package/commands/hforge-status.md +34 -0
- package/commands/hforge-task.md +35 -0
- package/commands/hforge-update.md +34 -0
- package/dist/application/install/agent-manifest.d.ts +8 -0
- package/dist/application/install/agent-manifest.d.ts.map +1 -1
- package/dist/application/install/agent-manifest.js +7 -0
- package/dist/application/install/agent-manifest.js.map +1 -1
- package/dist/application/recommendations/recommend-bundles.d.ts.map +1 -1
- package/dist/application/recommendations/recommend-bundles.js +41 -2
- package/dist/application/recommendations/recommend-bundles.js.map +1 -1
- package/dist/application/runtime/command-catalog.d.ts +7 -0
- package/dist/application/runtime/command-catalog.d.ts.map +1 -1
- package/dist/application/runtime/command-catalog.js +101 -0
- package/dist/application/runtime/command-catalog.js.map +1 -1
- package/dist/cli/commands/commands.d.ts.map +1 -1
- package/dist/cli/commands/commands.js +5 -1
- package/dist/cli/commands/commands.js.map +1 -1
- package/dist/domain/intelligence/repo-intelligence.js +1 -1
- package/dist/domain/intelligence/repo-intelligence.js.map +1 -1
- package/docs/agent-usage-playbook.md +34 -4
- package/docs/agents.md +5 -0
- package/docs/authoring/token-budget-optimizer-port.md +78 -0
- package/docs/commands.md +12 -1
- package/manifests/bundles/core.json +11 -0
- package/manifests/catalog/compatibility-matrix.json +205 -1
- package/manifests/catalog/index.json +1 -0
- package/manifests/catalog/package-surface.json +57 -0
- package/manifests/catalog/token-budget-optimizer-import-inventory.json +146 -0
- package/package.json +1 -1
- package/scripts/intelligence/shared.mjs +187 -51
- package/skills/README.md +6 -0
- package/skills/hforge-analyze/SKILL.md +40 -0
- package/skills/hforge-analyze/references/analysis-order.md +15 -0
- package/skills/hforge-analyze/references/decision-promotion.md +9 -0
- package/skills/hforge-analyze/references/output-contract.md +7 -0
- package/skills/hforge-decide/SKILL.md +58 -0
- package/skills/hforge-decide/references/decision-rubric.md +18 -0
- package/skills/hforge-decide/references/output-contract.md +7 -0
- package/skills/hforge-init/SKILL.md +58 -0
- package/skills/hforge-init/references/bootstrap-order.md +7 -0
- package/skills/hforge-init/references/output-contract.md +7 -0
- package/skills/hforge-refresh/SKILL.md +52 -0
- package/skills/hforge-refresh/references/output-contract.md +7 -0
- package/skills/hforge-refresh/references/refresh-order.md +5 -0
- package/skills/hforge-review/SKILL.md +57 -0
- package/skills/hforge-review/references/output-contract.md +7 -0
- package/skills/hforge-review/references/review-order.md +7 -0
- package/skills/token-budget-optimizer/SKILL.md +56 -0
- package/skills/token-budget-optimizer/references/audit-dimensions.md +37 -0
- package/skills/token-budget-optimizer/references/promotion-ladder.md +44 -0
- package/skills/token-budget-optimizer/references/report-template.md +25 -0
- package/skills/token-budget-optimizer/references/scoring-model.md +43 -0
- package/skills/token-budget-optimizer/scripts/inspect_token_surfaces.py +68 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "hforge-analyze"
|
|
3
|
+
description: "Analyze the current repository using Harness Forge runtime surfaces, refresh stale findings when needed, summarize repo shape and risks, and promote architecture-significant findings into durable notes or decision candidates."
|
|
4
|
+
compatibility: "Works best in repositories already initialized with Harness Forge, but may bootstrap first if needed."
|
|
5
|
+
metadata:
|
|
6
|
+
author: "harness-forge"
|
|
7
|
+
source: "skills/hforge-analyze/SKILL.md"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## User Input
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You must consider the user input before proceeding.
|
|
17
|
+
|
|
18
|
+
## Goal
|
|
19
|
+
|
|
20
|
+
Use Harness Forge as the primary repo-analysis system instead of re-deriving the repository state from scratch.
|
|
21
|
+
|
|
22
|
+
## Execution
|
|
23
|
+
|
|
24
|
+
1. Treat the text after `/hforge-analyze` as the focus area or analysis lens.
|
|
25
|
+
2. Inspect `.hforge/agent-manifest.json`, `.hforge/runtime/index.json`, and `.hforge/runtime/repo/` first when present.
|
|
26
|
+
3. Run `hforge status --root . --json`.
|
|
27
|
+
4. If runtime artifacts are missing or stale, run `hforge refresh --root . --json`.
|
|
28
|
+
5. Run `hforge review --root . --json` when health, decision coverage, or stale task state matters.
|
|
29
|
+
6. Summarize:
|
|
30
|
+
- repo shape
|
|
31
|
+
- dominant languages and frameworks
|
|
32
|
+
- risks and validation gaps
|
|
33
|
+
- recommended next actions
|
|
34
|
+
7. When the analysis reveals architecture-significant changes, promote them into an ASR or ADR under `.hforge/runtime/decisions/`.
|
|
35
|
+
8. Keep product code unchanged unless the user explicitly asks for edits.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "hforge-decide"
|
|
3
|
+
description: "Create or update a durable ASR or ADR for architecture-significant repository findings so the reasoning survives the current session."
|
|
4
|
+
compatibility: "Works best in Harness Forge workspaces with runtime decision surfaces."
|
|
5
|
+
metadata:
|
|
6
|
+
author: "harness-forge"
|
|
7
|
+
source: "skills/hforge-decide/SKILL.md"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## User Input
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You must consider the user input before proceeding.
|
|
17
|
+
|
|
18
|
+
## Goal
|
|
19
|
+
|
|
20
|
+
Turn a meaningful technical choice into a durable decision artifact under `.hforge/runtime/decisions/`.
|
|
21
|
+
|
|
22
|
+
## Execution
|
|
23
|
+
|
|
24
|
+
1. Treat the text after `/hforge-decide` as the decision topic or scope.
|
|
25
|
+
2. Inspect `.hforge/runtime/decisions/index.json` first when present.
|
|
26
|
+
3. Inspect the most relevant task pack, impact analysis, repo findings, and existing related decisions.
|
|
27
|
+
4. Use an ASR when the direction is still being evaluated and an ADR when the decision is accepted enough to guide future work.
|
|
28
|
+
5. Write a concise, reviewable record with context, decision, consequences, and follow-up items.
|
|
29
|
+
6. Explicitly link superseded or related decisions when applicable.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "hforge-init"
|
|
3
|
+
description: "Bootstrap Harness Forge in the current repository, install or refresh the project-owned runtime, and summarize the managed surfaces that are now available."
|
|
4
|
+
compatibility: "Requires a repository where Harness Forge can write project-owned runtime files."
|
|
5
|
+
metadata:
|
|
6
|
+
author: "harness-forge"
|
|
7
|
+
source: "skills/hforge-init/SKILL.md"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## User Input
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You must consider the user input before proceeding.
|
|
17
|
+
|
|
18
|
+
## Goal
|
|
19
|
+
|
|
20
|
+
Initialize the current repository for Harness Forge usage and make the installed runtime easy to inspect and use.
|
|
21
|
+
|
|
22
|
+
## Execution
|
|
23
|
+
|
|
24
|
+
1. Treat the text after `/hforge-init` as optional setup hints such as target preference or setup intent.
|
|
25
|
+
2. Check whether `.hforge/agent-manifest.json` or `.hforge/runtime/index.json` already exists.
|
|
26
|
+
3. Run `hforge status --root . --json` first.
|
|
27
|
+
4. If the repository is not initialized or required target runtime surfaces are missing, run `hforge bootstrap --root . --yes`.
|
|
28
|
+
5. Run `hforge refresh --root . --json` after bootstrap or whenever runtime summaries look incomplete.
|
|
29
|
+
6. Summarize:
|
|
30
|
+
- detected targets
|
|
31
|
+
- installed managed surfaces
|
|
32
|
+
- runtime artifacts now available
|
|
33
|
+
- the best next command to run
|
|
34
|
+
7. If bootstrap cannot run safely, explain the blocker and list the minimum next manual step.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "hforge-refresh"
|
|
3
|
+
description: "Refresh Harness Forge runtime summaries and generated state after install changes, content updates, or stale repo-intelligence artifacts."
|
|
4
|
+
compatibility: "Requires a repository where Harness Forge runtime artifacts already exist or can be bootstrapped."
|
|
5
|
+
metadata:
|
|
6
|
+
author: "harness-forge"
|
|
7
|
+
source: "skills/hforge-refresh/SKILL.md"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## User Input
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You must consider the user input before proceeding.
|
|
17
|
+
|
|
18
|
+
## Goal
|
|
19
|
+
|
|
20
|
+
Regenerate the shared runtime summaries and report what changed.
|
|
21
|
+
|
|
22
|
+
## Execution
|
|
23
|
+
|
|
24
|
+
1. Treat the text after `/hforge-refresh` as optional focus notes.
|
|
25
|
+
2. Run `hforge refresh --root . --json`.
|
|
26
|
+
3. Run `hforge status --root . --json` after refresh when install-state confirmation matters.
|
|
27
|
+
4. Summarize refreshed runtime artifacts, any missing prerequisites, and the best next command.
|
|
28
|
+
5. If refresh fails because the repo is not initialized, recommend `/hforge-init` as the next step.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "hforge-review"
|
|
3
|
+
description: "Review Harness Forge runtime health, decision coverage, drift, stale task artifacts, and managed-surface integrity for the current repository."
|
|
4
|
+
compatibility: "Requires an initialized Harness Forge workspace for full value."
|
|
5
|
+
metadata:
|
|
6
|
+
author: "harness-forge"
|
|
7
|
+
source: "skills/hforge-review/SKILL.md"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## User Input
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
$ARGUMENTS
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You must consider the user input before proceeding.
|
|
17
|
+
|
|
18
|
+
## Goal
|
|
19
|
+
|
|
20
|
+
Produce a runtime-health review instead of a generic repo summary.
|
|
21
|
+
|
|
22
|
+
## Execution
|
|
23
|
+
|
|
24
|
+
1. Treat the text after `/hforge-review` as optional review emphasis.
|
|
25
|
+
2. Run `hforge review --root . --json` first.
|
|
26
|
+
3. If the review suggests installation drift or missing managed surfaces, run `hforge doctor --root . --json`.
|
|
27
|
+
4. If package-surface integrity is in doubt, run `hforge audit --root . --json`.
|
|
28
|
+
5. Summarize blockers, warnings, stale artifacts, decision gaps, and the highest-value cleanup steps.
|
|
29
|
+
6. Do not mutate runtime state unless the user asks for a follow-up fix.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: token-budget-optimizer
|
|
3
|
+
description: Auto-discoverable wrapper for `.hforge/library/skills/token-budget-optimizer/SKILL.md`.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Token Budget Optimizer
|
|
7
|
+
|
|
8
|
+
## Activation
|
|
9
|
+
|
|
10
|
+
- trigger when context is getting large, repetitive, or expensive to keep in active prompt history
|
|
11
|
+
- trigger when the repo already has runtime summaries, task artifacts, decisions, or specs that can be reused instead of re-read
|
|
12
|
+
- trigger before broad repo rescans when the next safe answer may already exist in `.hforge/` or other authoritative guidance surfaces
|
|
13
|
+
|
|
14
|
+
## Use These Surfaces
|
|
15
|
+
|
|
16
|
+
- `.hforge/library/skills/token-budget-optimizer/SKILL.md`
|
|
17
|
+
- `.hforge/library/skills/token-budget-optimizer/references/`
|
|
18
|
+
- `.hforge/library/skills/token-budget-optimizer/scripts/inspect_token_surfaces.py`
|
|
19
|
+
- `.hforge/library/docs/authoring/token-budget-optimizer-port.md`
|
|
20
|
+
|
|
21
|
+
## Operating Rule
|
|
22
|
+
|
|
23
|
+
Use the canonical skill under `.hforge/library/skills/` for execution. Treat
|
|
24
|
+
this wrapper as a discovery entrypoint only, prefer the smallest authoritative
|
|
25
|
+
runtime surfaces first, and use the maintainer-facing port note only when the
|
|
26
|
+
import rationale or promotion intent matters.
|
package/AGENTS.md
CHANGED
|
@@ -12,7 +12,7 @@ Use the thin visible bridge surfaces first in installed workspaces:
|
|
|
12
12
|
- `.hforge/runtime/index.json` and `.hforge/runtime/README.md` for shared runtime state and bridge resolution
|
|
13
13
|
- `.hforge/generated/agent-command-catalog.json` for safe command discovery
|
|
14
14
|
- `docs/agent-usage-playbook.md` for concrete command-resolution guidance, operator prompts, and examples that promote actual Harness Forge usage
|
|
15
|
-
- `commands/hforge-analyze.md` for runtimes that support slash-style markdown command entrypoints such as `/hforge-analyze`
|
|
15
|
+
- `commands/hforge-init.md`, `commands/hforge-analyze.md`, `commands/hforge-review.md`, `commands/hforge-refresh.md`, `commands/hforge-decide.md`, `commands/hforge-status.md`, `commands/hforge-commands.md`, `commands/hforge-recommend.md`, `commands/hforge-cartograph.md`, `commands/hforge-task.md`, `commands/hforge-recursive.md`, and `commands/hforge-update.md` for runtimes that support slash-style markdown command entrypoints such as `/hforge-analyze`
|
|
16
16
|
|
|
17
17
|
## Mode awareness
|
|
18
18
|
|
|
@@ -60,6 +60,7 @@ Use the thin visible bridge surfaces first in installed workspaces:
|
|
|
60
60
|
|
|
61
61
|
- prefer `.hforge/library/skills/cloud-architect/` when the task is about deployment topology, distributed systems, reliability, observability, or cloud trade-offs across services
|
|
62
62
|
- prefer `.hforge/library/skills/engineering-assistant/` when the task needs architecture plus implementation orchestration, option framing, or explicit project-memory and change-discipline guidance in one surface
|
|
63
|
+
- prefer `.hforge/library/skills/token-budget-optimizer/` when prompt history is growing, repo context is being repeated, or existing runtime artifacts should be reused before broader rescans
|
|
63
64
|
- use `.hforge/library/manifests/catalog/framework-assets.json` and `.hforge/runtime/repo/recommendations.json` when framework or bundle matching is more reliable than guessing from file extensions
|
|
64
65
|
|
|
65
66
|
## Imported skill governance
|
|
@@ -67,8 +68,10 @@ Use the thin visible bridge surfaces first in installed workspaces:
|
|
|
67
68
|
- treat `.hforge/library/manifests/catalog/engineering-assistant-import-inventory.json` as the review ledger for the single-skill engineering-assistant port
|
|
68
69
|
- keep maintainer-facing provenance for that port in `.hforge/library/docs/authoring/engineering-assistant-port.md`
|
|
69
70
|
- treat `.hforge/library/manifests/catalog/enhanced-skill-import-inventory.json` as the review ledger for embedded skill packs and use it before changing imported skill surfaces
|
|
71
|
+
- treat `.hforge/library/manifests/catalog/token-budget-optimizer-import-inventory.json` as the review ledger for the token-budget-optimizer port and promotion rationale
|
|
70
72
|
- treat `.agents/skills/` as the discovery layer and `.hforge/library/skills/` as the canonical installed execution layer
|
|
71
73
|
- keep maintainer-facing provenance in `.hforge/library/docs/authoring/enhanced-skill-import.md`
|
|
74
|
+
- keep maintainer-facing provenance for token-budget optimization in `.hforge/library/docs/authoring/token-budget-optimizer-port.md`
|
|
72
75
|
- use `RESEARCH-SOURCES.md` and `VALIDATION.md` only as additional provenance, not as replacements for the canonical installed skill surfaces
|
|
73
76
|
- prefer the project-owned canonical `.hforge/library/skills/` surfaces over any raw imported archive layout
|
|
74
77
|
|
|
@@ -92,7 +95,7 @@ Use the thin visible bridge surfaces first in installed workspaces:
|
|
|
92
95
|
## Command discovery and execution
|
|
93
96
|
|
|
94
97
|
- for first use in a repo, prefer `npx @harness-forge/cli`
|
|
95
|
-
- prefer `hforge commands --json` or `.hforge/generated/agent-command-catalog.json` to discover shipped CLI commands and npm scripts before inventing a command path
|
|
98
|
+
- prefer `hforge commands --json` or `.hforge/generated/agent-command-catalog.json` to discover shipped CLI commands, markdown-backed agent commands, and npm scripts before inventing a command path
|
|
96
99
|
- resolve CLI execution in this order inside an installed workspace: `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
97
100
|
- prefer `hforge status --root . --json` to inspect the installed workspace state
|
|
98
101
|
- prefer `hforge catalog --json` to review installed bundles, packs, and profiles
|
|
@@ -123,4 +126,4 @@ Use the thin visible bridge surfaces first in installed workspaces:
|
|
|
123
126
|
## Usage promotion
|
|
124
127
|
|
|
125
128
|
- if an operator wants stronger Harness Forge usage in day-to-day agent work, use `docs/agent-usage-playbook.md`
|
|
126
|
-
- prefer the playbook prompts when you want the agent to prove it is reading the installed guidance layer, use the command catalog, create task artifacts, write decision records, or escalate into recursive mode
|
|
129
|
+
- prefer the playbook prompts when you want the agent to prove it is reading the installed guidance layer, use the command catalog, compact context efficiently, create task artifacts, write decision records, or escalate into recursive mode
|
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ Instead of relying on one-off prompts or tribal setup knowledge, it gives you a
|
|
|
101
101
|
| 🎯 Runtime targets | 4 target surfaces: Codex, Claude Code, Cursor, OpenCode |
|
|
102
102
|
| 🧠 Knowledge system | 14 language packs total: 5 seeded + 9 structured |
|
|
103
103
|
| 🧩 Framework coverage | 12 framework packs including React, Next.js, Vite, Express, FastAPI, Django, ASP.NET Core, Spring Boot, Laravel, Symfony, Gin, and Ktor |
|
|
104
|
-
| 🛠 Skills |
|
|
104
|
+
| 🛠 Skills | 45 packaged skills across language engineering, workflow orchestration, operational helpers, and workload-specialized flows |
|
|
105
105
|
| 🔁 Flow support | `.specify/` spec → plan → tasks → implement flow plus flow-state recovery |
|
|
106
106
|
| 🔬 Intelligence | `scan`, `recommend`, `cartograph`, `classify-boundaries`, and `synthesize-instructions` |
|
|
107
107
|
| 📊 Local observability | Effectiveness summaries, recommendation acceptance, hook runs, maintenance traces, and runtime summaries |
|
|
@@ -267,6 +267,7 @@ Harness Forge can lower token burn because it gives the agent:
|
|
|
267
267
|
- focused runtime summaries
|
|
268
268
|
- machine-readable manifests
|
|
269
269
|
- curated skills
|
|
270
|
+
- a promoted token-budget-optimizer skill for context compaction and reuse-first work
|
|
270
271
|
- reusable task/state artifacts
|
|
271
272
|
- repo-aware recommendations
|
|
272
273
|
- structured entrypoints instead of blind exploration
|
|
@@ -418,7 +419,7 @@ Harness Forge is strongest with **Codex** and **Claude Code** today.
|
|
|
418
419
|
- structured language engineering skills
|
|
419
420
|
- Speckit workflow orchestration skills
|
|
420
421
|
- operational helper skills
|
|
421
|
-
- workload-specialized skills such as incident triage, dependency upgrade safety, profiling, API contract review, database migration review, release readiness, repo modernization, observability setup, and
|
|
422
|
+
- workload-specialized skills such as incident triage, dependency upgrade safety, profiling, API contract review, database migration review, release readiness, repo modernization, observability setup, cloud architecture, and token-budget optimization
|
|
422
423
|
|
|
423
424
|
---
|
|
424
425
|
|
|
@@ -724,11 +725,14 @@ That playbook includes:
|
|
|
724
725
|
|
|
725
726
|
- launcher-aware command resolution when `hforge` is not on `PATH`
|
|
726
727
|
- concrete operator prompts that tell agents to read the installed runtime
|
|
727
|
-
- examples for task artifacts, decision records, recursive mode, and
|
|
728
|
+
- examples for task artifacts, decision records, recursive mode, support verification, and token-budget compaction
|
|
728
729
|
|
|
729
730
|
In runtimes that expose packaged markdown commands, Harness Forge can also ship
|
|
730
|
-
triggerable command docs such as `/hforge-analyze`,
|
|
731
|
-
|
|
731
|
+
triggerable command docs such as `/hforge-init`, `/hforge-analyze`,
|
|
732
|
+
`/hforge-review`, `/hforge-refresh`, `/hforge-decide`, `/hforge-status`,
|
|
733
|
+
`/hforge-commands`, `/hforge-recommend`, `/hforge-cartograph`,
|
|
734
|
+
`/hforge-task`, `/hforge-recursive`, and `/hforge-update`, alongside
|
|
735
|
+
supporting command surfaces like `commands/plan.md` and `commands/test.md`.
|
|
732
736
|
|
|
733
737
|
---
|
|
734
738
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-cartograph
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Cartograph Command
|
|
5
|
+
summary: Use when an agent should build or inspect repo maps, service boundaries, hotspots, and validation gaps before planning or implementation.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Cartograph Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-cartograph` followed by the repo area, risk, or architecture
|
|
23
|
+
question that needs deeper investigation.
|
|
24
|
+
|
|
25
|
+
## Expected workflow
|
|
26
|
+
|
|
27
|
+
1. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
28
|
+
2. run `hforge cartograph . --json`
|
|
29
|
+
3. when boundary or recommendation context is needed, run `hforge classify-boundaries . --json` and `hforge recommend . --json`
|
|
30
|
+
4. summarize dominant languages, likely service boundaries, risk hotspots, validation gaps, and the next best command or skill to use
|
|
31
|
+
|
|
32
|
+
## Failure behavior
|
|
33
|
+
|
|
34
|
+
- if the workspace is not initialized, the command may still run through `npx @harness-forge/cli`
|
|
35
|
+
- keep repo topology and support claims tied to the generated evidence, not inference alone
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-commands
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Commands Command
|
|
5
|
+
summary: Use when an agent should inspect the shipped Harness Forge command catalog before inventing an execution path.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Commands Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-commands`.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
27
|
+
2. run `hforge commands --json`
|
|
28
|
+
3. prefer the agent-safe variants and the markdown command entrypoints from the generated catalog before inventing commands
|
|
29
|
+
4. summarize the best command or trigger for the task at hand
|
|
30
|
+
|
|
31
|
+
## Failure behavior
|
|
32
|
+
|
|
33
|
+
- if the command catalog is missing, recommend `hforge refresh --root . --json`
|
|
34
|
+
- if the workspace is not initialized, recommend `/hforge-init`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-decide
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Decide Command
|
|
5
|
+
summary: Use when an agent should capture an architecture-significant choice as a durable ASR or ADR inside the Harness Forge runtime.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Decide Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-decide` followed by the decision topic or scope.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. inspect `.hforge/runtime/decisions/index.json`, relevant task-runtime artifacts, and runtime findings first
|
|
27
|
+
2. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
28
|
+
3. choose ASR when the direction is still being evaluated and ADR when the decision is stable enough to guide later work
|
|
29
|
+
4. write or update the durable record under `.hforge/runtime/decisions/`
|
|
30
|
+
5. summarize the decision statement, rationale, constraints, consequences, and related runtime evidence
|
|
31
|
+
|
|
32
|
+
## Failure behavior
|
|
33
|
+
|
|
34
|
+
- if the decision is still too vague, say so and list the missing evidence
|
|
35
|
+
- if the new record would contradict an accepted ADR, call that out explicitly before writing
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-init
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Init Command
|
|
5
|
+
summary: Use when an agent should initialize or bootstrap Harness Forge in the current repository before deeper analysis or implementation.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Init Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-init` followed by optional target or setup hints.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. inspect `AGENTS.md`, `.hforge/agent-manifest.json`, and `.hforge/runtime/index.json` when present
|
|
27
|
+
2. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
28
|
+
3. run `hforge status --root . --json` before bootstrapping blindly
|
|
29
|
+
4. run `hforge bootstrap --root . --yes` when the repo is not initialized or required target surfaces are missing
|
|
30
|
+
5. follow with `hforge refresh --root . --json` so runtime summaries and indexes are current
|
|
31
|
+
6. summarize detected targets, installed surfaces, and the best next command
|
|
32
|
+
|
|
33
|
+
## Failure behavior
|
|
34
|
+
|
|
35
|
+
- if the repo is not writable, explain the blocker instead of retrying blindly
|
|
36
|
+
- if the launcher is unavailable, fall back to `npx @harness-forge/cli`
|
|
37
|
+
- do not claim initialization succeeded unless the managed runtime surfaces now exist
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-recommend
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Recommend Command
|
|
5
|
+
summary: Use when an agent should run repo-intelligence and recommendation flows before setup, architecture, or implementation work.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Recommend Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-recommend` followed by the active repo question or focus area.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
27
|
+
2. run `hforge recommend . --json`
|
|
28
|
+
3. when the task needs deeper shape analysis, run `hforge cartograph . --json` and `hforge classify-boundaries . --json`
|
|
29
|
+
4. summarize dominant languages, frameworks, risks, validation gaps, and the most relevant recommended bundles, skills, or profiles
|
|
30
|
+
|
|
31
|
+
## Failure behavior
|
|
32
|
+
|
|
33
|
+
- if the workspace is not initialized, the command may still run from `npx @harness-forge/cli`
|
|
34
|
+
- keep support claims tied to recommendation evidence, not assumptions
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-recursive
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Recursive Command
|
|
5
|
+
summary: Use when an agent should escalate difficult work into recursive structured-analysis with durable session and run artifacts.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
languages:
|
|
12
|
+
- all
|
|
13
|
+
generated: false
|
|
14
|
+
---
|
|
15
|
+
# Harness Recursive Command
|
|
16
|
+
|
|
17
|
+
## Syntax
|
|
18
|
+
|
|
19
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
20
|
+
for example `/hforge-recursive` followed by the investigation goal, task id, or
|
|
21
|
+
the specific recursive structured-analysis step you want to run.
|
|
22
|
+
|
|
23
|
+
## Expected workflow
|
|
24
|
+
|
|
25
|
+
1. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
26
|
+
2. run `hforge recursive capabilities --root . --json` before claiming language support
|
|
27
|
+
3. create or inspect a session with `hforge recursive plan ... --root . --json` or `hforge recursive inspect <sessionId> --root . --json`
|
|
28
|
+
4. submit structured analysis with `hforge recursive run <sessionId> --file <snippet>` or `--stdin`
|
|
29
|
+
5. inspect durable results with `hforge recursive runs <sessionId> --root . --json` and `hforge recursive inspect-run <sessionId> <runId> --root . --json`
|
|
30
|
+
|
|
31
|
+
## Failure behavior
|
|
32
|
+
|
|
33
|
+
- if the current language is not supported, say so explicitly and fall back to non-recursive investigation
|
|
34
|
+
- do not imply recursive-native parity on partial targets; keep support claims aligned with the capability map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-refresh
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Refresh Command
|
|
5
|
+
summary: Use when an agent should regenerate Harness Forge runtime summaries and repo-intelligence artifacts after install or content changes.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Refresh Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-refresh` with optional notes about what changed.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. inspect `.hforge/runtime/index.json`, `.hforge/runtime/repo/`, and `.hforge/generated/agent-command-catalog.json` first when present
|
|
27
|
+
2. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
28
|
+
3. run `hforge refresh --root . --json`
|
|
29
|
+
4. run `hforge status --root . --json` when install-state confirmation matters
|
|
30
|
+
5. summarize which runtime artifacts were regenerated and what to inspect next
|
|
31
|
+
|
|
32
|
+
## Failure behavior
|
|
33
|
+
|
|
34
|
+
- if the repo is not initialized, recommend `/hforge-init`
|
|
35
|
+
- do not pretend refresh repaired drift that still needs `doctor`, `audit`, or a maintainer fix
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-review
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Review Command
|
|
5
|
+
summary: Use when an agent should review runtime health, drift, decision coverage, and stale task artifacts in an installed Harness Forge workspace.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Review Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-review` followed by optional review focus notes.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. inspect `.hforge/runtime/index.json`, `.hforge/runtime/decisions/`, and `.hforge/runtime/tasks/` first when present
|
|
27
|
+
2. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
28
|
+
3. run `hforge review --root . --json`
|
|
29
|
+
4. run `hforge doctor --root . --json` when managed surfaces look incomplete or drifted
|
|
30
|
+
5. run `hforge audit --root . --json` when packaged-surface integrity is in doubt
|
|
31
|
+
6. summarize blockers, warnings, stale runtime artifacts, and the single best next remediation step
|
|
32
|
+
|
|
33
|
+
## Failure behavior
|
|
34
|
+
|
|
35
|
+
- if the workspace is not initialized, say so explicitly and recommend `/hforge-init`
|
|
36
|
+
- do not mutate runtime state unless the operator asks for a fix
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-status
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Status Command
|
|
5
|
+
summary: Use when an agent should inspect the current Harness Forge workspace state before acting.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Status Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-status` followed by optional focus notes.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
27
|
+
2. run `hforge status --root . --json`
|
|
28
|
+
3. inspect `.hforge/runtime/index.json`, `.hforge/agent-manifest.json`, and installed target bridges when they exist
|
|
29
|
+
4. summarize installed targets, visibility mode, important runtime surfaces, and the best next command
|
|
30
|
+
|
|
31
|
+
## Failure behavior
|
|
32
|
+
|
|
33
|
+
- if the workspace is not initialized, recommend `/hforge-init`
|
|
34
|
+
- if the launcher is unavailable, fall back to `npx @harness-forge/cli`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: command-hforge-task
|
|
3
|
+
kind: command
|
|
4
|
+
title: Harness Task Command
|
|
5
|
+
summary: Use when an agent should inspect Harness Forge task-runtime folders, task packs, and linked artifacts for the current work item.
|
|
6
|
+
status: stable
|
|
7
|
+
owner: core
|
|
8
|
+
applies_to:
|
|
9
|
+
- codex
|
|
10
|
+
- claude-code
|
|
11
|
+
- cursor
|
|
12
|
+
- opencode
|
|
13
|
+
languages:
|
|
14
|
+
- all
|
|
15
|
+
generated: false
|
|
16
|
+
---
|
|
17
|
+
# Harness Task Command
|
|
18
|
+
|
|
19
|
+
## Syntax
|
|
20
|
+
|
|
21
|
+
Invoke this command in runtimes that support markdown-backed command entrypoints,
|
|
22
|
+
for example `/hforge-task` followed by a task id or the current task description.
|
|
23
|
+
|
|
24
|
+
## Expected workflow
|
|
25
|
+
|
|
26
|
+
1. resolve command execution through `.hforge/generated/bin/hforge(.cmd|.ps1)` first, bare `hforge` second, and `npx @harness-forge/cli` last
|
|
27
|
+
2. run `hforge task list --root . --json`
|
|
28
|
+
3. if a task id is known, run `hforge task inspect <taskId> --root . --json`
|
|
29
|
+
4. when task-pack detail matters, run `hforge pack inspect <taskId> --root . --json`
|
|
30
|
+
5. summarize the most relevant task-runtime artifacts and the next recommended action
|
|
31
|
+
|
|
32
|
+
## Failure behavior
|
|
33
|
+
|
|
34
|
+
- if no task folders exist, say so explicitly instead of implying the runtime is broken
|
|
35
|
+
- if the workspace is not initialized, recommend `/hforge-init`
|