@srobroek/pi-agent-reviewer 0.13.1 → 0.14.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/CHANGELOG.md +20 -0
- package/README.md +11 -12
- package/agents/code-reviewer.md +1 -1
- package/agents/security-auditor.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## agent-reviewer [0.14.0](https://github.com/srobroek/harness-plugins/compare/agent-reviewer--v0.13.4...agent-reviewer--v0.14.0) (2026-11-24)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **agent-reviewer:** code-reviewer and security-auditor run the project's tests ([#172](https://github.com/srobroek/harness-plugins/issues/172)) ([0d2693e](https://github.com/srobroek/harness-plugins/commit/0d2693eba31b4a1b48f4a2f6726a1170a948e503))
|
|
6
|
+
|
|
7
|
+
## agent-reviewer [0.13.4](https://github.com/srobroek/harness-plugins/compare/agent-reviewer--v0.13.3...agent-reviewer--v0.13.4) (2026-11-24)
|
|
8
|
+
|
|
9
|
+
## agent-reviewer [0.13.3](https://github.com/srobroek/harness-plugins/compare/agent-reviewer--v0.13.2...agent-reviewer--v0.13.3) (2026-11-24)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **tools:** restore portable MCP defaults ([f4c4930](https://github.com/srobroek/harness-plugins/commit/f4c4930b68477b6c050cc3e0a6ed62b6b8f8d402))
|
|
14
|
+
|
|
15
|
+
## agent-reviewer [0.13.2](https://github.com/srobroek/harness-plugins/compare/agent-reviewer--v0.13.1...agent-reviewer--v0.13.2) (2026-11-24)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **agent-reviewer:** support GitLab merge request reads ([e199086](https://github.com/srobroek/harness-plugins/commit/e1990861ee8b3d10b3adad7294de159c47f4e23b))
|
|
20
|
+
|
|
1
21
|
## agent-reviewer [0.13.1](https://github.com/srobroek/harness-plugins/compare/agent-reviewer--v0.13.0...agent-reviewer--v0.13.1) (2026-11-23)
|
|
2
22
|
|
|
3
23
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -7,18 +7,14 @@ skill they load.
|
|
|
7
7
|
|
|
8
8
|
| Agent | Reviews | Tools | Verdict | In the subagent catalog |
|
|
9
9
|
| --- | --- | --- | --- | --- |
|
|
10
|
-
| `pr-reviewer` (steps 80) |
|
|
10
|
+
| `pr-reviewer` (steps 80) | GitHub pull request on all harnesses; GitLab merge request on OpenCode only | OpenCode shell `gh pr view *`, `gh pr diff *`, `glab mr view *`, `glab mr diff *`, and GET-only `glab api` patterns; Pi shell `gh pr view *`, `gh pr diff *`; OMP `github` tool | `APPROVE\|REQUEST-CHANGES\|COMMENT` | no (`hidden: true`) |
|
|
11
11
|
| `code-reviewer` (steps 80) | A local diff: working tree, branch range or commits | read, grep, glob, `lsp_*`; shell `git diff`, `git log`, `git show` only, never `--output` | `APPROVE\|REQUEST-CHANGES\|COMMENT` | yes |
|
|
12
12
|
| `security-auditor` (steps 80) | A repository scope or the files a change touches, source to sink, CWE-tagged | read, grep, glob, `lsp_*`; no shell, no web | `PASS\|MINOR\|MAJOR` | yes |
|
|
13
13
|
| `adversarial-challenger` (steps 60) | A claim, plan, design or decision, with evidence-backed counter-arguments | read, grep, glob, `lsp_*`, webfetch, websearch | `HOLDS\|WEAKENED\|REFUTED` | yes |
|
|
14
14
|
|
|
15
|
-
Every reply starts with its `VERDICT:` line.
|
|
16
|
-
`pr-reviewer`'s, and accepts that line below a preamble or inside a code fence too.
|
|
15
|
+
Every reply starts with its `VERDICT:` line. When the delivery plugin is installed, its verdict hook parses `pr-reviewer`'s verdict and accepts that line below a preamble or inside a code fence too.
|
|
17
16
|
|
|
18
|
-
`pr-reviewer` is hidden because delivery
|
|
19
|
-
is ready, so listing it in every primary request's subagent catalog costs tokens without
|
|
20
|
-
helping the parent choose. The other three stay visible: a parent picks them on its own
|
|
21
|
-
for "review my change", "is this safe" or "poke holes in this plan".
|
|
17
|
+
`pr-reviewer` is hidden because, when the delivery plugin is installed, its workflow and fan-out skill name it when a PR or MR is ready. Otherwise it can still be invoked directly, but listing it in every primary request's subagent catalog costs tokens without helping the parent choose. The other three stay visible for "review my change", "is this safe" or "poke holes in this plan".
|
|
22
18
|
|
|
23
19
|
Each permission list is an allowlist: a deny on every action, then the tools the agent
|
|
24
20
|
uses. No reviewer can edit, spawn subagents, ask the user, or run Code Mode (`execute`),
|
|
@@ -38,13 +34,13 @@ inherits the caller's.
|
|
|
38
34
|
|
|
39
35
|
| Option | Default | Effect |
|
|
40
36
|
| --- | --- | --- |
|
|
41
|
-
| `tools` | `["context7_*"
|
|
37
|
+
| `tools` | `["context7_*"]` | Context7 is allowed by default. Add MCP patterns such as `aws-mcp_*` for AWS projects; an array replaces the default. `false` or `[]` adds no rules; the agents keep their fixed allowlists. |
|
|
42
38
|
|
|
43
39
|
```jsonc
|
|
44
40
|
"options": { "tools": ["context7_*", "<server>_<tool>"] }
|
|
45
41
|
```
|
|
46
42
|
|
|
47
|
-
Patterns must name MCP server tools only (`<server>_<tool>`). The option refuses a pattern that could match a tool from a plugin in this repository or from OpenCode itself, such as `dep_*`, `delivery_*`, `quality_*`, `lsp_*` or `opencode_*`, and a pattern that starts with a wildcard, and logs a warning. Only add read-only tools: an allowed MCP tool runs without a prompt. The option refuses a pattern that matches a built-in action (`shell`, `edit`, `write`, `patch`, `external_directory`, `subagent`, `*` and the like) and logs a warning, so it cannot widen file or shell access.
|
|
43
|
+
Patterns must name MCP server tools only (`<server>_<tool>`). The option refuses a pattern that could match a tool from a plugin in this repository or from OpenCode itself, such as `dep_*`, `delivery_*`, `quality_*`, `lsp_*` or `opencode_*`, and a pattern that starts with a wildcard, and logs a warning. Only add read-only tools: an allowed MCP tool runs without a prompt. The option refuses a pattern that matches a built-in action (`shell`, `edit`, `write`, `patch`, `external_directory`, `subagent`, `*` and the like) and logs a warning, so it cannot widen file or shell access. The PR reviewer uses OpenCode's read-only shell allowlist for GitHub (`gh pr view`/`gh pr diff`) and GitLab (`glab mr view`/`glab mr diff`, with GET-only `glab api`). Pi permits only its two `gh` reads; OMP has only its `github` tool. GitLab MR reviews are therefore OpenCode-only.
|
|
48
44
|
|
|
49
45
|
This agent denies `execute`, so OpenCode lists its allowed MCP tools directly, even for a server configured for Code Mode: with `execute` wholly denied, every tool left active becomes a direct tool (`packages/core/src/tool.ts:260-264`, OpenCode v2.2.6; an MCP tool's `codemode` flag is set at `packages/core/src/tool/mcp.ts:57`).
|
|
50
46
|
|
|
@@ -80,11 +76,14 @@ OMP installs the agents from the generated OMP directory:
|
|
|
80
76
|
omp plugin install /path/to/harness-plugins/plugins/agent-reviewer/omp
|
|
81
77
|
```
|
|
82
78
|
|
|
83
|
-
The `pr-reviewer` agent uses OMP's `github` tool. OMP disables that tool by
|
|
84
|
-
default; enable `github` under **Settings → Tools** before asking it to review a
|
|
85
|
-
pull request. Other reviewers do not require that tool.
|
|
79
|
+
The `pr-reviewer` agent uses OMP's `github` tool. OMP disables that tool by default; enable `github` under **Settings → Tools** before asking it to review a GitHub pull request. OMP does not expose the restricted shell reads needed for GitLab merge requests, so use OpenCode for GitLab MR reviews.
|
|
86
80
|
|
|
87
81
|
## Install
|
|
82
|
+
Install the Pi package from npm:
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
pi install npm:@srobroek/pi-agent-reviewer
|
|
86
|
+
```
|
|
88
87
|
|
|
89
88
|
```sh
|
|
90
89
|
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/agent-reviewer/opencode'
|
package/agents/code-reviewer.md
CHANGED
|
@@ -21,7 +21,7 @@ You review one local change and find bugs its author would want fixed before mer
|
|
|
21
21
|
|
|
22
22
|
## Rules
|
|
23
23
|
|
|
24
|
-
- Keep the shell read-only. Never modify the repository, remote, or ledger; never write output to a file; never
|
|
24
|
+
- Keep the shell read-only. Never modify the repository, remote, or ledger; never write output to a file; never install dependencies or change a lockfile; never push or commit. Run the project's existing test, lint, and typecheck commands (`pytest`, `uv run pytest`, `just check`, `npm test`, `bun test`, `cargo test`, `go test`) to verify a finding. Name any other command for the caller.
|
|
25
25
|
- Ground every finding in a file path and line. Name checks for the caller to run instead of running them.
|
|
26
26
|
|
|
27
27
|
## Output
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: security-auditor
|
|
3
3
|
description: "Read-only security review of a repository scope or changed files: trace untrusted input to sinks and report CWE-tagged findings."
|
|
4
|
-
tools: read, grep, find, ls
|
|
4
|
+
tools: read, grep, find, ls, bash
|
|
5
5
|
skills: review-security, review-core, review-standards, project-secrets, toolchain-infrastructure, toolchain-guide, aws-guidance, quality-code-policy
|
|
6
6
|
inheritProjectContext: true
|
|
7
7
|
inheritSkills: true
|
|
@@ -18,7 +18,7 @@ You are a security reviewer. Find exploitable vulnerabilities in the scope your
|
|
|
18
18
|
|
|
19
19
|
## Rules
|
|
20
20
|
|
|
21
|
-
-
|
|
21
|
+
- Keep the shell read-only. Never modify files, a remote, or the ledger; never install dependencies or change a lockfile; never push or commit. Run the project's existing test, lint, and typecheck commands (`pytest`, `uv run pytest`, `just check`, `npm test`, `bun test`, `cargo test`, `go test`) to verify a finding. Name any other command for the caller.
|
|
22
22
|
- Tag each finding with a CWE id and severity: critical, high, medium, low, or informational.
|
|
23
23
|
|
|
24
24
|
## Output
|
package/package.json
CHANGED