@agentskit/harness 0.6.0 → 0.7.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 +7 -0
- package/capabilities/public-surface.json +102 -76
- package/dist/cli.js +655 -159
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +205 -73
- package/dist/index.js +661 -165
- package/dist/index.js.map +1 -1
- package/docs/LOOP.md +14 -0
- package/loop.config.example.yaml +9 -0
- package/package.json +1 -1
- package/release/manifest.json +1 -1
- package/release/notes.md +4 -0
package/docs/LOOP.md
CHANGED
|
@@ -139,6 +139,20 @@ Start from [`loop.config.example.yaml`](../loop.config.example.yaml) at the pack
|
|
|
139
139
|
| `machine.slots` | `sampleMachine` + `adaptiveConcurrency`, free RAM reserve, WSL cap, running worktrees | no — 0 free slots is a warning, not a failure |
|
|
140
140
|
| `linear.queue` | `orca linear list-issues` per configured state, filtered and ordered locally | yes — an unreachable Linear blocks |
|
|
141
141
|
|
|
142
|
+
|
|
143
|
+
## Dynamic model routing
|
|
144
|
+
|
|
145
|
+
`models.routing.mode` controls how the loop picks `provider/model` for each role:
|
|
146
|
+
|
|
147
|
+
| Mode | Behaviour |
|
|
148
|
+
|---|---|
|
|
149
|
+
| `tiers` (default) | YAML declaration order; usage only as available/unavailable (0.6 behaviour). |
|
|
150
|
+
| `hybrid` | Keep tier bands (quality policy); **inside a tier** pick the provider with the most remaining Orca usage. |
|
|
151
|
+
| `dynamic` | Flatten all YAML candidates; rank by remaining usage (YAML order is a soft tie-break). |
|
|
152
|
+
| `catalog` | Discover models from CLI lists (`grok models`), builtin catalog, and optional [Artificial Analysis](https://artificialanalysis.ai/) (cached under `stateDir/catalog/`), then rank by usage + quality band (`models.roles.*.quality`). |
|
|
153
|
+
|
|
154
|
+
Providers still need a `models.providers.<id>` block (`bin` / `tui` / `headless`) — Orca cannot invent argv. The doctor warns when Orca shows an integration that is not declared.
|
|
155
|
+
|
|
142
156
|
## Model routing
|
|
143
157
|
|
|
144
158
|
`models.<role>` is a list of tiers; each tier is a list of `provider/model`. Tiers are tried in order and, inside a
|
package/loop.config.example.yaml
CHANGED
|
@@ -37,6 +37,15 @@ linear:
|
|
|
37
37
|
needsInfoLabel: needs-info
|
|
38
38
|
|
|
39
39
|
models:
|
|
40
|
+
# routing.mode: tiers (default) | hybrid | dynamic | catalog
|
|
41
|
+
# hybrid = keep quality tiers, pick highest remaining usage inside each tier
|
|
42
|
+
# catalog = discover models via CLI/builtin/(optional) Artificial Analysis + usage
|
|
43
|
+
routing:
|
|
44
|
+
mode: hybrid
|
|
45
|
+
usageMetric: max
|
|
46
|
+
preferKnownUsage: true
|
|
47
|
+
# roles: { orchestrator: { quality: frontier }, builder: { quality: balanced }, watcher: { quality: fast } }
|
|
48
|
+
# catalog: { sources: [cli, builtin], artificialAnalysis: { enabled: false } }
|
|
40
49
|
# Tiers, in order. Inside a tier the first provider with usage available wins.
|
|
41
50
|
# Tier 1 = subscriptions, tier 2 = cheap hosted, tier 3 = last resort.
|
|
42
51
|
orchestrator: [[codex/gpt-5.6-sol, claude/opus], [opencode/opencode-go/glm-5.3], [grok/grok-4-fast]]
|
package/package.json
CHANGED
package/release/manifest.json
CHANGED
package/release/notes.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 0.7.0 release candidate
|
|
2
|
+
|
|
3
|
+
Dynamic Orca-aware model routing (hybrid/dynamic/catalog) with remaining-usage ranking and a living model catalog (CLI + builtin + optional Artificial Analysis).
|
|
4
|
+
|
|
1
5
|
# 0.6.0 release candidate
|
|
2
6
|
|
|
3
7
|
Keep-pushing loop gains approved memory (token reduction + continuous improvement), Doc Bridge freshness/review doctor probes, brief guidance scopes, optional deliver smoke, agent registry YAML, RAG context provider, MCP adapter seam (ADR-0028), Docker verify config, and weekly Linear retro automation. Config defaults preserve 0.5.0 behaviour.
|