@kodrunhq/opencode-autopilot 1.7.0 → 1.9.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/README.md +8 -8
- package/bin/cli.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/installer.ts +16 -2
- package/src/tools/doctor.ts +1 -1
- package/src/tools/quick.ts +3 -3
- package/assets/commands/oc-configure.md +0 -27
- /package/assets/commands/{brainstorm.md → oc-brainstorm.md} +0 -0
- /package/assets/commands/{new-agent.md → oc-new-agent.md} +0 -0
- /package/assets/commands/{new-command.md → oc-new-command.md} +0 -0
- /package/assets/commands/{new-skill.md → oc-new-skill.md} +0 -0
- /package/assets/commands/{quick.md → oc-quick.md} +0 -0
- /package/assets/commands/{review-pr.md → oc-review-pr.md} +0 -0
- /package/assets/commands/{stocktake.md → oc-stocktake.md} +0 -0
- /package/assets/commands/{tdd.md → oc-tdd.md} +0 -0
- /package/assets/commands/{update-docs.md → oc-update-docs.md} +0 -0
- /package/assets/commands/{write-plan.md → oc-write-plan.md} +0 -0
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ The AI walks you through installation, model assignment for each agent group, an
|
|
|
42
42
|
bunx @kodrunhq/opencode-autopilot install
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
This registers the plugin in `opencode.json` and creates a starter config. Then
|
|
45
|
+
This registers the plugin in `opencode.json` and creates a starter config. Then run `bunx @kodrunhq/opencode-autopilot configure` to set up your model assignments.
|
|
46
46
|
|
|
47
47
|
### Option C: Manual setup
|
|
48
48
|
|
|
@@ -60,7 +60,7 @@ npm install -g @kodrunhq/opencode-autopilot
|
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
Launch OpenCode. The plugin auto-installs agents, skills, and commands on first load and shows a welcome toast
|
|
63
|
+
Launch OpenCode. The plugin auto-installs agents, skills, and commands on first load and shows a welcome toast.
|
|
64
64
|
|
|
65
65
|
### Verify your setup
|
|
66
66
|
|
|
@@ -72,7 +72,7 @@ This checks config health, model assignments, and adversarial diversity between
|
|
|
72
72
|
|
|
73
73
|
## Model Groups
|
|
74
74
|
|
|
75
|
-
Agents are organized into 8 groups by the type of thinking they do. Each group gets a primary model and fallback chain.
|
|
75
|
+
Agents are organized into 8 groups by the type of thinking they do. Each group gets a primary model and fallback chain. Run `bunx @kodrunhq/opencode-autopilot configure` to assign models interactively. For advanced use, the `oc_configure` tool is also available in-session.
|
|
76
76
|
|
|
77
77
|
| Group | Agents | What they do | Model recommendation |
|
|
78
78
|
|-------|--------|-------------|---------------------|
|
|
@@ -203,22 +203,22 @@ The plugin ships with production-ready assets that auto-install to `~/.config/op
|
|
|
203
203
|
| Type | Assets | Purpose |
|
|
204
204
|
|------|--------|---------|
|
|
205
205
|
| **Agents** | researcher, metaprompter, documenter, pr-reviewer, autopilot + 10 pipeline agents | Research, docs, PR review, full autonomous pipeline |
|
|
206
|
-
| **Commands** | `/oc-
|
|
206
|
+
| **Commands** | `/oc-brainstorm`, `/oc-tdd`, `/oc-quick`, `/oc-write-plan`, `/oc-stocktake`, `/oc-review-pr`, `/oc-update-docs`, `/oc-new-agent`, `/oc-new-skill`, `/oc-new-command` | Brainstorming, TDD, quick tasks, planning, auditing, PR reviews, docs, extend plugin |
|
|
207
207
|
| **Skills** | coding-standards | Universal best practices (naming, error handling, immutability, validation) |
|
|
208
208
|
|
|
209
209
|
### In-session creation
|
|
210
210
|
|
|
211
211
|
Extend the plugin without leaving OpenCode:
|
|
212
212
|
|
|
213
|
-
- **`/new-agent`** -- Create a custom agent with YAML frontmatter + system prompt
|
|
214
|
-
- **`/new-skill`** -- Create a skill directory with domain knowledge
|
|
215
|
-
- **`/new-command`** -- Create a slash command (validates against built-in names)
|
|
213
|
+
- **`/oc-new-agent`** -- Create a custom agent with YAML frontmatter + system prompt
|
|
214
|
+
- **`/oc-new-skill`** -- Create a skill directory with domain knowledge
|
|
215
|
+
- **`/oc-new-command`** -- Create a slash command (validates against built-in names)
|
|
216
216
|
|
|
217
217
|
All created assets write to `~/.config/opencode/` and are available immediately.
|
|
218
218
|
|
|
219
219
|
## Configuration
|
|
220
220
|
|
|
221
|
-
Config lives at `~/.config/opencode/opencode-autopilot.json`. Run
|
|
221
|
+
Config lives at `~/.config/opencode/opencode-autopilot.json`. Run `bunx @kodrunhq/opencode-autopilot configure` for interactive setup, or edit manually.
|
|
222
222
|
|
|
223
223
|
| Setting | Options | Default |
|
|
224
224
|
|---------|---------|---------|
|
package/bin/cli.ts
CHANGED
|
@@ -200,7 +200,7 @@ async function printSystemChecks(
|
|
|
200
200
|
console.log(` Setup completed ${green("✓")} configured: true`);
|
|
201
201
|
} else {
|
|
202
202
|
console.log(
|
|
203
|
-
` Setup completed ${red("✗")} configured: false — run /
|
|
203
|
+
` Setup completed ${red("✗")} configured: false — run bunx @kodrunhq/opencode-autopilot configure`,
|
|
204
204
|
);
|
|
205
205
|
hasFailure = true;
|
|
206
206
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodrunhq/opencode-autopilot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
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": [
|
package/src/index.ts
CHANGED
|
@@ -236,7 +236,7 @@ const plugin: Plugin = async (input) => {
|
|
|
236
236
|
if (event.type === "session.created" && isFirstLoad(config)) {
|
|
237
237
|
await sdkOps.showToast(
|
|
238
238
|
"Welcome to OpenCode Autopilot!",
|
|
239
|
-
"Run
|
|
239
|
+
"Plugin loaded. Run oc_doctor to verify your setup.",
|
|
240
240
|
"info",
|
|
241
241
|
);
|
|
242
242
|
}
|
package/src/installer.ts
CHANGED
|
@@ -7,14 +7,28 @@ import { getAssetsDir, getGlobalConfigDir } from "./utils/paths";
|
|
|
7
7
|
* Assets that were previously shipped but have since been removed from the source repo.
|
|
8
8
|
* These are cleaned up from the target directory on every install to avoid stale files.
|
|
9
9
|
*/
|
|
10
|
-
const DEPRECATED_ASSETS = [
|
|
10
|
+
const DEPRECATED_ASSETS = [
|
|
11
|
+
"agents/placeholder-agent.md",
|
|
12
|
+
"commands/configure.md",
|
|
13
|
+
"commands/oc-configure.md",
|
|
14
|
+
"commands/brainstorm.md",
|
|
15
|
+
"commands/new-agent.md",
|
|
16
|
+
"commands/new-command.md",
|
|
17
|
+
"commands/new-skill.md",
|
|
18
|
+
"commands/quick.md",
|
|
19
|
+
"commands/review-pr.md",
|
|
20
|
+
"commands/stocktake.md",
|
|
21
|
+
"commands/tdd.md",
|
|
22
|
+
"commands/update-docs.md",
|
|
23
|
+
"commands/write-plan.md",
|
|
24
|
+
] as const;
|
|
11
25
|
|
|
12
26
|
/**
|
|
13
27
|
* Assets that must be overwritten on every install, even if the user has a copy.
|
|
14
28
|
* Used when the shipped version has critical fixes that override user customizations.
|
|
15
29
|
* Remove entries once the fix has been deployed long enough.
|
|
16
30
|
*/
|
|
17
|
-
const FORCE_UPDATE_ASSETS = [
|
|
31
|
+
const FORCE_UPDATE_ASSETS = [] as const;
|
|
18
32
|
|
|
19
33
|
export interface InstallResult {
|
|
20
34
|
readonly copied: readonly string[];
|
package/src/tools/doctor.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface DoctorOptions {
|
|
|
28
28
|
*/
|
|
29
29
|
const FIX_SUGGESTIONS: Readonly<Record<string, string>> = Object.freeze({
|
|
30
30
|
"config-validity":
|
|
31
|
-
"Run /
|
|
31
|
+
"Run `bunx @kodrunhq/opencode-autopilot configure` to reconfigure, or delete ~/.config/opencode/opencode-autopilot.json to reset",
|
|
32
32
|
"agent-injection": "Restart OpenCode to trigger agent re-injection via config hook",
|
|
33
33
|
"asset-directories": "Restart OpenCode to trigger asset reinstallation",
|
|
34
34
|
});
|
package/src/tools/quick.ts
CHANGED
|
@@ -21,7 +21,7 @@ interface QuickArgs {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Core logic for the /quick command.
|
|
24
|
+
* Core logic for the /oc-quick command.
|
|
25
25
|
* Creates a pipeline state that starts at PLAN (skipping discovery phases),
|
|
26
26
|
* then delegates to orchestrateCore to continue the pipeline.
|
|
27
27
|
*/
|
|
@@ -30,7 +30,7 @@ export async function quickCore(args: QuickArgs, artifactDir: string): Promise<s
|
|
|
30
30
|
if (!args.idea || args.idea.trim().length === 0) {
|
|
31
31
|
return JSON.stringify({
|
|
32
32
|
action: "error",
|
|
33
|
-
message: "No idea provided. Usage: /quick <describe the task>",
|
|
33
|
+
message: "No idea provided. Usage: /oc-quick <describe the task>",
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -64,7 +64,7 @@ export async function quickCore(args: QuickArgs, artifactDir: string): Promise<s
|
|
|
64
64
|
phase: "PLAN",
|
|
65
65
|
agent: "oc-quick",
|
|
66
66
|
decision: "Skip discovery phases",
|
|
67
|
-
rationale: "Quick task mode: user explicitly requested simplified pipeline via /quick",
|
|
67
|
+
rationale: "Quick task mode: user explicitly requested simplified pipeline via /oc-quick",
|
|
68
68
|
},
|
|
69
69
|
],
|
|
70
70
|
confidence: [],
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Configure opencode-autopilot model assignments for each agent group
|
|
3
|
-
agent: autopilot
|
|
4
|
-
---
|
|
5
|
-
Model configuration uses an interactive terminal wizard with searchable
|
|
6
|
-
model selection. This cannot be done inside the OpenCode TUI — it requires
|
|
7
|
-
a separate terminal.
|
|
8
|
-
|
|
9
|
-
Tell the user to open a terminal and run:
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
bunx @kodrunhq/opencode-autopilot configure
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This will:
|
|
16
|
-
1. Discover all available models from their configured providers
|
|
17
|
-
2. Walk through each of the 8 agent groups with a searchable model picker
|
|
18
|
-
3. For each group, select a primary model and optional fallback models
|
|
19
|
-
4. Check adversarial diversity (different families for groups that review each other)
|
|
20
|
-
5. Save the configuration
|
|
21
|
-
|
|
22
|
-
After running the wizard, tell the user to restart OpenCode to pick up
|
|
23
|
-
the new model assignments.
|
|
24
|
-
|
|
25
|
-
Do NOT attempt to configure models through the oc_configure tool's assign
|
|
26
|
-
subcommand directly. The interactive wizard is the supported configuration
|
|
27
|
-
method.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|