@@ -67,14 +67,18 @@ Authenticate first with `gh auth login` and `gh auth setup-git` if needed.
6767 ```
6868
6969 Each prompt shows a default in brackets. Press Enter to accept it or type
70- another value. The wizard asks for model, trigger, signature, allowed authors,
70+ another value. The wizard asks for the main model and capabilities, a vision
71+ helper if needed, base branch, trigger, signature, allowed authors,
7172 polling interval, automatic merging, merge method, and test command.
7273 Do not add ` --local ` .
7374
7475 Defaults: the detected OpenCode model, ` @opencodebot ` , your GitHub login with
7576 ` [OpenCode2] ` , your GitHub login as the allowed author, 60 seconds, automatic
7677 merging enabled, squash, and detected tests (or ` skip ` if none are found).
7778 If no model can be detected from the running service, enter ` provider/model ` .
79+ Capabilities default to ` text ` ; add ` vision ` or ` audio ` only if the model
80+ supports those inputs. A text-only model requires another model for the
81+ vision helper. Base branch defaults to the GitHub repository's default.
7882 Enter accepts detected tests; type ` skip ` to disable them. Complex test commands
7983 can be entered as JSON argument arrays, e.g. ` ["npm", "run", "test:unit"] ` .
8084
@@ -137,15 +141,16 @@ to finish first.
137141 ```
138142
139143Reopen the terminal client if the update changes the UI. Project configuration
140- and queues remain in place. Do not repeat global registration or run ` init ` again.
144+ and queues remain in place. Load each owner project again after a service restart
145+ to resume its polling. Do not repeat global registration or run ` init ` again.
141146
142147### Changes in this version
143148
144- The default trigger is now ` @opencodebot ` . Existing explicit ` trigger ` , ` signature ` ,
145- and ` authors ` settings are preserved. If an older configuration omitted ` trigger ` ,
146- set it explicitly before upgrading to retain the old mention (for example,
147- ` "trigger": "@your-existing-bot" ` ). The built-in merge phrases are now English;
148- custom phrases can still be configured in any language .
149+ Questions and permission requests now wait for replies in the GitHub issue.
150+ You can choose the base branch, configure a vision/audio helper, and add bot
151+ instructions in Markdown. Existing JSON files still work: omitted capabilities
152+ mean ` text ` , and no media helper is assumed. Add the fields below to enable it.
153+ Keep your existing ` trigger ` , ` signature ` , and ` authors ` settings .
149154
150155Existing global loader directories may be named ` d3ckerbot ` . Keep those loaders
151156when updating; do not register a second copy under ` opencode-automation ` . When
@@ -158,12 +163,12 @@ Replace update step 1 with:
158163``` bash
159164cd " $HOME /opencode2-github-automation"
160165git fetch origin
161- git switch codex/english-setup-defaults
166+ git switch codex/issue-dialogue-capabilities
162167git pull --ff-only
163168```
164169
165- Then complete update steps 2 and 3. The approval and signature features described
166- below are available on this branch ( ` 0.4.0-beta.2 ` ) .
170+ Then complete update steps 2 and 3 ( ` 0.5.0-beta.1 ` ). Reopen each project you want
171+ the restarted service to handle .
167172
168173## 4. Remove automation from one project
169174
@@ -263,6 +268,10 @@ Use a model available in your own OpenCode 2 installation. Optional fields:
263268
264269| Field | Purpose |
265270| --- | --- |
271+ | ` baseBranch ` | Base for new worktrees and PRs; defaults to the GitHub default branch. |
272+ | ` capabilities ` | Main model support: ` text ` , ` vision ` , ` audio ` ; defaults to ` ["text"] ` . |
273+ | ` mediaModel ` | Separate helper model and its capabilities; example below. |
274+ | ` systemPromptFile ` | Optional Markdown instructions appended to the bundled bot prompt; path relative to the primary checkout, or absolute. |
266275| ` trigger ` | Mention that starts work; defaults to ` @opencodebot ` . |
267276| ` everySeconds ` | Polling interval; defaults to 60 seconds. |
268277| ` check ` | Test command as an argument array, such as ` ["npm", "test"] ` ; ` false ` skips tests. |
@@ -282,6 +291,44 @@ cd /absolute/path/to/your-project
282291node " $HOME /opencode2-github-automation/dist/setup.js" init --model provider/model --skip-tests --yes
283292```
284293
294+ Optional flags: ` --base-branch develop ` , ` --capabilities text ` ,
295+ ` --media-model provider/vision-model ` , ` --media-capabilities text,vision ` ,
296+ ` --system-prompt .opencode/bot.md ` . With ` --yes ` , supply a helper explicitly
297+ if you want media support with a text-only main model.
298+
299+ ## Questions, branches, media, and bot instructions
300+
301+ - ** Questions:** reply in the issue as an account in ` authors ` ; no repeated
302+ mention is needed. The bot enters ` waiting ` and resumes after the next scan.
303+ Permission questions require the exact ` /allow QUESTION_ID ` or
304+ ` /deny QUESTION_ID ` shown in the comment. Explicit OpenCode deny rules remain.
305+ - ** Base branch:** set ` baseBranch ` in the JSON, or put ` /base release/next `
306+ on its own line in the initial issue request. The branch must exist on ` origin ` .
307+ The worktree and PR use that base. Existing tasks keep their pinned base.
308+ - ** Media:** declare actual model capabilities and a helper if needed:
309+
310+ ``` json
311+ {
312+ "model" : " provider/text-model" ,
313+ "capabilities" : [" text" ],
314+ "mediaModel" : {
315+ "model" : " provider/vision-model" ,
316+ "capabilities" : [" text" , " vision" ]
317+ }
318+ }
319+ ```
320+
321+ Add these fields to your existing JSON using your installed model IDs. The
322+ helper analyzes attachments in a separate session; the main model stays
323+ unchanged. Add ` audio ` if the helper also accepts audio files.
324+ - ** Instructions:** [ prompts/bot.md] ( prompts/bot.md ) is bundled and always loaded.
325+ For project-specific instructions, create ` .opencode/bot.md ` in the primary
326+ checkout and set ` "systemPromptFile": ".opencode/bot.md" ` . It is appended
327+ to the baseline and reread on each use, including from worker branches.
328+
329+ See [ runtime behavior and examples] ( docs/runtime.md ) for reply handling, branch
330+ selection, supported media inputs, and prompt persistence.
331+
285332## Automatic merge and message signatures
286333
287334Example project configuration:
0 commit comments