opencode-magi 0.0.0-dev-20260525211234 → 0.0.0-dev-20260526012523

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.
Files changed (2) hide show
  1. package/README.md +10 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,7 +17,7 @@ OpenCode Magi recreates the review cycle humans already run on GitHub: multiple
17
17
  - Multi-agent reviews with an odd-number majority of 3 or more reviewers.
18
18
  - Optional unanimous approval policy for merge automation when every reviewer must approve before a PR is merged.
19
19
  - Finding-level voting before posting change requests, so only findings accepted by reviewer majority are submitted.
20
- - Multi-account review mode where each reviewer posts through its configured GitHub account, plus single-account review mode where one GitHub account posts the consensus result for multiple logical reviewers.
20
+ - Single-account identity mode by default, where one GitHub account posts consensus-backed review and triage results for multiple logical agents, plus multi-account mode for setups that need separate GitHub identities.
21
21
  - Re-review support for edited PRs: fixed threads are resolved, satisfied reviewers approve, and remaining issues are posted as additional comments.
22
22
  - Optional merge and close automation where an editor agent responds on behalf of the author, fixes changes it agrees with, pushes commits when needed, and repeats the reviewer/editor cycle until the PR can be approved, queued, merged, or closed.
23
23
  - Per-agent OpenCode permissions for reviewer, CI classifier, and editor child sessions.
@@ -61,6 +61,7 @@ Add the following content to the configuration file.
61
61
  ```json
62
62
  {
63
63
  "$schema": "https://raw.githubusercontent.com/magi-ai/opencode-magi/main/schema.json",
64
+ "account": "your-account",
64
65
  "agents": {
65
66
  "refs": {
66
67
  "account-1": {
@@ -75,7 +76,6 @@ Add the following content to the configuration file.
75
76
  }
76
77
  },
77
78
  "review": {
78
- "account": "your-account",
79
79
  "reviewers": [
80
80
  { "ref": "account-1" },
81
81
  { "ref": "account-2" },
@@ -85,14 +85,14 @@ Add the following content to the configuration file.
85
85
  }
86
86
  ```
87
87
 
88
- By default, `review.mode` is `"single"`. Magi uses one `review.account` to post reviewer-originated GitHub mutations while still running multiple logical reviewer agents and preserving majority voting, finding validation, and close reconsideration. The account must be authenticated with `gh auth token --user <account>`.
88
+ By default, `mode` is `"single"`. Magi uses one top-level `account` to post reviewer- and triage-originated GitHub mutations while still running multiple logical agents and preserving majority voting, finding validation, and close reconsideration. The account must be authenticated with `gh auth token --user <account>`.
89
89
 
90
- For team setups that need separate GitHub review identities, set `review.mode: "multi"` and configure a unique account for each reviewer.
90
+ For advanced team setups that need GitHub to see separate review or triage identities, set top-level `mode: "multi"` and configure unique accounts for each reviewer or triage voter.
91
91
 
92
92
  ```json
93
93
  {
94
+ "mode": "multi",
94
95
  "review": {
95
- "mode": "multi",
96
96
  "reviewers": [
97
97
  { "id": "general", "model": "openai/gpt-5.5", "account": "account-1" },
98
98
  {
@@ -121,6 +121,7 @@ Add the following content to the configuration file.
121
121
  ```json
122
122
  {
123
123
  "$schema": "https://raw.githubusercontent.com/magi-ai/opencode-magi/main/schema.json",
124
+ "account": "your-account",
124
125
  "github": {
125
126
  "owner": "your-owner",
126
127
  "repo": "your-repo"
@@ -128,16 +129,13 @@ Add the following content to the configuration file.
128
129
  "agents": {
129
130
  "refs": {
130
131
  "account-1": {
131
- "model": "openai/gpt-5.5",
132
- "account": "account-1"
132
+ "model": "openai/gpt-5.5"
133
133
  },
134
134
  "account-2": {
135
- "model": "anthropic/claude-opus-4-7",
136
- "account": "account-2"
135
+ "model": "anthropic/claude-opus-4-7"
137
136
  },
138
137
  "account-3": {
139
- "model": "opencode/kimi-k2-6",
140
- "account": "account-3"
138
+ "model": "opencode/kimi-k2-6"
141
139
  },
142
140
  "account-4": {
143
141
  "model": "openai/gpt-5.5",
@@ -182,7 +180,7 @@ Entries with `ref` are expanded from `agents.refs`. Fields set alongside `ref` o
182
180
  }
183
181
  ```
184
182
 
185
- After `refs` are expanded, `review.reviewers[].account` is the GitHub account used to post reviews and approvals in `multi` mode. Must be authenticated with `gh auth token --user <account>` and must be unique. In `single` mode, `review.account` is used for reviewer-originated review posts, approvals, change requests, close comments, reviewer replies, and reviewer thread resolutions. `merge.editor.account` is still used by `/magi:merge` to push fixes, close PRs, and merge PRs.
183
+ After `refs` are expanded, top-level `account` is the GitHub account used for reviewer- and triage-originated posts and mutations in `single` mode. In `multi` mode, `review.reviewers[].account` and `triage.voters[].account` are used instead and must be unique within their agent lists. `merge.editor.account` is still used by `/magi:merge` to push fixes, close PRs, and merge PRs.
186
184
 
187
185
  #### Validate config
188
186
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260525211234",
3
+ "version": "0.0.0-dev-20260526012523",
4
4
  "description": "Multi-agent PR review and merge orchestration plugin for OpenCode.",
5
5
  "license": "MIT",
6
6
  "author": "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",