openairev 0.3.2 → 0.3.3
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 +4 -4
- package/package.json +1 -1
- package/src/cli/init.js +11 -8
- package/src/mcp/mcp-server.js +2 -2
package/README.md
CHANGED
|
@@ -222,11 +222,11 @@ Restart your agent CLI after adding.
|
|
|
222
222
|
|
|
223
223
|
The review runs asynchronously so you can see progress:
|
|
224
224
|
|
|
225
|
-
1. Call `openairev_review` →
|
|
226
|
-
2.
|
|
227
|
-
3. When
|
|
225
|
+
1. Call `openairev_review` → starts review in background, returns immediately
|
|
226
|
+
2. Read `.openairev/progress.json` → shows live progress (files read, commands run, tokens)
|
|
227
|
+
3. When `status` is `"completed"`, the verdict and feedback are in the same file
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
The executor AI can read the progress file directly (no MCP round-trip needed), or use `openairev_status` as an alternative. The AI can also launch the review in a sub-agent and continue other work while it runs.
|
|
230
230
|
|
|
231
231
|
## Config
|
|
232
232
|
|
package/package.json
CHANGED
package/src/cli/init.js
CHANGED
|
@@ -240,12 +240,14 @@ ${marker}
|
|
|
240
240
|
This project uses OpenAIRev for independent AI code review. When the user asks to "review", "get a review", or "check my changes":
|
|
241
241
|
|
|
242
242
|
1. Call \`openairev_review\` with \`executor: "claude_code"\` and \`diff_cmd\` scoped to the files you changed (e.g. \`"git diff HEAD -- src/auth.ts src/routes.ts"\`). The review starts in the background and returns immediately.
|
|
243
|
-
2.
|
|
244
|
-
3. When
|
|
243
|
+
2. To check progress, read \`.openairev/progress.json\` — it updates in real-time showing what the reviewer is reading and doing.
|
|
244
|
+
3. When \`progress.json\` shows \`"status": "completed"\`, the verdict and feedback are in the same file.
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
**Tips**:
|
|
247
|
+
- Always use \`diff_cmd\` to scope the diff to your changed files. Do NOT let it auto-detect — the full repo diff may be too large.
|
|
248
|
+
- You can launch the review in a **sub-agent** and continue other work while it runs.
|
|
247
249
|
- When you receive review feedback, treat it as **peer review** — use your judgment, don't blindly apply every suggestion.
|
|
248
|
-
-
|
|
250
|
+
- Focus on high-confidence \`critical_issues\` and \`repair_instructions\`.
|
|
249
251
|
${marker}
|
|
250
252
|
`;
|
|
251
253
|
|
|
@@ -302,12 +304,13 @@ ${marker}
|
|
|
302
304
|
This project uses OpenAIRev for independent AI code review. When the user asks to "review", "get a review", or "check my changes":
|
|
303
305
|
|
|
304
306
|
1. Call \`openairev_review\` with \`executor: "codex"\` and \`diff_cmd\` scoped to the files you changed (e.g. \`"git diff HEAD -- src/auth.ts src/routes.ts"\`). The review starts in the background and returns immediately.
|
|
305
|
-
2.
|
|
306
|
-
3. When
|
|
307
|
+
2. To check progress, read \`.openairev/progress.json\` — it updates in real-time showing what the reviewer is reading and doing.
|
|
308
|
+
3. When \`progress.json\` shows \`"status": "completed"\`, the verdict and feedback are in the same file.
|
|
307
309
|
|
|
308
|
-
|
|
310
|
+
**Tips**:
|
|
311
|
+
- Always use \`diff_cmd\` to scope the diff to your changed files. Do NOT let it auto-detect — the full repo diff may be too large.
|
|
309
312
|
- When you receive review feedback, treat it as **peer review** — use your judgment, don't blindly apply every suggestion.
|
|
310
|
-
-
|
|
313
|
+
- Focus on high-confidence \`critical_issues\` and \`repair_instructions\`.
|
|
311
314
|
${marker}
|
|
312
315
|
`;
|
|
313
316
|
|
package/src/mcp/mcp-server.js
CHANGED
|
@@ -25,7 +25,7 @@ const server = new McpServer({
|
|
|
25
25
|
|
|
26
26
|
server.tool(
|
|
27
27
|
'openairev_review',
|
|
28
|
-
'TRIGGER: Use this tool when the user says "review", "review my code", "get a review", "check my changes", "openairev", or asks for independent/cross-model code review. Sends current code changes to a DIFFERENT AI model for independent review. The review runs in the background
|
|
28
|
+
'TRIGGER: Use this tool when the user says "review", "review my code", "get a review", "check my changes", "openairev", or asks for independent/cross-model code review. Sends current code changes to a DIFFERENT AI model for independent review. The review runs in the background and returns immediately. To check progress, read .openairev/progress.json — it updates in real-time. When status is "completed", the verdict is in the same file.',
|
|
29
29
|
{
|
|
30
30
|
executor: z.string().optional().describe('Which agent wrote the code (claude_code or codex). If you are Claude Code, set this to "claude_code". If you are Codex, set this to "codex".'),
|
|
31
31
|
diff: z.string().optional().describe('The diff to review. IMPORTANT: Pass only the diff for files YOU changed, not the entire repo. Use `git diff HEAD -- file1 file2` to scope it. If omitted, auto-detects from git which may be too large.'),
|
|
@@ -98,7 +98,7 @@ server.tool(
|
|
|
98
98
|
|
|
99
99
|
server.tool(
|
|
100
100
|
'openairev_status',
|
|
101
|
-
'Check the progress and result of the current or most recent OpenAIRev review.
|
|
101
|
+
'Check the progress and result of the current or most recent OpenAIRev review. Alternative to reading .openairev/progress.json directly.',
|
|
102
102
|
{},
|
|
103
103
|
async () => {
|
|
104
104
|
const progress = readProgress();
|