oc-harness-setup 0.3.3 → 0.4.1
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/.docs/unwired-routing.md +16 -15
- package/AGENTS.md +105 -68
- package/CHANGELOG.md +107 -0
- package/GLOSSARY.md +46 -0
- package/LICENSE +1 -1
- package/README.md +49 -60
- package/agents/cleaner.md +86 -0
- package/agents/critic.md +79 -0
- package/agents/historian.md +92 -0
- package/agents/maintainer.md +106 -0
- package/agents/ops.md +69 -0
- package/agents/orchestrator.md +48 -18
- package/agents/researcher.md +72 -0
- package/agents/verifier.md +84 -0
- package/agents/worker.md +87 -0
- package/bin/cli.js +360 -133
- package/commands/close.md +11 -0
- package/commands/evolve.md +11 -0
- package/commands/fast.md +11 -0
- package/commands/goal.md +11 -0
- package/commands/search.md +11 -0
- package/commands/swarm.md +11 -0
- package/opencode.jsonc +39 -79
- package/package.json +13 -6
- package/reference/README.md +12 -14
- package/reference/canon.md +71 -0
- package/reference/context.md +35 -0
- package/reference/enforcement.md +6 -0
- package/reference/flow.md +19 -0
- package/reference/gates.md +23 -0
- package/reference/harness.md +15 -0
- package/reference/hygiene.md +13 -0
- package/reference/memory.md +13 -0
- package/reference/models.md +19 -24
- package/reference/phases.md +23 -0
- package/reference/repos.md +49 -0
- package/reference/tools.md +35 -0
- package/scripts/harness-doctor.ps1 +83 -0
- package/skills/close/SKILL.md +36 -0
- package/skills/evolve/SKILL.md +76 -0
- package/skills/fast/SKILL.md +36 -0
- package/skills/goal/SKILL.md +65 -0
- package/skills/search/SKILL.md +68 -0
- package/skills/swarm/SKILL.md +69 -0
- package/state-seed/lessons.md +22 -0
- package/state-seed/template.md +12 -0
- package/agents/build.md +0 -20
- package/agents/explore.md +0 -26
- package/agents/general.md +0 -19
- package/agents/plan.md +0 -29
- package/agents/reviewer.md +0 -22
- package/agents/vault.md +0 -73
- package/commands/build.md +0 -7
- package/commands/checkpoint.md +0 -7
- package/commands/code-simplify.md +0 -7
- package/commands/gauntlet.md +0 -7
- package/commands/handoff.md +0 -7
- package/commands/keeper.md +0 -7
- package/commands/kill.md +0 -11
- package/commands/plan.md +0 -7
- package/commands/retro.md +0 -15
- package/commands/review.md +0 -7
- package/commands/ship.md +0 -7
- package/commands/spec.md +0 -7
- package/commands/test.md +0 -7
- package/commands/webperf.md +0 -7
- package/reference/auto-mandate.md +0 -11
- package/reference/backup-convention.md +0 -9
- package/reference/clean-mandate.md +0 -13
- package/reference/editor-parity.md +0 -7
- package/reference/gc-scripts.md +0 -8
- package/reference/intent-routing.md +0 -14
- package/reference/lifecycle.md +0 -15
- package/reference/model-keeper.md +0 -46
- package/reference/model-test.md +0 -176
- package/reference/oc-source-map.md +0 -162
- package/reference/owner-pin.md +0 -31
- package/reference/roster.md +0 -15
- package/reference/session-scope.md +0 -9
- package/reference/session-state.md +0 -13
- package/reference/swarm.md +0 -32
- package/scripts/backup-config.ps1 +0 -42
- package/scripts/gc-branch.ps1 +0 -196
- package/scripts/gc-bump.ps1 +0 -198
- package/scripts/gc-clean.ps1 +0 -648
- package/scripts/gc-commit.ps1 +0 -143
- package/scripts/gc-merge.ps1 +0 -272
- package/scripts/gc-pr.ps1 +0 -190
- package/scripts/gc-push.ps1 +0 -111
- package/scripts/gc-read.ps1 +0 -150
- package/scripts/gc-rebase.ps1 +0 -162
- package/scripts/gc-release.ps1 +0 -225
- package/scripts/gc-stage.ps1 +0 -103
- package/scripts/gc-status.ps1 +0 -127
- package/scripts/gc-sync.ps1 +0 -65
- package/scripts/gc.core.ps1 +0 -715
- package/scripts/gc.smoke.ps1 +0 -779
- package/scripts/interrupt-session.ps1 +0 -65
- package/scripts/logbook/README.md +0 -108
- package/scripts/logbook/logbook.test.ts +0 -440
- package/scripts/logbook/logbook.ts +0 -797
- package/scripts/pirep/README.md +0 -147
- package/scripts/pirep/pirep.test.ts +0 -735
- package/scripts/pirep/pirep.ts +0 -836
- package/scripts/testflight/README.md +0 -112
- package/scripts/testflight/testflight.test.ts +0 -512
- package/scripts/testflight/testflight.ts +0 -806
- package/skills/_shared/SOURCES.md +0 -26
- package/skills/_shared/references/accessibility-checklist.md +0 -160
- package/skills/_shared/references/definition-of-done.md +0 -67
- package/skills/_shared/references/observability-checklist.md +0 -92
- package/skills/_shared/references/orchestration-patterns.md +0 -155
- package/skills/_shared/references/performance-checklist.md +0 -236
- package/skills/_shared/references/security-checklist.md +0 -245
- package/skills/_shared/references/testing-patterns.md +0 -235
- package/skills/api-and-interface-design/SKILL.md +0 -14
- package/skills/browser-testing-with-devtools/SKILL.md +0 -303
- package/skills/code-simplification/SKILL.md +0 -14
- package/skills/creative-writing/SKILL.md +0 -96
- package/skills/debugging-and-error-recovery/SKILL.md +0 -15
- package/skills/flight-deck/SKILL.md +0 -17
- package/skills/frontend-ui-engineering/SKILL.md +0 -16
- package/skills/gauntlet/SKILL.md +0 -21
- package/skills/git-ceremony/SKILL.md +0 -27
- package/skills/grilling/SKILL.md +0 -18
- package/skills/observability-and-instrumentation/SKILL.md +0 -18
- package/skills/performance-optimization/SKILL.md +0 -16
- package/skills/pilot-report/SKILL.md +0 -18
- package/skills/planning-and-task-breakdown/SKILL.md +0 -16
- package/skills/security-and-hardening/SKILL.md +0 -18
- package/skills/source-driven-development/SKILL.md +0 -16
- package/skills/spec-driven-development/SKILL.md +0 -26
- package/skills/test-driven-development/SKILL.md +0 -18
- package/skills/test-flight/SKILL.md +0 -14
- package/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/skills/writing-for-agents/SKILL.md +0 -89
package/.docs/unwired-routing.md
CHANGED
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
- Record type: decision record.
|
|
4
4
|
- Status: current.
|
|
5
5
|
|
|
6
|
-
Model routing is UNWIRED by decision in this harness. The
|
|
7
|
-
orchestrator
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
Model routing is UNWIRED by decision in this harness. The 9 seats —
|
|
7
|
+
`orchestrator`, `worker`, `verifier`, `researcher`, `ops`, `critic`,
|
|
8
|
+
`historian`, `cleaner`, `maintainer` — ship with no model pins: no agent
|
|
9
|
+
file carries a `model:` line, so every agent inherits the session's
|
|
10
|
+
selected model.
|
|
11
11
|
|
|
12
|
-
- Why: the unwired state is the supported
|
|
13
|
-
|
|
14
|
-
in `opencode.jsonc` or by
|
|
15
|
-
using an id that resolves in
|
|
16
|
-
|
|
17
|
-
- Verified by: the harness doctor's Law 8
|
|
18
|
-
state only while
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
- Why: the unwired state is the supported baseline. Wiring belongs to
|
|
13
|
+
the user, not the package: bindings are added in the user's
|
|
14
|
+
`agents` map in `opencode.jsonc` or by adding a `model:` line in an
|
|
15
|
+
agent's frontmatter, using an id that resolves in
|
|
16
|
+
`reference/models.md`. A shipped pin would fight the user's setup.
|
|
17
|
+
- Verified by: the harness doctor's Law 8 — fully-unwired routing is a
|
|
18
|
+
PASS state only while this record documents the decision. Law 8
|
|
19
|
+
resolves every bound id against the `reference/models.md` catalog.
|
|
20
|
+
- Reverting: bind models per seat (user `agents` map or `model:`
|
|
21
|
+
frontmatter lines with ids that resolve in `reference/models.md`),
|
|
22
|
+
or document the new wiring state here.
|
package/AGENTS.md
CHANGED
|
@@ -1,70 +1,107 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
1
|
+
# STARTER HARNESS
|
|
2
|
+
A Windows 10/11 starter harness for any OpenCode user; zero-backend — the pack ships one install-time gate and nothing else runs behind the agent.
|
|
3
|
+
It ships no models, no credentials, and no outward grants.
|
|
4
|
+
|
|
5
|
+
Working on this pack is `CONTRIBUTING.md`; this file is the shipped starter contract.
|
|
6
|
+
|
|
7
|
+
## What this is not
|
|
8
|
+
- Not a governing machine: narrow stated rules, drift accepted openly.
|
|
9
|
+
- Not a role taxonomy: agents differ by reach, never by craft.
|
|
10
|
+
- Not a wiki: one `state/lessons.md`, nothing else persists.
|
|
11
|
+
- Not a prose doctor: the doctor gates install shape; no pass enforces prose — mechanisms or judgment do.
|
|
12
|
+
- Not fleet/commander modes: seams bound workers, never a mode.
|
|
13
|
+
- Not YAML state: markdown only, archived then pruned.
|
|
14
|
+
- Not autonomy-first: tight leash, mandatory fresh-context review.
|
|
15
|
+
|
|
16
|
+
## Session loop
|
|
17
|
+
1. Orient — read goal, state, and tree truth; `historian` reads memory and `ops` reports the live surface; done when next slice is named.
|
|
18
|
+
2. Slice — cut one ticket, one artifact, one proving check; done when brief is complete.
|
|
19
|
+
3. Verify — run the check on real inputs; `critic` reviews, `verifier` verdicts; done when output is cited.
|
|
20
|
+
4. Close — `historian` writes state, `cleaner` sweeps, `close` runs the ceremony; done when every lane is stopped and the tree and scratch are clean, and the session is `done` on a green gate or `parked` with the red named.
|
|
21
|
+
- Name the session `<status> <work>` once the work is known; status is active, parked, or done.
|
|
22
|
+
|
|
23
|
+
- `reference/context.md`: read for context budget and worked examples.
|
|
24
|
+
|
|
25
|
+
## Agents
|
|
26
|
+
- `orchestrator`: orchestrate, dispatch, reconcile, own the verdict; hand state deltas to `historian`.
|
|
27
|
+
- `worker`: local write, bounded entirely by the brief; runs the named commands and returns their output.
|
|
28
|
+
- `verifier`: read-only verdict; never authors, never fixes.
|
|
29
|
+
- `researcher`: read plus net; returns cited synthesis.
|
|
30
|
+
- `ops`: host, processes, files, git mechanics, and the live surface — ports, PIDs, branch, HEAD, HTTP status; no source edits, never pushes.
|
|
31
|
+
- `critic`: reviews a diff against the standards and the brief; no verdict.
|
|
32
|
+
- `historian`: memory — state, plans, handoffs, lessons, history; the only writer of memory.
|
|
33
|
+
- `cleaner`: cleanup at pass close; dispatched by the loop, never invoked directly.
|
|
34
|
+
- `maintainer`: harness structure and versioning; the only writer of harness content.
|
|
35
|
+
- Only `researcher` holds the web tools; `execute` is the MCP route, not a browsing route.
|
|
36
|
+
- A shipped skill always wins a shared job; vendor skills load on demand and never as rules.
|
|
37
|
+
- New reach class earns a new agent; new craft never does.
|
|
38
|
+
- Delegation is bounded by seams and capped at 10 live lanes: past ten, the rest queue; a seam is the gate, ten is the ceiling.
|
|
27
39
|
|
|
28
40
|
## Delegation
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
-
|
|
41
|
+
- Split only for context isolation or genuine breadth.
|
|
42
|
+
- `reference/context.md`: read for parallel-write, brief, return, and cost detail plus examples.
|
|
43
|
+
- Before fanning out, run the zero test: zero overlap, zero risk, zero friction. Read-only fan-out is always safe; never parallelise a restart, a shared config, or one file.
|
|
44
|
+
- Harness content has one writer: route changes to `maintainer`; scratch goes to `cleaner`; outward acts follow the owner gate in § Enforcement.
|
|
45
|
+
- Cost matters only on the expensive tier: fan out freely on the cheap tier and reserve the expensive seat for verdicts. A price gap is a reason to avoid collisions, not fan-out.
|
|
46
|
+
|
|
47
|
+
## Enforcement
|
|
48
|
+
- `policies` `tool.use` denies are hard: `*.env`, `*.env.*`, `*secrets*`, on both read and edit. They override ask and allow. (enforced)
|
|
49
|
+
- Outward verbs — push, publish, release, PR, merge, approve — are owner-gated. This pack grants none; leave the final act to the owner. (instructed)
|
|
50
|
+
- `reference/enforcement.md`: read for network-exception detail and enforcement examples.
|
|
51
|
+
- Code Mode (`execute`) is allowed only on `orchestrator`, `worker`, and `ops`; every other agent is denied it: it carries its own `fetch`, so it is the one route that must stay narrow. (enforced)
|
|
52
|
+
- Extra tools mounted in the user's config are reached through `execute`. The runtime exposes them only there — that is how the tool surface works, not a rule anyone enforces. (by design)
|
|
53
|
+
- Dirty-tree git is instructed only: no mechanism enforces it. (instructed)
|
|
54
|
+
- These are instructed and may drift: brief-scoped path confinement, secret values never printed, worker counts, destructive git on a dirty tree. (instructed)
|
|
55
|
+
- No shell redirection or heredoc may write a file outside the brief. The `edit` action does not cover that route. (instructed)
|
|
56
|
+
|
|
57
|
+
- `reference/context.md`: read for mechanism ladder, script rules, and examples.
|
|
58
|
+
|
|
59
|
+
## Context budget
|
|
60
|
+
- Root ceiling 200 lines, target 120. A decision belongs here; detail lives behind a pointer.
|
|
61
|
+
- Cut filler, never a rule.
|
|
62
|
+
|
|
63
|
+
## Research
|
|
64
|
+
|
|
65
|
+
- Before building anything that turns on a library, an API, a version, a design convention, or a current fact: research it. A local file is evidence of what was true when it was written, not of what is true now.
|
|
66
|
+
- `search` owns the procedure; `reference/canon.md` owns the source order. Primary sources only for load-bearing claims.
|
|
67
|
+
- A finding lands as a cited note first. Promotion to a reference, a lesson, or a skill takes the burden test and a review — a harness never writes its own skills from research unattended.
|
|
68
|
+
- Install what the finding needs when it clears the bar: licence checked, maintained, removes a burden, registered in `reference/tools.md`. Never install because something was mentioned.
|
|
69
|
+
- Say `UNVERIFIED` out loud rather than filling a gap with a recalled answer.
|
|
70
|
+
|
|
71
|
+
## Verification
|
|
72
|
+
- Done requires a runnable check with cited command plus output.
|
|
73
|
+
- Done requires a verdict from an agent that did not write the work.
|
|
74
|
+
- A check that cannot fail proves nothing; write checks that can go red.
|
|
75
|
+
- The pack ships `scripts/harness-doctor.ps1` with 18 laws; setup runs it. The rest is zero-backend: the harness's own acceptance is manual; every unit of work carries an executable check. No self-testing harness, no untested work.
|
|
76
|
+
- Work that touches software is not done until it is installed on this machine; a commit alone is not delivery.
|
|
77
|
+
- Gate on fast checks; heavy builds are delivery and run locally. Never let a slow CI job stand between finished work and an installed artifact.
|
|
78
|
+
- Gates ship in the repo they guard; the harness only requires them. `reference/gates.md` names the five worth having.
|
|
79
|
+
- Leave no trail: scratch goes to %TEMP%\opencode\<session>\; untracked test artifacts, logs, traces and probe files are deleted in the turn they stop being needed. `reference/hygiene.md` owns the list.
|
|
80
|
+
|
|
81
|
+
## Memory
|
|
82
|
+
- Session state: `%USERPROFILE%\state\<session-id>\state.md`, written by `historian`; `orchestrator` hands it the deltas in the same turn.
|
|
83
|
+
- Harness assets: `state/` holds `lessons.md` (kept by `historian`); setup seeds it from `state-seed/`. Session state never lands there, and assets never land in a session folder.
|
|
84
|
+
- Never invent an id, never reuse another session's, never write session state without one. If the id cannot be read, write nothing and say so.
|
|
85
|
+
- Record on every content-changing event: hand the deltas to `historian` in the same turn, never later.
|
|
86
|
+
- Key order is fixed: `id`, `title`, `status`, `goal`, `next`, `artifacts`, `decisions`, `open`.
|
|
87
|
+
- Nothing else is persisted; archive superseded files, then prune.
|
|
88
|
+
|
|
89
|
+
## Pointers
|
|
90
|
+
- `reference/README.md` indexes the references; load only the file a rule or workflow names.
|
|
91
|
+
- The vendor skill tree is supply, not surface: invoke on demand, never load as rules, and never let it outrank a shipped skill.
|
|
92
|
+
- `reference/canon.md`: the locked source canon. Search it before anything else.
|
|
93
|
+
- `reference/tools.md`: the host-tool registry — a tool is native only when listed there; registering it is part of installing it.
|
|
94
|
+
- `reference/repos.md`: repo identity and standards — private first, public when ready; outward acts follow § Enforcement.
|
|
95
|
+
- `reference/gates.md`: the five gates worth having in a guarded repo.
|
|
96
|
+
- `reference/hygiene.md`: read before writing scratch output or ending a pass.
|
|
97
|
+
- `reference/harness.md`: read before changing the harness, versioning it, or syncing it.
|
|
98
|
+
- `reference/memory.md`: read before writing state, lessons, plans, or handoffs.
|
|
99
|
+
- `reference/models.md`: read when choosing a model or justifying a fan-out.
|
|
100
|
+
- `reference/enforcement.md`, `reference/flow.md`, `reference/phases.md`: network exceptions, seat choice, and context moves.
|
|
101
|
+
- Commands are 1:1 with skills — one entry point per skill, no orphans; a command with no skill behind it is a doc pretending to be a tool.
|
|
102
|
+
- `close`: load at the end of a session — "all green, all cleaned, done or parked".
|
|
103
|
+
- `evolve`: load when adding a skill, adopting upstream, or improving the harness.
|
|
104
|
+
- `fast`: load when shortcutting safely — "what is the shortest safe route".
|
|
105
|
+
- `goal`: load when looping to done — "take this ticket to green with TDD".
|
|
106
|
+
- `search`: load when researching — "research this from primary sources with citations".
|
|
107
|
+
- `swarm`: load when splitting work — "split this across workers with seams".
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- README uses the house centered header, public “agents” wording, and Releases/Issues links; no shipped behavior change.
|
|
13
|
+
|
|
14
|
+
## [0.4.1] - 2026-10-20
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Explicit Node >=22 startup guard in `bin/cli.js`: older runtimes now
|
|
19
|
+
fail with a clear message instead of a cryptic `import.meta.dirname`
|
|
20
|
+
TypeError.
|
|
21
|
+
- Note: `engines` was already `>=22` in 0.4.0; the floor is unchanged
|
|
22
|
+
and `>=18` was rejected because the CLI requires `import.meta.dirname`.
|
|
23
|
+
|
|
24
|
+
## [0.4.0] - 2026-10-20
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Starter roster: 9 agents with bounded reach, 6 skills
|
|
29
|
+
with 1:1 commands (`close`, `evolve`, `fast`, `goal`, `search`,
|
|
30
|
+
`swarm`), and 12 references — with no plugin dependency.
|
|
31
|
+
- Self-extension: `evolve` turns a repeated workflow, a user
|
|
32
|
+
request, or an upstream feature into a bounded harness
|
|
33
|
+
extension — a skill, command, reference, seat, or config change,
|
|
34
|
+
never a niche one-off.
|
|
35
|
+
- Research canon (`reference/canon.md`) with the `search` procedure,
|
|
36
|
+
so load-bearing claims arrive cited or marked `UNVERIFIED`.
|
|
37
|
+
- Memory ledger: `historian`-owned session state plus the memory
|
|
38
|
+
rules; `state-seed/` starters seed a fresh install and user state
|
|
39
|
+
survives upgrades.
|
|
40
|
+
- Auto-cleaner: `cleaner` with the hygiene rules sweeps scratch at
|
|
41
|
+
pass close.
|
|
42
|
+
- `scripts/harness-doctor.ps1` with 18 install-shape laws; every
|
|
43
|
+
setup run ends on the doctor gate.
|
|
44
|
+
- `GLOSSARY.md` (starter terms plus `doctor`, `evolve`, and `state-seed`)
|
|
45
|
+
and `CONTRIBUTING.md` (pack maintenance, split out of `AGENTS.md`).
|
|
46
|
+
- Test suite runs on plain Node with zero runtime dependencies.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- `AGENTS.md` is now the portable starter contract, sanitised of
|
|
51
|
+
owner-local paths, names, and model pins.
|
|
52
|
+
- `README.md` rewritten for the 0.4.0 install story; the documented
|
|
53
|
+
install commands stay version-free.
|
|
54
|
+
- Base config: `default_agent` orchestrator, the 6-skill allowlist, hard
|
|
55
|
+
policies kept last, no plugin dependency, and no model pins.
|
|
56
|
+
|
|
57
|
+
### Removed
|
|
58
|
+
|
|
59
|
+
- 0.3.x orchestrator roster, 20-skill library, 14 commands, and the
|
|
60
|
+
git-ceremony/testflight/logbook/pirep scripts; upgrading from
|
|
61
|
+
0.3.x retires unmodified 0.3.x files.
|
|
62
|
+
- The plugin dependency and model pins: cost guidance is cheap-tier
|
|
63
|
+
fan-out versus the expensive verdict seat, with no named models
|
|
64
|
+
anywhere.
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- Upgrades preserve the user's settings and state dir; only
|
|
69
|
+
unmodified pack files are retired, and user-modified files are
|
|
70
|
+
archived under `state/archive/legacy-0.3.x/` and reported.
|
|
71
|
+
|
|
72
|
+
## [0.3.3] - 2026-10-16
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
|
|
76
|
+
- House brand shape pass: README header icon 120, CI template byte-exact
|
|
77
|
+
to the kit.
|
|
78
|
+
- Base config ships with formatting off (object formatter value silently
|
|
79
|
+
rewrites authored bytes; formatters stay manual).
|
|
80
|
+
- Removed dead CI badge from README (GitHub Actions stopped estate-wide).
|
|
81
|
+
|
|
82
|
+
## [0.3.2] - 2026-10-11
|
|
83
|
+
|
|
84
|
+
The published `0.3.1` tarball on npm is immutable and was built from a
|
|
85
|
+
revision whose history carried the author's local path (`bin/cli.js`).
|
|
86
|
+
This patch release re-ships from the purged history so the registry
|
|
87
|
+
carries a clean artifact, plus the fixes below.
|
|
88
|
+
|
|
89
|
+
### Added
|
|
90
|
+
|
|
91
|
+
- House `assets/icon.svg` and `assets/signature.svg`.
|
|
92
|
+
- `CHANGELOG.md` (Keep a Changelog) and the house `LICENSE` wording.
|
|
93
|
+
|
|
94
|
+
### Changed
|
|
95
|
+
|
|
96
|
+
- House CI shape on `.github/workflows/ci.yml`; the real gates
|
|
97
|
+
(`bun test`, `npm run check`) are unchanged.
|
|
98
|
+
- Rebuilt `README.md` on the house skeleton; dropped a stale licence
|
|
99
|
+
word from the house footer.
|
|
100
|
+
|
|
101
|
+
### Fixed
|
|
102
|
+
|
|
103
|
+
- Installer (`bin/cli.js`): validate every JSONC input before the first
|
|
104
|
+
write; honour `--dry-run` / `--ci` print-only before preflight and in
|
|
105
|
+
`setup --uninstall`; replace files atomically; sweep installer crash
|
|
106
|
+
litter; resolve `OPENCODE_CONFIG_DIR` to an absolute path.
|
|
107
|
+
- Removed author machine details from lint comments in `bin/cli.js`.
|
package/GLOSSARY.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Starter glossary
|
|
2
|
+
|
|
3
|
+
**brief** — The four-field contract of objective, output format, tool/source guidance, and boundaries bounding one worker to one artifact and one check.
|
|
4
|
+
Not a task description or prompt; it is what makes a seam dispatchable.
|
|
5
|
+
**canon** — The locked tier of primary sources a load-bearing claim must come from.
|
|
6
|
+
Not a reading list or bibliography of everything consulted.
|
|
7
|
+
**capability envelope** — The reach an agent is allowed: what it may read, write, run, and fetch.
|
|
8
|
+
Not a role, personality, or craft specialty.
|
|
9
|
+
**doctor** — The install-time gate (`scripts/harness-doctor.ps1`) checking the pack's shape laws.
|
|
10
|
+
Not a prose enforcer; it gates what was installed, never how a sentence reads.
|
|
11
|
+
**enforced vs instructed** — The split between a rule backed by a denying mechanism and a rule stated as prose that may drift.
|
|
12
|
+
Not a severity scale; only the enforced side can deny.
|
|
13
|
+
**evolve** — The smallest deliberate extension of the harness: a skill, command, reference, seat, or config change, never a niche one-off.
|
|
14
|
+
Not a niche one-off or a user-local tweak.
|
|
15
|
+
**finding** — An audit result citing a canon source or a contradiction between two starter files.
|
|
16
|
+
Not an opinion or suggestion.
|
|
17
|
+
**instructed** — A rule stated as prose with no denying mechanism behind it, so drift is accepted openly.
|
|
18
|
+
Not ignored or optional; it still binds, it just cannot deny.
|
|
19
|
+
**integration point** — The place where disjoint parallel work is reconciled before a verdict.
|
|
20
|
+
Not a branch or merge commit.
|
|
21
|
+
**lessons** — The scar file of operational rules extracted from failures, each recorded once.
|
|
22
|
+
Not a changelog, diary, or summary of what happened.
|
|
23
|
+
**non-rule** — Something the starter deliberately does not do, recorded to stop it being re-added.
|
|
24
|
+
Not an omission or to-do.
|
|
25
|
+
**proving check** — The runnable check on real inputs whose cited output proves a seam is done.
|
|
26
|
+
Not a review comment or a check that cannot fail.
|
|
27
|
+
**reach class** — A distinct set of permitted surfaces that justifies its own agent.
|
|
28
|
+
Not a job title or craft specialty.
|
|
29
|
+
**return budget** — The size limit on a worker's return, keeping raw reads in the child.
|
|
30
|
+
Not a token budget for the whole run.
|
|
31
|
+
**seam** — An independent unit of work with its own artifact and its own proving check.
|
|
32
|
+
Not a file, step, or task, and not a brief; the brief is the contract around it.
|
|
33
|
+
**state** — The per-session markdown record under `state/` that lets a fresh session resume.
|
|
34
|
+
Not the vendor's session store, and not YAML.
|
|
35
|
+
**state-seed** — The starter files setup lays down so a fresh install has somewhere to record.
|
|
36
|
+
Not live session state; the first real session overwrites it.
|
|
37
|
+
**supply vs surface** — The vendor skill tree is supply invoked on demand while the starter skills are surface always named in the router.
|
|
38
|
+
Not a quality ranking.
|
|
39
|
+
**ticket** — One frozen slice of a spec stating what it delivers plus its blocking edges.
|
|
40
|
+
Not a seam without a proving check.
|
|
41
|
+
**verdict** — A pass/fail on the work from an agent that did not author it, with cited evidence.
|
|
42
|
+
Not a review comment or summary.
|
|
43
|
+
**write lane** — The single worker permitted to write a given artifact at a given time.
|
|
44
|
+
Not a queue or a lock.
|
|
45
|
+
**zero backend** — Nothing runs behind the agent: no scripts, daemons, services, or generated state machinery.
|
|
46
|
+
Not nothing is enforced; mechanisms and judgment still bind.
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026
|
|
3
|
+
Copyright (c) 2026 nathwn12
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,85 +1,74 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="assets/icon.svg" width="120" height="120" alt="oc-harness-setup icon" />
|
|
3
|
-
</p>
|
|
4
1
|
<h1 align="center">oc-harness-setup</h1>
|
|
5
|
-
<p align="center"><strong>
|
|
6
|
-
<p align="center">
|
|
7
|
-
<a href="LICENSE"><img src="https://img.shields.io/github/license/nathwn12/oc-harness-setup" alt="License" /></a>
|
|
8
|
-
<img src="https://img.shields.io/github/languages/top/nathwn12/oc-harness-setup" alt="Language" />
|
|
9
|
-
<img src="https://img.shields.io/badge/platform-windows--linux-2b3137" alt="Platform" />
|
|
10
|
-
</p>
|
|
11
|
-
|
|
12
|
-
## What it is
|
|
13
|
-
|
|
14
|
-
oc-harness-setup is a plug-and-play installer for the whole OpenCode harness. One explicit command lands an orchestrator primary with 7 agents, 14 commands, 20 skills, 18 PowerShell scripts, and a 16-law doctor gate that proves the install. It is a pure Node ESM package with zero runtime dependencies, shipped via npm.
|
|
15
|
-
|
|
16
|
-
## Why
|
|
17
|
-
|
|
18
|
-
Setting up the harness by hand means copying dozens of files and hoping they agree. This pack makes setup consent-first, idempotent, and verified: the full manifest prints before anything moves, re-runs skip identical files, and every install ends on the harness's own doctor. Installation never modifies config by itself; setup is always an explicit command, never a postinstall.
|
|
19
|
-
|
|
20
|
-
## Features
|
|
21
|
-
|
|
22
|
-
- One-command setup: `npx --yes oc-harness-setup setup`, then restart OpenCode
|
|
23
|
-
- Consent gate: the full manifest prints before anything moves; `--dry-run` changes nothing
|
|
24
|
-
- Idempotent: re-run anytime, identical files are skipped
|
|
25
|
-
- Verified: ends on the 16-law harness doctor; failures name the check, the detail, and a fix
|
|
26
|
-
- Config-preserving merge: your model, providers, MCP, and plugins survive; runtime policy is owned by the pack
|
|
27
|
-
- Fail-closed permissions: the deny set survives `--auto`, skills load from an exact allowlist
|
|
28
|
-
- Reversible: a SHA-256 journal records every touched file; `--uninstall` restores from backup
|
|
29
|
-
- Zero runtime dependencies: pure Node ESM, stdlib only
|
|
2
|
+
<p align="center"><strong>A compact OpenCode starter that runs a real loop, researches before it claims, keeps a ledger, cleans up after itself, and grows the next skill you need.</strong></p>
|
|
30
3
|
|
|
31
4
|
## Install
|
|
32
5
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Requires Node >= 22. The doctor gate needs PowerShell 7; where it is missing, laws are reported as skipped, not passed.
|
|
6
|
+
```bash
|
|
7
|
+
npx --yes oc-harness-setup setup
|
|
8
|
+
```
|
|
38
9
|
|
|
39
|
-
|
|
10
|
+
First run prints a manifest of everything it will touch and waits for you to type `y`. It then lays the agents, commands, skills, references, doctor gate, and merged base config into your OpenCode config dir, seeds your `state/` dir, and ends on the harness doctor gate.
|
|
40
11
|
|
|
41
|
-
|
|
12
|
+
## Why this starter
|
|
42
13
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
14
|
+
- Small on purpose: 9 agents, 6 skills, 12 on-demand references; the primary loads one, the rest wait for a trigger.
|
|
15
|
+
- A loop that closes: goal -> worker -> verifier -> historian -> cleaner -> close; no self-verdicts.
|
|
16
|
+
- Research that cites: researcher + search + canon; claims arrive sourced or `UNVERIFIED`.
|
|
17
|
+
- Memory that survives: historian writes session state; `state/` is seeded and preserved on upgrade.
|
|
18
|
+
- Cleanup that ships: cleaner removes this session's scratch; hygiene proves the tree clean.
|
|
19
|
+
- Grows with you: `evolve` turns a repeated workflow, a user request, or an upstream feature into a skill, command, reference, seat, or config change — 1:1 and doctor-checked.
|
|
20
|
+
- Reversible and fail-closed: manifest first, SHA-256 journal, uninstall restores originals, hard denies last.
|
|
46
21
|
|
|
47
|
-
|
|
22
|
+
## What you get
|
|
48
23
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
24
|
+
- 9 agents with bounded reach: one coordinator, one verdict, and seven specialists that each own exactly one surface.
|
|
25
|
+
- 6 skills behind 6 commands: close, evolve, fast, goal, search, and swarm.
|
|
26
|
+
- 12 on-demand references behind a single index; load only the file a rule names.
|
|
27
|
+
- 18-law doctor gate: every setup run ends on it, and failures name the check and the fix.
|
|
28
|
+
- Consent-first install: the full manifest prints before anything moves, and `--dry-run` changes nothing.
|
|
29
|
+
- Your settings and state survive: your model, provider, and keys are preserved while the pack owns runtime policy, and your state dir survives upgrades untouched.
|
|
30
|
+
- No plugin, no model pins, no credentials.
|
|
52
31
|
|
|
53
|
-
|
|
32
|
+
## Commands
|
|
54
33
|
|
|
55
34
|
```bash
|
|
56
|
-
npx --yes oc-harness-setup setup
|
|
35
|
+
npx --yes oc-harness-setup setup # full install (default when you pass no args)
|
|
36
|
+
npx --yes oc-harness-setup setup --dry-run # print the manifest, touch nothing
|
|
37
|
+
npx --yes oc-harness-setup setup --ci # print-only, refuse to mutate
|
|
38
|
+
npx --yes oc-harness-setup setup --uninstall # remove exactly the manifest-listed files
|
|
39
|
+
npx --yes oc-harness-setup --help # print usage
|
|
57
40
|
```
|
|
58
41
|
|
|
59
|
-
|
|
42
|
+
Set `OPENCODE_CONFIG_DIR` to override the config dir when the OpenCode CLI cannot report a path; otherwise setup uses the path from the CLI first, then the platform default under your config home. Restart OpenCode after install so the new agents, commands, and skills load.
|
|
60
43
|
|
|
61
|
-
|
|
44
|
+
## Safe upgrade
|
|
62
45
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
46
|
+
- Your `opencode.jsonc` settings, providers, MCP servers, plugins, and state survive.
|
|
47
|
+
- `default_agent` stays `orchestrator`, so an existing 0.3.x config keeps resolving.
|
|
48
|
+
- Unmodified 0.3.x agents, commands, skills, references, and scripts are retired.
|
|
49
|
+
- Files you edited are archived under `state/archive/legacy-0.3.x/` instead of deleted, and reported.
|
|
50
|
+
- Stale `skill` allow entries for retired skills are pruned; custom skills are left alone.
|
|
51
|
+
- `setup --dry-run` previews it; `--uninstall` restores the pre-upgrade snapshot.
|
|
69
52
|
|
|
70
|
-
##
|
|
53
|
+
## Grow it
|
|
71
54
|
|
|
72
|
-
|
|
73
|
-
- [reference/](reference/) — harness references: dispatch, lifecycle, models, session state
|
|
74
|
-
- [.docs/unwired-routing.md](.docs/unwired-routing.md) — unwired routing notes
|
|
55
|
+
This starter grows through `evolve`: the smallest deliberate extension — one skill, command, reference, seat, or config change at a time, always 1:1 and doctor-checked. Repeat something twice, and `evolve` is how it earns a place.
|
|
75
56
|
|
|
76
|
-
##
|
|
57
|
+
## Requirements
|
|
77
58
|
|
|
78
|
-
|
|
59
|
+
- Windows 10/11 only; macOS and Linux are not supported.
|
|
60
|
+
- Node.js 22 or newer, the only runtime requirement with zero runtime dependencies.
|
|
61
|
+
- OpenCode CLI installed and runnable; setup refuses without it.
|
|
62
|
+
- PowerShell 7 for the doctor gate; without it the doctor reports skipped, never passed.
|
|
79
63
|
|
|
80
|
-
##
|
|
64
|
+
## Links
|
|
81
65
|
|
|
82
|
-
|
|
66
|
+
- [Source](https://github.com/nathwn12/oc-harness-setup)
|
|
67
|
+
- [Published package](https://www.npmjs.com/package/oc-harness-setup)
|
|
68
|
+
- [Changelog](https://github.com/nathwn12/oc-harness-setup/blob/main/CHANGELOG.md)
|
|
69
|
+
- [Releases](https://github.com/nathwn12/oc-harness-setup/releases/latest)
|
|
70
|
+
- [Issues](https://github.com/nathwn12/oc-harness-setup/issues)
|
|
71
|
+
- [License](LICENSE)
|
|
83
72
|
|
|
84
73
|
<!-- nathwn12 house footer: identical in every repo. Do not edit. -->
|
|
85
74
|
<p align="center">
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Use when a pass leaves scratch, logs, test output or temp artifacts behind."
|
|
3
|
+
mode: subagent
|
|
4
|
+
steps: 40
|
|
5
|
+
color: "#8A8F98"
|
|
6
|
+
permissions:
|
|
7
|
+
- action: read
|
|
8
|
+
resource: "*"
|
|
9
|
+
effect: allow
|
|
10
|
+
- action: glob
|
|
11
|
+
resource: "*"
|
|
12
|
+
effect: allow
|
|
13
|
+
- action: grep
|
|
14
|
+
resource: "*"
|
|
15
|
+
effect: allow
|
|
16
|
+
- action: shell
|
|
17
|
+
resource: "*"
|
|
18
|
+
effect: allow
|
|
19
|
+
- action: skill
|
|
20
|
+
resource: "*"
|
|
21
|
+
effect: deny
|
|
22
|
+
- action: edit
|
|
23
|
+
resource: "*"
|
|
24
|
+
effect: deny
|
|
25
|
+
- action: execute
|
|
26
|
+
resource: "*"
|
|
27
|
+
effect: deny
|
|
28
|
+
- action: subagent
|
|
29
|
+
resource: "*"
|
|
30
|
+
effect: deny
|
|
31
|
+
- action: webfetch
|
|
32
|
+
resource: "*"
|
|
33
|
+
effect: deny
|
|
34
|
+
- action: websearch
|
|
35
|
+
resource: "*"
|
|
36
|
+
effect: deny
|
|
37
|
+
- action: read
|
|
38
|
+
resource: "*.env"
|
|
39
|
+
effect: deny
|
|
40
|
+
- action: read
|
|
41
|
+
resource: "*.env.*"
|
|
42
|
+
effect: deny
|
|
43
|
+
- action: read
|
|
44
|
+
resource: "*secrets*"
|
|
45
|
+
effect: deny
|
|
46
|
+
- action: shell
|
|
47
|
+
resource: "git clean *"
|
|
48
|
+
effect: deny
|
|
49
|
+
- action: shell
|
|
50
|
+
resource: "git reset --hard *"
|
|
51
|
+
effect: deny
|
|
52
|
+
- action: shell
|
|
53
|
+
resource: "rm -rf *"
|
|
54
|
+
effect: deny
|
|
55
|
+
- action: shell
|
|
56
|
+
resource: "Remove-Item * -Recurse *"
|
|
57
|
+
effect: deny
|
|
58
|
+
- action: shell
|
|
59
|
+
resource: "%TEMP%\\opencode\\*"
|
|
60
|
+
effect: allow
|
|
61
|
+
---
|
|
62
|
+
# cleaner
|
|
63
|
+
Sole purpose: remove what is disposable — scratch, logs, temp, test output, caches, probe files, and artifacts left behind by a session, an agent, the harness, or tooling. It removes residue; it never authors content and never deletes a tracked file.
|
|
64
|
+
**Reach**
|
|
65
|
+
- Sweeps residue from sessions, agents, the harness, tests and tooling: scratch under `%TEMP%\opencode\<session-id>\`, `test-results/`, `playwright-report/`, `.vite/`, traces, screenshots, probe files, `.dev*.log`, and temp notes past their use.
|
|
66
|
+
- Check every repo the pass touched with `git status --short`; delete only untracked artifacts, never tracked files.
|
|
67
|
+
- Stop a process that owns a log before deleting the log.
|
|
68
|
+
- Report every deletion with its full path.
|
|
69
|
+
**Never**
|
|
70
|
+
- Never delete tracked files, `node_modules`, shipped `dist/`, `.git`, another session's scratch, the owner's files, a duplicate clone, a retired prototype, or anything under `%USERPROFILE%\state\` or the OpenCode session store.
|
|
71
|
+
- Never run `git clean`, `git reset --hard`, or any recursive delete outside `%TEMP%\opencode\`.
|
|
72
|
+
- Never edit source, fix code, stage, commit, push, or re-scope the cleanup.
|
|
73
|
+
- Never delete an untracked file it cannot attribute to this session; name it in the report instead.
|
|
74
|
+
- Never delegate; never write through shell redirection or heredocs.
|
|
75
|
+
- Read `*.env`, `*.env.*`, or `*secrets*`.
|
|
76
|
+
**Brief it receives**
|
|
77
|
+
- Objective: the repos touched, the session id, the scratch paths expected, and what must be left alone.
|
|
78
|
+
- Output format: `CLEAN` or `DIRTY` plus deletions, byte total, status output, and refusal list.
|
|
79
|
+
- Tool/source guidance: allowed roots, owning processes, and attribution rule for untracked files.
|
|
80
|
+
- Boundaries: forbidden paths, no-source-edit rule, and stop conditions.
|
|
81
|
+
**Returns**
|
|
82
|
+
- `CLEAN` or `DIRTY`, the deletions as a path list, the byte total freed, the `git status --short` output per repo, and a refusal list naming anything that looked like junk but was left, each with a clause saying why.
|
|
83
|
+
**Examples**
|
|
84
|
+
- <example>Good: sweep this session's scratch and logs and report paths plus bytes freed. Bad: leaving `test-results/` behind for the next pass.</example>
|
|
85
|
+
- <example>Good: refuse an unattributed untracked file and name it with why it was left. Bad: deleting a tracked file to make the tree look clean.</example>
|
|
86
|
+
- <example>Good: stop the process owning a log before deleting the log. Bad: sweeping another session's scratch under `%TEMP%\opencode\`.</example>
|