@kodrunhq/opencode-autopilot 1.1.1 → 1.1.2

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.
@@ -5,41 +5,110 @@ agent: autopilot
5
5
  Help the user configure opencode-autopilot by walking through the model
6
6
  assignment process interactively.
7
7
 
8
- Start by calling the oc_configure tool with subcommand "start". This returns:
9
- - Available models grouped by provider (from the user's OpenCode config)
10
- - The 8 agent groups with descriptions and recommendations
11
- - Current assignments if reconfiguring
12
- - Adversarial diversity rules
8
+ ## Step 1: Discover available models
13
9
 
14
- Then walk through each of the 8 agent groups in order (architects first,
15
- utilities last), explaining for each:
10
+ Call the oc_configure tool with subcommand "start". This returns:
11
+ - `availableModels`: a map of provider -> list of "provider/model" strings
12
+ - `groups`: the 8 agent groups with descriptions and recommendations
13
+ - `currentConfig`: existing assignments if reconfiguring
14
+ - `diversityRules`: adversarial diversity constraints
16
15
 
17
- 1. What the group does and which agents belong to it
18
- 2. The model tier recommendation
16
+ If `availableModels` is empty or has no entries, tell the user:
17
+ "No models were discovered from your providers. Run `opencode models`
18
+ in your terminal to see available models, then type them manually below."
19
+
20
+ ## Step 2: Build the complete model list
21
+
22
+ Combine ALL models from ALL providers into a single numbered list.
23
+ Every model the user has access to must appear. Do NOT filter, summarize,
24
+ or show only "recommended" models. The user decides — you present options.
25
+
26
+ Example (show ALL of them, not a subset). The IDs must match exactly
27
+ what `availableModels` returns (provider prefix comes from the provider):
28
+ ```
29
+ Available models:
30
+ 1. anthropic/claude-opus-4-6
31
+ 2. anthropic/claude-sonnet-4-6
32
+ 3. anthropic/claude-haiku-4-5
33
+ 4. openai/gpt-5.4
34
+ 5. openai/gpt-5.4-mini
35
+ 6. openai/gpt-5.4-codex
36
+ 7. google/gemini-3.1-pro
37
+ 8. google/gemini-3-flash
38
+ ...
39
+ ```
40
+
41
+ ## Step 3: Walk through each group
42
+
43
+ For each of the 8 groups (architects first, utilities last):
44
+
45
+ 1. Explain what the group does and which agents belong to it
46
+ 2. Show the tier recommendation
19
47
  3. For adversarial groups (challengers, reviewers, red-team): explain WHY
20
- model diversity matters and which group they're adversarial to
21
- 4. List available models from the user's providers
48
+ model diversity matters and which group they are adversarial to
49
+ 4. Show the full numbered model list again whenever asking for selections
50
+
51
+ ### Collecting models for each group
52
+
53
+ For each group, collect an ORDERED LIST of models (not just one):
22
54
 
23
- For each group, present the available models as a numbered list:
55
+ ```
56
+ Group: Architects
57
+ Pick models in priority order. The first is the primary; the rest are
58
+ fallbacks tried in sequence when the primary is rate-limited or fails.
24
59
 
25
- Example format:
26
- Primary model for Architects:
27
- 1. anthropic/claude-opus-4-6
28
- 2. openai/gpt-5.4
29
- 3. google/gemini-3.1-pro
60
+ Enter model numbers separated by commas (e.g. 1,4,7):
61
+ ```
30
62
 
31
- Pick a number (or type a model ID):
63
+ - The FIRST number is the primary model
64
+ - All subsequent numbers are fallbacks, tried in the order given
65
+ - Minimum 1 model (the primary), recommend 2-3 total
66
+ - Emphasize that fallbacks are the core feature: "When your primary model
67
+ hits a rate limit, the plugin automatically retries with the next model
68
+ in your fallback chain. More fallbacks = more resilience."
32
69
 
33
- If the user sends just a number, map it to the corresponding model.
34
- Then ask for optional fallbacks the same way (1-3 fallback models).
35
- Call oc_configure with subcommand "assign" for each group.
70
+ Parse the user's response:
71
+ - If they send numbers like "1,4,7": map to model IDs
72
+ - If they send model IDs directly: use as-is
73
+ - If they send a single number: that's the primary with no fallbacks
36
74
 
37
- If the assign response contains diversityWarnings, explain them
75
+ Call oc_configure with subcommand "assign":
76
+ - `group`: the group ID
77
+ - `primary`: first model from the user's list
78
+ - `fallbacks`: remaining models as comma-separated string
79
+
80
+ ### Diversity warnings
81
+
82
+ If the assign response contains `diversityWarnings`, explain them
38
83
  conversationally. Strong warnings should be highlighted — the user can
39
84
  still proceed, but make the quality trade-off clear.
40
85
 
41
- After all 8 groups are assigned, call oc_configure with subcommand "commit"
42
- to persist the configuration.
86
+ Example: "Heads up: Architects and Challengers both use Claude models.
87
+ Challengers are supposed to critique Architect decisions — using the same
88
+ model family means you get confirmation bias instead of genuine challenge.
89
+ Consider picking a different family for one of them. Continue anyway?"
90
+
91
+ ## Step 4: Commit and verify
92
+
93
+ After all 8 groups are assigned, call oc_configure with subcommand "commit".
94
+
95
+ Then call oc_configure with subcommand "doctor" to verify health.
96
+
97
+ Show a final summary table:
98
+
99
+ ```
100
+ Group | Primary | Fallbacks
101
+ ───────────────┼──────────────────────────────┼──────────────────────────
102
+ Architects | anthropic/claude-opus-4-6 | openai/gpt-5.4
103
+ Challengers | openai/gpt-5.4 | google/gemini-3.1-pro
104
+ ...
105
+ ```
106
+
107
+ ## Rules
43
108
 
44
- End by showing the final summary table and running the "doctor" subcommand
45
- to verify everything is healthy.
109
+ - NEVER pre-select models for the user. Always present the full list.
110
+ - NEVER skip fallback collection. Always ask for ordered model lists.
111
+ - NEVER filter the model list to "recommended" models. Show everything.
112
+ - If the user says "pick for me" or "use defaults", THEN you may suggest
113
+ assignments based on the tier recommendations and diversity rules, but
114
+ still show what you picked and ask for confirmation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kodrunhq/opencode-autopilot",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Curated agents, skills, and commands for the OpenCode AI coding CLI — autonomous orchestrator, multi-agent code review, model fallback, and in-session asset creation tools.",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [