opencode-harness-kit 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +139 -0
- package/README.md +217 -21
- package/bin/oc-harness.mjs +177 -10
- package/dist/index.js +54 -6
- package/dist/profile.d.ts +2 -1
- package/docs/KNOWN-LIMITS.md +22 -2
- package/package.json +1 -1
- package/profiles/beam-free.json +2 -3
- package/profiles/deepseek-v4.1-flash-free.json +1 -2
- package/profiles/fleet-all.json +6 -14
- package/profiles/fleet-safe.json +8 -19
- package/profiles/glm-5.3-flash-free.json +1 -2
- package/profiles/index.json +4 -11
- package/profiles/mimo-v2.6-flash-free.json +1 -2
- package/profiles/minimax-m3.1-flash-free.json +1 -2
- package/profiles/nemotron-3.5-lightning-free.json +2 -3
- package/profiles/nemotron-3.5-super-vl-free.json +1 -2
- package/profiles/schema.json +8 -0
- package/retention.yml +0 -9
- package/src/profile.js +14 -1
- package/src/prune.ts +90 -5
- package/src/research.js +462 -0
- package/profiles/longcat-2.5-preview-free.json +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,145 @@ is not happening.
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## [Unreleased]
|
|
16
|
+
|
|
17
|
+
## [0.6.0] — 2026-10-22
|
|
18
|
+
|
|
19
|
+
Published. The tag is what cut it: `git tag v0.6.0 && git push origin
|
|
20
|
+
main v0.6.0`, and the publish job watches for exactly that.
|
|
21
|
+
|
|
22
|
+
A minor: a command for the half of the perishable-tier question nobody was
|
|
23
|
+
answering, and the fix that made it answerable.
|
|
24
|
+
|
|
25
|
+
The free tier turns over in days. `doctor` said whether the model you depend
|
|
26
|
+
on was still there; it said nothing about what had come to replace it, so a
|
|
27
|
+
withdrawal left a hole only a person could fill by hand out of a catalogue
|
|
28
|
+
dump. `research` fills the hole with a shortlist, and `refresh` takes the
|
|
29
|
+
dead rung out of the chain it was in.
|
|
30
|
+
|
|
31
|
+
Two of the bugs here were the same bug wearing different clothes: a check
|
|
32
|
+
that asked "is this model still IN the catalogue" and called the answer
|
|
33
|
+
"yes, it can run". models.dev does not delete a model the provider pulls - it
|
|
34
|
+
keeps the record and marks it `status: "deprecated"`. So this kit's own
|
|
35
|
+
default fleet was carrying a dead fallback rung in **all ten lanes** while
|
|
36
|
+
`doctor` called it healthy.
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- **`refresh` now takes the dead rung out.** `research` tells you a rung is
|
|
41
|
+
dead; `refresh` removes it. A chain names the models that could serve a
|
|
42
|
+
lane, best first, and a model the provider has withdrawn cannot run - so it
|
|
43
|
+
is dead weight in a chain whose entire job is to survive a withdrawal.
|
|
44
|
+
|
|
45
|
+
A lane whose own primary was withdrawn takes the next live rung of its own
|
|
46
|
+
chain, because a chain has to start with its model. The fallback queue
|
|
47
|
+
loses its dead entries, and the utility route moves to a model the profile
|
|
48
|
+
still reaches.
|
|
49
|
+
|
|
50
|
+
**The refresh only ever REMOVES.** Putting a model into a lane changes what
|
|
51
|
+
that lane does, and that is a person's decision - it is what `research` is
|
|
52
|
+
for. A script that quietly added a candidate would be putting a model whose
|
|
53
|
+
terms nobody has read into the path of every prompt.
|
|
54
|
+
|
|
55
|
+
Two cases a script cannot repair are reported rather than papered over: a
|
|
56
|
+
profile whose own model was withdrawn (there is no chain behind it to fall
|
|
57
|
+
back to, so the honest fix is to retire the profile, and that is a person's
|
|
58
|
+
call), and a lane left with no model at all.
|
|
59
|
+
|
|
60
|
+
- **`oc-harness research` — the half of the perishable-tier question nobody
|
|
61
|
+
was answering.** `doctor` says whether the model you depend on is still
|
|
62
|
+
there. It said nothing about what has come to replace it, so a withdrawal
|
|
63
|
+
left a hole only a person could fill, by hand, out of a catalogue dump.
|
|
64
|
+
|
|
65
|
+
The new command reads the live catalogue and reports the models in use that
|
|
66
|
+
have been withdrawn — split into the ones that are a profile's own base
|
|
67
|
+
model and the ones that are a rung in a lane chain — then the lanes of the
|
|
68
|
+
default profile with a count of the rungs still alive in each, then the
|
|
69
|
+
candidates: live, free models the kit does not use yet, each with its
|
|
70
|
+
context window, its output cap, the effort levels it publishes, and **which
|
|
71
|
+
lanes it could serve**.
|
|
72
|
+
|
|
73
|
+
"Which lanes it could serve" is the part that makes a candidate usable
|
|
74
|
+
rather than merely interesting. Every lane needs tool calls, the `vision`
|
|
75
|
+
lane needs a model that takes an image, and a lane whose role asks for
|
|
76
|
+
`max` needs a model that publishes `max`. A model that publishes no effort
|
|
77
|
+
levels at all counts as a match, because there is nothing to mismatch.
|
|
78
|
+
|
|
79
|
+
The logic lives in one file, [`src/research.js`](src/research.js), with no
|
|
80
|
+
I/O in it, and the command is a thin layer over it.
|
|
81
|
+
|
|
82
|
+
**It writes nothing** — not `retention.yml`, not a profile, not the config.
|
|
83
|
+
That is the line `refresh` draws, for the same reason: `retention.yml` is a
|
|
84
|
+
human judgement about a provider's terms, and no script can read a
|
|
85
|
+
provider's terms and come back with a privacy verdict. A candidate with no
|
|
86
|
+
verdict is reported as `retention: unknown` and carries an explicit blocker
|
|
87
|
+
rather than being quietly filed under whichever tier it is cheapest on. The
|
|
88
|
+
output is a shortlist to argue with, not a decision to accept.
|
|
89
|
+
|
|
90
|
+
`research --json` prints one parseable object and nothing else, so a
|
|
91
|
+
scheduler can read it.
|
|
92
|
+
|
|
93
|
+
### Fixed
|
|
94
|
+
|
|
95
|
+
- **`doctor` reported a withdrawn model as a healthy fallback.** The chain
|
|
96
|
+
check asked whether the model was still *in* the catalogue. models.dev does
|
|
97
|
+
not delete a model the provider pulls: it keeps the record and marks it
|
|
98
|
+
`status: "deprecated"`. So "is it still there" and "can it still run" are
|
|
99
|
+
two different questions, and the kit's own default fleet carried a dead
|
|
100
|
+
fallback rung in **all ten lanes** while `doctor` called it healthy. The
|
|
101
|
+
message it printed already said "withdrawn" — only the filter was wrong,
|
|
102
|
+
which is exactly why the dead rung stayed invisible.
|
|
103
|
+
|
|
104
|
+
- **The pruner's ceiling on the distinct outputs did not bound what it kept.**
|
|
105
|
+
The rule keeps the newest copy of each distinct output, and the ceiling on
|
|
106
|
+
that is what stops it being a leak. But the ceiling charged the budget for
|
|
107
|
+
the *tool* parts only, while the rule keeps the *whole message*, verbatim,
|
|
108
|
+
every part in it. A message with a 300-character tool output and a
|
|
109
|
+
4,000-character reasoning part therefore cost the budget 300 and kept
|
|
110
|
+
4,300, and twenty such messages kept 40,000 characters of reasoning under a
|
|
111
|
+
5,000-character ceiling — eight times the budget, carrying exactly the
|
|
112
|
+
reasoning the pruner exists to stub. The ceiling now charges what the rule
|
|
113
|
+
actually keeps.
|
|
114
|
+
|
|
115
|
+
- **A profile that could not be loaded turned the pruner off without a word.**
|
|
116
|
+
The lookup sat in an empty `catch`, so a marker naming a renamed or missing
|
|
117
|
+
profile left the pruner disabled with no line in the log, nothing on the
|
|
118
|
+
console, and nothing to show the user why their context kept growing. A
|
|
119
|
+
project in that state could not tell the difference between "the pruner has
|
|
120
|
+
nothing to do" and "the pruner is broken". The failure is now reported once
|
|
121
|
+
per session, by name.
|
|
122
|
+
|
|
123
|
+
### Removed
|
|
124
|
+
|
|
125
|
+
- **The `longcat-2.5-preview-free` profile.** The provider withdrew the
|
|
126
|
+
model. A withdrawn model is not a profile that still works - it is a route
|
|
127
|
+
that fails on contact - and this one was the *only* model its profile named,
|
|
128
|
+
so there was no chain behind it to fall back to. The profile is retired and
|
|
129
|
+
recorded in `profiles/index.json` under `withdrawn`, with its retention
|
|
130
|
+
verdict removed from `retention.yml` along with it: a verdict about a model
|
|
131
|
+
that cannot run is not a verdict about anything.
|
|
132
|
+
|
|
133
|
+
The two fleets are unaffected in kind: `longcat` was a fallback rung in
|
|
134
|
+
every lane, and each of those lanes now runs on the rung above it. The
|
|
135
|
+
default fleet loses its third rung, so it now runs its ten lanes on the
|
|
136
|
+
three zero-retention models still live on the tier.
|
|
137
|
+
|
|
138
|
+
- **The demo video is not published with the repository.** The newer take —
|
|
139
|
+
thirty seconds, made on a machine with no screen, the terminal in it the
|
|
140
|
+
real output of the real commands — was under `docs/demo/` for the 0.5.8
|
|
141
|
+
release, and it is out of the repository now.
|
|
142
|
+
|
|
143
|
+
A take is about one machine and one moment, and so is the recording of it.
|
|
144
|
+
The `.gitignore` already said as much: "a recording stays on the machine
|
|
145
|
+
that made it until somebody decides, deliberately, to publish it". The
|
|
146
|
+
decision went the other way, so the file went back where that rule keeps
|
|
147
|
+
it — `video/build/`, which is ignored — and the README no longer links a
|
|
148
|
+
video the repository does not carry.
|
|
149
|
+
|
|
150
|
+
What is published is still the old `docs/demo/pitch.mp4`: four minutes
|
|
151
|
+
forty-seven seconds, recorded live from a Mac terminal, with a voice. The
|
|
152
|
+
npm package never carried a video at all.
|
|
153
|
+
|
|
15
154
|
## [0.5.8] — 2026-10-22
|
|
16
155
|
|
|
17
156
|
Published. The tag is what cut it: `git tag v0.5.8 && git push origin
|
package/README.md
CHANGED
|
@@ -15,16 +15,6 @@ record it and the two mistakes that cost the most time.*
|
|
|
15
15
|
*It was recorded against an earlier version of the kit: the numbers it names
|
|
16
16
|
are the ones from then, and the ones below are the ones now.*
|
|
17
17
|
|
|
18
|
-
<p align="center">
|
|
19
|
-
<video src="docs/demo/audit.mp4" width="720" controls></video>
|
|
20
|
-
</p>
|
|
21
|
-
|
|
22
|
-
*Thirty seconds, made on a machine with no screen and no camera: the scene is
|
|
23
|
-
drawn by a browser, the terminal in it is the **real** output of the **real**
|
|
24
|
-
commands — `oc-harness verify` above — and the narration is on the frame. It
|
|
25
|
-
names the numbers of this release (475 tests), so nothing in it is out of date.
|
|
26
|
-
How it is made is in [`video/`](video/).*
|
|
27
|
-
|
|
28
18
|
A harness kit for [OpenCode](https://opencode.ai) that is **model-agnostic by
|
|
29
19
|
construction**. Switching models is a data edit, not a code change.
|
|
30
20
|
|
|
@@ -111,7 +101,7 @@ The default profile is a **fleet**: ten jobs, ten free models, one session.
|
|
|
111
101
|
The table below is the **unrestricted** fleet (`fleet-all`), where every lane
|
|
112
102
|
gets the model built for it. The default is the **safe** fleet
|
|
113
103
|
(`fleet-safe`), where every lane resolves to a provider with a zero-retention
|
|
114
|
-
policy and
|
|
104
|
+
policy and seven of the ten run on a second-choice model to stay there. Both
|
|
115
105
|
cover the same ten jobs; they differ in what they are willing to promise
|
|
116
106
|
about your prompts.
|
|
117
107
|
|
|
@@ -126,7 +116,13 @@ about your prompts.
|
|
|
126
116
|
| `doc` | read a long document or a spec | GLM 5.3 Flash | 7.4 s |
|
|
127
117
|
| `schema` | produce JSON or a JSON schema | DeepSeek V4.1 Flash | 10.7 s |
|
|
128
118
|
| `sweep` | sweep a lot of code mechanically | Nemotron 3.5 Super VL | 8.4 s |
|
|
129
|
-
| `longform` | read a megabyte, or write alternatives |
|
|
119
|
+
| `longform` | read a megabyte, or write alternatives | MiniMax M3.1 Flash | 6.9 s |
|
|
120
|
+
|
|
121
|
+
`longform` used to run on `longcat-2.5-preview-free`, and the provider
|
|
122
|
+
withdrew it. A withdrawn model is not a lane, it is a hole in a lane: the
|
|
123
|
+
route falls to the next rung of the same chain, which is MiniMax - the only
|
|
124
|
+
model left on the tier with a million-token context. The `measured` column
|
|
125
|
+
for that lane is therefore MiniMax's, not the withdrawn model's.
|
|
130
126
|
|
|
131
127
|
The `measured` column is the median of five one-line requests to that model
|
|
132
128
|
on 2026-10-21 - the same prompt for every model, from the process start, so
|
|
@@ -251,7 +247,6 @@ it. One file covers ten jobs either way.
|
|
|
251
247
|
| `beam-free` | 5 | 1,048,576 | `max` | retained |
|
|
252
248
|
| `deepseek-v4.1-flash-free` | 5 | 200,000 | `max` | zero-retention |
|
|
253
249
|
| `glm-5.3-flash-free` | 5 | 200,000 | `max` | zero-retention |
|
|
254
|
-
| `longcat-2.5-preview-free` | 5 | 1,000,000 | — | zero-retention |
|
|
255
250
|
| `nemotron-3.5-super-vl-free` | 5 | 1,048,576 | `xhigh` | **may train** |
|
|
256
251
|
| `nemotron-3-ultra-free` | 5 | 1,000,000 | — | **may train** |
|
|
257
252
|
| `nemotron-3.5-lightning-free` | 5 | 262,144 | — | **may train** |
|
|
@@ -291,7 +286,7 @@ withdrawn, and one of them was the **default** at the time:
|
|
|
291
286
|
The full list, with a reason for each, is in
|
|
292
287
|
[`profiles/index.json`](profiles/index.json).
|
|
293
288
|
|
|
294
|
-
### The
|
|
289
|
+
### The five commands, and when each one runs
|
|
295
290
|
|
|
296
291
|
| command | what it checks | when |
|
|
297
292
|
|---|---|---|
|
|
@@ -299,6 +294,7 @@ The full list, with a reason for each, is in
|
|
|
299
294
|
| `oc-harness doctor` | every profile against the live model catalogue, and the installed config against the active profile | **before every release**, and whenever a lane starts failing with a 429 or a "model not found" |
|
|
300
295
|
| `oc-harness doctor --check-models` | one run, non-zero when a shipped model is no longer in the catalogue | from cron: the shape a scheduler wants |
|
|
301
296
|
| `oc-harness doctor --watch` | keeps watching, and reports only what **changed** | leave it in a terminal for a week |
|
|
297
|
+
| `oc-harness research` | what could **replace** a withdrawn model, and which lanes each candidate could serve | when `doctor` reports a withdrawal, and from cron before it happens |
|
|
302
298
|
| `oc-harness refresh <id>` | re-derives a profile's machine-derived fields from live metadata | when `doctor` reports drift |
|
|
303
299
|
| `oc-harness verify` | the installed config still matches the profile, and the kit's own files are still installed | after every `use` / `install` |
|
|
304
300
|
|
|
@@ -361,6 +357,193 @@ out to be. A lane is never left without one.
|
|
|
361
357
|
See [docs/KNOWN-LIMITS.md](docs/KNOWN-LIMITS.md) for the rest of what this
|
|
362
358
|
tier cannot do.
|
|
363
359
|
|
|
360
|
+
### Research: what can replace the model that just died
|
|
361
|
+
|
|
362
|
+
`doctor` answers one half of the question a perishable tier forces on you:
|
|
363
|
+
**is the model I depend on still there?** The other half is **what is there
|
|
364
|
+
instead** — and nobody was answering that half, so a withdrawal left a hole
|
|
365
|
+
only a person could fill, by hand, out of a catalogue dump.
|
|
366
|
+
|
|
367
|
+
`oc-harness research` is that half, and it is a file:
|
|
368
|
+
[`src/research.js`](src/research.js).
|
|
369
|
+
|
|
370
|
+
```
|
|
371
|
+
$ oc-harness research
|
|
372
|
+
|
|
373
|
+
research tier opencode, 10 live of 46 free
|
|
374
|
+
|
|
375
|
+
✓ every model in use is still live
|
|
376
|
+
|
|
377
|
+
lanes
|
|
378
|
+
build 2 live 0 dead
|
|
379
|
+
plan 2 live 0 dead
|
|
380
|
+
reviewer 2 live 0 dead
|
|
381
|
+
...
|
|
382
|
+
|
|
383
|
+
candidates live, free, and not in use yet
|
|
384
|
+
|
|
385
|
+
flint-40b-free ctx 262,144 out 65,536 effort low,medium,high,xhigh,max
|
|
386
|
+
fits: plan, build, reviewer, locate, verify, doc, schema, sweep, longform
|
|
387
|
+
retention: unknown
|
|
388
|
+
no retention verdict in retention.yml - a person has to read the provider's terms
|
|
389
|
+
|
|
390
|
+
nothing here is written anywhere. A retention verdict is a person reading a provider's terms.
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
That is the healthy state. When something has been withdrawn, the same command
|
|
394
|
+
says which, and says where it was used:
|
|
395
|
+
|
|
396
|
+
```
|
|
397
|
+
gone 1 model(s) in use have been withdrawn
|
|
398
|
+
|
|
399
|
+
✗ longcat-2.5-preview-free
|
|
400
|
+
withdrawn from the provider - the catalogue keeps the record and marks it deprecated
|
|
401
|
+
base model of longcat-2.5-preview-free
|
|
402
|
+
fallback rung in fleet-all: build, plan, locate, vision, doc, sweep, longform
|
|
403
|
+
fallback rung in fleet-safe: build, plan, reviewer, locate, verify, vision, doc, schema, sweep, longform
|
|
404
|
+
|
|
405
|
+
lanes
|
|
406
|
+
build 2 live 1 dead (longcat-2.5-preview-free)
|
|
407
|
+
plan 2 live 1 dead (longcat-2.5-preview-free)
|
|
408
|
+
...
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
It reports four things:
|
|
412
|
+
|
|
413
|
+
1. **The models in use that have been withdrawn**, split into the ones that are
|
|
414
|
+
a profile's own base model and the ones that are a rung in a lane chain. A
|
|
415
|
+
dead base model means that profile does nothing; a dead chain rung is a
|
|
416
|
+
fallback that fails on the day it is needed.
|
|
417
|
+
2. **The lanes of the default profile**, each with how many rungs of its chain
|
|
418
|
+
are still alive. A lane with zero live rungs is a lane with no model.
|
|
419
|
+
3. **The candidates** — live, free models the kit does not use yet, each with
|
|
420
|
+
its context window, its output cap, the effort levels it publishes, and
|
|
421
|
+
**which lanes it could serve**.
|
|
422
|
+
4. **What is still undecided** about each candidate.
|
|
423
|
+
|
|
424
|
+
#### Why the candidate list knows about lanes
|
|
425
|
+
|
|
426
|
+
A model is not "better" or "worse" in the abstract. It is better or worse
|
|
427
|
+
**for a lane**, and the lanes are not asking for the same thing:
|
|
428
|
+
|
|
429
|
+
| what the lane needs | why |
|
|
430
|
+
|---|---|
|
|
431
|
+
| tool calls | every lane calls tools, so every lane needs a model that can |
|
|
432
|
+
| an image in | the `vision` lane reads an image, so it needs a model that takes one |
|
|
433
|
+
| a published effort level | a lane whose role asks for `max` needs a model that publishes `max` |
|
|
434
|
+
|
|
435
|
+
So `research` matches each candidate against each lane, and a model that
|
|
436
|
+
publishes **no** effort levels counts as a match rather than a failure: there
|
|
437
|
+
is nothing to mismatch, and the kit already puts such models in the chains of
|
|
438
|
+
lanes that ask for one.
|
|
439
|
+
|
|
440
|
+
#### The line the script does not cross
|
|
441
|
+
|
|
442
|
+
`research` **writes nothing**. Not `retention.yml`, not a profile, not the
|
|
443
|
+
config.
|
|
444
|
+
|
|
445
|
+
That is the same line `refresh` draws, and it is drawn for the same reason:
|
|
446
|
+
`retention.yml` is a human judgement about a provider's terms — whether your
|
|
447
|
+
prompts are kept, and whether they train on them. A machine cannot read a
|
|
448
|
+
provider's terms of service and come back with a privacy verdict. So a
|
|
449
|
+
candidate with no verdict is reported as `retention: unknown` and carries an
|
|
450
|
+
explicit blocker, rather than being quietly filed under the tier it happens to
|
|
451
|
+
be cheapest on.
|
|
452
|
+
|
|
453
|
+
`refresh` draws the line in the other direction, and it is the one that
|
|
454
|
+
matters: it **only ever removes**. A model that has been withdrawn is removed
|
|
455
|
+
from the chains. A model that might do the job better is never added, because
|
|
456
|
+
putting a model into a lane changes what that lane does, and that is a
|
|
457
|
+
person's decision.
|
|
458
|
+
|
|
459
|
+
The output of `research` is a shortlist to argue with, not a decision to
|
|
460
|
+
accept. When you have read the terms and made the call, `retention.yml` is
|
|
461
|
+
where the call lives, and `doctor` checks the rest.
|
|
462
|
+
|
|
463
|
+
#### Run it on a schedule
|
|
464
|
+
|
|
465
|
+
```cron
|
|
466
|
+
0 9 * * * cd ~/.config/opencode && oc-harness doctor --check-models
|
|
467
|
+
30 9 * * * cd ~/.config/opencode && oc-harness research
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
The first line says a route died. The second says what to do about it, and it
|
|
471
|
+
runs half an hour later because by then you have had a cup of coffee and the
|
|
472
|
+
answer is a decision, not an alarm.
|
|
473
|
+
|
|
474
|
+
`research --json` prints one parseable object and nothing else, so a script
|
|
475
|
+
can read it:
|
|
476
|
+
|
|
477
|
+
```json
|
|
478
|
+
{
|
|
479
|
+
"ok": true,
|
|
480
|
+
"tier": { "provider": "opencode", "total": 46, "live": 10, "withdrawn": 36 },
|
|
481
|
+
"shipped": { "count": 9, "gone": [] },
|
|
482
|
+
"lanes": [ { "lane": "build", "dead": [], "live": ["minimax-m3.1-flash-free", "deepseek-v4.1-flash-free"] } ],
|
|
483
|
+
"candidates": [ { "id": "flint-40b-free", "fits": ["build"], "retention": "unknown", "blockers": ["..."] } ]
|
|
484
|
+
}
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
#### One thing the catalogue does that a naive check misses
|
|
488
|
+
|
|
489
|
+
**A withdrawn model stays in the catalogue.** models.dev does not delete a
|
|
490
|
+
model the provider pulls — it keeps the record and marks it
|
|
491
|
+
`status: "deprecated"`. So "is it still in the catalogue" and "can it still
|
|
492
|
+
run" are two different questions, and a check that asks the first one reports
|
|
493
|
+
a dead model as a healthy fallback.
|
|
494
|
+
|
|
495
|
+
That is not hypothetical. This kit's own default fleet carried a dead fallback
|
|
496
|
+
rung in **all ten lanes**, and `doctor` called it healthy, because the chain
|
|
497
|
+
check asked whether the model was still present. It now asks whether it is
|
|
498
|
+
still alive, and it says so:
|
|
499
|
+
|
|
500
|
+
```
|
|
501
|
+
! fleet-safe drift
|
|
502
|
+
lane build: longcat-2.5-preview-free withdrawn, falls back to minimax-m3.1-flash-free
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
**Free is a price, not a name.** The tier is the set of models the provider
|
|
506
|
+
charges nothing for. `big-pickle` is on it and does not end in `-free`, so
|
|
507
|
+
the suffix is a naming convention and not the test — `research` reads the
|
|
508
|
+
price.
|
|
509
|
+
|
|
510
|
+
### Refresh: taking the dead rung out
|
|
511
|
+
|
|
512
|
+
`research` tells you a rung is dead. `refresh` takes it out.
|
|
513
|
+
|
|
514
|
+
```
|
|
515
|
+
$ oc-harness refresh --all
|
|
516
|
+
|
|
517
|
+
refreshed 11 of 11 profile(s) against the live catalogue
|
|
518
|
+
~ fleet-safe: withdrawn rungs removed: longcat-2.5-preview-free
|
|
519
|
+
lane build: minimax, deepseek, longcat -> minimax, deepseek
|
|
520
|
+
lane longform: longcat, minimax, deepseek -> minimax, deepseek
|
|
521
|
+
...
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
A chain names the models that could serve a lane, best first. A model the
|
|
525
|
+
provider has withdrawn is not one of them any more: it cannot run, so it is
|
|
526
|
+
dead weight in a chain whose entire job is to survive a withdrawal. The
|
|
527
|
+
refresh removes it, and if the lane's own primary was the dead one, the lane
|
|
528
|
+
takes the next live rung as its primary — a chain has to start with its
|
|
529
|
+
model. The fallback queue loses its dead entries, and the utility route moves
|
|
530
|
+
to a model the profile still reaches.
|
|
531
|
+
|
|
532
|
+
**The refresh only ever REMOVES.** Putting a model into a lane changes what
|
|
533
|
+
that lane does, and that is a person's decision — it is what `research` is
|
|
534
|
+
for. A script that quietly added a candidate would be putting a model whose
|
|
535
|
+
terms nobody has read into the path of every prompt.
|
|
536
|
+
|
|
537
|
+
Two cases a script cannot repair, and says so instead of pretending:
|
|
538
|
+
|
|
539
|
+
- **A profile whose own model was withdrawn.** There is no chain behind it to
|
|
540
|
+
fall back to, so there is nothing to repair. `refresh` reports it and leaves
|
|
541
|
+
the file alone; the honest fix is to retire the profile, and retiring one is
|
|
542
|
+
a decision a person makes. (That is exactly what happened to
|
|
543
|
+
`longcat-2.5-preview-free`.)
|
|
544
|
+
- **A lane left with no model at all.** Every rung of its chain was dead. It
|
|
545
|
+
is reported, not filled.
|
|
546
|
+
|
|
364
547
|
## Requirements
|
|
365
548
|
|
|
366
549
|
| | |
|
|
@@ -368,9 +551,9 @@ tier cannot do.
|
|
|
368
551
|
| Node | **22 or newer** — `engines` in package.json, and the CLI uses `node:` prefixed builtins. Node 20 fails at import time, not with a friendly message. |
|
|
369
552
|
| npm | 10 or newer, for `npm ci` when installing from a checkout |
|
|
370
553
|
| OS | macOS, Linux and Windows. The tests run on `ubuntu-latest`. |
|
|
371
|
-
| Shell | none needed to *use* the kit — no `bash`, `zsh` or `fish` setup. `doctor` and `
|
|
372
|
-
| Network | only `doctor` and `
|
|
373
|
-
| Disk | `use` and `install` write into `~/.config/opencode/` and nothing else. `doctor` writes nothing. `refresh` rewrites a profile in the kit's own
|
|
554
|
+
| Shell | none needed to *use* the kit — no `bash`, `zsh` or `fish` setup. `doctor`, `refresh` and `research` call `curl` to read models.dev. `baseline` and the measurement scripts read the install database with `sqlite3`, and fall back to python3's own `sqlite3` module when that binary is not installed — so python3 is the one thing to have. Everything else, including `install`, `use` and `verify`, works offline. |
|
|
555
|
+
| Network | only `doctor`, `refresh` and `research` need it, and only to read the live model catalogue. `list` is offline: it reads the shipped profiles. Everything else works offline. |
|
|
556
|
+
| Disk | `use` and `install` write into `~/.config/opencode/` and nothing else. `doctor` writes nothing. `research` writes nothing — it is a report, not a migration. `refresh` rewrites a profile in the kit's own
|
|
374
557
|
directory - `node_modules` for an npm install - and keeps a backup of the
|
|
375
558
|
one it replaced. |
|
|
376
559
|
|
|
@@ -583,10 +766,23 @@ recent calls was a window on *recency*, and a long session walks out of it:
|
|
|
583
766
|
after six more calls, the only copy of a file the agent had read was gone,
|
|
584
767
|
and the agent read it again. On the long-task A/B that was seventeen
|
|
585
768
|
re-reads and five times the input tokens. The newest copy of each distinct
|
|
586
|
-
output now survives
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
769
|
+
output now survives, and only the repeats are stubbed - **-69% input tokens
|
|
770
|
+
and -60% wall time** on that task, at the cost of a bigger context. It is a
|
|
771
|
+
setting: `prune.keepDistinctOutputs` in the profile, `false` to get the old
|
|
772
|
+
behaviour back.
|
|
773
|
+
|
|
774
|
+
**The distinct outputs have a ceiling.** The rule without one is not a
|
|
775
|
+
trade-off but a leak: it keeps every output the session has ever produced,
|
|
776
|
+
and a long session grows without limit. Measured on a real 137-message
|
|
777
|
+
session on 2026-10-22: the request was 5.26 MB, the pruner removed 0.04 MB of
|
|
778
|
+
it (0.8%), and 4.74 MB of it - 92% - was the distinct outputs of the whole
|
|
779
|
+
session. The profile's own budget for that request was 176,000 characters,
|
|
780
|
+
so the request was twenty-nine times over. The ceiling keeps the newest
|
|
781
|
+
distinct outputs and stubs the ones past it, so the property the rule was
|
|
782
|
+
added for - the copy the agent is working with survives, so it does not read
|
|
783
|
+
it again - still holds. It is `prune.keepDistinctBudgetChars` in the profile;
|
|
784
|
+
unset means the profile's own context budget, and `0` keeps no distinct
|
|
785
|
+
output at all.
|
|
590
786
|
|
|
591
787
|
## Memory
|
|
592
788
|
|